Avoid collision between gnulib wrapper and libintl wrapper.
[pspp] / ChangeLog
1 2010-03-25  Bruno Haible  <bruno@clisp.org>
2
3         Avoid collision between gnulib wrapper and libintl wrapper.
4         * lib/printf.c (printf): Don't define if a printf wrapper is already
5         defined in intl/printf.c.
6         Reported by Michel Boaventura <michel@michelboaventura.com>.
7
8 2010-03-25  Bruno Haible  <bruno@clisp.org>
9
10         Use ANSI C.
11         * lib/readutmp.h (getutent): Provide ANSI C prototype.
12
13 2010-03-25  Bruno Haible  <bruno@clisp.org>
14
15         Minor formatting changes.
16         * lib/acosl.c: Insert space before function argument list.
17         * lib/argz.c: Likewise.
18         * lib/asinl.c: Likewise.
19         * lib/expl.c: Likewise.
20         * lib/gen-uni-tables.c: Likewise.
21         * lib/gettext.h: Likewise.
22         * lib/glthread/lock.h: Likewise.
23         * lib/tanl.c: Likewise.
24         * lib/uniname/uniname.c: Likewise.
25         * tests/test-idpriv-drop.c: Likewise.
26         * tests/test-idpriv-droptemp.c: Likewise.
27         * tests/test-lock.c: Likewise.
28         * tests/test-tls.c: Likewise.
29         * lib/argp-help.c: Insert space before function-like macro argument
30         list.
31         * lib/memcmp.c: Likewise.
32         * tests/test-base64.c: Likewise.
33         * lib/localename.c: Insert space before sizeof's argument list.
34         * lib/safe-alloc.h: Likewise.
35         * lib/file-set.h: Insert space before macro argument list.
36         * tests/test-argp.c: Likewise.
37         * lib/argp-namefrob.h: Insert space before function parameter list.
38         * lib/getaddrinfo.c: Likewise.
39         * lib/netdb.in.h: Likewise.
40         * lib/parse-duration.h: Likewise.
41         * lib/parse-duration.c: Likewise.
42         * lib/poll.c: Likewise.
43         * lib/select.c: Likewise.
44         * lib/trim.h: Likewise.
45         * tests/test-usleep.c: Likewise.
46         * lib/ldexpl.c: Insert space before function parameter list and before
47         function argument list.
48         * lib/logl.c: Likewise.
49         * lib/sqrtl.c: Likewise.
50         * lib/trim.c: Likewise.
51         * lib/cosl.c: Use GNU style indentation. Insert space before function
52         argument list.
53         * lib/sinl.c: Likewise.
54         * lib/tsearch.c: Insert space after 'for'.
55         Reported by Jim Meyering.
56
57 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
58
59         * maint.mk (sc_Wundef_boolean): Check for the presence of the
60         config header before grepping, as it's not present before
61         autoreconf/configure are run.  Reported by Simon Josefsson.
62
63 2010-03-23  Bruno Haible  <bruno@clisp.org>
64
65         pt_chown: Make it work with automake < 1.11.
66         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67         Reported by Simon Josefsson.
68
69 2010-03-23  Bruno Haible  <bruno@clisp.org>
70
71         pt_chown: Don't depend on GPLed modules.
72         * lib/pt_chown.c: Don't include idpriv.h.
73         (main): Don't drop privileges.
74         * modules/pt_chown (Depends-on): Remove idpriv-drop.
75         Reported by Simon Josefsson.
76
77 2010-03-24  Simon Josefsson  <simon@josefsson.org>
78
79         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
80         suggestions from karl@freefriends.org (Karl Berry).
81
82 2010-03-22  Eric Blake  <eblake@redhat.com>
83
84         gethostname: further tweaks
85         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
86         are overriding gethostname.
87         Suggested by Bruno Haible.
88
89 2010-03-21  Bruno Haible  <bruno@clisp.org>
90
91         Fix comments.
92         * lib/forkpty.c (rpl_forkpty): Fix comment.
93         * lib/openpty.c (rpl_openpty): Likewise.
94         Reported by Eric Blake.
95
96 2010-03-22  Eric Blake  <eblake@redhat.com>
97
98         gethostname: fix build on mingw
99         * lib/unistd.in.h (includes): Work around fact that mingw
100         <winsock2.h> re-includes <unistd.h>, by avoiding any
101         redeclarations if we are being included by <winsock2.h>.
102         Reported by Matthias Bolte.
103
104 2010-03-21  Bruno Haible  <bruno@clisp.org>
105
106         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
107         * lib/forkpty.c (forkpty): New replacement function, from glibc with
108         modifications.
109         * lib/pty.in.h (forkpty): Update declaration. Add comments.
110         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
111         provide the replacement.
112         * modules/forkpty (Depends-on): Add openpty, login_tty.
113         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
114         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
115         * doc/glibc-functions/forkpty.texi: More supported platforms.
116         * config/srclist.txt: Add forkpty.c (commented).
117
118 2010-03-21  Bruno Haible  <bruno@clisp.org>
119
120         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
121         (Makefile.am): Verify that PTY_LIB is defined.
122
123         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
124
125 2010-03-21  Bruno Haible  <bruno@clisp.org>
126
127         Tests for module 'login_tty'.
128         * modules/login_tty-tests: New file.
129         * tests/test-login_tty.c: New file.
130
131         New module 'login_tty'.
132         * lib/login_tty.c: New file.
133         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
134         * modules/login_tty: New file.
135         * doc/glibc-functions/login_tty.texi: Mention the new module.
136
137 2010-03-21  Bruno Haible  <bruno@clisp.org>
138
139         login_tty: Documentation.
140         * doc/glibc-functions/login_tty.texi: New file.
141         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
142
143 2010-03-21  Bruno Haible  <bruno@clisp.org>
144
145         pty: Consistent macro naming.
146         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
147         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
148         * modules/pty (configure.ac): Update.
149
150 2010-03-21  Bruno Haible  <bruno@clisp.org>
151
152         Tests for openpty: Make stricter.
153         * tests/test-openpty.c (main): Add test of canonical processing and
154         erase.
155         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
156
157         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
158         * lib/openpty.c (openpty): New replacement function.
159         * lib/pty.in.h: Include <termios.h>.
160         (openpty): Update declaration. Add comments.
161         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
162         is not declared, arrange to provide the replacement. Check for _getpty
163         and posix_openpt.
164         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
165         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
166         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
167         * modules/pty-tests (test_pty_c___LDADD): New variable.
168         * doc/glibc-functions/openpty.texi: More supported platforms.
169
170 2010-03-21  Bruno Haible  <bruno@clisp.org>
171
172         setenv: Tweaks.
173         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
174         the test program.
175         * doc/posix-functions/setenv.texi: Update platforms list.
176
177 2010-03-21  Bruno Haible  <bruno@clisp.org>
178
179         New module 'unlockpt'.
180         * lib/unlockpt.c: New file, from glibc with modifications.
181         * m4/unlockpt.m4: New file.
182         * modules/unlockpt: New file.
183         * lib/stdlib.in.h (unlockpt): New declaration.
184         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
185         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
186         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
187         HAVE_UNLOCKPT.
188         * doc/posix-functions/unlockpt.texi: Mention the new module.
189         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
190         * config/srclist.txt: Add unlockpt.c (commented).
191
192 2010-03-21  Jim Meyering  <meyering@redhat.com>
193
194         maint.mk: prohibit inclusion of "intprops.h" without use
195         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
196
197 2010-03-21  Bruno Haible  <bruno@clisp.org>
198
199         New module 'grantpt'.
200         * lib/grantpt.c: New file, from glibc with modifications.
201         * m4/grantpt.m4: New file.
202         * modules/grantpt: New file.
203         * lib/stdlib.in.h (grantpt): New declaration.
204         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
205         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
206         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
207         HAVE_GRANTPT.
208         * doc/posix-functions/grantpt.texi: Mention the new module.
209         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
210         * config/srclist.txt: Add grantpt.c (commented).
211
212 2010-03-21  Bruno Haible  <bruno@clisp.org>
213
214         New module 'pt_chown'.
215         * lib/pt_chown.c: New file, from glibc with modifications.
216         * lib/pty-private.h: New file, from glibc with modifications.
217         * modules/pt_chown: New file.
218         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
219
220 2010-03-21  Bruno Haible  <bruno@clisp.org>
221
222         Tests for module 'ptsname'.
223         * modules/ptsname-tests: New file.
224         * tests/test-ptsname.c: New file.
225
226         New module 'ptsname'.
227         * lib/ptsname.c: New file, from glibc with modifications.
228         * m4/ptsname.m4: New file.
229         * modules/ptsname: New file.
230         * lib/stdlib.in.h (ptsname): New declaration.
231         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
232         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
233         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
234         HAVE_PTSNAME.
235         * doc/posix-functions/ptsname.texi: Mention the new module.
236         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
237         * config/srclist.txt: Add ptsname.c (commented).
238
239 2010-03-21  Bruno Haible  <bruno@clisp.org>
240
241         Tests for module 'ttyname_r'.
242         * modules/ttyname_r-tests: New file.
243         * tests/test-ttyname_r.c: New file.
244
245         New module 'ttyname_r'.
246         * lib/ttyname_r.c: New file.
247         * m4/ttyname_r.m4: New file.
248         * modules/ttyname_r: New file.
249         * lib/unistd.in.h (ttyname_r): New declaration.
250         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
251         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
252         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
253         HAVE_TTYNAME_R.
254         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
255         * doc/posix-functions/ttyname_r.texi: Mention the new module.
256
257 2010-03-20  Bruno Haible  <bruno@clisp.org>
258
259         signal: Undefine macro definitions in C++ mode.
260         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
261         sigfillset): Undefine macro definitions from the system header in C++
262         mode.
263         Reported by John W. Eaton <jwe@gnu.org>.
264
265 2010-03-20  Bruno Haible  <bruno@clisp.org>
266
267         Ensure no #include statements inside extern "C" { ... }.
268         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
269         contain #include statements.
270         * lib/time.in.h: Likewise.
271
272 2010-03-20  Bruno Haible  <bruno@clisp.org>
273
274         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
275         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
276         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
277         Reported by John W. Eaton <jwe@gnu.org>.
278
279 2010-03-20  Bruno Haible  <bruno@clisp.org>
280
281         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
282         Reported by Jim Meyering.
283
284 2010-03-20  Bruno Haible  <bruno@clisp.org>
285
286         pipe: Set errno upon failure.
287         * lib/pipe.h: Specify that when -1 is returned, errno is set.
288         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
289         errno value in error message.
290
291 2010-03-20  Bruno Haible  <bruno@clisp.org>
292             Jim Meyering  <meyering@redhat.com>
293
294         lchown: Avoid "unused variable" warning.
295         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
296
297 2010-03-20  Bruno Haible  <bruno@clisp.org>
298
299         Work around unlink() bug on MacOS X 10.5.6.
300         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
301         attempting to unlink a parent directory.
302         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
303         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
304         activate for the replacement function.
305         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
306
307 2010-03-20  Bruno Haible  <bruno@clisp.org>
308
309         Fix link errors on Solaris 8.
310         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
311         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
312
313 2010-03-19  Jim Meyering  <meyering@redhat.com>
314
315         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
316         The _LIBC implementation of build_range_exp correctly honors the
317         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
318         However, the non-_LIBC implementation would ignore that syntax-bit
319         flag and return REG_ERANGE unconditionally.
320         This change makes it honor that flag.
321         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
322         Make two pointer parameters "const".
323         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
324         (parse_bracket_exp): Update caller.
325
326         regex.m4: correct the reversed range endpoint ([b-a]) test
327         * m4/regex.m4: When requiring that [b-a] evoke failure,
328         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
329         test pass once again for x86-based systems.
330
331 2010-03-19  Bruno Haible  <bruno@clisp.org>
332
333         scandir: Fix link error on Solaris 8.
334         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
335         macros.
336
337 2010-03-19  Bruno Haible  <bruno@clisp.org>
338
339         getusershell: Fix documentation.
340         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
341         module.
342         * doc/glibc-functions/setusershell.texi: Likewise.
343
344         getusershell: Provide declaration, missing on Solaris 9.
345         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
346         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
347         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
348         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
350         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
351         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
352         HAVE_GETUSERSHELL.
353         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
354
355 2010-03-19  Bruno Haible  <bruno@clisp.org>
356
357         wctype: Provide iswblank function.
358         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
359         exists and is fine.
360         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
361         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
362         * tests/test-wctype.c (main): Re-enable the iswblank tests.
363         * doc/posix-functions/iswblank.texi: Update.
364
365 2010-03-19  Bruno Haible  <bruno@clisp.org>
366
367         Tests of module 'pty' in C++ mode.
368         * modules/pty-tests: New file.
369         * tests/test-pty-c++.cc: New file.
370         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
371
372 2010-03-19  Eric Blake  <eblake@redhat.com>
373
374         logb: fix documentation
375         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
376         1.5 declaration bug.
377
378         forkpty, openpty: prefer glibc's const-safe prototype
379         * lib/forkpty.c (rpl_forkpty): New file.
380         * lib/openpty.c (rpl_openpty): Likewise.
381         * modules/forkpty (Files): Distribute it.
382         * modules/openpty (Files): Likewise.
383         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
384         check...
385         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
386         replacement for for non-const BSD signature.
387         * modules/pty (Makefile.am): Substitute witnesses.
388         * lib/pty.in.h (forkpty, openpty): Declare replacements.
389         * tests/test-forkpty.c: Update signature check.
390         * tests/test-openpty.c: Likewise.
391         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
392         * doc/glibc-functions/openpty.texi (openpty): Likewise.
393
394         forkpty, openpty: split functions into new modules
395         * modules/pty (Makefile.am): Substitute new witnesses.
396         (Libraries): Move library detection...
397         * modules/forkpty: ...into new module.
398         * modules/openpty: Another new module.
399         * modules/pty-tests: Rename and split...
400         * modules/forkpty-tests: ...to this...
401         * modules/openpty-tests: ...and this.
402         * tests/test-pty.c: Rename and split...
403         * tests/test-forkpty.c: ...to this...
404         * tests/test-openpty.c: ...and this.
405         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
406         (gl_PTY): Split library searching...
407         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
408         (gl_FORKPTY, gl_OPENPTY): New macros.
409         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
410         * NEWS: Mention the split.
411         * MODULES.html.sh (Misc): Document the modules.
412         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
413         * doc/glibc-functions/openpty.texi (openpty): Likewise.
414
415         pty: improve replacement header
416         * lib/pty.in.h: New file.
417         * modules/pty (Files): Ship it.
418         (Makefile.am): Always build replacement.
419         * m4/pty.m4: Rename...
420         * m4/pty_h.m4: ...to this.
421         (gl_PTY): Modernize setting of witness macros; update check of
422         forkpty to take proper advantage of cache.
423         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
424
425         getopt: avoid compiler warning
426         * lib/getopt.c (attribute_hidden): Remove unused macro.
427
428 2010-03-18  Bruno Haible  <bruno@clisp.org>
429
430         Fix link errors on Solaris 8.
431         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
432         * modules/search-tests (test_search_c___LDADD): Likewise.
433         * modules/signal-tests (test_signal_c___LDADD): Likewise.
434         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
435         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
436         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
437         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
438         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
439         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
440
441 2010-03-18  Bruno Haible  <bruno@clisp.org>
442
443         Fix bug introduced on 2010-03-14.
444         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
445         (gl_SPAWN_H): Require it.
446         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
447         Reported by Simon Josefsson.
448
449 2010-03-18  Bruno Haible  <bruno@clisp.org>
450
451         Fix typo introduced on 2009-12-31.
452         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
453         posix_spawn_file_actions_adddup2.
454
455 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
456         and Eric Blake  <eblake@redhat.com>
457
458         test-vc-list-files-git: make more robust
459         * tests/test-vc-list-files-git.sh: Unset problematic environment
460         variables.  Chain commands together.
461
462 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
463
464         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
465         `AC_CHECK_DECL' invocation.
466
467 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
468
469         * lib/inttostr.c (inttostr): Make sure the invocation of verify
470         appears before executable statements. Suggested by Petr Sumbera
471         <Petr.Sumbera@Sun.COM>.
472
473 2010-03-14  Bruno Haible  <bruno@clisp.org>
474
475         * tests/test-flock.c (test_exclusive): Comment out a test that causes
476         portability problems. Instead use a simpler test.
477         (main): Check that invalid arguments are rejected only on Linux.
478
479 2010-03-14  Bruno Haible  <bruno@clisp.org>
480
481         Fix bug introduced on 2009-12-31.
482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
483         gl_PREREQ_SYS_H_WINSOCK2 always.
484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
485         SYS_SOCKET_H variable.
486         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
487         Update comments.
488         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
489         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
490         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
491         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
492         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
493
494 2010-03-14  Bruno Haible  <bruno@clisp.org>
495
496         Fix values returned by sinl, cosl.
497         * lib/trigl.h: Add specification comments.
498         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
499         that combines the values from the precomputed table with the values of
500         the Chebyshev polynomials.
501
502 2010-03-14  Bruno Haible  <bruno@clisp.org>
503
504         Fix compilation error when modules 'posix_spawn[p]' are not used.
505         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
506         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
507
508 2010-03-14  Bruno Haible  <bruno@clisp.org>
509
510         Fix compilation error on mingw when module 'time_r' is not used.
511         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
512         is 1.
513         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
514         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
515         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
516         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
517
518 2010-03-14  Bruno Haible  <bruno@clisp.org>
519
520         Fix compilation error with Sun C.
521         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
522         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
523         instead of GCC specific ULONG_LONG_MAX.
524         * lib/xstrtoll.c: Likewise.
525         * lib/xstrtoull.c: Likewise.
526
527 2010-03-13  Bruno Haible  <bruno@clisp.org>
528
529         Allow the user to disable C++ code and tests.
530         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
531         (gl_PROG_ANSI_CXX): Require it.
532
533 2010-03-13  Bruno Haible  <bruno@clisp.org>
534
535         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
536         cases.
537
538 2010-03-13  Bruno Haible  <bruno@clisp.org>
539
540         Test that gnulib does not break the standard C++ headers.
541         * tests/test-locale-c++2.cc: New file.
542         * modules/locale-tests (Files): Add it.
543         (Makefile.am): Compile it for test-locale-c++.
544         * tests/test-math-c++2.cc: New file.
545         * modules/math-tests (Files): Add it.
546         (Makefile.am): Compile it for test-math-c++.
547         * tests/test-signal-c++2.cc: New file.
548         * modules/signal-tests (Files): Add it.
549         (Makefile.am): Compile it for test-signal-c++.
550         * tests/test-stdio-c++2.cc: New file.
551         * modules/stdio-tests (Files): Add it.
552         (Makefile.am): Compile it for test-stdio-c++.
553         * tests/test-stdlib-c++2.cc: New file.
554         * modules/stdlib-tests (Files): Add it.
555         (Makefile.am): Compile it for test-stdlib-c++.
556         * tests/test-string-c++2.cc: New file.
557         * modules/string-tests (Files): Add it.
558         (Makefile.am): Compile it for test-string-c++.
559         * tests/test-time-c++2.cc: New file.
560         * modules/time-tests (Files): Add it.
561         (Makefile.am): Compile it for test-time-c++.
562         Reported by John W. Eaton <jwe@gnu.org>.
563
564 2010-03-13  Bruno Haible  <bruno@clisp.org>
565
566         * gnulib-tool (func_usage): Clarify which options are available for
567         --create-testdir and --create-megatestdir.
568
569 2010-03-13  Bruno Haible  <bruno@clisp.org>
570
571         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
572         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
573         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
574         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
575         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
576         when appropriate.
577         Reported by Jim Meyering.
578
579 2010-03-12  Simon Josefsson  <simon@josefsson.org>
580
581         * gnulib-tool (func_import): Explain origin of code.
582
583 2010-03-12  Bruno Haible  <bruno@clisp.org>
584
585         Fix problem with automake's definition of CXXLINK.
586         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
587         Reported by Simon Josefsson and Ludovic Courtès.
588
589 2010-03-12  Bruno Haible  <bruno@clisp.org>
590
591         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
592         stable releases.
593
594 2010-03-11  Bruno Haible  <bruno@clisp.org>
595
596         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
597         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
598         whether the system provides one variant or multiple variants of the
599         function.
600         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
601         C++ compilers.
602         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
603         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
604         Reported by Jim Meyering.
605
606 2010-03-09  Simon Josefsson  <simon@josefsson.org>
607
608         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
609
610 2010-03-08  Bruno Haible  <bruno@clisp.org>
611
612         gnulib-tool: Add support for --libtool in --create-testdir.
613         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
614         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
615
616 2010-03-08  Eric Blake  <eblake@redhat.com>
617
618         gnulib-tool.texi: mention possibility of git submodule
619         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
620         submodules.
621         * doc/.gitignore: Ignore another generated file.
622
623 2010-03-08  Karl Berry  <karl@gnu.org>
624
625         * doc/gnulib-tool.texi (VCS Issues): Mention third option
626         of committing gnulib files while skipping others.
627
628 2010-03-07  Bruno Haible  <bruno@clisp.org>
629
630         Tests of module 'wctype' in C++ mode.
631         * tests/test-wctype-c++.cc: New file.
632         * modules/wctype-tests (Files): Add it and tests/signature.h.
633         (Depends-on): Add ansi-c++-opt.
634         (Makefile.am): Arrange to compile and run test-wctype-c++.
635
636         Tests of module 'wchar' in C++ mode.
637         * tests/test-wchar-c++.cc: New file.
638         * modules/wchar-tests (Files): Add it and tests/signature.h.
639         (Depends-on): Add ansi-c++-opt.
640         (Makefile.am): Arrange to compile and run test-wchar-c++.
641         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
642         gl_MODULE_INDICATOR.
643
644         Tests of module 'unistd' in C++ mode.
645         * tests/test-unistd-c++.cc: New file.
646         * modules/unistd-tests (Files): Add it and tests/signature.h.
647         (Depends-on): Add ansi-c++-opt.
648         (Makefile.am): Arrange to compile and run test-unistd-c++.
649         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
650         gl_MODULE_INDICATOR.
651
652         Tests of module 'time' in C++ mode.
653         * tests/test-time-c++.cc: New file.
654         * modules/time-tests (Files): Add it and tests/signature.h.
655         (Depends-on): Add ansi-c++-opt.
656         (Makefile.am): Arrange to compile and run test-time-c++.
657         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
658
659         Tests of module 'sys_time' in C++ mode.
660         * tests/test-sys_time-c++.cc: New file.
661         * modules/sys_time-tests (Files): Add it and tests/signature.h.
662         (Depends-on): Add ansi-c++-opt.
663         (Makefile.am): Arrange to compile and run test-sys_time-c++.
664         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
665         gl_MODULE_INDICATOR.
666
667         Tests of module 'sys_stat' in C++ mode.
668         * tests/test-sys_stat-c++.cc: New file.
669         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
670         (Depends-on): Add ansi-c++-opt.
671         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
672         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
673         gl_MODULE_INDICATOR.
674
675         Tests of module 'sys_socket' in C++ mode.
676         * tests/test-sys_socket-c++.cc: New file.
677         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
678         (Depends-on): Add ansi-c++-opt.
679         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
680         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
681         gl_MODULE_INDICATOR.
682
683         Tests of module 'sys_select' in C++ mode.
684         * tests/test-sys_select-c++.cc: New file.
685         * modules/sys_select-tests (Files): Add it and tests/signature.h.
686         (Depends-on): Add ansi-c++-opt.
687         (Makefile.am): Arrange to compile and run test-sys_select-c++.
688         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
689         gl_MODULE_INDICATOR.
690
691         Tests of module 'sys_ioctl' in C++ mode.
692         * tests/test-sys_ioctl-c++.cc: New file.
693         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
694         (Depends-on): Add ansi-c++-opt.
695         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
697         gl_MODULE_INDICATOR.
698
699         Tests of module 'string' in C++ mode.
700         * tests/test-string-c++.cc: New file.
701         * modules/string-tests (Files): Add it and tests/signature.h.
702         (Depends-on): Add ansi-c++-opt.
703         (Makefile.am): Arrange to compile and run test-string-c++.
704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
705         gl_MODULE_INDICATOR.
706
707         Tests of module 'stdlib' in C++ mode.
708         * tests/test-stdlib-c++.cc: New file.
709         * modules/stdlib-tests (Files): Add it and tests/signature.h.
710         (Depends-on): Add ansi-c++-opt.
711         (Makefile.am): Arrange to compile and run test-stdlib-c++.
712         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
713         gl_MODULE_INDICATOR.
714
715         Tests of module 'stdio' in C++ mode.
716         * tests/test-stdio-c++.cc: New file.
717         * modules/stdio-tests (Files): Add it and tests/signature.h.
718         (Depends-on): Add ansi-c++-opt.
719         (Makefile.am): Arrange to compile and run test-stdio-c++.
720         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
721         gl_MODULE_INDICATOR.
722
723         Tests of module 'spawn' in C++ mode.
724         * tests/test-spawn-c++.cc: New file.
725         * modules/spawn-tests (Files): Add it and tests/signature.h.
726         (Depends-on): Add ansi-c++-opt.
727         (Makefile.am): Arrange to compile and run test-spawn-c++.
728         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
729         gl_MODULE_INDICATOR.
730
731         Tests of module 'signal' in C++ mode.
732         * tests/test-signal-c++.cc: New file.
733         * modules/signal-tests (Files): Add it and tests/signature.h.
734         (Depends-on): Add ansi-c++-opt.
735         (Makefile.am): Arrange to compile and run test-signal-c++.
736         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
737         gl_MODULE_INDICATOR.
738
739         Tests of module 'search' in C++ mode.
740         * tests/test-search-c++.cc: New file.
741         * modules/search-tests (Files): Add it and tests/signature.h.
742         (Depends-on): Add ansi-c++-opt.
743         (Makefile.am): Arrange to compile and run test-search-c++.
744         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
745         gl_MODULE_INDICATOR.
746
747         Tests of module 'math' in C++ mode.
748         * tests/test-math-c++.cc: New file.
749         * modules/math-tests (Files): Add it and tests/signature.h.
750         (Depends-on): Add ansi-c++-opt.
751         (Makefile.am): Arrange to compile and run test-math-c++.
752         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
753
754         Tests of module 'locale' in C++ mode.
755         * tests/test-locale-c++.cc: New file.
756         * modules/locale-tests (Files): Add it and tests/signature.h.
757         (Depends-on): Add ansi-c++-opt.
758         (Makefile.am): Arrange to compile and run test-locale-c++.
759         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
760         gl_MODULE_INDICATOR.
761
762         Tests of module 'langinfo' in C++ mode.
763         * tests/test-langinfo-c++.cc: New file.
764         * modules/langinfo-tests (Files): Add it and tests/signature.h.
765         (Depends-on): Add ansi-c++-opt.
766         (Makefile.am): Arrange to compile and run test-langinfo-c++.
767         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
768         gl_MODULE_INDICATOR.
769
770         Tests of module 'iconv-h' in C++ mode.
771         * tests/test-iconv-h-c++.cc: New file.
772         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
773         (Depends-on): Add ansi-c++-opt.
774         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
775
776         Tests of module 'glob' in C++ mode.
777         * tests/test-glob-c++.cc: New file.
778         * modules/glob-tests (Files): Add it.
779         (Depends-on): Add ansi-c++-opt.
780         (Makefile.am): Arrange to compile and run test-glob-c++.
781
782         Tests of module 'fcntl-h' in C++ mode.
783         * tests/test-fcntl-h-c++.cc: New file.
784         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
785         (Depends-on): Add ansi-c++-opt.
786         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
787         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
788         gl_MODULE_INDICATOR.
789
790         Tests of module 'dirent' in C++ mode.
791         * tests/test-dirent-c++.cc: New file.
792         * modules/dirent-tests (Files): Add it and tests/signature.h.
793         (Depends-on): Add ansi-c++-opt.
794         (Makefile.am): Arrange to compile and run test-dirent-c++.
795         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
796         gl_MODULE_INDICATOR.
797
798         New module 'ansi-c++-opt'.
799         * modules/ansi-c++-opt: New file.
800         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
801
802         Document C++ namespace mode.
803         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
804
805         wctype: Avoid #define replacements in C++ mode.
806         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
807         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
808         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
809         In C++, define a namespaced alias symbol.
810         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
811         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
812         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
813         rule.
814
815         wchar: Avoid #define replacements in C++ mode.
816         * lib/wchar.in.h: Include c++defs.h.
817         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
818         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
819         symbol.
820         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
821         * modules/wchar (Depends-on): Add c++defs.
822         (Makefile.am): Update wchar.h rule.
823
824         unistd: Avoid #define replacements in C++ mode.
825         * lib/unistd.in.h: Include c++defs.h.
826         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
827         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
828         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
829         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
830         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
831         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
832         symbol.
833         (environ): Update.
834         * modules/unistd (Depends-on): Add c++defs.
835         (Makefile.am): Update unistd.h rule.
836
837         time: Avoid #define replacements in C++ mode.
838         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
839         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
840         define a namespaced alias symbol.
841         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
842         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
843         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
844         * modules/time (Depends-on): Add c++defs, warn-on-use.
845         (Makefile.am): Update time.h rule.
846         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
847         * modules/nanosleep (configure.ac): Likewise.
848         * modules/strptime (configure.ac): Likewise.
849         * modules/timegm (configure.ac): Likewise.
850
851         sys_time: Avoid #define replacements in C++ mode.
852         * lib/sys_time.in.h: Include c++defs.h.
853         (gettimeofday): In C++, define a namespaced alias symbol.
854         * modules/sys_time (Depends-on): Add c++defs.
855         (Makefile.am): Update sys/time.h rule.
856
857         sys_stat: Avoid #define replacements in C++ mode.
858         * lib/sys_stat.in.h: Include c++defs.h.
859         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
860         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
861         namespaced alias symbol.
862         In C++, define a namespaced alias symbol.
863         * modules/sys_stat (Depends-on): Add c++defs.
864         (Makefile.am): Update sys/stat.h rule.
865
866         sys_socket: Avoid #define replacements in C++ mode.
867         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
868         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
869         definitions also when the system has a <sys/socket.h>.
870         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
871         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
872         In C++, define a namespaced alias symbol.
873         * modules/sys_socket (Depends-on): Add c++defs.
874         (Makefile.am): Update sys/socket.h rule.
875
876         sys_select: Avoid #define replacements in C++ mode.
877         * lib/sys_select.in.h: Include c++defs.h. Enable the function
878         definitions also when the system has a <sys/select.h>.
879         (select): In C++, define a namespaced alias symbol.
880         * modules/sys_select (Depends-on): Add c++defs.
881         (Makefile.am): Update sys/select.h rule.
882
883         sys_ioctl: Avoid #define replacements in C++ mode.
884         * lib/sys_ioctl.in.h: Include c++defs.h.
885         (ioctl): In C++, define a namespaced alias symbol.
886         * modules/sys_ioctl (Depends-on): Add c++defs.
887         (Makefile.am): Update sys/ioctl.h rule.
888
889         string: Avoid #define replacements in C++ mode.
890         * lib/string.in.h: Include c++defs.h.
891         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
892         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
893         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
894         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
895         strsignal, strverscmp): In C++, define a namespaced alias symbol.
896         * modules/string (Depends-on): Add c++defs.
897         (Makefile.am): Update string.h rule.
898
899         stdlib: Avoid #define replacements in C++ mode.
900         * lib/stdlib.in.h: Include c++defs.h.
901         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
902         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
903         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
904         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
905         symbol.
906         * modules/stdlib (Depends-on): Add c++defs.
907         (Makefile.am): Update stdlib.h rule.
908
909         stdio: Avoid #define replacements in C++ mode.
910         * lib/stdio.in.h: Include c++defs.h.
911         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
912         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
913         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
914         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
915         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
916         namespaced alias symbol.
917         * modules/stdio (Depends-on): Add c++defs.
918         (Makefile.am): Update stdio.h rule.
919
920         spawn: Avoid #define replacements in C++ mode.
921         * lib/spawn.in.h: Include c++defs.h.
922         (posix_spawn, posix_spawnp, posix_spawnattr_init,
923         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
924         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
925         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
926         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
927         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
928         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
929         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
930         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
931         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
932         In C++, define a namespaced alias symbol.
933         * modules/spawn (Depends-on): Add c++defs.
934         (Makefile.am): Update spawn.h rule.
935
936         signal: Avoid #define replacements in C++ mode.
937         * lib/signal.in.h: Include c++defs.h.
938         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
939         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
940         namespaced alias symbol.
941         * modules/signal (Depends-on): Add c++defs.
942         (Makefile.am): Update signal.h rule.
943
944         search: Avoid #define replacements in C++ mode.
945         * lib/search.in.h: Include c++defs.h.
946         (_gl_search_compar_fn, _gl_search_action_fn): New types.
947         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
948         symbol.
949         * modules/search (Depends-on): Add c++defs.
950         (Makefile.am): Update search.h rule.
951
952         math: Avoid #define replacements in C++ mode.
953         * lib/math.in.h: Include c++defs.h.
954         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
955         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
956         trunc, truncl): In C++, define a namespaced alias symbol.
957         * modules/math (Depends-on): Add c++defs.
958         (Makefile.am): Update math.h rule.
959
960         locale: Avoid #define replacements in C++ mode.
961         * lib/locale.in.h: Include c++defs.h.
962         (duplocale): In C++, define a namespaced alias symbol.
963         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
964         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
965         * modules/locale (Depends-on): Add c++defs.
966         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
967
968         langinfo: Avoid #define replacements in C++ mode.
969         * lib/langinfo.in.h: Include c++defs.h.
970         (nl_langinfo): In C++, define a namespaced alias symbol.
971         * modules/langinfo (Depends-on): Add c++defs.
972         (Makefile.am): Update langinfo.h rule.
973
974         iconv-h: Avoid #define replacements in C++ mode.
975         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
976         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
977         symbol.
978         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
979         whenever iconv is present.
980         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
981         (Makefile.am): Update iconv.h rule.
982
983         glob: Avoid #define replacements in C++ mode.
984         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
985         (_gl_glob_errfunc_fn): New type.
986         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
987         symbol.
988         * modules/glob (Depends-on): Add c++defs, warn-on-use.
989         (Makefile.am): Update glob.h rule.
990
991         fcntl-h: Avoid #define replacements in C++ mode.
992         * lib/fcntl.in.h: Include c++defs.h.
993         (fcntl, open, openat): In C++, define a namespaced alias symbol.
994         * modules/fcntl-h (Depends-on): Add c++defs.
995         (Makefile.am): Update fcntl.h rule.
996
997         dirent: Avoid #define replacements in C++ mode.
998         * lib/dirent.in.h: Include c++defs.h.
999         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1000         namespaced alias symbol.
1001         (dirfd): Update declaration.
1002         * modules/dirent (Depends-on): Add c++defs.
1003         (Makefile.am): Update dirent.h rule.
1004
1005         ctype: Make it usable in C++ code.
1006         * lib/ctype.in.h: Include c++defs.h.
1007         (isblank): Declare as extern "C".
1008         * modules/ctype (Depends-on): Add c++defs.
1009         (Makefile.am): Update ctype.h rule.
1010
1011         New module 'c++defs'.
1012         * modules/c++defs: New file.
1013         * build-aux/c++defs.h: New file.
1014         Reported by John W. Eaton <jwe@gnu.org>.
1015
1016 2010-03-07  Bruno Haible  <bruno@clisp.org>
1017
1018         logb: Provide missing declaration for Cygwin.
1019         * lib/math.in.h (logb): New declaration.
1020         * m4/logb.m4: New file.
1021         * modules/logb (Files): Add m4/logb.m4.
1022         (Depends-on): Add math.
1023         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1024         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1026         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1027         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1028
1029 2010-03-07  Bruno Haible  <bruno@clisp.org>
1030
1031         Fix test-cond link error.
1032         * tests/test-cond.c: Include <stdio.h>.
1033
1034 2010-03-07  Bruno Haible  <bruno@clisp.org>
1035
1036         Fix test-dirent-safer link error.
1037         * modules/dirent-safer-tests (Makefile.am): Define
1038         test_dirent_safer_LDADD.
1039
1040 2010-03-07  Bruno Haible  <bruno@clisp.org>
1041
1042         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1043         among default module list.
1044
1045 2010-03-07  Bruno Haible  <bruno@clisp.org>
1046
1047         Fix link error on platforms with GNU libiconv.
1048         * modules/unistr/u8-strcoll-tests (Makefile): Define
1049         test_u8_strcoll_LDADD.
1050         * modules/unistr/u16-strcoll-tests (Makefile): Define
1051         test_u16_strcoll_LDADD.
1052         * modules/unistr/u32-strcoll-tests (Makefile): Define
1053         test_u32_strcoll_LDADD.
1054
1055 2010-03-07  Bruno Haible  <bruno@clisp.org>
1056
1057         Use POSIX declarations for socket functions.
1058         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1059         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1060         rpl_sendto): Change declaration to match POSIX.
1061         * lib/connect.c (rpl_connect): Likewise.
1062         * lib/accept.c (rpl_accept): Likewise.
1063         * lib/bind.c (rpl_bind): Likewise.
1064         * lib/getpeername.c (rpl_getpeername): Likewise.
1065         * lib/getsockname.c (rpl_getsockname): Likewise.
1066         * lib/recv.c (rpl_recv): Likewise.
1067         * lib/send.c (rpl_send): Likewise.
1068         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1069         * lib/sendto.c (rpl_sendto): Likewise.
1070
1071 2010-03-06  Bruno Haible  <bruno@clisp.org>
1072
1073         Clarify access, euidaccess, faccessat.
1074         * doc/posix-functions/faccessat.texi: Mention security problem under
1075         "Other problems", not "Portability problems".
1076         * doc/posix-functions/access.texi: Likewise. Mention a related security
1077         problem.
1078         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1079         * lib/euidaccess.c: Add comments about platforms.
1080         * lib/unistd.in.h (access, euidaccess): Add warnings.
1081
1082 2010-03-07  Bruno Haible  <bruno@clisp.org>
1083
1084         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1085         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1086         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1087         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1088         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1089         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1090         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1091         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1092         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1094         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1095         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1096         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1097         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1098         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1099         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1100         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1101         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1102         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1103         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1104         Likewise.
1105         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1106         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1107         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1108         Likewise.
1109         * tests/test-spawn.c (main): Make it work when
1110         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1111
1112 2010-03-07  Bruno Haible  <bruno@clisp.org>
1113
1114         Fix incorrect Makefile.am generation in German locale.
1115         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1116         Execute sed command with character range in C locale.
1117
1118 2010-03-06  Bruno Haible  <bruno@clisp.org>
1119
1120         Tests for module 'iconv-h'.
1121         * modules/iconv-h-tests: New file.
1122         * tests/test-iconv-h.c: New file.
1123
1124         New module 'iconv-h'.
1125         * modules/iconv-h: New file.
1126         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1127         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1128         (configure.ac): Remove gl_ICONV_H.
1129         (Makefile.am): Remove rule for iconv.h.
1130
1131 2010-03-06  Bruno Haible  <bruno@clisp.org>
1132
1133         More consistent naming of *.m4 files.
1134         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1135         * modules/wctype (Files): Update.
1136
1137         More consistent naming of *.m4 files.
1138         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1139         * modules/wchar (Files): Update.
1140
1141 2010-03-06  Jim Meyering  <meyering@redhat.com>
1142
1143         euidaccess: relax license to LGPLv2+
1144         * modules/euidaccess (License): Relax to LGPLv2+.
1145
1146 2010-03-06  Bruno Haible  <bruno@clisp.org>
1147
1148         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1149         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1150         (Makefile.am): Augment lib_SOURCES instead.
1151
1152 2010-03-04  Jim Meyering  <meyering@redhat.com>
1153
1154         utime: remove obsolete module
1155         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1156         unnecessary for years, and has been marked as obsolete for 10 months.
1157         * modules/utime: Remove file.
1158         * lib/utime.c: Remove file.
1159         * m4/utime.m4: Remove file.
1160         * m4/utimes-null.m4: Remove file.
1161         * doc/posix-functions/utime.texi (utime): Remove reference to
1162         the module.  Move the sole "fixed by gnulib" item into the
1163         "problems not fixed by Gnulib" list.
1164         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1165
1166 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1167
1168         * modules/exit (License): Relax license to LGPLv2+.
1169         (Status): Mark as obsolete.
1170         * NEWS: Mention deprecated 'exit' module.
1171         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1172         of now obsolete 'exit'.
1173
1174 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1175
1176         fts-lgpl: remove unused module
1177         * modules/fts-lgpl: Remove.
1178         * MODULES.html.sh (func_all_modules): Adjust.
1179         * check-module (find_included_lib_files): Adjust.
1180         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1181
1182 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1183
1184         copy-acl: enhance Solaris ACL error handling
1185         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1186         * lib/set-mode-acl.c (qset_acl): Likewise.
1187
1188 2010-03-02  Bruno Haible  <bruno@clisp.org>
1189
1190         spawn: Don't override the system defined values on FreeBSD 8.
1191         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1192         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1193         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1194         if HAVE_POSIX_SPAWN is 1.
1195         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1196
1197 2010-03-01  Bruno Haible  <bruno@clisp.org>
1198
1199         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1200         regarding Automake.
1201
1202 2010-02-25  Bruno Haible  <bruno@clisp.org>
1203
1204         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1205         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1206         setting, not afterwards.
1207         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1208
1209 2010-02-24  Eric Blake  <eblake@redhat.com>
1210
1211         bootstrap, git-version-gen: use timestamp
1212         * build-aux/git-version-gen (scriptversion): Force UTC.
1213         * build-aux/bootstrap (scriptversion): New variable.
1214
1215         bootstrap: allow older git
1216         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1217         older than 1.6.4.  Requested by the libvirt project.
1218
1219 2010-02-23  Eric Blake  <eblake@redhat.com>
1220
1221         warn-on-use: work with old autoconf
1222         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1223         AS_VAR semantics of autoconf 2.60.
1224         Reported by Bruno Haible.
1225
1226         bootstrap: improve some comments
1227         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1228         clarification comments.
1229
1230         gettimeofday: provide correct function
1231         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1232         when replacement is declared, otherwise provide gettimeofday.
1233         Reported by Michael Goffioul.
1234
1235 2010-02-23  Jim Meyering  <meyering@redhat.com>
1236
1237         lib-ignore: relax license to "unlimited", not LGPLv2+
1238         * modules/lib-ignore (License): Relax to "unlimited".
1239
1240 2010-02-23  Jim Meyering  <meyering@redhat.com>
1241
1242         lib-ignore: relax license to LGPLv2+
1243         * modules/lib-ignore (License): Relax to LGPLv2+.
1244
1245 2010-02-22  Eric Blake  <eblake@redhat.com>
1246
1247         lseek: avoid bash 3.2 broken pipe bug
1248         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1249         warning from bash 3.2.
1250         Reported by Ben Pfaff, with analysis from Bruno Haible.
1251
1252         bootstrap: support non-FSF copyright holder
1253         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1254         bootstrap.conf override of COPYRIGHT_HOLDER.
1255         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1256
1257         bootstrap: interoperate with gettext 0.14.1
1258         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1259
1260         bootstrap: allow for alternate submodule location
1261         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1262         hardcoding submodule location.
1263         (gnulib_mk): Allow direct use of Makefile.am.
1264
1265         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1266         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1267         rather than reconfiguring where the submodule points.
1268
1269         gettimeofday: restore support for platforms that lack function
1270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1271         replacement if function is missing.
1272         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1273         * modules/sys_time (Makefile.am): Substitute it.
1274         * lib/sys_time.in.h (gettimeofday): Check it.
1275         Reported by Michael Goffioul.
1276
1277 2010-02-21  Bruno Haible  <bruno@clisp.org>
1278
1279         * lib/stdio.in.h (obstack_printf): Fix typo.
1280
1281 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1282
1283         vc-list-files: use bzr ls's -R option
1284         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1285         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1286
1287 2010-02-21  Jim Meyering  <meyering@redhat.com>
1288
1289         init.sh: fix EXEEXT shims to work also for names like test-prog
1290         * tests/init.sh: Re-exec a better shell, when needed.
1291         If the current shell lacks support for posix $(...), an init.sh-using
1292         test will now try to find a shell that supports that.  If EXEEXT is
1293         nonempty, we also require support for hyphen-in-alias-name and shell
1294         substitutions like ${var#glob}.  Failure to find such a shell results
1295         in a skipped test.
1296
1297 2010-02-21  Bruno Haible  <bruno@clisp.org>
1298
1299         Really work around around "broken pipe" error message from bash 3.2.
1300         * gnulib-tool (func_reset_sigpipe): Remove function.
1301         (echo): In bash 3.2, define to a function that uses printf.
1302         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1303
1304 2010-02-20  Bruno Haible  <bruno@clisp.org>
1305
1306         Restore support for automake 1.9.6 with autoconf 2.61.
1307         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1308         Reported by James Youngman <jay@gnu.org>.
1309
1310 2010-02-20  Bruno Haible  <bruno@clisp.org>
1311
1312         Improve *printf warning condition.
1313         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1314         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1315         and the function is overridden due to SIGPIPE emulation.
1316
1317 2010-02-20  Bruno Haible  <bruno@clisp.org>
1318
1319         * lib/stdio.in.h: Tweak comments.
1320
1321 2010-02-19  Bruno Haible  <bruno@clisp.org>
1322
1323         Make it easier to find modules. New gnulib-tool option '--find'.
1324         * gnulib-tool: New option --find.
1325         (func_usage): Document it.
1326         (func_sanitize_modulelist): New function, extracted from
1327         func_all_modules.
1328         (func_all_modules): Invoke it.
1329         * doc/gnulib-tool.texi (Which modules?): New node.
1330
1331 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1332
1333         * lib/sys_select.in.h: Provide select replacement even if
1334         sys/select.h exists on a system, for Interix.
1335
1336 2010-02-18  Jim Meyering  <meyering@redhat.com>
1337
1338         init.sh: don't use $(...) just yet
1339         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1340         to accommodate e.g., Solaris' /bin/sh.
1341
1342 2010-02-17  Bruno Haible  <bruno@clisp.org>
1343
1344         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1345         Reported by Ludovic Courtès <ludo@gnu.org>.
1346
1347 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1348
1349         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1350         linking with -lintl.
1351
1352 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1353
1354         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1355         if not provided by the system's netdb.h.  Reported by
1356         ludo@gnu.org (Ludovic Courtès).
1357
1358 2010-02-15  Jim Meyering  <meyering@redhat.com>
1359
1360         init.sh: improve portability and efficiency
1361         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1362         "dummy" in a for loop.
1363         Use '!', not '^' to select the complement of a character set used
1364         in a "case" statement.
1365         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1366         Suggestions from Eric Blake.
1367
1368         init.sh: automatically accommodate programs with the .exe suffix
1369         Automatically arrange for an invocation of "prog" to execute the
1370         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1371         may use the simpler "prog", yet still work when built on a system
1372         that requires specifying the added suffix.
1373         Do this by constructing a function named "prog" that invokes
1374         "prog.exe" for each .exe file in selected directories.
1375         * tests/init.sh (find_exe_basenames_): New function.
1376         (create_exe_shim_functions_): New function.
1377         (path_prepend_): Use it.
1378
1379         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1380         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1381         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1382
1383 2010-02-14  Jim Meyering  <meyering@redhat.com>
1384
1385         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1386         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1387         (sc_prohibit_hash_pjw_without_use): New rule.
1388
1389         maint.mk: allow the default upload destination dir to be overridden
1390         * top/maint.mk (upload_dest_dir_): Define with a default that
1391         preserves the status quo.
1392         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1393         Reported by Peter Simons.
1394
1395         maint.mk: prohibit inclusion of "hash.h" without_use
1396         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1397
1398 2010-02-10  Jim Meyering  <meyering@redhat.com>
1399
1400         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1401         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1402
1403 2010-02-09  Eric Blake  <ebb9@byu.net>
1404         and Bruno Haible  <bruno@clisp.org>
1405
1406         obstack-printf-posix: ensure declaration
1407         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1408         extracted from gl_FUNC_OBSTACK_PRINTF.
1409         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1410         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1411         Likewise.
1412         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1413         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1414         0.
1415
1416 2010-02-08  Bruno Haible  <bruno@clisp.org>
1417
1418         gnulib-tool: Fix typo in 2010-02-07 commit.
1419         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1420         Reported by Eric Blake.
1421
1422 2010-02-07  Bruno Haible  <bruno@clisp.org>
1423
1424         gnulib-tool: Fix up caching patches.
1425         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1426         option --no-cache. Use associative arrays when supported by the shell.
1427         (sed_comments): New variable.
1428         (modcache): Renamed from do_cache.
1429         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1430         abbreviate unnecessarily.
1431         (have_associative): New variable.
1432         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1433         way also for ksh and zsh.
1434         (func_init_sed_convert_to_cache_statements): New function, extracted
1435         from func_cache_lookup_module. Add support for associative arrays.
1436         Don't set the c_MODULE_cached variable here. Ignore all lines before
1437         the first field header. Remove only the final newline, not all trailing
1438         newlines. Support empty fields correctly. Limit the use of 'eval' to
1439         assignments.
1440         (func_get_description, func_get_status, func_get_notice,
1441         func_get_applicability, func_get_filelist, func_get_dependencies,
1442         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1443         func_get_automake_snippet, func_get_include_directive,
1444         func_get_link_directive, func_get_license, func_get_maintainer):
1445         Update documentation. List the unoptimized code first. Add support for
1446         associative arrays. Limit the use of 'eval' to assignments.
1447         (func_get_applicability): Undo stylistic pessimisations.
1448         (func_get_automake_snippet, func_get_include_directive): Reduce code
1449         duplication.
1450         (func_modules_transitive_closure, func_modules_add_dummy,
1451         func_modules_notice, func_modules_to_filelist, func_add_file,
1452         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1453         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1454         func_create_testdir, func_create_megatestdir): Update documentation.
1455
1456 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1457
1458         * gnulib-tool (func_cache_lookup_module): Store the module name
1459         belonging to the cache variable; error out if two different
1460         module names map to the same cache variable name.
1461
1462 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1463
1464         gnulib-tool: Make caching optional.
1465         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1466         Update matching short versions of --no-changelog.
1467         (func_usage): Update.
1468         (sed_extract_cache_prog): Renamed from ...
1469         (sed_extract_prog): ... this; revert to old extraction script.
1470         (func_get_description, func_get_status)
1471         (func_get_notice, func_get_applicability, func_get_filelist)
1472         (func_get_dependencies, func_get_autoconf_early_snippet)
1473         (func_get_autoconf_snippet, func_get_automake_snippet)
1474         (func_get_include_directive, func_get_link_directive)
1475         (func_get_license, func_get_maintainer): If $do_cache is false,
1476         use old, non-caching extraction scripts.
1477         Suggestion by Bruno Haible.
1478
1479 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1480
1481         gnulib-tool: cache module metainformation.
1482         * gnulib-tool (sed_extract_prog): Match newline before each
1483         header, and rewrite header to a shell variable suffix.
1484         (func_cache_var, func_cache_lookup_module): New functions,
1485         to turn a module name into a cache variable prefix, and to
1486         look up and cache module metainformation.
1487         (func_get_description, func_get_status)
1488         (func_get_notice, func_get_applicability, func_get_filelist)
1489         (func_get_dependencies, func_get_autoconf_early_snippet)
1490         (func_get_autoconf_snippet, func_get_automake_snippet)
1491         (func_get_include_directive, func_get_link_directive)
1492         (func_get_license, func_get_maintainer): Use
1493         func_cache_lookup_module.
1494
1495 2010-02-07  Bruno Haible  <bruno@clisp.org>
1496
1497         fnctl: Fix missing dependency.
1498         * modules/fcntl (Depends-on): Add getdtablesize.
1499         Reported by John W. Eaton <jwe@gnu.org>.
1500
1501 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1502
1503         Argp: fix recognition of short alias options.
1504
1505         * lib/argp-parse.c (convert_options): Fix improper use of
1506         `|' between character values.
1507         * tests/test-argp.c (group1_option): New alias option
1508         --read (-r).
1509         (group1_parser): Special handling for 'r'.
1510         (test15): New test case.
1511         (test_fun): Add test15.
1512         * tests/test-argp-2.sh: Update expected --help and --usage
1513         outputs.
1514
1515 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1516
1517         * tests/test-argp.c: Fix indentation.
1518
1519 2010-02-04  Eric Blake  <ebb9@byu.net>
1520
1521         gettimeofday: expose type of second argument
1522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1523         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1524         * tests/test-gettimeofday.c: Use it to silence warning.
1525         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1526         the issue.
1527
1528 2010-02-03  Jim Meyering  <meyering@redhat.com>
1529
1530         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1531         * lib/regcomp.c (TYPE_SIGNED): Define.
1532         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1533
1534         regcomp.c: avoid a new -Wshadow warning
1535         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1536
1537 2010-02-01  Jim Meyering  <meyering@redhat.com>
1538
1539         removing useless parentheses in cpp #define directives
1540         For motivation, see commit c0221df4, "define STREQ(a,b)
1541         consistently, removing useless parentheses"
1542         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1543         * lib/mountlist.c (MNT_IGNORE): Likewise.
1544         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1545
1546 2010-02-01  Eric Blake  <ebb9@byu.net>
1547
1548         sys_time: use link-warning
1549         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1550         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1551         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1552         * modules/sys_time (Depends-on): Add warn-on-use.
1553         (Makefile.am): Always build replacement.
1554         (configure.ac): Update substitutions.
1555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1556         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1557         bother with SYS_TIME_H.
1558         * modules/gettimeofday (configure.ac): Declare indicator.
1559         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1560         in use.
1561
1562         closein-tests: silence compiler warning
1563         * tests/test-closein.c (main): Ignore fread result.
1564         * modules/closein-tests (Depends-on): Add ignore-value.
1565
1566         tests: silence warning about system return
1567         * tests/test-areadlink-with-size.c (main): Ignore system result.
1568         * tests/test-areadlink.c (main): Likewise.
1569         * tests/test-areadlinkat-with-size.c (main): Likewise.
1570         * tests/test-areadlinkat.c (main): Likewise.
1571         * tests/test-canonicalize-lgpl.c (main): Likewise.
1572         * tests/test-canonicalize.c (main): Likewise.
1573         * tests/test-chown.c (main): Likewise.
1574         * tests/test-fchownat.c (main): Likewise.
1575         * tests/test-fdutimensat.c (main): Likewise.
1576         * tests/test-fstatat.c (main): Likewise.
1577         * tests/test-futimens.c (main): Likewise.
1578         * tests/test-lchown.c (main): Likewise.
1579         * tests/test-link.c (main): Likewise.
1580         * tests/test-linkat.c (main): Likewise.
1581         * tests/test-lstat.c (main): Likewise.
1582         * tests/test-mkdir.c (main): Likewise.
1583         * tests/test-mkdirat.c (main): Likewise.
1584         * tests/test-mkfifo.c (main): Likewise.
1585         * tests/test-mkfifoat.c (main): Likewise.
1586         * tests/test-mknod.c (main): Likewise.
1587         * tests/test-readlink.c (main): Likewise.
1588         * tests/test-remove.c (main): Likewise.
1589         * tests/test-rename.c (main): Likewise.
1590         * tests/test-renameat.c (main): Likewise.
1591         * tests/test-rmdir.c (main): Likewise.
1592         * tests/test-symlink.c (main): Likewise.
1593         * tests/test-symlinkat.c (main): Likewise.
1594         * tests/test-unlink.c (main): Likewise.
1595         * tests/test-unlinkat.c (main): Likewise.
1596         * tests/test-utimens.c (main): Likewise.
1597         * tests/test-utimensat.c (main): Likewise.
1598         * modules/areadlink-tests (Depends-on): Add ignore-value.
1599         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1600         * modules/areadlinkat-tests (Depends-on): Likewise.
1601         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1602         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1603         * modules/canonicalize-tests (Depends-on): Likewise.
1604         * modules/chown-tests (Depends-on): Likewise.
1605         * modules/fdutimensat-tests (Depends-on): Likewise.
1606         * modules/futimens-tests (Depends-on): Likewise.
1607         * modules/lchown-tests (Depends-on): Likewise.
1608         * modules/link-tests (Depends-on): Likewise.
1609         * modules/linkat-tests (Depends-on): Likewise.
1610         * modules/lstat-tests (Depends-on): Likewise.
1611         * modules/mkdir-tests (Depends-on): Likewise.
1612         * modules/mkfifo-tests (Depends-on): Likewise.
1613         * modules/mkfifoat-tests (Depends-on): Likewise.
1614         * modules/mknod-tests (Depends-on): Likewise.
1615         * modules/openat-tests (Depends-on): Likewise.
1616         * modules/readlink-tests (Depends-on): Likewise.
1617         * modules/remove-tests (Depends-on): Likewise.
1618         * modules/rename-tests (Depends-on): Likewise.
1619         * modules/renameat-tests (Depends-on): Likewise.
1620         * modules/rmdir-tests (Depends-on): Likewise.
1621         * modules/symlink-tests (Depends-on): Likewise.
1622         * modules/symlinkat-tests (Depends-on): Likewise.
1623         * modules/unlink-tests (Depends-on): Likewise.
1624         * modules/utimens-tests (Depends-on): Likewise.
1625         * modules/utimensat-tests (Depends-on): Likewise.
1626
1627 2010-01-31  Bruno Haible  <bruno@clisp.org>
1628
1629         Perform the same test for many <math.h> functions.
1630         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1631         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1632         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1633         of gl_MATHFUNC.
1634         * modules/acos (configure.ac): Likewise.
1635         * modules/asin (configure.ac): Likewise.
1636         * modules/atan (configure.ac): Likewise.
1637         * modules/atan2 (configure.ac): Likewise.
1638         * modules/cbrt (configure.ac): Likewise.
1639         * modules/copysign (configure.ac): Likewise.
1640         * modules/cos (configure.ac): Likewise.
1641         * modules/cosh (configure.ac): Likewise.
1642         * modules/erf (configure.ac): Likewise.
1643         * modules/erfc (configure.ac): Likewise.
1644         * modules/exp (configure.ac): Likewise.
1645         * modules/fmod (configure.ac): Likewise.
1646         * modules/hypot (configure.ac): Likewise.
1647         * modules/j0 (configure.ac): Likewise.
1648         * modules/j1 (configure.ac): Likewise.
1649         * modules/jn (configure.ac): Likewise.
1650         * modules/lgamma (configure.ac): Likewise.
1651         * modules/log (configure.ac): Likewise.
1652         * modules/log10 (configure.ac): Likewise.
1653         * modules/log1p (configure.ac): Likewise.
1654         * modules/pow (configure.ac): Likewise.
1655         * modules/remainder (configure.ac): Likewise.
1656         * modules/sin (configure.ac): Likewise.
1657         * modules/sinh (configure.ac): Likewise.
1658         * modules/tan (configure.ac): Likewise.
1659         * modules/tanh (configure.ac): Likewise.
1660         * modules/y0 (configure.ac): Likewise.
1661         * modules/y1 (configure.ac): Likewise.
1662         * modules/yn (configure.ac): Likewise.
1663         Suggested by Paolo Bonzini.
1664
1665 2010-01-31  Bruno Haible  <bruno@clisp.org>
1666
1667         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1668
1669 2010-01-31  Bruno Haible  <bruno@clisp.org>
1670
1671         Work around getdelim() bug on FreeBSD 8.0.
1672         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1673         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1674         not work.
1675         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1676         is 1.
1677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1678         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1679         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1680         a non-zero size.
1681         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1682
1683 2010-01-31  Bruno Haible  <bruno@clisp.org>
1684
1685         Work around getline() bug on FreeBSD 8.0.
1686         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1687         and a non-zero size.
1688         * tests/test-getline.c (main): Likewise.
1689         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1690         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1691
1692 2010-01-28  Eric Blake  <ebb9@byu.net>
1693
1694         regex: fix build failure
1695         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1696         platforms.
1697
1698 2010-01-28  Jim Meyering  <meyering@redhat.com>
1699
1700         regex: do not ignore memory allocation failure
1701         * lib/regex_internal.c (create_cd_newstate): Detect
1702         re_node_set_init_copy failure.   Extracted from glibc commit
1703         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1704
1705         regex: sync more white-space changes from libc
1706         * lib/regex_internal.c: White-space only changes.
1707         * lib/regexec.c: Likewise.
1708
1709         regex: add many uses of __attribute_warn_unused_result__
1710         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1711         * lib/regexec.c: Likewise.
1712         Extracted from a messy glibc commit.
1713
1714         regcomp.c: spelling and merge-artifact from glibc
1715         * lib/regcomp.c: Merge remainder of glibc's
1716         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1717
1718         regcomp.c: sync white-space changes from glibc
1719         * lib/regcomp.c: Merge to accommodate white space
1720         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1721
1722         regcomp.c: do not ignore internal return values
1723         * lib/regcomp.c: Do not ignore internal return values.
1724         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1725         but without its white-space changes and spelling fixes.
1726
1727         regex_internal.h: define __attribute_warn_unused_result__
1728         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1729
1730         maint: add a syntax-check rule to check for vulnerable Makefile.in
1731         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1732
1733 2010-01-27  Jim Meyering  <meyering@redhat.com>
1734
1735         ncftpput-ftp: clean up spaces
1736         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1737         Remove trailing blanks.
1738
1739 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1740
1741         * build-aux/git-version-gen: Fix copyright statement.
1742         * build-aux/gnupload: Likewise.
1743         * tests/test-arcfour.c: Likewise.
1744         * tests/test-arctwo.c: Likewise.
1745         * tests/test-count-one-bits.c: Likewise.
1746         * tests/test-crc.c: Likewise.
1747         * tests/test-des.c: Likewise.
1748         * tests/test-gc-arcfour.c: Likewise.
1749         * tests/test-gc-arctwo.c: Likewise.
1750         * tests/test-gc-des.c: Likewise.
1751         * tests/test-gc-hmac-md5.c: Likewise.
1752         * tests/test-gc-hmac-sha1.c: Likewise.
1753         * tests/test-gc-md2.c: Likewise.
1754         * tests/test-gc-md4.c: Likewise.
1755         * tests/test-gc-md5.c: Likewise.
1756         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1757         * tests/test-gc-rijndael.c: Likewise.
1758         * tests/test-gc-sha1.c: Likewise.
1759         * tests/test-gc.c: Likewise.
1760         * tests/test-gethostname.c: Likewise.
1761         * tests/test-gettimeofday.c: Likewise.
1762         * tests/test-hash.c: Likewise.
1763         * tests/test-hmac-md5.c: Likewise.
1764         * tests/test-hmac-sha1.c: Likewise.
1765         * tests/test-md2.c: Likewise.
1766         * tests/test-md4.c: Likewise.
1767         * tests/test-md5.c: Likewise.
1768         * tests/test-memchr.c: Likewise.
1769         * tests/test-memchr2.c: Likewise.
1770         * tests/test-memcmp.c: Likewise.
1771         * tests/test-memmem.c: Likewise.
1772         * tests/test-memrchr.c: Likewise.
1773         * tests/test-rawmemchr.c: Likewise.
1774         * tests/test-read-file.c: Likewise.
1775         * tests/test-rijndael.c: Likewise.
1776         * tests/test-sockets.c: Likewise.
1777         * tests/test-strchrnul.c: Likewise.
1778         * tests/test-strstr.c: Likewise.
1779         * tests/test-strtod.c: Likewise.
1780         * build-aux/ncftpput-ftp: Likewise.
1781
1782 2010-01-26  Eric Blake  <ebb9@byu.net>
1783
1784         ignore-value: update recommended header name
1785         * modules/ignore-value (Include): Only use <> for headers that
1786         exist in glibc.
1787
1788 2010-01-26  Jim Meyering  <meyering@redhat.com>
1789
1790         test-userspec.c: avoid compiler warnings
1791         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1792         and "initialization discards qualifiers..." warnings.
1793         Put the first "uid" in its own scope, and make char* members "const".
1794
1795 2010-01-25  Bruno Haible  <bruno@clisp.org>
1796
1797         gnulib-tool: Make warning diagnostics consistent.
1798         * gnulib-tool (func_warning): New function.
1799         Use it everywhere where gnulib-tool produces output to stderr and it is
1800         not a fatal error.
1801
1802 2010-01-25  Bruno Haible  <bruno@clisp.org>
1803
1804         Fix test dependencies.
1805         * modules/xstrtol-tests (Depends-on): Add inttypes.
1806         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1807
1808 2010-01-25 Pádraig Brady <P@draigBrady.com>
1809
1810         syntax-check: detect incorrect boolean macro values in config.h
1811         * modules/maintainer-makefile (configure.ac): Parameterize the location
1812         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1813         The logic is from Eric Blake and the location indicated by Jim Meyering.
1814         Note the more natural CONFIG_HEADER name is prohibited by automake
1815         for backwards compatibility reasons.
1816         * top/maint.mk (sc_Wundef_boolean): New rule.
1817
1818 2010-01-25  Jim Meyering  <meyering@redhat.com>
1819
1820         bootstrap: detect MacOS 10.6's shasum, too
1821         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1822         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1823
1824 2010-01-23  Jim Meyering  <meyering@redhat.com>
1825
1826         xstrtoll: new module
1827         * modules/xstrtoll: New file.
1828         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1829         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1830         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1831         ./configure fails if you use this module and lack "long long".
1832         * modules/xstrtoll-tests: New module.
1833         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1834         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1835         new init.sh-based test framework.
1836
1837 2010-01-24  Bruno Haible  <bruno@clisp.org>
1838
1839         Tests for module 'yn'.
1840         * modules/yn-tests: New file.
1841         * tests/test-yn.c: New file.
1842
1843         Tests for module 'y1'.
1844         * modules/y1-tests: New file.
1845         * tests/test-y1.c: New file.
1846
1847         Tests for module 'y0'.
1848         * modules/y0-tests: New file.
1849         * tests/test-y0.c: New file.
1850
1851         Tests for module 'tanh'.
1852         * modules/tanh-tests: New file.
1853         * tests/test-tanh.c: New file.
1854
1855         Tests for module 'tan'.
1856         * modules/tan-tests: New file.
1857         * tests/test-tan.c: New file.
1858
1859         Tests for module 'sqrt'.
1860         * modules/sqrt-tests: New file.
1861         * tests/test-sqrt.c: New file.
1862
1863         Tests for module 'sinh'.
1864         * modules/sinh-tests: New file.
1865         * tests/test-sinh.c: New file.
1866
1867         Tests for module 'sin'.
1868         * modules/sin-tests: New file.
1869         * tests/test-sin.c: New file.
1870
1871         Tests for module 'rint'.
1872         * modules/rint-tests: New file.
1873         * tests/test-rint.c: New file.
1874
1875         Tests for module 'remainder'.
1876         * modules/remainder-tests: New file.
1877         * tests/test-remainder.c: New file.
1878
1879         Tests for module 'pow'.
1880         * modules/pow-tests: New file.
1881         * tests/test-pow.c: New file.
1882
1883         Tests for module 'nextafter'.
1884         * modules/nextafter-tests: New file.
1885         * tests/test-nextafter.c: New file.
1886
1887         Tests for module 'modf'.
1888         * modules/modf-tests: New file.
1889         * tests/test-modf.c: New file.
1890
1891         Tests for module 'logb'.
1892         * modules/logb-tests: New file.
1893         * tests/test-logb.c: New file.
1894
1895         Tests for module 'log1p'.
1896         * modules/log1p-tests: New file.
1897         * tests/test-log1p.c: New file.
1898
1899         Tests for module 'log10'.
1900         * modules/log10-tests: New file.
1901         * tests/test-log10.c: New file.
1902
1903         Tests for module 'log'.
1904         * modules/log-tests: New file.
1905         * tests/test-log.c: New file.
1906
1907         Tests for module 'lgamma'.
1908         * modules/lgamma-tests: New file.
1909         * tests/test-lgamma.c: New file.
1910
1911         Tests for module 'ldexp'.
1912         * modules/ldexp-tests: New file.
1913         * tests/test-ldexp.c: New file.
1914
1915         Tests for module 'jn'.
1916         * modules/jn-tests: New file.
1917         * tests/test-jn.c: New file.
1918
1919         Tests for module 'j1'.
1920         * modules/j1-tests: New file.
1921         * tests/test-j1.c: New file.
1922
1923         Tests for module 'j0'.
1924         * modules/j0-tests: New file.
1925         * tests/test-j0.c: New file.
1926
1927         Tests for module 'hypot'.
1928         * modules/hypot-tests: New file.
1929         * tests/test-hypot.c: New file.
1930
1931         Tests for module 'fmod'.
1932         * modules/fmod-tests: New file.
1933         * tests/test-fmod.c: New file.
1934
1935         Tests for module 'fabs'.
1936         * modules/fabs-tests: New file.
1937         * tests/test-fabs.c: New file.
1938
1939         Tests for module 'exp'.
1940         * modules/exp-tests: New file.
1941         * tests/test-exp.c: New file.
1942
1943         Tests for module 'erfc'.
1944         * modules/erfc-tests: New file.
1945         * tests/test-erfc.c: New file.
1946
1947         Tests for module 'erf'.
1948         * modules/erf-tests: New file.
1949         * tests/test-erf.c: New file.
1950
1951         Tests for module 'cosh'.
1952         * modules/cosh-tests: New file.
1953         * tests/test-cosh.c: New file.
1954
1955         Tests for module 'cos'.
1956         * modules/cos-tests: New file.
1957         * tests/test-cos.c: New file.
1958
1959         Tests for module 'copysign'.
1960         * modules/copysign-tests: New file.
1961         * tests/test-copysign.c: New file.
1962
1963         Tests for module 'cbrt'.
1964         * modules/cbrt-tests: New file.
1965         * tests/test-cbrt.c: New file.
1966
1967         Tests for module 'atan2'.
1968         * modules/atan2-tests: New file.
1969         * tests/test-atan2.c: New file.
1970
1971         Tests for module 'atan'.
1972         * modules/atan-tests: New file.
1973         * tests/test-atan.c: New file.
1974
1975         Tests for module 'asin'.
1976         * modules/asin-tests: New file.
1977         * tests/test-asin.c: New file.
1978
1979         Tests for module 'acos'.
1980         * modules/acos-tests: New file.
1981         * tests/test-acos.c: New file.
1982
1983 2010-01-24  Bruno Haible  <bruno@clisp.org>
1984
1985         Fix tests for common <math.h> functions.
1986         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1987         code snippet that references the function pointer, rather than merely
1988         calling the function. Substitute the FUNC_LIBM variable.
1989         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1990         * modules/acos (configure.ac): Likewise.
1991         * modules/asin (configure.ac): Likewise.
1992         * modules/atan (configure.ac): Likewise.
1993         * modules/atan2 (configure.ac): Likewise.
1994         * modules/cbrt (configure.ac): Likewise.
1995         * modules/copysign (configure.ac): Likewise.
1996         * modules/cos (configure.ac): Likewise.
1997         * modules/cosh (configure.ac): Likewise.
1998         * modules/erf (configure.ac): Likewise.
1999         * modules/erfc (configure.ac): Likewise.
2000         * modules/exp (configure.ac): Likewise.
2001         * modules/fabs (configure.ac): Likewise.
2002         * modules/fmod (configure.ac): Likewise.
2003         * modules/hypot (configure.ac): Likewise.
2004         * modules/j0 (configure.ac): Likewise.
2005         * modules/j1 (configure.ac): Likewise.
2006         * modules/jn (configure.ac): Likewise.
2007         * modules/ldexp (configure.ac): Likewise.
2008         * modules/lgamma (configure.ac): Likewise.
2009         * modules/log (configure.ac): Likewise.
2010         * modules/log10 (configure.ac): Likewise.
2011         * modules/log1p (configure.ac): Likewise.
2012         * modules/logb (configure.ac): Likewise.
2013         * modules/modf (configure.ac): Likewise.
2014         * modules/nextafter (configure.ac): Likewise.
2015         * modules/pow (configure.ac): Likewise.
2016         * modules/remainder (configure.ac): Likewise.
2017         * modules/rint (configure.ac): Likewise.
2018         * modules/sin (configure.ac): Likewise.
2019         * modules/sinh (configure.ac): Likewise.
2020         * modules/tan (configure.ac): Likewise.
2021         * modules/tanh (configure.ac): Likewise.
2022         * modules/y0 (configure.ac): Likewise.
2023         * modules/y1 (configure.ac): Likewise.
2024         * modules/yn (configure.ac): Likewise.
2025
2026 2010-01-24  Bruno Haible  <bruno@clisp.org>
2027
2028         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2029         * tests/test-acosl.c (x): New variable.
2030         (main): Store argument in x and fetch it from x.
2031         * tests/test-asinl.c (x): New variable.
2032         (main): Store argument in x and fetch it from x.
2033         * tests/test-atanl.c (x): New variable.
2034         (main): Store argument in x and fetch it from x.
2035         * tests/test-cosl.c (x): New variable.
2036         (main): Store argument in x and fetch it from x.
2037         * tests/test-expl.c (x): New variable.
2038         (main): Store argument in x and fetch it from x.
2039         * tests/test-logl.c (x): New variable.
2040         (main): Store argument in x and fetch it from x.
2041         * tests/test-sinl.c (x): New variable.
2042         (main): Store argument in x and fetch it from x.
2043         * tests/test-sqrtl.c (x): New variable.
2044         (main): Store argument in x and fetch it from x.
2045         * tests/test-tanl.c (x): New variable.
2046         (main): Store argument in x and fetch it from x.
2047
2048 2010-01-24  Bruno Haible  <bruno@clisp.org>
2049
2050         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2051         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2052         assignments to the initial TESTS_ENVIRONMENT.
2053         * doc/gnulib.texi (Unit test modules): Document it.
2054         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2055         TESTS_ENVIRONMENT.
2056         * modules/btowc-tests (Makefile.am): Likewise.
2057         * modules/c-stack-tests (Makefile.am): Likewise.
2058         * modules/c-strcase-tests (Makefile.am): Likewise.
2059         * modules/copy-file-tests (Makefile.am): Likewise.
2060         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2061         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2062         * modules/mbrtowc-tests (Makefile.am): Likewise.
2063         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2064         * modules/mbscasestr-tests (Makefile.am): Likewise.
2065         * modules/mbschr-tests (Makefile.am): Likewise.
2066         * modules/mbscspn-tests (Makefile.am): Likewise.
2067         * modules/mbsinit-tests (Makefile.am): Likewise.
2068         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2069         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2070         * modules/mbspbrk-tests (Makefile.am): Likewise.
2071         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2072         * modules/mbsrchr-tests (Makefile.am): Likewise.
2073         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2074         * modules/mbsspn-tests (Makefile.am): Likewise.
2075         * modules/mbsstr-tests (Makefile.am): Likewise.
2076         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2077         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2078         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2079         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2080         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2081         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2082         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2083         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2084         * modules/wcrtomb-tests (Makefile.am): Likewise.
2085         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2086         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2087         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2088         assignments from TESTS_ENVIRONMENT.
2089         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2090         augmentation.
2091         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2092         * modules/atexit-tests (Makefile.am): Likewise.
2093         * modules/binary-io-tests (Makefile.am): Likewise.
2094         * modules/closein-tests (Makefile.am): Likewise.
2095         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2096         * modules/exclude-tests (Makefile.am): Likewise.
2097         * modules/fflush-tests (Makefile.am): Likewise.
2098         * modules/fpending-tests (Makefile.am): Likewise.
2099         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2100         * modules/freadahead-tests (Makefile.am): Likewise.
2101         * modules/freadptr-tests (Makefile.am): Likewise.
2102         * modules/freadseek-tests (Makefile.am): Likewise.
2103         * modules/fseek-tests (Makefile.am): Likewise.
2104         * modules/fseeko-tests (Makefile.am): Likewise.
2105         * modules/ftell-tests (Makefile.am): Likewise.
2106         * modules/ftello-tests (Makefile.am): Likewise.
2107         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2108         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2109         * modules/lseek-tests (Makefile.am): Likewise.
2110         * modules/parse-duration-tests (Makefile.am): Likewise.
2111         * modules/perror-tests (Makefile.am): Likewise.
2112         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2113         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2114         * modules/pipe-tests (Makefile.am): Likewise.
2115         * modules/pread-tests (Makefile.am): Likewise.
2116         * modules/printf-posix-tests (Makefile.am): Likewise.
2117         * modules/select-tests (Makefile.am): Likewise.
2118         * modules/sigpipe-tests (Makefile.am): Likewise.
2119         * modules/tsearch-tests (Makefile.am): Likewise.
2120         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2121         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2122         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2123         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2124         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2125         * modules/version-etc-tests (Makefile.am): Likewise.
2126         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2127         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2128         * modules/xalloc-die-tests (Makefile.am): Likewise.
2129         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2130         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2131         * modules/xstrtol-tests (Makefile.am): Likewise.
2132         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2133         * modules/yesno-tests (Makefile.am): Likewise.
2134         Suggested by Jim Meyering.
2135
2136 2010-01-24  Bruno Haible  <bruno@clisp.org>
2137
2138         More documentation.
2139         * doc/gnulib.texi (Writing modules): New chapter.
2140         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2141         the new chapter.
2142
2143 2010-01-24  Jim Meyering  <meyering@redhat.com>
2144
2145         maint.mk: do not prepend "./" after filtering
2146         * top/maint.mk (_prepend_srcdir_prefix): New variable
2147         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2148         "./" when $(srcdir) is ".".
2149
2150         define STREQ(a,b) consistently, removing useless parentheses
2151         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2152         since the only risk is that "a" or "b" contains an unparenthesized
2153         comma, but if either did that, STREQ would have 3 or more arguments.
2154         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2155         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2156         * lib/hash-triple.c (STREQ): Likewise.
2157         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2158         * lib/getugroups.c (STREQ): Likewise.
2159
2160 2010-01-23  Jim Meyering  <meyering@redhat.com>
2161
2162         maint.mk: fix syntax-check in a non-srcdir build directory
2163         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2164         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2165
2166 2010-01-22  Jim Meyering  <meyering@redhat.com>
2167
2168         userspec: add unit tests
2169         * tests/test-userspec.c: New file.
2170         * modules/userspec-tests: Likewise.
2171
2172 2010-01-21  Jim Meyering  <meyering@redhat.com>
2173
2174         maint.mk: handle source file names containing "." robustly
2175         * top/maint.mk (_dot_escaped_srcdir): Define.
2176         (VC_LIST): Use it in LHS of sed substitution.
2177
2178 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2179
2180         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2181         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2182         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2183         from a non-srcdir build.
2184
2185 2010-01-20  Eric Blake  <ebb9@byu.net>
2186
2187         warn-on-use: use instead of link-warning
2188         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2189         * modules/unistd (Depends-on, Makefile.am): Likewise.
2190         * modules/arpa_inet (Depends-on): Replace link-warning with
2191         warn-on-use.
2192         (Makefile.am): Update rules accordingly.
2193         * modules/ctype (Depends-on, Makefile.am): Likewise.
2194         * modules/dirent (Depends-on, Makefile.am): Likewise.
2195         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2196         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2197         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2198         * modules/locale (Depends-on, Makefile.am): Likewise.
2199         * modules/math (Depends-on, Makefile.am): Likewise.
2200         * modules/search (Depends-on, Makefile.am): Likewise.
2201         * modules/signal (Depends-on, Makefile.am): Likewise.
2202         * modules/spawn (Depends-on, Makefile.am): Likewise.
2203         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2204         * modules/string (Depends-on, Makefile.am): Likewise.
2205         * modules/strings (Depends-on, Makefile.am): Likewise.
2206         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2207         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2208         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2209         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2210         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2211         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2212         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2213         * modules/wchar (Depends-on, Makefile.am): Likewise.
2214         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2215         should be poisoned.
2216         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2217         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2218         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2219         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2220         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2221         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2222         * m4/math_h.m4 (gl_MATH_H): Likewise.
2223         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2224         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2225         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2226         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2227         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2228         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2229         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2230         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2235         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2236         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2237         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2238         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2239         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2240         GL_LINK_WARNING.
2241         * lib/ctype.in.h: Likewise.
2242         * lib/dirent.in.h: Likewise.
2243         * lib/fcntl.in.h: Likewise.
2244         * lib/inttypes.in.h: Likewise.
2245         * lib/langinfo.in.h: Likewise.
2246         * lib/locale.in.h: Likewise.
2247         * lib/math.in.h: Likewise.
2248         * lib/search.in.h: Likewise.
2249         * lib/signal.in.h: Likewise.
2250         * lib/spawn.in.h: Likewise.
2251         * lib/stdio.in.h: Likewise.
2252         * lib/stdlib.in.h: Likewise.
2253         * lib/string.in.h: Likewise.
2254         * lib/strings.in.h: Likewise.
2255         * lib/sys_file.in.h: Likewise.
2256         * lib/sys_ioctl.in.h: Likewise.
2257         * lib/sys_select.in.h: Likewise.
2258         * lib/sys_socket.in.h: Likewise.
2259         * lib/sys_stat.in.h: Likewise.
2260         * lib/sys_times.in.h: Likewise.
2261         * lib/sys_utsname.in.h: Likewise.
2262         * lib/unistd.in.h: Likewise.
2263         * lib/wchar.in.h: Likewise.
2264
2265 2010-01-20  Bruno Haible  <bruno@clisp.org>
2266
2267         Avoid duplicate -lm.
2268         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2269         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2270         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2271         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2272         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2273         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2274         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2275         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2276         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2277         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2278         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2279         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2280         Reported by Paolo Bonzini.
2281
2282 2010-01-19  Bruno Haible  <bruno@clisp.org>
2283
2284         langinfo, nl_langinfo: Relicense under LGPLv2+.
2285         * modules/langinfo (License): Change to LGPLv2+.
2286         * modules/nl_langinfo (License): Likewise.
2287         Patch by David Lutterkort <lutter@redhat.com>.
2288
2289 2010-01-19  Bruno Haible  <bruno@clisp.org>
2290
2291         Avoid compilation error with cc on OSF/1 5.1.
2292         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2293         statement, not before.
2294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2295
2296 2010-01-18  Bruno Haible  <bruno@clisp.org>
2297
2298         Avoid a link error due to the __printf__ symbol.
2299         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2300         and 2.6.x.
2301         (__format__, __printf__): Remove definitions.
2302         * lib/argp-fmtstream.h: Likewise.
2303         * lib/argp.h: Likewise.
2304         * lib/error.h: Likewise.
2305         * lib/vasnprintf.h: Likewise.
2306         * lib/xprintf.h: Likewise.
2307         * lib/xvasprintf.h: Likewise.
2308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2309
2310 2010-01-18  Bruno Haible  <bruno@clisp.org>
2311
2312         Tests for module 'tanl'.
2313         * modules/tanl-tests: New file.
2314         * tests/test-tanl.c: New file.
2315
2316         Tests for module 'sqrtl'.
2317         * modules/sqrtl-tests: New file.
2318         * tests/test-sqrtl.c: New file.
2319
2320         Tests for module 'sinl'.
2321         * modules/sinl-tests: New file.
2322         * tests/test-sinl.c: New file.
2323
2324         Tests for module 'logl'.
2325         * modules/logl-tests: New file.
2326         * tests/test-logl.c: New file.
2327
2328         Tests for module 'expl'.
2329         * modules/expl-tests: New file.
2330         * tests/test-expl.c: New file.
2331
2332         Tests for module 'cosl'.
2333         * modules/cosl-tests: New file.
2334         * tests/test-cosl.c: New file.
2335
2336         Tests for module 'atanl'.
2337         * modules/atanl-tests: New file.
2338         * tests/test-atanl.c: New file.
2339
2340         Tests for module 'asinl'.
2341         * modules/asinl-tests: New file.
2342         * tests/test-asinl.c: New file.
2343
2344         Tests for module 'acosl'.
2345         * modules/acosl-tests: New file.
2346         * tests/test-acosl.c: New file.
2347
2348         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2349         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2350         tanl): Use the standard gnulib idiom.
2351         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2352         * lib/sinl.c: Likewise.
2353         * lib/tanl.c: Don't include trigl.c.
2354         (kernel_tanl): Make static.
2355         * lib/sincosl.c: Include trigl.h first.
2356         * lib/trigl.c: Likewise.
2357         * m4/acosl.m4: New file.
2358         * m4/asinl.m4: New file.
2359         * m4/atanl.m4: New file.
2360         * m4/cosl.m4: New file.
2361         * m4/expl.m4: New file.
2362         * m4/logl.m4: New file.
2363         * m4/sinl.m4: New file.
2364         * m4/sqrtl.m4: New file.
2365         * m4/tanl.m4: New file.
2366         * m4/mathl.m4: Remove file.
2367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2368         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2369         Don't initialize GNULIB_MATHL.
2370         * modules/acosl: New file.
2371         * modules/asinl: New file.
2372         * modules/atanl: New file.
2373         * modules/cosl: New file.
2374         * modules/expl: New file.
2375         * modules/logl: New file.
2376         * modules/sinl: New file.
2377         * modules/sqrtl: New file.
2378         * modules/tanl: New file.
2379         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2380         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2381         substitute GNULIB_MATHL.
2382         * modules/mathl: Rewritten.
2383         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2384         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2385         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2386         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2387         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2388         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2389         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2390         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2391         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2392
2393 2010-01-18  Bruno Haible  <bruno@clisp.org>
2394
2395         sqrt: Make gl_FUNC_SQRT requirable.
2396         * m4/sqrt.m4: New file.
2397         * modules/sqrt (Files): Add it.
2398         (configure.ac): Invoke gl_FUNC_SQRT.
2399
2400 2010-01-18  Bruno Haible  <bruno@clisp.org>
2401
2402         New modules for common <math.h> functions.
2403         * m4/mathfunc.m4: New file.
2404         * modules/acos: New file.
2405         * modules/asin: New file.
2406         * modules/atan: New file.
2407         * modules/atan2: New file.
2408         * modules/cbrt: New file.
2409         * modules/copysign: New file.
2410         * modules/cos: New file.
2411         * modules/cosh: New file.
2412         * modules/erf: New file.
2413         * modules/erfc: New file.
2414         * modules/exp: New file.
2415         * modules/fabs: New file.
2416         * modules/fmod: New file.
2417         * modules/hypot: New file.
2418         * modules/j0: New file.
2419         * modules/j1: New file.
2420         * modules/jn: New file.
2421         * modules/ldexp: New file.
2422         * modules/lgamma: New file.
2423         * modules/log: New file.
2424         * modules/log10: New file.
2425         * modules/log1p: New file.
2426         * modules/logb: New file.
2427         * modules/modf: New file.
2428         * modules/nextafter: New file.
2429         * modules/pow: New file.
2430         * modules/remainder: New file.
2431         * modules/rint: New file.
2432         * modules/sin: New file.
2433         * modules/sinh: New file.
2434         * modules/sqrt: New file.
2435         * modules/tan: New file.
2436         * modules/tanh: New file.
2437         * modules/y0: New file.
2438         * modules/y1: New file.
2439         * modules/yn: New file.
2440         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2441         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2442         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2443         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2444         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2445         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2446         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2447         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2448         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2449         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2450         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2451         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2452         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2453         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2454         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2455         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2456         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2457         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2458         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2459         * doc/posix-functions/log.texi: Mention the 'log' module.
2460         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2461         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2462         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2463         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2464         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2465         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2466         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2467         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2468         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2469         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2470         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2471         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2472         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2473         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2474         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2475         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2476
2477 2010-01-18  Jim Meyering  <meyering@redhat.com>
2478
2479         ignore-value: relax license to LGPLv2+
2480         * modules/ignore-value (License): Relax to LGPLv2+.
2481
2482         getdate: don't leak when TZ contains two or more '"'s
2483         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2484         double quote in TZ after the first one.
2485
2486         readtokens: do not leak internal token_lengths buffer
2487         * lib/readtokens.c (readtokens): Free the local, lengths,
2488         when the supplied "token_lengths" parameter is NULL.
2489
2490 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2491
2492         Fix a couple of missing LIBTHREAD link failures on AIX.
2493         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2494         $(LIBTHREAD).
2495         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2496
2497         Link test-poll against INET_PTON_LIB.
2498         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2499         for inet_pton on Solaris 10.
2500
2501 2010-01-17  Bruno Haible  <bruno@clisp.org>
2502
2503         unistdio/*-sprintf: Fix typo in module description.
2504         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2505         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2506         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2507         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2508         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2509         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2510         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2512
2513 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2514
2515         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2516         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2517         variables in shell case patterns, for AIX and HP-UX ksh.
2518
2519         Split large sed scripts, for HP-UX sed.
2520         * modules/stdio: Split sed scripts around 50 sed commands,
2521         to avoid HP-UX limit of 99 commands, in the near future.
2522         * modules/string: Likewise.
2523         * modules/unistd: Likewise.
2524
2525         gnulib-tool: avoid writing in the current directory.
2526         * gnulib-tool (func_emit_lib_Makefile_am)
2527         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2528         not in the current directory, so concurrent gnulib-tool
2529         instances do not interfere.
2530
2531 2010-01-16  Jim Meyering  <meyering@redhat.com>
2532
2533         doc: update users.txt
2534         * users.txt: Add grep.
2535         (diffutils, gzip): Update URLs.
2536
2537 2010-01-12  Bruno Haible  <bruno@clisp.org>
2538
2539         posix_spawn: Avoid test failure on Cygwin.
2540         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2541         characters.
2542         Reported by Simon Josefsson.
2543
2544 2010-01-12  Bruno Haible  <bruno@clisp.org>
2545
2546         * tests/test-cond.c (main): When skipping the test, show the reason.
2547
2548 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2549
2550         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2551
2552 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2553
2554         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2555         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2556
2557 2010-01-12  Eric Blake  <ebb9@byu.net>
2558
2559         build: guarantee AS_VAR_IF
2560         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2561         (gl_AS_VAR_IF): Move...
2562         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2563         Reported by Simon Josefsson.
2564
2565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2566
2567         * lib/stdio.in.h: Fix typo.
2568
2569 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2570
2571         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2572         libgpg-error.
2573
2574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2575
2576         * tests/test-xalloc-die.sh: Use $EXEEXT.
2577
2578 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2579             Bruno Haible  <bruno@clisp.org>
2580
2581         getlogin, getlogin_r: Avoid test failure.
2582         * tests/test-getlogin.c: Include <stdio.h>.
2583         (main): Skip the test when the function fails because stdin is not a
2584         tty.
2585         * tests/test-getlogin_r.c: Include <stdio.h>.
2586         (main): Skip the test when the function fails because stdin is not a
2587         tty.
2588
2589 2010-01-11  Eric Blake  <ebb9@byu.net>
2590
2591         tests: avoid more large file warnings
2592         * tests/test-fflush.c: Avoid warning about ftell use.
2593         * tests/test-fseek.c: Avoid warning about fseek use.
2594
2595 2010-01-10  Bruno Haible  <bruno@clisp.org>
2596
2597         nproc: Work better on Linux when /proc and /sys are not mounted.
2598         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2599         as lower bound when, on glibc/Linux systems,
2600         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2601         Suggested by Pádraig Brady <P@draigbrady.com>.
2602         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2603
2604         nproc: Refactor.
2605         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2606         extracted from num_processors.
2607         (num_processors): Call it.
2608
2609 2010-01-11  Jim Meyering  <meyering@redhat.com>
2610
2611         utimecmp: avoid new warning from upcoming gcc-4.5.0
2612         * lib/utimecmp.c (BILLION): Define using #define rather than an
2613         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2614
2615 2010-01-11  Eric Blake  <ebb9@byu.net>
2616
2617         math: add portability warnings for classification macros
2618         * modules/math (Depends-on): Add warn-on-use.
2619         (Makefile.am): Provide new substitutions.
2620         * m4/math_h.m4 (gl_MATH_H): Require inline.
2621         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2622         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2623         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2624         implement warnings.
2625
2626         unistd: warn on use of environ without module
2627         * modules/unistd (Depends-on): Add warn-on-use.
2628         (Makefile.am): Provide new substitutions.
2629         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2630         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2631
2632         stdio: warn on suspicious uses
2633         * modules/stdio (Depends-on): Add warn-on-use.
2634         (Makefile.am): Provide new substitutions.
2635         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2636         fseeko.
2637         * lib/stdio.in.h (gets): Always warn on use.
2638         (fseek, ftell): Adjust when warnings are issued, and honor
2639         _GL_NO_LARGE_FILES as a way to silence the warning.
2640         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2641         any warning about large file offsets.
2642         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2643         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2644         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2645         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2646         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2647         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2648         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2649         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2650
2651         warn-on-use: new module
2652         * modules/warn-on-use: New file.
2653         * build-aux/warn-on-use.h: Likewise.
2654         * m4/warn-on-use.m4: Likewise.
2655         * MODULES.html.sh (Support for building): Mention it.
2656
2657 2010-01-10  Bruno Haible  <bruno@clisp.org>
2658
2659         Tests for module 'unistr/u32-strdup'.
2660         * modules/unistr/u32-strdup-tests: New file.
2661         * tests/unistr/test-u32-strdup.c: New file.
2662
2663         Tests for module 'unistr/u16-strdup'.
2664         * modules/unistr/u16-strdup-tests: New file.
2665         * tests/unistr/test-u16-strdup.c: New file.
2666
2667         Tests for module 'unistr/u8-strdup'.
2668         * modules/unistr/u8-strdup-tests: New file.
2669         * tests/unistr/test-u8-strdup.c: New file.
2670         * tests/unistr/test-strdup.h: New file.
2671
2672         Tests for module 'unistr/u32-strncmp'.
2673         * modules/unistr/u32-strncmp-tests: New file.
2674         * tests/unistr/test-u32-strncmp.c: New file.
2675
2676         Tests for module 'unistr/u16-strncmp'.
2677         * modules/unistr/u16-strncmp-tests: New file.
2678         * tests/unistr/test-u16-strncmp.c: New file.
2679
2680         Tests for module 'unistr/u8-strncmp'.
2681         * modules/unistr/u8-strncmp-tests: New file.
2682         * tests/unistr/test-u8-strncmp.c: New file.
2683         * tests/unistr/test-strncmp.h: New file.
2684
2685         Tests for module 'unistr/u32-strcoll'.
2686         * modules/unistr/u32-strcoll-tests: New file.
2687         * tests/unistr/test-u32-strcoll.c: New file.
2688
2689         Tests for module 'unistr/u16-strcoll'.
2690         * modules/unistr/u16-strcoll-tests: New file.
2691         * tests/unistr/test-u16-strcoll.c: New file.
2692
2693         Tests for module 'unistr/u8-strcoll'.
2694         * modules/unistr/u8-strcoll-tests: New file.
2695         * tests/unistr/test-u8-strcoll.c: New file.
2696
2697         Tests for module 'unistr/u32-strcmp'.
2698         * modules/unistr/u32-strcmp-tests: New file.
2699         * tests/unistr/test-u32-strcmp.c: New file.
2700         * tests/unistr/test-u32-strcmp.h: New file.
2701
2702         Tests for module 'unistr/u16-strcmp'.
2703         * modules/unistr/u16-strcmp-tests: New file.
2704         * tests/unistr/test-u16-strcmp.c: New file.
2705         * tests/unistr/test-u16-strcmp.h: New file.
2706
2707         Tests for module 'unistr/u8-strcmp'.
2708         * modules/unistr/u8-strcmp-tests: New file.
2709         * tests/unistr/test-u8-strcmp.c: New file.
2710         * tests/unistr/test-u8-strcmp.h: New file.
2711         * tests/unistr/test-strcmp.h: New file.
2712
2713         Tests for module 'unistr/u32-strncat'.
2714         * modules/unistr/u32-strncat-tests: New file.
2715         * tests/unistr/test-u32-strncat.c: New file.
2716
2717         Tests for module 'unistr/u16-strncat'.
2718         * modules/unistr/u16-strncat-tests: New file.
2719         * tests/unistr/test-u16-strncat.c: New file.
2720
2721         Tests for module 'unistr/u8-strncat'.
2722         * modules/unistr/u8-strncat-tests: New file.
2723         * tests/unistr/test-u8-strncat.c: New file.
2724         * tests/unistr/test-strncat.h: New file.
2725
2726         Tests for module 'unistr/u32-strcat'.
2727         * modules/unistr/u32-strcat-tests: New file.
2728         * tests/unistr/test-u32-strcat.c: New file.
2729
2730         Tests for module 'unistr/u16-strcat'.
2731         * modules/unistr/u16-strcat-tests: New file.
2732         * tests/unistr/test-u16-strcat.c: New file.
2733
2734         Tests for module 'unistr/u8-strcat'.
2735         * modules/unistr/u8-strcat-tests: New file.
2736         * tests/unistr/test-u8-strcat.c: New file.
2737         * tests/unistr/test-strcat.h: New file.
2738
2739         Tests for module 'unistr/u32-stpncpy'.
2740         * modules/unistr/u32-stpncpy-tests: New file.
2741         * tests/unistr/test-u32-stpncpy.c: New file.
2742
2743         Tests for module 'unistr/u16-stpncpy'.
2744         * modules/unistr/u16-stpncpy-tests: New file.
2745         * tests/unistr/test-u16-stpncpy.c: New file.
2746
2747         Tests for module 'unistr/u8-stpncpy'.
2748         * modules/unistr/u8-stpncpy-tests: New file.
2749         * tests/unistr/test-u8-stpncpy.c: New file.
2750         * tests/unistr/test-stpncpy.h: New file.
2751
2752         Tests for module 'unistr/u32-strncpy'.
2753         * modules/unistr/u32-strncpy-tests: New file.
2754         * tests/unistr/test-u32-strncpy.c: New file.
2755
2756         Tests for module 'unistr/u16-strncpy'.
2757         * modules/unistr/u16-strncpy-tests: New file.
2758         * tests/unistr/test-u16-strncpy.c: New file.
2759
2760         Tests for module 'unistr/u8-strncpy'.
2761         * modules/unistr/u8-strncpy-tests: New file.
2762         * tests/unistr/test-u8-strncpy.c: New file.
2763         * tests/unistr/test-strncpy.h: New file.
2764
2765         Tests for module 'unistr/u32-stpcpy'.
2766         * modules/unistr/u32-stpcpy-tests: New file.
2767         * tests/unistr/test-u32-stpcpy.c: New file.
2768
2769         Tests for module 'unistr/u16-stpcpy'.
2770         * modules/unistr/u16-stpcpy-tests: New file.
2771         * tests/unistr/test-u16-stpcpy.c: New file.
2772
2773         Tests for module 'unistr/u8-stpcpy'.
2774         * modules/unistr/u8-stpcpy-tests: New file.
2775         * tests/unistr/test-u8-stpcpy.c: New file.
2776         * tests/unistr/test-stpcpy.h: New file.
2777
2778         Tests for module 'unistr/u32-strcpy'.
2779         * modules/unistr/u32-strcpy-tests: New file.
2780         * tests/unistr/test-u32-strcpy.c: New file.
2781
2782         Tests for module 'unistr/u16-strcpy'.
2783         * modules/unistr/u16-strcpy-tests: New file.
2784         * tests/unistr/test-u16-strcpy.c: New file.
2785
2786         Tests for module 'unistr/u8-strcpy'.
2787         * modules/unistr/u8-strcpy-tests: New file.
2788         * tests/unistr/test-u8-strcpy.c: New file.
2789         * tests/unistr/test-strcpy.h: New file.
2790
2791         Tests for module 'unistr/u32-strnlen'.
2792         * modules/unistr/u32-strnlen-tests: New file.
2793         * tests/unistr/test-u32-strnlen.c: New file.
2794
2795         Tests for module 'unistr/u16-strnlen'.
2796         * modules/unistr/u16-strnlen-tests: New file.
2797         * tests/unistr/test-u16-strnlen.c: New file.
2798
2799         Tests for module 'unistr/u8-strnlen'.
2800         * modules/unistr/u8-strnlen-tests: New file.
2801         * tests/unistr/test-u8-strnlen.c: New file.
2802         * tests/unistr/test-strnlen.h: New file.
2803
2804         Tests for module 'unistr/u32-strlen'.
2805         * modules/unistr/u32-strlen-tests: New file.
2806         * tests/unistr/test-u32-strlen.c: New file.
2807
2808         Tests for module 'unistr/u16-strlen'.
2809         * modules/unistr/u16-strlen-tests: New file.
2810         * tests/unistr/test-u16-strlen.c: New file.
2811
2812         Tests for module 'unistr/u8-strlen'.
2813         * modules/unistr/u8-strlen-tests: New file.
2814         * tests/unistr/test-u8-strlen.c: New file.
2815
2816         Tests for module 'unistr/u32-prev'.
2817         * modules/unistr/u32-prev-tests: New file.
2818         * tests/unistr/test-u32-prev.c: New file.
2819
2820         Tests for module 'unistr/u16-prev'.
2821         * modules/unistr/u16-prev-tests: New file.
2822         * tests/unistr/test-u16-prev.c: New file.
2823
2824         Tests for module 'unistr/u8-prev'.
2825         * modules/unistr/u8-prev-tests: New file.
2826         * tests/unistr/test-u8-prev.c: New file.
2827
2828         Tests for module 'unistr/u32-next'.
2829         * modules/unistr/u32-next-tests: New file.
2830         * tests/unistr/test-u32-next.c: New file.
2831
2832         Tests for module 'unistr/u16-next'.
2833         * modules/unistr/u16-next-tests: New file.
2834         * tests/unistr/test-u16-next.c: New file.
2835
2836         Tests for module 'unistr/u8-next'.
2837         * modules/unistr/u8-next-tests: New file.
2838         * tests/unistr/test-u8-next.c: New file.
2839
2840         Tests for module 'unistr/u32-strmbtouc'.
2841         * modules/unistr/u32-strmbtouc-tests: New file.
2842         * tests/unistr/test-u32-strmbtouc.c: New file.
2843
2844         Tests for module 'unistr/u16-strmbtouc'.
2845         * modules/unistr/u16-strmbtouc-tests: New file.
2846         * tests/unistr/test-u16-strmbtouc.c: New file.
2847
2848         Tests for module 'unistr/u8-strmbtouc'.
2849         * modules/unistr/u8-strmbtouc-tests: New file.
2850         * tests/unistr/test-u8-strmbtouc.c: New file.
2851
2852         Tests for module 'unistr/u32-strmblen'.
2853         * modules/unistr/u32-strmblen-tests: New file.
2854         * tests/unistr/test-u32-strmblen.c: New file.
2855
2856         Tests for module 'unistr/u16-strmblen'.
2857         * modules/unistr/u16-strmblen-tests: New file.
2858         * tests/unistr/test-u16-strmblen.c: New file.
2859
2860         Tests for module 'unistr/u8-strmblen'.
2861         * modules/unistr/u8-strmblen-tests: New file.
2862         * tests/unistr/test-u8-strmblen.c: New file.
2863
2864         Tests for module 'unistr/u32-cpy-alloc'.
2865         * modules/unistr/u32-cpy-alloc-tests: New file.
2866         * tests/unistr/test-u32-cpy-alloc.c: New file.
2867
2868         Tests for module 'unistr/u16-cpy-alloc'.
2869         * modules/unistr/u16-cpy-alloc-tests: New file.
2870         * tests/unistr/test-u16-cpy-alloc.c: New file.
2871
2872         Tests for module 'unistr/u8-cpy-alloc'.
2873         * modules/unistr/u8-cpy-alloc-tests: New file.
2874         * tests/unistr/test-u8-cpy-alloc.c: New file.
2875         * tests/unistr/test-cpy-alloc.h: New file.
2876
2877         Tests for module 'unistr/u32-mbsnlen'.
2878         * modules/unistr/u32-mbsnlen-tests: New file.
2879         * tests/unistr/test-u32-mbsnlen.c: New file.
2880
2881         Tests for module 'unistr/u16-mbsnlen'.
2882         * modules/unistr/u16-mbsnlen-tests: New file.
2883         * tests/unistr/test-u16-mbsnlen.c: New file.
2884
2885         Tests for module 'unistr/u8-mbsnlen'.
2886         * modules/unistr/u8-mbsnlen-tests: New file.
2887         * tests/unistr/test-u8-mbsnlen.c: New file.
2888
2889         Tests for module 'unistr/u32-chr'.
2890         * modules/unistr/u32-chr-tests: New file.
2891         * tests/unistr/test-u32-chr.c: New file.
2892
2893         Tests for module 'unistr/u16-chr'.
2894         * modules/unistr/u16-chr-tests: New file.
2895         * tests/unistr/test-u16-chr.c: New file.
2896
2897         Tests for module 'unistr/u8-chr'.
2898         * modules/unistr/u8-chr-tests: New file.
2899         * tests/unistr/test-u8-chr.c: New file.
2900         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2901
2902         Tests for module 'unistr/u32-cmp2'.
2903         * modules/unistr/u32-cmp2-tests: New file.
2904         * tests/unistr/test-u32-cmp2.c: New file.
2905
2906         Tests for module 'unistr/u16-cmp2'.
2907         * modules/unistr/u16-cmp2-tests: New file.
2908         * tests/unistr/test-u16-cmp2.c: New file.
2909
2910         Tests for module 'unistr/u8-cmp2'.
2911         * modules/unistr/u8-cmp2-tests: New file.
2912         * tests/unistr/test-u8-cmp2.c: New file.
2913         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2914
2915         Tests for module 'unistr/u32-cmp'.
2916         * modules/unistr/u32-cmp-tests: New file.
2917         * tests/unistr/test-u32-cmp.c: New file.
2918
2919         Tests for module 'unistr/u16-cmp'.
2920         * modules/unistr/u16-cmp-tests: New file.
2921         * tests/unistr/test-u16-cmp.c: New file.
2922
2923         Tests for module 'unistr/u8-cmp'.
2924         * modules/unistr/u8-cmp-tests: New file.
2925         * tests/unistr/test-u8-cmp.c: New file.
2926         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2927
2928         Tests for module 'unistr/u32-set'.
2929         * modules/unistr/u32-set-tests: New file.
2930         * tests/unistr/test-u32-set.c: New file.
2931
2932         Tests for module 'unistr/u16-set'.
2933         * modules/unistr/u16-set-tests: New file.
2934         * tests/unistr/test-u16-set.c: New file.
2935
2936         Tests for module 'unistr/u8-set'.
2937         * modules/unistr/u8-set-tests: New file.
2938         * tests/unistr/test-u8-set.c: New file.
2939         * tests/unistr/test-set.h: New file.
2940
2941         Tests for module 'unistr/u32-move'.
2942         * modules/unistr/u32-move-tests: New file.
2943         * tests/unistr/test-u32-move.c: New file.
2944
2945         Tests for module 'unistr/u16-move'.
2946         * modules/unistr/u16-move-tests: New file.
2947         * tests/unistr/test-u16-move.c: New file.
2948
2949         Tests for module 'unistr/u8-move'.
2950         * modules/unistr/u8-move-tests: New file.
2951         * tests/unistr/test-u8-move.c: New file.
2952         * tests/unistr/test-move.h: New file.
2953
2954         Tests for module 'unistr/u32-cpy'.
2955         * modules/unistr/u32-cpy-tests: New file.
2956         * tests/unistr/test-u32-cpy.c: New file.
2957
2958         Tests for module 'unistr/u16-cpy'.
2959         * modules/unistr/u16-cpy-tests: New file.
2960         * tests/unistr/test-u16-cpy.c: New file.
2961
2962         Tests for module 'unistr/u8-cpy'.
2963         * modules/unistr/u8-cpy-tests: New file.
2964         * tests/unistr/test-u8-cpy.c: New file.
2965         * tests/unistr/test-cpy.h: New file.
2966
2967 2010-01-09  Bruno Haible  <bruno@clisp.org>
2968
2969         Tests for module 'unistr/u32-uctomb'.
2970         * modules/unistr/u32-uctomb-tests: New file.
2971         * tests/unistr/test-u32-uctomb.c: New file.
2972
2973         Tests for module 'unistr/u16-uctomb'.
2974         * modules/unistr/u16-uctomb-tests: New file.
2975         * tests/unistr/test-u16-uctomb.c: New file.
2976
2977         Tests for module 'unistr/u8-uctomb'.
2978         * modules/unistr/u8-uctomb-tests: New file.
2979         * tests/unistr/test-u8-uctomb.c: New file.
2980
2981         Tests for module 'unistr/u32-mbtoucr'.
2982         * modules/unistr/u32-mbtoucr-tests: New file.
2983         * tests/unistr/test-u32-mbtoucr.c: New file.
2984
2985         Tests for module 'unistr/u16-mbtoucr'.
2986         * modules/unistr/u16-mbtoucr-tests: New file.
2987         * tests/unistr/test-u16-mbtoucr.c: New file.
2988
2989         Tests for module 'unistr/u8-mbtoucr'.
2990         * modules/unistr/u8-mbtoucr-tests: New file.
2991         * tests/unistr/test-u8-mbtoucr.c: New file.
2992
2993         Tests for module 'unistr/u32-mbtouc'.
2994         * modules/unistr/u32-mbtouc-tests: New file.
2995         * tests/unistr/test-u32-mbtouc.c: New file.
2996
2997         Tests for module 'unistr/u16-mbtouc'.
2998         * modules/unistr/u16-mbtouc-tests: New file.
2999         * tests/unistr/test-u16-mbtouc.c: New file.
3000
3001         Tests for module 'unistr/u8-mbtouc'.
3002         * modules/unistr/u8-mbtouc-tests: New file.
3003         * tests/unistr/test-u8-mbtouc.c: New file.
3004
3005         Tests for module 'unistr/u32-mbtouc-unsafe'.
3006         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3007         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3008         * tests/unistr/test-u32-mbtouc.h: New file.
3009
3010         Tests for module 'unistr/u16-mbtouc-unsafe'.
3011         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3012         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3013         * tests/unistr/test-u16-mbtouc.h: New file.
3014
3015         Tests for module 'unistr/u8-mbtouc-unsafe'.
3016         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3017         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3018         * tests/unistr/test-u8-mbtouc.h: New file.
3019
3020         Tests for module 'unistr/u32-mblen'.
3021         * modules/unistr/u32-mblen-tests: New file.
3022         * tests/unistr/test-u32-mblen.c: New file.
3023
3024         Tests for module 'unistr/u16-mblen'.
3025         * modules/unistr/u16-mblen-tests: New file.
3026         * tests/unistr/test-u16-mblen.c: New file.
3027
3028         Tests for module 'unistr/u8-mblen'.
3029         * modules/unistr/u8-mblen-tests: New file.
3030         * tests/unistr/test-u8-mblen.c: New file.
3031
3032         Tests for module 'unistr/u32-to-u16'.
3033         * modules/unistr/u32-to-u16-tests: New file.
3034         * tests/unistr/test-u32-to-u16.c: New file.
3035
3036         Tests for module 'unistr/u32-to-u8'.
3037         * modules/unistr/u32-to-u8-tests: New file.
3038         * tests/unistr/test-u32-to-u8.c: New file.
3039
3040         Tests for module 'unistr/u16-to-u32'.
3041         * modules/unistr/u16-to-u32-tests: New file.
3042         * tests/unistr/test-u16-to-u32.c: New file.
3043
3044         Tests for module 'unistr/u16-to-u8'.
3045         * modules/unistr/u16-to-u8-tests: New file.
3046         * tests/unistr/test-u16-to-u8.c: New file.
3047
3048         Tests for module 'unistr/u8-to-u32'.
3049         * modules/unistr/u8-to-u32-tests: New file.
3050         * tests/unistr/test-u8-to-u32.c: New file.
3051
3052         Tests for module 'unistr/u8-to-u16'.
3053         * modules/unistr/u8-to-u16-tests: New file.
3054         * tests/unistr/test-u8-to-u16.c: New file.
3055
3056         Tests for module 'unistr/u32-check'.
3057         * modules/unistr/u32-check-tests: New file.
3058         * tests/unistr/test-u32-check.c: New file.
3059
3060         Tests for module 'unistr/u16-check'.
3061         * modules/unistr/u16-check-tests: New file.
3062         * tests/unistr/test-u16-check.c: New file.
3063
3064         Tests for module 'unistr/u8-check'.
3065         * modules/unistr/u8-check-tests: New file.
3066         * tests/unistr/test-u8-check.c: New file.
3067
3068         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3069         (category_equals): New function.
3070         (main): Add more tests.
3071         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3072
3073         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3074
3075 2010-01-10  Bruno Haible  <bruno@clisp.org>
3076
3077         unistr/u*-strcoll: Try harder to distinguish different strings.
3078         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3079         compare s1 and s2 to see if they are different.
3080
3081 2010-01-10  Bruno Haible  <bruno@clisp.org>
3082
3083         unistr/u*-stpncpy: Fix the return value.
3084         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3085         description of the return value consistent with stpncpy in glibc.
3086         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3087         written non-NUL unit.
3088
3089 2010-01-10  Bruno Haible  <bruno@clisp.org>
3090
3091         unistr/u*-next: Add missing dependencies.
3092         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3093         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3094         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3095
3096 2010-01-10  Bruno Haible  <bruno@clisp.org>
3097
3098         unistr/u8-mbsnlen: Fix return value for incomplete character.
3099         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3100         u8_mblen.
3101         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3102         Remove unistr/u8-mblen.
3103         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3104         u16_mblen.
3105         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3106         Remove unistr/u16-mblen.
3107
3108 2010-01-10  Bruno Haible  <bruno@clisp.org>
3109
3110         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3111         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3112         Reported by Brian Gough <bjg@gnu.org> and
3113         Chris Clayton <chris2553@googlemail.com> via
3114         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3115
3116 2010-01-09  Bruno Haible  <bruno@clisp.org>
3117
3118         unistr/u16-to-u32: Reject invalid input.
3119         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3120         u16_mbtouc.
3121         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3122         Remove unistr/u16-mbtouc.
3123
3124         unistr/u16-to-u8: Reject invalid input.
3125         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3126         u16_mbtouc.
3127         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3128         Remove unistr/u16-mbtouc.
3129
3130         unistr/u8-to-u32: Reject invalid input.
3131         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3132         u8_mbtouc.
3133         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3134         Remove unistr/u8-mbtouc.
3135
3136         unistr/u8-to-u16: Reject invalid input.
3137         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3138         u8_mbtouc.
3139         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3140         Remove unistr/u8-mbtouc.
3141
3142 2010-01-09  Bruno Haible  <bruno@clisp.org>
3143
3144         Tests for module 'getlogin'.
3145         * modules/getlogin-tests: New file.
3146         * tests/test-getlogin.c: New file.
3147
3148         New module 'getlogin'.
3149         * lib/unistd.in.h (getlogin): New declaration.
3150         * lib/getlogin.c: New file.
3151         * m4/getlogin.m4: New file.
3152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3153         HAVE_GETLOGIN.
3154         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3155         HAVE_GETLOGIN.
3156         * modules/getlogin: New file.
3157         * doc/posix-functions/getlogin.texi: Mention the new module.
3158         Reported by John W. Eaton <jwe@gnu.org>.
3159
3160 2010-01-09  Bruno Haible  <bruno@clisp.org>
3161
3162         getlogin_r: Support for native Windows.
3163         * lib/getlogin_r.c: Include <windows.h>
3164         (getlogin_r): Implement for native Windows.
3165         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3166         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3167         via John W. Eaton <jwe@gnu.org>.
3168
3169 2010-01-09  Bruno Haible  <bruno@clisp.org>
3170
3171         getlogin_r: Small fixes.
3172         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3173         succeeds.
3174         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3175         before testing whether getlogin_r is declared. No need to set
3176         HAVE_DECL_GETLOGIN_R to 1.
3177         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3178
3179 2010-01-09  Bruno Haible  <bruno@clisp.org>
3180
3181         * lib/unistd.in.h (getlogin_r): Add comment.
3182
3183 2010-01-09  Bruno Haible  <bruno@clisp.org>
3184
3185         Tests for module 'getlogin_r'.
3186         * modules/getlogin_r-tests: New file.
3187         * tests/test-getlogin_r.c: New file.
3188
3189 2010-01-09  Jim Meyering  <meyering@redhat.com>
3190
3191         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3192         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3193         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3194
3195 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3196
3197         * lib/dup2.c (rpl_dup2): Improve comment.
3198
3199 2010-01-08  Eric Blake  <ebb9@byu.net>
3200
3201         maint.mk: allow packages to add makefile @@ exceptions
3202         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3203         (sc_makefile_check): Rename...
3204         (sc_makefile_at_at_check): ...to this, and use hook.
3205
3206         dup2: work around mingw bug
3207         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3208         Reported by Simon Josefsson.
3209
3210 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3211
3212         glob: Fix C++ compilation.
3213         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3214         C++.
3215
3216 2010-01-07  Bruno Haible  <bruno@clisp.org>
3217
3218         Fix indentation of wctype.in.h, broken since 2007-01-06.
3219         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3220
3221 2010-01-07  Bruno Haible  <bruno@clisp.org>
3222
3223         mbslen: Avoid collision with system function.
3224         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3225         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3226         * m4/mbslen.m4: New file.
3227         * modules/mbslen (Files): Add it.
3228         (configure.ac): Invoke gl_MBSLEN.
3229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3230         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3231         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3232         via Ian Beckwith <ianb@erislabs.net>.
3233
3234 2010-01-07  Bruno Haible  <bruno@clisp.org>
3235
3236         dirent: Document the last fix.
3237         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3238
3239 2010-01-07  Bruno Haible  <bruno@clisp.org>
3240
3241         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3242         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3243         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3244         va_list are defined.
3245         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3246         Reported by Eric Blake.
3247
3248 2010-01-07  Bruno Haible  <bruno@clisp.org>
3249
3250         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3251         * modules/xlist (Depends-on): Add 'list',
3252         * modules/xoset (Depends-on): Add 'oset'.
3253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3254
3255 2010-01-07  Bruno Haible  <bruno@clisp.org>
3256
3257         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3258         * doc/posix-functions/strncasecmp.texi: Likewise.
3259
3260 2010-01-07  Bruno Haible  <bruno@clisp.org>
3261
3262         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3263
3264 2010-01-07  John W. Eaton  <jwe@octave.org>
3265
3266         wctype: allow C++ use
3267         * lib/wctype.in.h: Add extern "C" block for C++.
3268
3269 2010-01-06  Eric Blake  <ebb9@byu.net>
3270
3271         maint.mk: detect incorrect GFDL usage
3272         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3273
3274 2010-01-06  Jim Meyering  <meyering@redhat.com>
3275         and Eric Blake  <ebb9@byu.net>
3276
3277         maint.mk: ignore multi-line copyright in NEWS
3278         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3279
3280 2010-01-06  Eric Blake  <ebb9@byu.net>
3281
3282         select: add missing dependency
3283         * modules/select-tests (Depends-on): Move sockets dependency...
3284         * modules/select (Depends-on): ...here.
3285         Reported by Ian Beckwith.
3286
3287         doc: regenerate INSTALL
3288         * doc/INSTALL: Reflect recent autoconf update.
3289         * doc/INSTALL.ISO: Likewise.
3290         * doc/INSTALL.UTF-8: Likewise.
3291
3292         pread: fix compilation on glibc
3293         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3294         Reported by Ralf Wildenhues.
3295
3296         dirent: fix test failure
3297         * lib/dirent.in.h (includes): Guarantee ino_t.
3298         Reported by Ralf Wildenhues.
3299
3300 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3301
3302         linkat, renameat: avoid bad free
3303         * lib/at-func2.c (at_func2): Fix typo.
3304         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3305
3306 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3307
3308         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3309         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3310         to avoid failure of symlink test later.
3311
3312 2010-01-06  Eric Blake  <ebb9@byu.net>
3313
3314         stdio, unistd: guarantee ssize_t
3315         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3316         2008 are exposed when needed.
3317         * lib/stdio.in.h (includes): Likewise.
3318         Reported by Ralf Wildenhues.
3319
3320 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3321
3322         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3323         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3324         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3325
3326 2010-01-06  Jim Meyering  <meyering@redhat.com>
3327
3328         readtokens: this module *does* require xalloc.h
3329         It uses only functions that were omitted by the old syntax-check rule.
3330         * lib/readtokens.c: Include "xalloc.h" once again.
3331         * modules/readtokens (Depends-on): Add xalloc.
3332         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3333
3334 2010-01-05  Eric Blake  <ebb9@byu.net>
3335
3336         maint: support 'make announcement' from a VPATH build
3337         * top/maint.mk (announcement): Look for correct NEWS file.
3338
3339 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3340
3341         utimens (fdutimens): ignore a negative FD, per contract
3342         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3343         when we have a valid file descriptor.  Otherwise, using a brand
3344         new glibc (with just-patched futimens that now fails with EBADF)
3345         would cause this function to fail with ENOSYS.
3346         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3347         See also http://bugzilla.redhat.com/552320.
3348
3349 2010-01-05  Eric Blake  <ebb9@byu.net>
3350
3351         strcase: document what it provides
3352         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3353         gnulib module.
3354         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3355         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3356
3357 2010-01-05  Jim Meyering  <meyering@redhat.com>
3358
3359         maint: remove useless inclusions of "xalloc.h"
3360         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3361         * lib/readtokens.c: Likewise.
3362         * lib/same.c: Likewise.
3363         * modules/getloadavg (Depends-on): Remove xalloc.
3364         * modules/readtokens: Likewise.
3365         * modules/same: Likewise.
3366
3367         maint.mk: include 4 more function names in alloca.h-checking regexp
3368         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3369         regexp.  Before, we would give a false-positive (saying alloca.h
3370         is included unnecessarily) when the only uses involved omitted symbols.
3371
3372         xalloc.h: use consistent formatting
3373         * lib/xalloc.h: Move declarations to start in the first column.
3374
3375 2010-01-05  Eric Blake  <ebb9@byu.net>
3376
3377         mkdir: avoid xalloc
3378         * lib/mkdir.c (includes): Drop unused header.
3379         Reported by John W. Eaton.
3380
3381 2010-01-04  Jim Meyering  <meyering@redhat.com>
3382
3383         nl_langinfo: avoid configure-time syntax error
3384         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3385         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3386         the empty string.  Don't let that provoke a shell syntax error.
3387
3388         regcomp, regexec, fnmatch: avoid array bounds read error
3389         * lib/regcomp.c (build_equiv_class): From glibc:
3390         Use only the low 24 bits of a findidx return value as an index
3391         into the weights array.  Patch by Ulrich Drepper:
3392         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3393         * lib/regexec.c (check_node_accept_bytes): Likewise.
3394         * lib/fnmatch_loop.c (FCT): Likewise.
3395
3396         regcomp: skip collseq lookup when there are no rules
3397         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3398         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3399
3400         regcomp: recognize ill-formed { } expressions
3401         * lib/regcomp.c (parse_dup_op): From glibc:
3402         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3403
3404         regcomp: fix typo in comment
3405         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3406         s/satisfy/satisfies/.
3407
3408         regcomp: sync from glibc: remove dead store
3409         * lib/regcomp.c (duplicate_node_closure): Remove useless
3410         search_duplicated_node call and dead store.
3411
3412         regcomp: sync from glibc; always use nl_langinfo
3413         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3414         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3415         * modules/regex (Depends-on): Add nl_langinfo.
3416
3417 2010-01-04  Eric Blake  <ebb9@byu.net>
3418
3419         fdopendir: fix configure test
3420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3421
3422 2010-01-01  Bruno Haible  <bruno@clisp.org>
3423
3424         wchar: Remove unused configure check.
3425         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3426
3427 2010-01-01  Eric Blake  <ebb9@byu.net>
3428
3429         headers: make check of system header explicit
3430         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3431         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3432         ourselves.
3433         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3434         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3435         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3436         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3437         internals.
3438         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3439         missing.
3440         Suggested by Bruno Haible.
3441
3442 2010-01-01  Jim Meyering  <meyering@redhat.com>
3443
3444         ChangeLog: tweak to eliminate unnecessary copyright line
3445         * ChangeLog: Remove a copyright line that was mistakenly updated
3446         by today's update-copyright run.  Reported by Eric Blake.
3447
3448         test-update-copyright: don't let envvar setting cause test failure
3449         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3450
3451 2010-01-01  Bruno Haible  <bruno@clisp.org>
3452
3453         localename: Avoid gcc warning.
3454         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3455         function if it is not used.
3456
3457 2010-01-01  Jim Meyering  <meyering@redhat.com>
3458
3459         update nearly all FSF copyright year lists to include 2010
3460         Use the same procedure as for 2009, outlined in
3461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3462
3463         version-etc: set COPYRIGHT_YEAR to 2010
3464         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3465
3466 2009-12-31  Eric Blake  <ebb9@byu.net>
3467
3468         doc: correct availability of cygwin 1.5.x getopt
3469         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3470         variables.
3471         * doc/posix-functions/opterr.texi (opterr): Likewise.
3472         * doc/posix-functions/optind.texi (optind): Likewise.
3473         * doc/posix-functions/optopt.texi (optopt): Likewise.
3474         * doc/posix-functions/tzname.texi (tzname): Likewise.
3475
3476         openat: update maintainer
3477         * modules/openat (Maintainer): Add myself.
3478
3479         utimens: avoid shadowing warning
3480         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3481         buffers into one, to avoid shadowing, as well as avoiding a
3482         redundant stat.
3483         Reported by Jim Meyering.
3484
3485         test-dup2: avoid compiler warning
3486         * tests/test-dup2.c (is_inheritable): Only define if used.
3487
3488 2010-01-01  Bruno Haible  <bruno@clisp.org>
3489
3490         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3491         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3492         defined, use wctomb instead of wcrtomb.
3493
3494 2010-01-01  Bruno Haible  <bruno@clisp.org>
3495
3496         iconv: Reject native Solaris iconv.
3497         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3498         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3499
3500 2009-12-31  Bruno Haible  <bruno@clisp.org>
3501
3502         * tests/test-signal.c (main): Remove test of 'SIG'.
3503
3504 2009-12-31  Bruno Haible  <bruno@clisp.org>
3505
3506         spawn: Fix incomplete fix.
3507         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3508         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3509         warnings for GNULIB_POSIXCHECK again.
3510         Reported by Eric Blake.
3511
3512 2009-12-31  Bruno Haible  <bruno@clisp.org>
3513
3514         Avoid namespace pollution on glibc systems.
3515         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3516         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3517         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3518         glibc systems.
3519
3520 2009-12-31  Bruno Haible  <bruno@clisp.org>
3521
3522         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3523         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3524         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3525         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3526         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3527         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3528         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3529
3530 2009-12-31  Bruno Haible  <bruno@clisp.org>
3531
3532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3533         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3534         afterwards.
3535
3536 2009-12-31  Bruno Haible  <bruno@clisp.org>
3537
3538         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3539         SYS_UTSNAME_H.
3540
3541 2009-12-31  Bruno Haible  <bruno@clisp.org>
3542
3543         spawn: Fix misapplied patch.
3544         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3545         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3546         warnings for GNULIB_POSIXCHECK.
3547
3548 2009-12-31  Bruno Haible  <bruno@clisp.org>
3549
3550         times: Update after sys_times changed.
3551         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3552         * modules/times (Files): Add it.
3553         (configure.ac): Invoke gl_FUNC_TIMES.
3554
3555 2009-12-31  Bruno Haible  <bruno@clisp.org>
3556
3557         Use AC_C_INLINE where necessary.
3558         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3559         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3560         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3561         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3562         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3563         * m4/mbiter.m4 (gl_MBITER): Likewise.
3564         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3565         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3566         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3567         * modules/u64 (configure.ac): Likewise.
3568
3569 2009-12-31  Bruno Haible  <bruno@clisp.org>
3570
3571         Use AC_C_INLINE instead of module 'inline' where possible.
3572         * modules/inline (Description): Clarify purpose.
3573         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3574         * modules/count-one-bits (Depends-on): Remove inline.
3575         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3576         * modules/openat (Depends-on): Remove inline.
3577         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3578         instead of depending on module 'inline'.
3579         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3580         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3581         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3582         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3583         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3584         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3585         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3586         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3587         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3588         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3589         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3590         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3591         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3592         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3593         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3594         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3595         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3596         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3597         Likewise.
3598         * modules/unictype/property-ascii-hex-digit (Depends-on,
3599         configure.ac): Likewise.
3600         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3601         configure.ac): Likewise.
3602         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3603         configure.ac): Likewise.
3604         * modules/unictype/property-bidi-block-separator (Depends-on,
3605         configure.ac): Likewise.
3606         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3607         configure.ac): Likewise.
3608         * modules/unictype/property-bidi-common-separator (Depends-on,
3609         configure.ac): Likewise.
3610         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3611         Likewise.
3612         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3613         configure.ac): Likewise.
3614         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3615         configure.ac): Likewise.
3616         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3617         configure.ac): Likewise.
3618         * modules/unictype/property-bidi-european-digit (Depends-on,
3619         configure.ac): Likewise.
3620         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3621         configure.ac): Likewise.
3622         * modules/unictype/property-bidi-left-to-right (Depends-on,
3623         configure.ac): Likewise.
3624         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3625         configure.ac): Likewise.
3626         * modules/unictype/property-bidi-other-neutral (Depends-on,
3627         configure.ac): Likewise.
3628         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3629         Likewise.
3630         * modules/unictype/property-bidi-segment-separator (Depends-on,
3631         configure.ac): Likewise.
3632         * modules/unictype/property-bidi-whitespace (Depends-on,
3633         configure.ac): Likewise.
3634         * modules/unictype/property-combining (Depends-on, configure.ac):
3635         Likewise.
3636         * modules/unictype/property-composite (Depends-on, configure.ac):
3637         Likewise.
3638         * modules/unictype/property-currency-symbol (Depends-on,
3639         configure.ac): Likewise.
3640         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3641         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3642         Likewise.
3643         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3644         configure.ac): Likewise.
3645         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3646         Likewise.
3647         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3648         Likewise.
3649         * modules/unictype/property-extender (Depends-on, configure.ac):
3650         Likewise.
3651         * modules/unictype/property-format-control (Depends-on, configure.ac):
3652         Likewise.
3653         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3654         Likewise.
3655         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3656         Likewise.
3657         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3658         Likewise.
3659         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3660         Likewise.
3661         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3662         Likewise.
3663         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3664         Likewise.
3665         * modules/unictype/property-id-start (Depends-on, configure.ac):
3666         Likewise.
3667         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3668         Likewise.
3669         * modules/unictype/property-ids-binary-operator (Depends-on,
3670         configure.ac): Likewise.
3671         * modules/unictype/property-ids-trinary-operator (Depends-on,
3672         configure.ac): Likewise.
3673         * modules/unictype/property-ignorable-control (Depends-on,
3674         configure.ac): Likewise.
3675         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3676         Likewise.
3677         * modules/unictype/property-join-control (Depends-on, configure.ac):
3678         Likewise.
3679         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3680         Likewise.
3681         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3682         Likewise.
3683         * modules/unictype/property-logical-order-exception (Depends-on,
3684         configure.ac): Likewise.
3685         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3686         Likewise.
3687         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3688         * modules/unictype/property-non-break (Depends-on, configure.ac):
3689         Likewise.
3690         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3691         Likewise.
3692         * modules/unictype/property-numeric (Depends-on, configure.ac):
3693         Likewise.
3694         * modules/unictype/property-other-alphabetic (Depends-on,
3695         configure.ac): Likewise.
3696         * modules/unictype/property-other-default-ignorable-code-point
3697         (Depends-on, configure.ac): Likewise.
3698         * modules/unictype/property-other-grapheme-extend (Depends-on,
3699         configure.ac): Likewise.
3700         * modules/unictype/property-other-id-continue (Depends-on,
3701         configure.ac): Likewise.
3702         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3703         Likewise.
3704         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3705         Likewise.
3706         * modules/unictype/property-other-math (Depends-on, configure.ac):
3707         Likewise.
3708         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3709         Likewise.
3710         * modules/unictype/property-paired-punctuation (Depends-on,
3711         configure.ac): Likewise.
3712         * modules/unictype/property-paragraph-separator (Depends-on,
3713         configure.ac): Likewise.
3714         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3715         Likewise.
3716         * modules/unictype/property-pattern-white-space (Depends-on,
3717         configure.ac): Likewise.
3718         * modules/unictype/property-private-use (Depends-on, configure.ac):
3719         Likewise.
3720         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3721         Likewise.
3722         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3723         Likewise.
3724         * modules/unictype/property-radical (Depends-on, configure.ac):
3725         Likewise.
3726         * modules/unictype/property-sentence-terminal (Depends-on,
3727         configure.ac): Likewise.
3728         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3729         Likewise.
3730         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3731         * modules/unictype/property-terminal-punctuation (Depends-on,
3732         configure.ac): Likewise.
3733         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3734         Likewise.
3735         * modules/unictype/property-unassigned-code-value (Depends-on,
3736         configure.ac): Likewise.
3737         * modules/unictype/property-unified-ideograph (Depends-on,
3738         configure.ac): Likewise.
3739         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3740         Likewise.
3741         * modules/unictype/property-variation-selector (Depends-on,
3742         configure.ac): Likewise.
3743         * modules/unictype/property-white-space (Depends-on, configure.ac):
3744         Likewise.
3745         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3746         Likewise.
3747         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3748         Likewise.
3749         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3750         Likewise.
3751         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3752         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3753         Likewise.
3754
3755 2009-12-31  Bruno Haible  <bruno@clisp.org>
3756
3757         Remove unnecessary AC_C_INLINE invocation.
3758         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3759         since 2009-08-21.
3760
3761 2009-12-31  Jim Meyering  <meyering@redhat.com>
3762
3763         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3764         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3765         With this change, we can all remove the gpg_key_ID = ... definition
3766         from our respective cfg.mk files.
3767
3768         maint.mk: create announcement template in ~/, not in /tmp
3769         * top/maint.mk (emit_upload_commands): Adjust.
3770         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3771         Remove temporary file, .ci-msg.
3772
3773 2009-12-31  Eric Blake  <ebb9@byu.net>
3774
3775         link-warning: always build headers with link warnings
3776         * modules/arpa_inet (Makefile.am): Always build replacement
3777         header.
3778         * modules/ctype (Makefile.am): Likewise.
3779         * modules/dirent (Makefile.am): Likewise.
3780         * modules/inttypes (Makefile.am): Likewise.
3781         * modules/langinfo (Makefile.am): Likewise.
3782         * modules/locale (Makefile.am): Likewise.
3783         * modules/spawn (Makefile.am): Likewise.
3784         * modules/sys_file (Makefile.am): Likewise.
3785         * modules/sys_ioctl (Makefile.am): Likewise.
3786         * modules/sys_select (Makefile.am): Likewise.
3787         * modules/sys_socket (Makefile.am): Likewise.
3788         * modules/sys_times (Makefile.am): Likewise.
3789         * modules/sys_utsname (Makefile.am): Likewise.
3790         * modules/sys_wait (Makefile.am): Likewise.
3791         * modules/wchar (Makefile.am): Likewise.
3792         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3793         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3794         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3795         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3796         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3797         Likewise.
3798         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3799         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3800         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3801         Likewise.
3802         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3803         Likewise.
3804         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3806         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3807         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3808         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3809         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3810         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3811         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3812         (gl_WCHAR_H_DEFAULTS): Likewise.
3813
3814 2009-12-31  Eric Blake  <ebb9@byu.net>
3815
3816         signal, spawn: use link warnings
3817         * lib/signal.in.h (sigset_t): Make unconditional.
3818         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3819         (sigpending, sigprocmask, sigaction): Add link warnings.
3820         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3821         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3822         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3823         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3824         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3825         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3826         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3827         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3828         (posix_spawn_file_actions_destroy)
3829         (posix_spawn_file_actions_addopen)
3830         (posix_spawn_file_actions_addclose)
3831         (posix_spawn_file_actions_adddup2): Likewise.
3832         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3833         * tests/test-signal.c (main): Enhance test.
3834
3835         spawn: improve wrapper support
3836         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3837         (gl_SPAWN_H_DEFAULTS): New defaults.
3838         * modules/spawn (Makefile.am): Substitute them.
3839         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3840         Only declare if missing or broken.
3841
3842         sys_times, sys_utsname: use include_next
3843         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3844         header.
3845         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3846         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3847         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3848         * modules/sys_times (Depends-on): Add include_next.
3849         (Makefile.am): Substitute additional values.
3850         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3851         * lib/sys_times.in.h (includes): Include native header, if
3852         available.
3853         * lib/sys_utsname.in.h (includes): Likewise.
3854         * tests/test-sys_times.c (main): Enhance test.
3855
3856         fdutimensat: revert prior patch
3857         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3858         utimens.h.
3859         Reported by Bruno Haible.
3860
3861 2009-12-30  Eric Blake  <ebb9@byu.net>
3862
3863         sys_wait: drop link-warning dependency
3864         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3865         link-warning efforts.
3866         * lib/sys_wait.in.h: Likewise.
3867
3868         fdutimensat: remove bogus dependency
3869         * modules/fdutimensat (Depends-on): Drop inline.
3870
3871         unistd: fix typo
3872         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3873
3874 2009-12-30  Bruno Haible  <bruno@clisp.org>
3875
3876         Fix compilation error with Solaris cc.
3877         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3878         * lib/unicase/u16-is-invariant.c: Likewise.
3879         * lib/unicase/u32-is-invariant.c: Likewise.
3880         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3881
3882 2009-12-30  Bruno Haible  <bruno@clisp.org>
3883
3884         Fix test crash.
3885         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3886         locales.
3887         Reported by Simon Josefsson <simon@josefsson.org>.
3888
3889 2009-12-30  Bruno Haible  <bruno@clisp.org>
3890
3891         Fix compilation error on most platforms.
3892         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3893         Reported by Simon Josefsson <simon@josefsson.org>
3894         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3895
3896 2009-12-30  Eric Blake  <ebb9@byu.net>
3897
3898         futimens, utimensat: work around ntfs-3g bug
3899         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3900         a ctime bug is present, and expand workaround to cover ntfs-3g.
3901         * lib/utimens.c (fdutimens, lutimens): Likewise.
3902         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3903         (validate_timespec): Adjust return value.
3904         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3905         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3906         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3907
3908 2009-12-29  Eric Blake  <ebb9@byu.net>
3909
3910         link-warning: make usage consistent
3911         * modules/ctype (Depends-on): Add link-warning.
3912         (Makefile.am): Update rules accordingly.
3913         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3914         * modules/locale (Depends-on, Makefile.am): Likewise.
3915         * modules/sys_file (Makefile.am): Likewise.
3916         * modules/getopt-posix (Makefile.am): Delete unused link warning
3917         efforts.
3918         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3919         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3920         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3921         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3922
3923         stdio: remove unused variables
3924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3925         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3926         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3927
3928         tests: test more substitute headers
3929         * modules/ctype-tests: New file.
3930         * modules/dirent-tests: Likewise.
3931         * modules/spawn-tests: Likewise.
3932         * modules/sys_file-tests: Likewise.
3933         * modules/sys_ioctl-tests: Likewise.
3934         * modules/sys_wait-tests: Likewise.
3935         * tests/test-ctype.c: Likewise.
3936         * tests/test-dirent.c: Likewise.
3937         * tests/test-spawn.c: Likewise.
3938         * tests/test-sys_file.c: Likewise.
3939         * tests/test-sys_ioctl.c: Likewise.
3940         * tests/test-sys_wait.c: Likewise.
3941         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3942         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3943         whether or not flock is in use.
3944
3945         tests: remove License section from module
3946         * modules/arpa_inet-tests: Remove unneeded section.
3947         * modules/byteswap-tests: Likewise.
3948         * modules/ceilf-tests: Likewise.
3949         * modules/ceill-tests: Likewise.
3950         * modules/crypto/des-tests: Likewise.
3951         * modules/crypto/gc-arcfour-tests: Likewise.
3952         * modules/crypto/gc-arctwo-tests: Likewise.
3953         * modules/crypto/gc-des-tests: Likewise.
3954         * modules/crypto/gc-hmac-md5-tests: Likewise.
3955         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3956         * modules/crypto/gc-md2-tests: Likewise.
3957         * modules/crypto/gc-md4-tests: Likewise.
3958         * modules/crypto/gc-md5-tests: Likewise.
3959         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3960         * modules/crypto/gc-rijndael-tests: Likewise.
3961         * modules/crypto/gc-sha1-tests: Likewise.
3962         * modules/crypto/gc-tests: Likewise.
3963         * modules/crypto/md2-tests: Likewise.
3964         * modules/crypto/md4-tests: Likewise.
3965         * modules/fcntl-h-tests: Likewise.
3966         * modules/floorf-tests: Likewise.
3967         * modules/floorl-tests: Likewise.
3968         * modules/frexp-nolibm-tests: Likewise.
3969         * modules/frexp-tests: Likewise.
3970         * modules/frexpl-nolibm-tests: Likewise.
3971         * modules/frexpl-tests: Likewise.
3972         * modules/getaddrinfo-tests: Likewise.
3973         * modules/inttypes-tests: Likewise.
3974         * modules/isfinite-tests: Likewise.
3975         * modules/isinf-tests: Likewise.
3976         * modules/ldexpl-tests: Likewise.
3977         * modules/locale-tests: Likewise.
3978         * modules/math-tests: Likewise.
3979         * modules/netdb-tests: Likewise.
3980         * modules/netinet_in-tests: Likewise.
3981         * modules/printf-frexp-tests: Likewise.
3982         * modules/printf-frexpl-tests: Likewise.
3983         * modules/priv-set-tests: Likewise.
3984         * modules/random_r-tests: Likewise.
3985         * modules/round-tests: Likewise.
3986         * modules/roundf-tests: Likewise.
3987         * modules/roundl-tests: Likewise.
3988         * modules/search-tests: Likewise.
3989         * modules/select-tests: Likewise.
3990         * modules/signal-tests: Likewise.
3991         * modules/stdbool-tests: Likewise.
3992         * modules/stddef-tests: Likewise.
3993         * modules/stdint-tests: Likewise.
3994         * modules/stdio-tests: Likewise.
3995         * modules/stdlib-tests: Likewise.
3996         * modules/string-tests: Likewise.
3997         * modules/strings-tests: Likewise.
3998         * modules/sys_select-tests: Likewise.
3999         * modules/sys_socket-tests: Likewise.
4000         * modules/sys_stat-tests: Likewise.
4001         * modules/sys_time-tests: Likewise.
4002         * modules/sys_utsname-tests: Likewise.
4003         * modules/sysexits-tests: Likewise.
4004         * modules/time-tests: Likewise.
4005         * modules/trunc-tests: Likewise.
4006         * modules/truncf-tests: Likewise.
4007         * modules/truncl-tests: Likewise.
4008         * modules/tsearch-tests: Likewise.
4009         * modules/unistd-tests: Likewise.
4010         * modules/wchar-tests: Likewise.
4011         * modules/wctype-tests: Likewise.
4012
4013         tests: fix license on several tests
4014         * tests/test-des.c: Update to GPLv3+.
4015         * tests/test-flock.c: Likewise.
4016         * tests/test-fsync.c: Likewise.
4017         * tests/test-futimens.h: Likewise.
4018         * tests/test-gc-arcfour.c: Likewise.
4019         * tests/test-gc-arctwo.c: Likewise.
4020         * tests/test-gc-des.c: Likewise.
4021         * tests/test-gc-hmac-md5.c: Likewise.
4022         * tests/test-gc-hmac-sha1.c: Likewise.
4023         * tests/test-gc-md2.c: Likewise.
4024         * tests/test-gc-md4.c: Likewise.
4025         * tests/test-gc-md5.c: Likewise.
4026         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4027         * tests/test-gc-rijndael.c: Likewise.
4028         * tests/test-gc-sha1.c: Likewise.
4029         * tests/test-gc.c: Likewise.
4030         * tests/test-getcwd.c: Likewise.
4031         * tests/test-link.c: Likewise.
4032         * tests/test-link.h: Likewise.
4033         * tests/test-lutimens.h: Likewise.
4034         * tests/test-md2.c: Likewise.
4035         * tests/test-md4.c: Likewise.
4036         * tests/test-mkdir.h: Likewise.
4037         * tests/test-rename.c: Likewise.
4038         * tests/test-rename.h: Likewise.
4039         * tests/test-safe-alloc.c: Likewise.
4040         * tests/test-utimens-common.h: Likewise.
4041         * tests/test-utimens.h: Likewise.
4042
4043         maint: sync license texts
4044         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4045         * doc/gpl-3.0.texi: Revert copyright year update.
4046         * doc/lgpl-3.0.texi: Likewise.
4047
4048 2009-12-29  Jim Meyering  <meyering@redhat.com>
4049
4050         update nearly all FSF copyright year lists to include 2009
4051         The files named by the following are exempted:
4052             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4053               test -f "$dst" && { echo "$dst"; continue; }
4054               test -d "$dst" || continue
4055               echo "$dst"/$(basename "$src")
4056             done > exempt
4057             git ls-files tests/unictype >> exempt
4058         In the remaining files, convert to all-interval notation if
4059         - there is already at least one year interval like 2000-2003
4060         - the file is maintained by me
4061         - the file is in lib/uni*/, where that style already prevails
4062         Otherwise, use update-copyright's default.
4063
4064 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4065         and Eric Blake  <ebb9@byu.net>
4066
4067         tests: don't require debug system() to pass
4068         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4069         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4070         * tests/test-unlink.h (test_unlink_func): Likewise.
4071         * tests/test-fstatat.c (main): ...into callers.
4072         * tests/test-lstat.c (main): Likewise.
4073         * tests/test-rmdir.c (main): Likewise.
4074         * tests/test-unlink.c (main): Likewise.
4075         * tests/test-unlinkat.c (main): Likewise.
4076         * tests/test-areadlink-with-size.c (main): Don't require a
4077         debug-only system call to pass, aiding cross-testing to mingw.
4078         * tests/test-areadlink.c (main): Likewise.
4079         * tests/test-areadlinkat-with-size.c (main): Likewise.
4080         * tests/test-areadlinkat.c (main): Likewise.
4081         * tests/test-canonicalize-lgpl.c (main): Likewise.
4082         * tests/test-canonicalize.c (main): Likewise.
4083         * tests/test-chown.c (main): Likewise.
4084         * tests/test-fchownat.c (main): Likewise.
4085         * tests/test-lchown.c (main): Likewise.
4086         * tests/test-fdutimensat.c (main): Likewise.
4087         * tests/test-futimens.c (main): Likewise.
4088         * tests/test-link.c (main): Likewise.
4089         * tests/test-linkat.c (main): Likewise.
4090         * tests/test-mkdir.c (main): Likewise.
4091         * tests/test-mkdirat.c (main): Likewise.
4092         * tests/test-mkfifo.c (main): Likewise.
4093         * tests/test-mkfifoat.c (main): Likewise.
4094         * tests/test-mknod.c (main): Likewise.
4095         * tests/test-readlink.c (main): Likewise.
4096         * tests/test-remove.c (main): Likewise.
4097         * tests/test-rename.c (main): Likewise.
4098         * tests/test-renameat.c (main): Likewise.
4099         * tests/test-symlink.c (main): Likewise.
4100         * tests/test-symlinkat.c (main): Likewise.
4101         * tests/test-utimens.c (main): Likewise.
4102         * tests/test-utimensat.c (main): Likewise.
4103
4104 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4105
4106         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4107         on $(UNUSED_PARAMETER_H) to avoid build failure.
4108
4109 2009-12-28  Jim Meyering  <meyering@redhat.com>
4110
4111         update-copyright: you may specify a max. line length other than 72
4112         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4113
4114         maint: use consistent FSF copyright line syntax
4115         * lib/posixtm.c: Add missing comma in FSF copyright line.
4116         * lib/posixtm.h: Likewise.
4117         * lib/getugroups.c: Add missing ", Inc.".
4118
4119         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4120         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4121         FSF copyright line.  Remove trailing blanks.
4122
4123 2009-12-28  Eric Blake  <ebb9@byu.net>
4124
4125         test-dup2: reduce dependencies
4126         * modules/cloexec (Configure.ac): Set witness.
4127         * modules/dup2-tests (Depends-on): Drop cloexec.
4128         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4129         not present.
4130         Suggested by Bruno Haible.
4131
4132 2009-12-26  Bruno Haible  <bruno@clisp.org>
4133
4134         Remove an unneeded dependency.
4135         * modules/fseterr (Depends-on): Remove dup2.
4136
4137 2009-12-26  Eric Blake  <ebb9@byu.net>
4138
4139         tests: use macros.h in more places
4140         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4141         (ASSERT_STREAM): Provide default of stderr.
4142         * tests/test-dirent-safer.c: Include macros.h, using alternate
4143         stream for assertions.
4144         * tests/test-dup-safer.c: Likewise.
4145         * tests/test-freopen-safer.c: Likewise.
4146         * tests/test-getopt.c: Likewise.
4147         * tests/test-openat-safer.c: Likewise.
4148         * tests/test-pipe.c: Likewise.
4149         * tests/test-popen-safer.c: Likewise.
4150         * modules/dirent-safer-tests (Files): Include macros.h.
4151         * modules/unistd-safer-tests (Files): Likewise.
4152         * modules/freopen-safer-tests (Files): Likewise.
4153         * modules/getopt-posix-tests (Files): Likewise.
4154         * modules/openat-safer-tests (Files): Likewise.
4155         * modules/pipe-tests (Files): Likewise.
4156
4157 2009-12-26  Bruno Haible  <bruno@clisp.org>
4158
4159         javacomp: Portability fix.
4160         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4161         that it also works on Solaris.
4162
4163 2009-12-26  Bruno Haible  <bruno@clisp.org>
4164
4165         localename: Fix storage allocation of gl_locale_name_thread's result.
4166         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4167         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4168         all platforms that have 'uselocale'.
4169         (gl_locale_name_thread_unsafe): New function, extracted from
4170         gl_locale_name_thread.
4171         (gl_locale_name_thread): Call struniq on all platforms that have
4172         'uselocale'.
4173         * tests/test-localename.c (test_locale_name_thread): Check that the
4174         resulting strings are permanently allocated.
4175         * modules/localename-tests (Depends-on): Add strdup.
4176
4177 2009-12-26  Bruno Haible  <bruno@clisp.org>
4178
4179         * tests/test-localename.c (categories): Fill in the strings.
4180
4181 2009-12-26  Jim Meyering  <meyering@redhat.com>
4182
4183         isdir: complete the removal of m4/isdir.m4
4184         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4185
4186         isdir: clean up, since at least grep still uses it
4187         * lib/isdir.c: Include "isdir.h".
4188         (S_ISDIR): Remove now-unneeded definition.
4189         * modules/isdir (Files): Add lib/isdir.h.
4190         * lib/isdir.h: New file, with declaration.
4191         * m4/isdir.m4: Remove file -- unneeded.
4192
4193 2009-12-25  Bruno Haible  <bruno@clisp.org>
4194
4195         selinux-h: Make generated .h files standalone.
4196         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4197         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4198         * lib/se-selinux.in.h: Likewise.
4199         * modules/selinux-h (Depends-on): Add unused-parameter.
4200         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4201         selinux/selinux.h and selinux/context.h.
4202         Suggested by Eric Blake.
4203
4204 2009-12-25  Bruno Haible  <bruno@clisp.org>
4205
4206         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4207         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4208         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4209         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4210         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4211
4212 2009-12-24  Bruno Haible  <bruno@clisp.org>
4213
4214         openat: Fix warning.
4215         * lib/openat-proc.c: Include <unistd.h>.
4216
4217 2009-12-24  Bruno Haible  <bruno@clisp.org>
4218
4219         New module 'unused-parameter'.
4220         * build-aux/unused-parameter.h: New file, extracted from earlier
4221         gnulib-common.m4.
4222         * modules/unused-parameter: New file.
4223         * lib/unistr.h: Include unused-parameter.h.
4224         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4225         _GL_UNUSED.
4226         * modules/unistr/base (Depends-on): Add unused-parameter.
4227
4228 2009-12-24  Bruno Haible  <bruno@clisp.org>
4229
4230         Add missing dependencies to 'extensions' module.
4231         * m4/extensions.m4: Add comment.
4232         * modules/accept4 (Depends-on): Add extensions.
4233         * modules/dup3 (Depends-on): Likewise.
4234         * modules/fcntl (Depends-on): Likewise.
4235         * modules/futimens (Depends-on): Likewise.
4236         * modules/mknod (Depends-on): Likewise.
4237         * modules/pipe2 (Depends-on): Likewise.
4238         * modules/stat-time (Depends-on): Likewise.
4239         * modules/strcasestr-simple (Depends-on): Likewise.
4240         * modules/strsignal (Depends-on): Likewise.
4241         * modules/utimensat (Depends-on): Likewise.
4242         * modules/localcharset (Depends-on): Likewise. Needed because of
4243         gl_FCNTL_O_FLAGS.
4244         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4245         AC_TYPE_MBSTATE_T.
4246         * modules/wcsnrtombs (Depends-on): Likewise.
4247         * modules/wcsrtombs (Depends-on): Likewise.
4248
4249 2009-12-24  Bruno Haible  <bruno@clisp.org>
4250
4251         binary-io: Avoid gcc warning due to SET_BINARY.
4252         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4253         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4254
4255 2009-12-24  Bruno Haible  <bruno@clisp.org>
4256
4257         Avoid future namespace pollution on glibc systems.
4258         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4259         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4260         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4261         glibc systems.
4262
4263 2009-12-24  Bruno Haible  <bruno@clisp.org>
4264
4265         Refactor common macros used in tests.
4266         * tests/macros.h: New file.
4267         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4268         and/or <stdlib.h>, if appropriate.
4269         (ASSERT, SIZEOF): Remove macros.
4270         * tests/test-areadlink-with-size.c: Likewise.
4271         * tests/test-areadlinkat.c: Likewise.
4272         * tests/test-areadlinkat-with-size.c: Likewise.
4273         * tests/test-argmatch.c: Likewise.
4274         * tests/test-argv-iter.c: Likewise.
4275         * tests/test-array-mergesort.c: Likewise.
4276         * tests/test-array_list.c: Likewise.
4277         * tests/test-array_oset.c: Likewise.
4278         * tests/test-avltree_list.c: Likewise.
4279         * tests/test-avltree_oset.c: Likewise.
4280         * tests/test-avltreehash_list.c: Likewise.
4281         * tests/test-base64.c: Likewise.
4282         * tests/test-binary-io.c: Likewise.
4283         * tests/test-bitrotate.c: Likewise.
4284         * tests/test-btowc.c: Likewise.
4285         * tests/test-byteswap.c: Likewise.
4286         * tests/test-c-ctype.c: Likewise.
4287         * tests/test-c-stack.c: Likewise.
4288         * tests/test-c-strcasecmp.c: Likewise.
4289         * tests/test-c-strcasestr.c: Likewise.
4290         * tests/test-c-strncasecmp.c: Likewise.
4291         * tests/test-c-strstr.c: Likewise.
4292         * tests/test-canonicalize-lgpl.c: Likewise.
4293         * tests/test-canonicalize.c: Likewise.
4294         * tests/test-carray_list.c: Likewise.
4295         * tests/test-ceilf1.c: Likewise.
4296         * tests/test-ceilf2.c: Likewise.
4297         * tests/test-ceill.c: Likewise.
4298         * tests/test-chown.c: Likewise.
4299         * tests/test-cloexec.c: Likewise.
4300         * tests/test-copy-acl.c: Likewise.
4301         * tests/test-copy-file.c: Likewise.
4302         * tests/test-count-one-bits.c: Likewise.
4303         * tests/test-dprintf-posix.c: Likewise.
4304         * tests/test-dup2.c: Likewise.
4305         * tests/test-dup3.c: Likewise.
4306         * tests/test-duplocale.c: Likewise.
4307         * tests/test-fbufmode.c: Likewise.
4308         * tests/test-fchdir.c: Likewise.
4309         * tests/test-fchownat.c: Likewise.
4310         * tests/test-fcntl-safer.c: Likewise.
4311         * tests/test-fcntl.c: Likewise.
4312         * tests/test-fdopendir.c: Likewise.
4313         * tests/test-fdutimensat.c: Likewise.
4314         * tests/test-fflush2.c: Likewise.
4315         * tests/test-file-has-acl.c: Likewise.
4316         * tests/test-filevercmp.c: Likewise.
4317         * tests/test-flock.c: Likewise.
4318         * tests/test-floorf1.c: Likewise.
4319         * tests/test-floorf2.c: Likewise.
4320         * tests/test-floorl.c: Likewise.
4321         * tests/test-fnmatch.c: Likewise.
4322         * tests/test-fopen.h: Likewise.
4323         * tests/test-fpending.c: Likewise.
4324         * tests/test-fprintf-posix.c: Likewise.
4325         * tests/test-fpurge.c: Likewise.
4326         * tests/test-freadable.c: Likewise.
4327         * tests/test-freadahead.c: Likewise.
4328         * tests/test-freading.c: Likewise.
4329         * tests/test-freadptr.c: Likewise.
4330         * tests/test-freadptr2.c: Likewise.
4331         * tests/test-freadseek.c: Likewise.
4332         * tests/test-freopen.c: Likewise.
4333         * tests/test-frexp.c: Likewise.
4334         * tests/test-frexpl.c: Likewise.
4335         * tests/test-fseek.c: Likewise.
4336         * tests/test-fseeko.c: Likewise.
4337         * tests/test-fstatat.c: Likewise.
4338         * tests/test-fstrcmp.c: Likewise.
4339         * tests/test-fsync.c: Likewise.
4340         * tests/test-ftell.c: Likewise.
4341         * tests/test-ftello.c: Likewise.
4342         * tests/test-func.c: Likewise.
4343         * tests/test-futimens.c: Likewise.
4344         * tests/test-fwritable.c: Likewise.
4345         * tests/test-fwriting.c: Likewise.
4346         * tests/test-getcwd.c: Likewise.
4347         * tests/test-getdate.c: Likewise.
4348         * tests/test-getdelim.c: Likewise.
4349         * tests/test-getdtablesize.c: Likewise.
4350         * tests/test-getgroups.c: Likewise.
4351         * tests/test-getline.c: Likewise.
4352         * tests/test-getndelim2.c: Likewise.
4353         * tests/test-glob.c: Likewise.
4354         * tests/test-hash.c: Likewise.
4355         * tests/test-i-ring.c: Likewise.
4356         * tests/test-iconv-utf.c: Likewise.
4357         * tests/test-iconv.c: Likewise.
4358         * tests/test-idpriv-drop.c: Likewise.
4359         * tests/test-idpriv-droptemp.c: Likewise.
4360         * tests/test-inet_ntop.c: Likewise.
4361         * tests/test-inet_pton.c: Likewise.
4362         * tests/test-isblank.c: Likewise.
4363         * tests/test-isfinite.c: Likewise.
4364         * tests/test-isinf.c: Likewise.
4365         * tests/test-isnan.c: Likewise.
4366         * tests/test-isnand.h: Likewise.
4367         * tests/test-isnanf.h: Likewise.
4368         * tests/test-isnanl.h: Likewise.
4369         * tests/test-lchown.c: Likewise.
4370         * tests/test-ldexpl.c: Likewise.
4371         * tests/test-link.c: Likewise.
4372         * tests/test-linkat.c: Likewise.
4373         * tests/test-linked_list.c: Likewise.
4374         * tests/test-linkedhash_list.c: Likewise.
4375         * tests/test-localename.c: Likewise.
4376         * tests/test-lseek.c: Likewise.
4377         * tests/test-lstat.c: Likewise.
4378         * tests/test-mbmemcasecmp.c: Likewise.
4379         * tests/test-mbmemcasecoll.c: Likewise.
4380         * tests/test-mbrtowc.c: Likewise.
4381         * tests/test-mbscasecmp.c: Likewise.
4382         * tests/test-mbscasestr1.c: Likewise.
4383         * tests/test-mbscasestr2.c: Likewise.
4384         * tests/test-mbscasestr3.c: Likewise.
4385         * tests/test-mbscasestr4.c: Likewise.
4386         * tests/test-mbschr.c: Likewise.
4387         * tests/test-mbscspn.c: Likewise.
4388         * tests/test-mbsinit.c: Likewise.
4389         * tests/test-mbsncasecmp.c: Likewise.
4390         * tests/test-mbsnrtowcs.c: Likewise.
4391         * tests/test-mbspbrk.c: Likewise.
4392         * tests/test-mbspcasecmp.c: Likewise.
4393         * tests/test-mbsrchr.c: Likewise.
4394         * tests/test-mbsrtowcs.c: Likewise.
4395         * tests/test-mbsspn.c: Likewise.
4396         * tests/test-mbsstr1.c: Likewise.
4397         * tests/test-mbsstr2.c: Likewise.
4398         * tests/test-mbsstr3.c: Likewise.
4399         * tests/test-memchr.c: Likewise.
4400         * tests/test-memchr2.c: Likewise.
4401         * tests/test-memcmp.c: Likewise.
4402         * tests/test-memmem.c: Likewise.
4403         * tests/test-memrchr.c: Likewise.
4404         * tests/test-mkdir.c: Likewise.
4405         * tests/test-mkdirat.c: Likewise.
4406         * tests/test-mkfifo.c: Likewise.
4407         * tests/test-mkfifoat.c: Likewise.
4408         * tests/test-mknod.c: Likewise.
4409         * tests/test-nanosleep.c: Likewise.
4410         * tests/test-nl_langinfo.c: Likewise.
4411         * tests/test-obstack-printf.c: Likewise.
4412         * tests/test-open.c: Likewise.
4413         * tests/test-openat.c: Likewise.
4414         * tests/test-pipe-filter-gi1.c: Likewise.
4415         * tests/test-pipe-filter-gi2-main.c: Likewise.
4416         * tests/test-pipe-filter-ii1.c: Likewise.
4417         * tests/test-pipe-filter-ii2-main.c: Likewise.
4418         * tests/test-pipe2.c: Likewise.
4419         * tests/test-popen.h: Likewise.
4420         * tests/test-posixtm.c: Likewise.
4421         * tests/test-pread.c: Likewise.
4422         * tests/test-printf-frexp.c: Likewise.
4423         * tests/test-printf-frexpl.c: Likewise.
4424         * tests/test-printf-posix.c: Likewise.
4425         * tests/test-priv-set.c: Likewise.
4426         * tests/test-quotearg.c: Likewise.
4427         * tests/test-random_r.c: Likewise.
4428         * tests/test-rawmemchr.c: Likewise.
4429         * tests/test-rbtree_list.c: Likewise.
4430         * tests/test-rbtree_oset.c: Likewise.
4431         * tests/test-rbtreehash_list.c: Likewise.
4432         * tests/test-readlink.c: Likewise.
4433         * tests/test-remove.c: Likewise.
4434         * tests/test-rename.c: Likewise.
4435         * tests/test-renameat.c: Likewise.
4436         * tests/test-rmdir.c: Likewise.
4437         * tests/test-round1.c: Likewise.
4438         * tests/test-roundf1.c: Likewise.
4439         * tests/test-roundl.c: Likewise.
4440         * tests/test-safe-alloc.c: Likewise.
4441         * tests/test-sameacls.c: Likewise.
4442         * tests/test-set-mode-acl.c: Likewise.
4443         * tests/test-setenv.c: Likewise.
4444         * tests/test-sigaction.c: Likewise.
4445         * tests/test-signbit.c: Likewise.
4446         * tests/test-sleep.c: Likewise.
4447         * tests/test-snprintf-posix.c: Likewise.
4448         * tests/test-snprintf.c: Likewise.
4449         * tests/test-sprintf-posix.c: Likewise.
4450         * tests/test-stat-time.c: Likewise.
4451         * tests/test-stat.c: Likewise.
4452         * tests/test-strcasestr.c: Likewise.
4453         * tests/test-strchrnul.c: Likewise.
4454         * tests/test-strerror.c: Likewise.
4455         * tests/test-striconv.c: Likewise.
4456         * tests/test-striconveh.c: Likewise.
4457         * tests/test-striconveha.c: Likewise.
4458         * tests/test-strsignal.c: Likewise.
4459         * tests/test-strstr.c: Likewise.
4460         * tests/test-strtod.c: Likewise.
4461         * tests/test-strverscmp.c: Likewise.
4462         * tests/test-symlink.c: Likewise.
4463         * tests/test-symlinkat.c: Likewise.
4464         * tests/test-trunc1.c: Likewise.
4465         * tests/test-trunc2.c: Likewise.
4466         * tests/test-truncf1.c: Likewise.
4467         * tests/test-truncf2.c: Likewise.
4468         * tests/test-truncl.c: Likewise.
4469         * tests/test-uname.c: Likewise.
4470         * tests/test-unlink.c: Likewise.
4471         * tests/test-unlinkat.c: Likewise.
4472         * tests/test-unsetenv.c: Likewise.
4473         * tests/test-usleep.c: Likewise.
4474         * tests/test-utimens.c: Likewise.
4475         * tests/test-utimensat.c: Likewise.
4476         * tests/test-vasnprintf-posix.c: Likewise.
4477         * tests/test-vasnprintf-posix2.c: Likewise.
4478         * tests/test-vasnprintf.c: Likewise.
4479         * tests/test-vasprintf-posix.c: Likewise.
4480         * tests/test-vasprintf.c: Likewise.
4481         * tests/test-vdprintf-posix.c: Likewise.
4482         * tests/test-vfprintf-posix.c: Likewise.
4483         * tests/test-vprintf-posix.c: Likewise.
4484         * tests/test-vsnprintf-posix.c: Likewise.
4485         * tests/test-vsnprintf.c: Likewise.
4486         * tests/test-vsprintf-posix.c: Likewise.
4487         * tests/test-wcrtomb.c: Likewise.
4488         * tests/test-wcsnrtombs.c: Likewise.
4489         * tests/test-wcsrtombs.c: Likewise.
4490         * tests/test-wctype.c: Likewise.
4491         * tests/test-wcwidth.c: Likewise.
4492         * tests/test-xfprintf-posix.c: Likewise.
4493         * tests/test-xmemdup0.c: Likewise.
4494         * tests/test-xprintf-posix.c: Likewise.
4495         * tests/test-xvasprintf.c: Likewise.
4496         * tests/unicase/test-locale-language.c: Likewise.
4497         * tests/unicase/test-mapping-part1.h: Likewise.
4498         * tests/unicase/test-predicate-part1.h: Likewise.
4499         * tests/unicase/test-u8-casecmp.c: Likewise.
4500         * tests/unicase/test-u8-casecoll.c: Likewise.
4501         * tests/unicase/test-u8-casefold.c: Likewise.
4502         * tests/unicase/test-u8-is-cased.c: Likewise.
4503         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4504         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4505         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4506         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4507         * tests/unicase/test-u8-tolower.c: Likewise.
4508         * tests/unicase/test-u8-totitle.c: Likewise.
4509         * tests/unicase/test-u8-toupper.c: Likewise.
4510         * tests/unicase/test-u16-casecmp.c: Likewise.
4511         * tests/unicase/test-u16-casecoll.c: Likewise.
4512         * tests/unicase/test-u16-casefold.c: Likewise.
4513         * tests/unicase/test-u16-is-cased.c: Likewise.
4514         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4515         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4516         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4517         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4518         * tests/unicase/test-u16-tolower.c: Likewise.
4519         * tests/unicase/test-u16-totitle.c: Likewise.
4520         * tests/unicase/test-u16-toupper.c: Likewise.
4521         * tests/unicase/test-u32-casecmp.c: Likewise.
4522         * tests/unicase/test-u32-casecoll.c: Likewise.
4523         * tests/unicase/test-u32-casefold.c: Likewise.
4524         * tests/unicase/test-u32-is-cased.c: Likewise.
4525         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4526         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4527         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4528         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4529         * tests/unicase/test-u32-tolower.c: Likewise.
4530         * tests/unicase/test-u32-totitle.c: Likewise.
4531         * tests/unicase/test-u32-toupper.c: Likewise.
4532         * tests/unicase/test-ulc-casecmp.c: Likewise.
4533         * tests/unicase/test-ulc-casecoll.c: Likewise.
4534         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4535         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4536         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4537         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4538         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4539         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4540         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4541         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4542         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4543         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4544         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4545         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4546         * tests/unictype/test-bidi_byname.c: Likewise.
4547         * tests/unictype/test-bidi_name.c: Likewise.
4548         * tests/unictype/test-bidi_of.c: Likewise.
4549         * tests/unictype/test-bidi_test.c: Likewise.
4550         * tests/unictype/test-block_list.c: Likewise.
4551         * tests/unictype/test-block_of.c: Likewise.
4552         * tests/unictype/test-block_test.c: Likewise.
4553         * tests/unictype/test-categ_and.c: Likewise.
4554         * tests/unictype/test-categ_and_not.c: Likewise.
4555         * tests/unictype/test-categ_byname.c: Likewise.
4556         * tests/unictype/test-categ_name.c: Likewise.
4557         * tests/unictype/test-categ_none.c: Likewise.
4558         * tests/unictype/test-categ_of.c: Likewise.
4559         * tests/unictype/test-categ_or.c: Likewise.
4560         * tests/unictype/test-categ_test_withtable.c: Likewise.
4561         * tests/unictype/test-combining.c: Likewise.
4562         * tests/unictype/test-decdigit.c: Likewise.
4563         * tests/unictype/test-digit.c: Likewise.
4564         * tests/unictype/test-mirror.c: Likewise.
4565         * tests/unictype/test-numeric.c: Likewise.
4566         * tests/unictype/test-pr_byname.c: Likewise.
4567         * tests/unictype/test-pr_test.c: Likewise.
4568         * tests/unictype/test-predicate-part1.h: Likewise.
4569         * tests/unictype/test-scripts.c: Likewise.
4570         * tests/unictype/test-sy_c_ident.c: Likewise.
4571         * tests/unictype/test-sy_java_ident.c: Likewise.
4572         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4573         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4574         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4575         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4576         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4577         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4578         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4579         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4580         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4581         * tests/uninorm/test-compat-decomposition.c: Likewise.
4582         * tests/uninorm/test-composition.c: Likewise.
4583         * tests/uninorm/test-decomposing-form.c: Likewise.
4584         * tests/uninorm/test-decomposition.c: Likewise.
4585         * tests/uninorm/test-u8-nfc.c: Likewise.
4586         * tests/uninorm/test-u8-nfd.c: Likewise.
4587         * tests/uninorm/test-u8-nfkc.c: Likewise.
4588         * tests/uninorm/test-u8-nfkd.c: Likewise.
4589         * tests/uninorm/test-u8-normcmp.c: Likewise.
4590         * tests/uninorm/test-u8-normcoll.c: Likewise.
4591         * tests/uninorm/test-u16-nfc.c: Likewise.
4592         * tests/uninorm/test-u16-nfd.c: Likewise.
4593         * tests/uninorm/test-u16-nfkc.c: Likewise.
4594         * tests/uninorm/test-u16-nfkd.c: Likewise.
4595         * tests/uninorm/test-u16-normcmp.c: Likewise.
4596         * tests/uninorm/test-u16-normcoll.c: Likewise.
4597         * tests/uninorm/test-u32-nfc.c: Likewise.
4598         * tests/uninorm/test-u32-nfd.c: Likewise.
4599         * tests/uninorm/test-u32-nfkc.c: Likewise.
4600         * tests/uninorm/test-u32-nfkd.c: Likewise.
4601         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4602         * tests/uninorm/test-u32-normcmp.c: Likewise.
4603         * tests/uninorm/test-u32-normcoll.c: Likewise.
4604         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4605         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4606         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4607         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4608         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4609         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4610         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4611         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4612         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4613         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4614         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4615         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4616         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4617         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4618         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4619         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4620         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4621         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4622         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4623         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4624         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4625         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4626         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4627         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4628         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4629         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4630         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4631         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4632         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4633         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4634         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4635         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4636         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4637         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4638         * tests/uniwidth/test-u8-width.c: Likewise.
4639         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4640         * tests/uniwidth/test-u16-width.c: Likewise.
4641         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4642         * tests/uniwidth/test-u32-width.c: Likewise.
4643         * tests/uniwidth/test-uc_width.c: Likewise.
4644         * tests/uniwidth/test-uc_width2.c: Likewise.
4645         * modules/acl-tests (Files): Add tests/macros.h.
4646         * modules/areadlink-tests (Files): Likewise.
4647         * modules/areadlink-with-size-tests (Files): Likewise.
4648         * modules/areadlinkat-tests (Files): Likewise.
4649         * modules/areadlinkat-with-size-tests (Files): Likewise.
4650         * modules/argmatch-tests (Files): Likewise.
4651         * modules/argv-iter-tests (Files): Likewise.
4652         * modules/array-list-tests (Files): Likewise.
4653         * modules/array-mergesort-tests (Files): Likewise.
4654         * modules/array-oset-tests (Files): Likewise.
4655         * modules/avltree-list-tests (Files): Likewise.
4656         * modules/avltree-oset-tests (Files): Likewise.
4657         * modules/avltreehash-list-tests (Files): Likewise.
4658         * modules/base64-tests (Files): Likewise.
4659         * modules/binary-io-tests (Files): Likewise.
4660         * modules/bitrotate-tests (Files): Likewise.
4661         * modules/btowc-tests (Files): Likewise.
4662         * modules/byteswap-tests (Files): Likewise.
4663         * modules/c-ctype-tests (Files): Likewise.
4664         * modules/c-stack-tests (Files): Likewise.
4665         * modules/c-strcase-tests (Files): Likewise.
4666         * modules/c-strcasestr-tests (Files): Likewise.
4667         * modules/c-strstr-tests (Files): Likewise.
4668         * modules/canonicalize-lgpl-tests (Files): Likewise.
4669         * modules/canonicalize-tests (Files): Likewise.
4670         * modules/carray-list-tests (Files): Likewise.
4671         * modules/ceilf-tests (Files): Likewise.
4672         * modules/ceill-tests (Files): Likewise.
4673         * modules/chown-tests (Files): Likewise.
4674         * modules/cloexec-tests (Files): Likewise.
4675         * modules/copy-file-tests (Files): Likewise.
4676         * modules/count-one-bits-tests (Files): Likewise.
4677         * modules/dprintf-posix-tests (Files): Likewise.
4678         * modules/dup2-tests (Files): Likewise.
4679         * modules/dup3-tests (Files): Likewise.
4680         * modules/duplocale-tests (Files): Likewise.
4681         * modules/fbufmode-tests (Files): Likewise.
4682         * modules/fchdir-tests (Files): Likewise.
4683         * modules/fcntl-safer-tests (Files): Likewise.
4684         * modules/fcntl-tests (Files): Likewise.
4685         * modules/fdopendir-tests (Files): Likewise.
4686         * modules/fdutimensat-tests (Files): Likewise.
4687         * modules/fflush-tests (Files): Likewise.
4688         * modules/filevercmp-tests (Files): Likewise.
4689         * modules/flock-tests (Files): Likewise.
4690         * modules/floorf-tests (Files): Likewise.
4691         * modules/floorl-tests (Files): Likewise.
4692         * modules/fnmatch-tests (Files): Likewise.
4693         * modules/fopen-safer-tests (Files): Likewise.
4694         * modules/fopen-tests (Files): Likewise.
4695         * modules/fpending-tests (Files): Likewise.
4696         * modules/fprintf-posix-tests (Files): Likewise.
4697         * modules/fpurge-tests (Files): Likewise.
4698         * modules/freadable-tests (Files): Likewise.
4699         * modules/freadahead-tests (Files): Likewise.
4700         * modules/freading-tests (Files): Likewise.
4701         * modules/freadptr-tests (Files): Likewise.
4702         * modules/freadseek-tests (Files): Likewise.
4703         * modules/freopen-tests (Files): Likewise.
4704         * modules/frexp-nolibm-tests (Files): Likewise.
4705         * modules/frexp-tests (Files): Likewise.
4706         * modules/frexpl-nolibm-tests (Files): Likewise.
4707         * modules/frexpl-tests (Files): Likewise.
4708         * modules/fseek-tests (Files): Likewise.
4709         * modules/fseeko-tests (Files): Likewise.
4710         * modules/fstrcmp-tests (Files): Likewise.
4711         * modules/fsync-tests (Files): Likewise.
4712         * modules/ftell-tests (Files): Likewise.
4713         * modules/ftello-tests (Files): Likewise.
4714         * modules/func-tests (Files): Likewise.
4715         * modules/futimens-tests (Files): Likewise.
4716         * modules/fwritable-tests (Files): Likewise.
4717         * modules/fwriting-tests (Files): Likewise.
4718         * modules/getcwd-tests (Files): Likewise.
4719         * modules/getdate-tests (Files): Likewise.
4720         * modules/getdelim-tests (Files): Likewise.
4721         * modules/getdtablesize-tests (Files): Likewise.
4722         * modules/getgroups-tests (Files): Likewise.
4723         * modules/getline-tests (Files): Likewise.
4724         * modules/getndelim2-tests (Files): Likewise.
4725         * modules/glob-tests (Files): Likewise.
4726         * modules/hash-tests (Files): Likewise.
4727         * modules/i-ring-tests (Files): Likewise.
4728         * modules/iconv-tests (Files): Likewise.
4729         * modules/iconv_open-utf-tests (Files): Likewise.
4730         * modules/idpriv-drop-tests (Files): Likewise.
4731         * modules/idpriv-droptemp-tests (Files): Likewise.
4732         * modules/inet_ntop-tests (Files): Likewise.
4733         * modules/inet_pton-tests (Files): Likewise.
4734         * modules/isblank-tests (Files): Likewise.
4735         * modules/isfinite-tests (Files): Likewise.
4736         * modules/isinf-tests (Files): Likewise.
4737         * modules/isnan-tests (Files): Likewise.
4738         * modules/isnand-nolibm-tests (Files): Likewise.
4739         * modules/isnand-tests (Files): Likewise.
4740         * modules/isnanf-nolibm-tests (Files): Likewise.
4741         * modules/isnanf-tests (Files): Likewise.
4742         * modules/isnanl-nolibm-tests (Files): Likewise.
4743         * modules/isnanl-tests (Files): Likewise.
4744         * modules/lchown-tests (Files): Likewise.
4745         * modules/ldexpl-tests (Files): Likewise.
4746         * modules/link-tests (Files): Likewise.
4747         * modules/linkat-tests (Files): Likewise.
4748         * modules/linked-list-tests (Files): Likewise.
4749         * modules/linkedhash-list-tests (Files): Likewise.
4750         * modules/localename-tests (Files): Likewise.
4751         * modules/lseek-tests (Files): Likewise.
4752         * modules/lstat-tests (Files): Likewise.
4753         * modules/mbmemcasecmp-tests (Files): Likewise.
4754         * modules/mbmemcasecoll-tests (Files): Likewise.
4755         * modules/mbrtowc-tests (Files): Likewise.
4756         * modules/mbscasecmp-tests (Files): Likewise.
4757         * modules/mbscasestr-tests (Files): Likewise.
4758         * modules/mbschr-tests (Files): Likewise.
4759         * modules/mbscspn-tests (Files): Likewise.
4760         * modules/mbsinit-tests (Files): Likewise.
4761         * modules/mbsncasecmp-tests (Files): Likewise.
4762         * modules/mbsnrtowcs-tests (Files): Likewise.
4763         * modules/mbspbrk-tests (Files): Likewise.
4764         * modules/mbspcasecmp-tests (Files): Likewise.
4765         * modules/mbsrchr-tests (Files): Likewise.
4766         * modules/mbsrtowcs-tests (Files): Likewise.
4767         * modules/mbsspn-tests (Files): Likewise.
4768         * modules/mbsstr-tests (Files): Likewise.
4769         * modules/memchr-tests (Files): Likewise.
4770         * modules/memchr2-tests (Files): Likewise.
4771         * modules/memcmp-tests (Files): Likewise.
4772         * modules/memmem-tests (Files): Likewise.
4773         * modules/memrchr-tests (Files): Likewise.
4774         * modules/mkdir-tests (Files): Likewise.
4775         * modules/mkfifo-tests (Files): Likewise.
4776         * modules/mkfifoat-tests (Files): Likewise.
4777         * modules/mknod-tests (Files): Likewise.
4778         * modules/nanosleep-tests (Files): Likewise.
4779         * modules/nl_langinfo-tests (Files): Likewise.
4780         * modules/obstack-printf-tests (Files): Likewise.
4781         * modules/open-tests (Files): Likewise.
4782         * modules/openat-tests (Files): Likewise.
4783         * modules/pipe-filter-gi-tests (Files): Likewise.
4784         * modules/pipe-filter-ii-tests (Files): Likewise.
4785         * modules/pipe2-tests (Files): Likewise.
4786         * modules/popen-safer-tests (Files): Likewise.
4787         * modules/popen-tests (Files): Likewise.
4788         * modules/posixtm-tests (Files): Likewise.
4789         * modules/pread-tests (Files): Likewise.
4790         * modules/printf-frexp-tests (Files): Likewise.
4791         * modules/printf-frexpl-tests (Files): Likewise.
4792         * modules/printf-posix-tests (Files): Likewise.
4793         * modules/priv-set-tests (Files): Likewise.
4794         * modules/quotearg-tests (Files): Likewise.
4795         * modules/random_r-tests (Files): Likewise.
4796         * modules/rawmemchr-tests (Files): Likewise.
4797         * modules/rbtree-list-tests (Files): Likewise.
4798         * modules/rbtree-oset-tests (Files): Likewise.
4799         * modules/rbtreehash-list-tests (Files): Likewise.
4800         * modules/readlink-tests (Files): Likewise.
4801         * modules/remove-tests (Files): Likewise.
4802         * modules/rename-tests (Files): Likewise.
4803         * modules/renameat-tests (Files): Likewise.
4804         * modules/rmdir-tests (Files): Likewise.
4805         * modules/round-tests (Files): Likewise.
4806         * modules/roundf-tests (Files): Likewise.
4807         * modules/roundl-tests (Files): Likewise.
4808         * modules/safe-alloc-tests (Files): Likewise.
4809         * modules/setenv-tests (Files): Likewise.
4810         * modules/sigaction-tests (Files): Likewise.
4811         * modules/signbit-tests (Files): Likewise.
4812         * modules/sleep-tests (Files): Likewise.
4813         * modules/snprintf-posix-tests (Files): Likewise.
4814         * modules/snprintf-tests (Files): Likewise.
4815         * modules/sprintf-posix-tests (Files): Likewise.
4816         * modules/stat-tests (Files): Likewise.
4817         * modules/stat-time-tests (Files): Likewise.
4818         * modules/strcasestr-tests (Files): Likewise.
4819         * modules/strchrnul-tests (Files): Likewise.
4820         * modules/strerror-tests (Files): Likewise.
4821         * modules/striconv-tests (Files): Likewise.
4822         * modules/striconveh-tests (Files): Likewise.
4823         * modules/striconveha-tests (Files): Likewise.
4824         * modules/strsignal-tests (Files): Likewise.
4825         * modules/strstr-tests (Files): Likewise.
4826         * modules/strtod-tests (Files): Likewise.
4827         * modules/strverscmp-tests (Files): Likewise.
4828         * modules/symlink-tests (Files): Likewise.
4829         * modules/symlinkat-tests (Files): Likewise.
4830         * modules/trunc-tests (Files): Likewise.
4831         * modules/truncf-tests (Files): Likewise.
4832         * modules/truncl-tests (Files): Likewise.
4833         * modules/uname-tests (Files): Likewise.
4834         * modules/unicase/cased-tests (Files): Likewise.
4835         * modules/unicase/ignorable-tests (Files): Likewise.
4836         * modules/unicase/locale-language-tests (Files): Likewise.
4837         * modules/unicase/tolower-tests (Files): Likewise.
4838         * modules/unicase/totitle-tests (Files): Likewise.
4839         * modules/unicase/toupper-tests (Files): Likewise.
4840         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4841         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4842         * modules/unicase/u8-casefold-tests (Files): Likewise.
4843         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4844         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4845         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4846         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4847         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4848         * modules/unicase/u8-tolower-tests (Files): Likewise.
4849         * modules/unicase/u8-totitle-tests (Files): Likewise.
4850         * modules/unicase/u8-toupper-tests (Files): Likewise.
4851         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4852         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4853         * modules/unicase/u16-casefold-tests (Files): Likewise.
4854         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4855         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4856         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4857         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4858         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4859         * modules/unicase/u16-tolower-tests (Files): Likewise.
4860         * modules/unicase/u16-totitle-tests (Files): Likewise.
4861         * modules/unicase/u16-toupper-tests (Files): Likewise.
4862         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4863         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4864         * modules/unicase/u32-casefold-tests (Files): Likewise.
4865         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4866         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4867         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4868         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4869         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4870         * modules/unicase/u32-tolower-tests (Files): Likewise.
4871         * modules/unicase/u32-totitle-tests (Files): Likewise.
4872         * modules/unicase/u32-toupper-tests (Files): Likewise.
4873         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4874         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4875         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4876         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4877         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4878         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4879         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4880         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4881         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4882         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4883         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4884         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4885         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4886         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4887         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4888         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4889         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4890         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4891         * modules/unictype/block-list-tests (Files): Likewise.
4892         * modules/unictype/block-of-tests (Files): Likewise.
4893         * modules/unictype/block-test-tests (Files): Likewise.
4894         * modules/unictype/category-C-tests (Files): Likewise.
4895         * modules/unictype/category-Cc-tests (Files): Likewise.
4896         * modules/unictype/category-Cf-tests (Files): Likewise.
4897         * modules/unictype/category-Cn-tests (Files): Likewise.
4898         * modules/unictype/category-Co-tests (Files): Likewise.
4899         * modules/unictype/category-Cs-tests (Files): Likewise.
4900         * modules/unictype/category-L-tests (Files): Likewise.
4901         * modules/unictype/category-Ll-tests (Files): Likewise.
4902         * modules/unictype/category-Lm-tests (Files): Likewise.
4903         * modules/unictype/category-Lo-tests (Files): Likewise.
4904         * modules/unictype/category-Lt-tests (Files): Likewise.
4905         * modules/unictype/category-Lu-tests (Files): Likewise.
4906         * modules/unictype/category-M-tests (Files): Likewise.
4907         * modules/unictype/category-Mc-tests (Files): Likewise.
4908         * modules/unictype/category-Me-tests (Files): Likewise.
4909         * modules/unictype/category-Mn-tests (Files): Likewise.
4910         * modules/unictype/category-N-tests (Files): Likewise.
4911         * modules/unictype/category-Nd-tests (Files): Likewise.
4912         * modules/unictype/category-Nl-tests (Files): Likewise.
4913         * modules/unictype/category-No-tests (Files): Likewise.
4914         * modules/unictype/category-P-tests (Files): Likewise.
4915         * modules/unictype/category-Pc-tests (Files): Likewise.
4916         * modules/unictype/category-Pd-tests (Files): Likewise.
4917         * modules/unictype/category-Pe-tests (Files): Likewise.
4918         * modules/unictype/category-Pf-tests (Files): Likewise.
4919         * modules/unictype/category-Pi-tests (Files): Likewise.
4920         * modules/unictype/category-Po-tests (Files): Likewise.
4921         * modules/unictype/category-Ps-tests (Files): Likewise.
4922         * modules/unictype/category-S-tests (Files): Likewise.
4923         * modules/unictype/category-Sc-tests (Files): Likewise.
4924         * modules/unictype/category-Sk-tests (Files): Likewise.
4925         * modules/unictype/category-Sm-tests (Files): Likewise.
4926         * modules/unictype/category-So-tests (Files): Likewise.
4927         * modules/unictype/category-Z-tests (Files): Likewise.
4928         * modules/unictype/category-Zl-tests (Files): Likewise.
4929         * modules/unictype/category-Zp-tests (Files): Likewise.
4930         * modules/unictype/category-Zs-tests (Files): Likewise.
4931         * modules/unictype/category-and-not-tests (Files): Likewise.
4932         * modules/unictype/category-and-tests (Files): Likewise.
4933         * modules/unictype/category-byname-tests (Files): Likewise.
4934         * modules/unictype/category-name-tests (Files): Likewise.
4935         * modules/unictype/category-none-tests (Files): Likewise.
4936         * modules/unictype/category-of-tests (Files): Likewise.
4937         * modules/unictype/category-or-tests (Files): Likewise.
4938         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4939         * modules/unictype/combining-class-tests (Files): Likewise.
4940         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4941         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4942         * modules/unictype/ctype-blank-tests (Files): Likewise.
4943         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4944         * modules/unictype/ctype-digit-tests (Files): Likewise.
4945         * modules/unictype/ctype-graph-tests (Files): Likewise.
4946         * modules/unictype/ctype-lower-tests (Files): Likewise.
4947         * modules/unictype/ctype-print-tests (Files): Likewise.
4948         * modules/unictype/ctype-punct-tests (Files): Likewise.
4949         * modules/unictype/ctype-space-tests (Files): Likewise.
4950         * modules/unictype/ctype-upper-tests (Files): Likewise.
4951         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4952         * modules/unictype/decimal-digit-tests (Files): Likewise.
4953         * modules/unictype/digit-tests (Files): Likewise.
4954         * modules/unictype/mirror-tests (Files): Likewise.
4955         * modules/unictype/numeric-tests (Files): Likewise.
4956         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4957         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4958         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4959         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4960         Likewise.
4961         * modules/unictype/property-bidi-block-separator-tests (Files):
4962         Likewise.
4963         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4964         Likewise.
4965         * modules/unictype/property-bidi-common-separator-tests (Files):
4966         Likewise.
4967         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4968         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4969         Likewise.
4970         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4971         Likewise.
4972         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4973         Likewise.
4974         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4975         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4976         Likewise.
4977         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4978         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4979         Likewise.
4980         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4981         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4982         * modules/unictype/property-bidi-segment-separator-tests (Files):
4983         Likewise.
4984         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4985         * modules/unictype/property-byname-tests (Files): Likewise.
4986         * modules/unictype/property-combining-tests (Files): Likewise.
4987         * modules/unictype/property-composite-tests (Files): Likewise.
4988         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4989         * modules/unictype/property-dash-tests (Files): Likewise.
4990         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4991         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4992         Likewise.
4993         * modules/unictype/property-deprecated-tests (Files): Likewise.
4994         * modules/unictype/property-diacritic-tests (Files): Likewise.
4995         * modules/unictype/property-extender-tests (Files): Likewise.
4996         * modules/unictype/property-format-control-tests (Files): Likewise.
4997         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4998         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4999         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5000         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5001         * modules/unictype/property-hyphen-tests (Files): Likewise.
5002         * modules/unictype/property-id-continue-tests (Files): Likewise.
5003         * modules/unictype/property-id-start-tests (Files): Likewise.
5004         * modules/unictype/property-ideographic-tests (Files): Likewise.
5005         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5006         * modules/unictype/property-ids-trinary-operator-tests (Files):
5007         Likewise.
5008         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5009         * modules/unictype/property-iso-control-tests (Files): Likewise.
5010         * modules/unictype/property-join-control-tests (Files): Likewise.
5011         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5012         * modules/unictype/property-line-separator-tests (Files): Likewise.
5013         * modules/unictype/property-logical-order-exception-tests (Files):
5014         Likewise.
5015         * modules/unictype/property-lowercase-tests (Files): Likewise.
5016         * modules/unictype/property-math-tests (Files): Likewise.
5017         * modules/unictype/property-non-break-tests (Files): Likewise.
5018         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5019         * modules/unictype/property-numeric-tests (Files): Likewise.
5020         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5021         * modules/unictype/property-other-default-ignorable-code-point-tests
5022         (Files): Likewise.
5023         * modules/unictype/property-other-grapheme-extend-tests (Files):
5024         Likewise.
5025         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5026         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5027         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5028         * modules/unictype/property-other-math-tests (Files): Likewise.
5029         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5030         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5031         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5032         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5033         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5034         * modules/unictype/property-private-use-tests (Files): Likewise.
5035         * modules/unictype/property-punctuation-tests (Files): Likewise.
5036         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5037         * modules/unictype/property-radical-tests (Files): Likewise.
5038         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5039         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5040         * modules/unictype/property-space-tests (Files): Likewise.
5041         * modules/unictype/property-terminal-punctuation-tests (Files):
5042         Likewise.
5043         * modules/unictype/property-test-tests (Files): Likewise.
5044         * modules/unictype/property-titlecase-tests (Files): Likewise.
5045         * modules/unictype/property-unassigned-code-value-tests (Files):
5046         Likewise.
5047         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5048         * modules/unictype/property-uppercase-tests (Files): Likewise.
5049         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5050         * modules/unictype/property-white-space-tests (Files): Likewise.
5051         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5052         * modules/unictype/property-xid-start-tests (Files): Likewise.
5053         * modules/unictype/property-zero-width-tests (Files): Likewise.
5054         * modules/unictype/scripts-tests (Files): Likewise.
5055         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5056         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5057         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5058         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5059         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5060         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5061         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5062         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5063         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5064         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5065         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5066         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5067         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5068         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5069         * modules/uninorm/composition-tests (Files): Likewise.
5070         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5071         * modules/uninorm/decomposition-tests (Files): Likewise.
5072         * modules/uninorm/filter-tests (Files): Likewise.
5073         * modules/uninorm/nfc-tests (Files): Likewise.
5074         * modules/uninorm/nfd-tests (Files): Likewise.
5075         * modules/uninorm/nfkc-tests (Files): Likewise.
5076         * modules/uninorm/nfkd-tests (Files): Likewise.
5077         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5078         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5079         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5080         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5081         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5082         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5083         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5084         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5085         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5086         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5087         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5088         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5089         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5090         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5091         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5092         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5093         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5094         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5095         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5096         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5097         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5098         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5099         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5100         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5101         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5102         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5103         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5104         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5105         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5106         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5107         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5108         * modules/uniwidth/u8-width-tests (Files): Likewise.
5109         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5110         * modules/uniwidth/u16-width-tests (Files): Likewise.
5111         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5112         * modules/uniwidth/u32-width-tests (Files): Likewise.
5113         * modules/uniwidth/width-tests (Files): Likewise.
5114         * modules/unlink-tests (Files): Likewise.
5115         * modules/unsetenv-tests (Files): Likewise.
5116         * modules/usleep-tests (Files): Likewise.
5117         * modules/utimens-tests (Files): Likewise.
5118         * modules/utimensat-tests (Files): Likewise.
5119         * modules/vasnprintf-posix-tests (Files): Likewise.
5120         * modules/vasnprintf-tests (Files): Likewise.
5121         * modules/vasprintf-posix-tests (Files): Likewise.
5122         * modules/vasprintf-tests (Files): Likewise.
5123         * modules/vdprintf-posix-tests (Files): Likewise.
5124         * modules/vfprintf-posix-tests (Files): Likewise.
5125         * modules/vprintf-posix-tests (Files): Likewise.
5126         * modules/vsnprintf-posix-tests (Files): Likewise.
5127         * modules/vsnprintf-tests (Files): Likewise.
5128         * modules/vsprintf-posix-tests (Files): Likewise.
5129         * modules/wcrtomb-tests (Files): Likewise.
5130         * modules/wcsnrtombs-tests (Files): Likewise.
5131         * modules/wcsrtombs-tests (Files): Likewise.
5132         * modules/wctype-tests (Files): Likewise.
5133         * modules/wcwidth-tests (Files): Likewise.
5134         * modules/xmemdup0-tests (Files): Likewise.
5135         * modules/xprintf-posix-tests (Files): Likewise.
5136         * modules/xvasprintf-tests (Files): Likewise.
5137
5138 2009-12-24  Eric Blake  <ebb9@byu.net>
5139
5140         test-nanosleep: fix typo
5141         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5142         patch.
5143         Reported by Bruno Haible.
5144
5145 2009-12-24  Bruno Haible  <bruno@clisp.org>
5146
5147         Reduce namespace pollution on glibc systems.
5148         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5149         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5150         systems.
5151         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5152         <getopt.h> on glibc systems.
5153         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5154         systems.
5155         * lib/fcntl.c: Include <unistd.h> here instead.
5156
5157 2009-12-24  Bruno Haible  <bruno@clisp.org>
5158
5159         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5160
5161 2009-12-24  Eric Blake  <ebb9@byu.net>
5162
5163         tests: add signature checks
5164         * tests/signature.h (SIGNATURE_CHECK): New file.
5165         * modules/atexit-tests (Files): Use it.
5166         * modules/btowc-tests (Files): Likewise.
5167         * modules/canonicalize-lgpl-tests (Files): Likewise.
5168         * modules/ceilf-tests (Files): Likewise.
5169         * modules/ceill-tests (Files): Likewise.
5170         * modules/chown-tests (Files): Likewise.
5171         * modules/dprintf-posix-tests (Files): Likewise.
5172         * modules/dup2-tests (Files): Likewise.
5173         * modules/dup3-tests (Files): Likewise.
5174         * modules/duplocale-tests (Files): Likewise.
5175         * modules/fchdir-tests (Files): Likewise.
5176         * modules/fcntl-tests (Files): Likewise.
5177         * modules/fdopendir-tests (Files): Likewise.
5178         * modules/fflush-tests (Files): Likewise.
5179         * modules/flock-tests (Files): Likewise.
5180         * modules/floorf-tests (Files): Likewise.
5181         * modules/floorl-tests (Files): Likewise.
5182         * modules/fnmatch-tests (Files): Likewise.
5183         * modules/fopen-tests (Files): Likewise.
5184         * modules/fprintf-posix-tests (Files): Likewise.
5185         * modules/freopen-tests (Files): Likewise.
5186         * modules/frexp-nolibm-tests (Files): Likewise.
5187         * modules/frexp-tests (Files): Likewise.
5188         * modules/frexpl-nolibm-tests (Files): Likewise.
5189         * modules/frexpl-tests (Files): Likewise.
5190         * modules/fseek-tests (Files): Likewise.
5191         * modules/fseeko-tests (Files): Likewise.
5192         * modules/fsync-tests (Files): Likewise.
5193         * modules/ftell-tests (Files): Likewise.
5194         * modules/ftello-tests (Files): Likewise.
5195         * modules/futimens-tests (Files): Likewise.
5196         * modules/getaddrinfo-tests (Files): Likewise.
5197         * modules/getcwd-tests (Files): Likewise.
5198         * modules/getdelim-tests (Files): Likewise.
5199         * modules/getdtablesize-tests (Files): Likewise.
5200         * modules/getgroups-tests (Files): Likewise.
5201         * modules/gethostname-tests (Files): Likewise.
5202         * modules/getline-tests (Files): Likewise.
5203         * modules/getopt-posix-tests (Files): Likewise.
5204         * modules/gettimeofday-tests (Files): Likewise.
5205         * modules/glob-tests (Files): Likewise.
5206         * modules/iconv-tests (Files): Likewise.
5207         * modules/inet_ntop-tests (Files): Likewise.
5208         * modules/inet_pton-tests (Files): Likewise.
5209         * modules/isblank-tests (Files): Likewise.
5210         * modules/lchown-tests (Files): Likewise.
5211         * modules/ldexpl-tests (Files): Likewise.
5212         * modules/link-tests (Files): Likewise.
5213         * modules/linkat-tests (Files): Likewise.
5214         * modules/lseek-tests (Files): Likewise.
5215         * modules/lstat-tests (Files): Likewise.
5216         * modules/mbrtowc-tests (Files): Likewise.
5217         * modules/mbsinit-tests (Files): Likewise.
5218         * modules/mbsnrtowcs-tests (Files): Likewise.
5219         * modules/mbsrtowcs-tests (Files): Likewise.
5220         * modules/memchr-tests (Files): Likewise.
5221         * modules/memcmp-tests (Files): Likewise.
5222         * modules/memmem-tests (Files): Likewise.
5223         * modules/memrchr-tests (Files): Likewise.
5224         * modules/mkdir-tests (Files): Likewise.
5225         * modules/mkfifo-tests (Files): Likewise.
5226         * modules/mkfifoat-tests (Files): Likewise.
5227         * modules/mknod-tests (Files): Likewise.
5228         * modules/nanosleep-tests (Files): Likewise.
5229         * modules/nl_langinfo-tests (Files): Likewise.
5230         * modules/obstack-printf-tests (Files): Likewise.
5231         * modules/open-tests (Files): Likewise.
5232         * modules/openat-tests (Files): Likewise.
5233         * modules/perror-tests (Files): Likewise.
5234         * modules/pipe2-tests (Files): Likewise.
5235         * modules/poll-tests (Files): Likewise.
5236         * modules/popen-tests (Files): Likewise.
5237         * modules/posix_spawn-tests (Files): Likewise.
5238         * modules/posix_spawnp-tests (Files): Likewise.
5239         * modules/pread-tests (Files): Likewise.
5240         * modules/printf-posix-tests (Files): Likewise.
5241         * modules/pty-tests (Files): Likewise.
5242         * modules/random_r-tests (Files): Likewise.
5243         * modules/rawmemchr-tests (Files): Likewise.
5244         * modules/readlink-tests (Files): Likewise.
5245         * modules/remove-tests (Files): Likewise.
5246         * modules/rename-tests (Files): Likewise.
5247         * modules/renameat-tests (Files): Likewise.
5248         * modules/rmdir-tests (Files): Likewise.
5249         * modules/round-tests (Files): Likewise.
5250         * modules/roundf-tests (Files): Likewise.
5251         * modules/roundl-tests (Files): Likewise.
5252         * modules/select-tests (Files): Likewise.
5253         * modules/setenv-tests (Files): Likewise.
5254         * modules/sigaction-tests (Files): Likewise.
5255         * modules/sleep-tests (Files): Likewise.
5256         * modules/snprintf-posix-tests (Files): Likewise.
5257         * modules/snprintf-tests (Files): Likewise.
5258         * modules/sprintf-posix-tests (Files): Likewise.
5259         * modules/stat-tests (Files): Likewise.
5260         * modules/strcasestr-tests (Files): Likewise.
5261         * modules/strchrnul-tests (Files): Likewise.
5262         * modules/strerror-tests (Files): Likewise.
5263         * modules/strsignal-tests (Files): Likewise.
5264         * modules/strstr-tests (Files): Likewise.
5265         * modules/strtod-tests (Files): Likewise.
5266         * modules/strverscmp-tests (Files): Likewise.
5267         * modules/symlink-tests (Files): Likewise.
5268         * modules/symlinkat-tests (Files): Likewise.
5269         * modules/times-tests (Files): Likewise.
5270         * modules/trunc-tests (Files): Likewise.
5271         * modules/truncf-tests (Files): Likewise.
5272         * modules/truncl-tests (Files): Likewise.
5273         * modules/tsearch-tests (Files): Likewise.
5274         * modules/uname-tests (Files): Likewise.
5275         * modules/unlink-tests (Files): Likewise.
5276         * modules/unsetenv-tests (Files): Likewise.
5277         * modules/usleep-tests (Files): Likewise.
5278         * modules/utimensat-tests (Files): Likewise.
5279         * modules/vasprintf-tests (Files): Likewise.
5280         * modules/vdprintf-posix-tests (Files): Likewise.
5281         * modules/vfprintf-posix-tests (Files): Likewise.
5282         * modules/vprintf-posix-tests (Files): Likewise.
5283         * modules/vsnprintf-posix-tests (Files): Likewise.
5284         * modules/vsnprintf-tests (Files): Likewise.
5285         * modules/vsprintf-posix-tests (Files): Likewise.
5286         * modules/wcrtomb-tests (Files): Likewise.
5287         * modules/wcsnrtombs-tests (Files): Likewise.
5288         * modules/wcsrtombs-tests (Files): Likewise.
5289         * modules/wcwidth-tests (Files): Likewise.
5290         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5291         * tests/test-isinf.c (isinf): Likewise.
5292         * tests/test-isnan.c (isnan): Likewise.
5293         * tests/test-signbit.c (signbit): Likewise.
5294         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5295         declaration, either as macro or with correct signature.
5296         (select): Ensure function under test is declared with correct
5297         signature in correct header.
5298         * tests/test-atexit.c (atexit): Likewise.
5299         * tests/test-btowc.c (btowc): Likewise.
5300         * tests/test-canonicalize-lgpl.c (realpath)
5301         (canonicalize_file_name): Likewise.
5302         * tests/test-ceilf1.c (ceilf): Likewise.
5303         * tests/test-ceill.c (ceill): Likewise.
5304         * tests/test-chown.c (chown): Likewise.
5305         * tests/test-dprintf-posix.c (dprintf): Likewise.
5306         * tests/test-dup2.c (dup2): Likewise.
5307         * tests/test-dup3.c (dup3): Likewise.
5308         * tests/test-duplocale.c (duplocale): Likewise.
5309         * tests/test-fchdir.c (fchdir): Likewise.
5310         * tests/test-fchownat.c (fchownat): Likewise.
5311         * tests/test-fcntl.c (fcntl): Likewise.
5312         * tests/test-fdopendir.c (fdopendir): Likewise.
5313         * tests/test-fflush.c (fflush): Likewise.
5314         * tests/test-flock.c (flock): Likewise.
5315         * tests/test-floorf1.c (floorf): Likewise.
5316         * tests/test-floorl.c (floorl): Likewise.
5317         * tests/test-fnmatch.c (fnmatch): Likewise.
5318         * tests/test-fopen.c (fopen): Likewise.
5319         * tests/test-fprintf-posix.c (fprintf): Likewise.
5320         * tests/test-freopen.c (freopen): Likewise.
5321         * tests/test-frexp.c (frexp): Likewise.
5322         * tests/test-frexpl.c (frexpl): Likewise.
5323         * tests/test-fseek.c (fseek): Likewise.
5324         * tests/test-fseeko.c (fseeko): Likewise.
5325         * tests/test-fstatat.c (fstatat): Likewise.
5326         * tests/test-fsync.c (fsync): Likewise.
5327         * tests/test-ftell.c (ftell): Likewise.
5328         * tests/test-ftello.c (ftello): Likewise.
5329         * tests/test-futimens.c (futimens): Likewise.
5330         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5331         (gai_strerror): Likewise.
5332         * tests/test-getcwd.c (getcwd): Likewise.
5333         * tests/test-getdelim.c (getdelim): Likewise.
5334         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5335         * tests/test-getgroups.c (getgroups): Likewise.
5336         * tests/test-gethostname.c (gethostname): Likewise.
5337         * tests/test-getline.c (getline): Likewise.
5338         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5339         Likewise.
5340         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5341         * tests/test-glob.c (glob, globfree): Likewise.
5342         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5343         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5344         * tests/test-inet_pton.c (inet_pton): Likewise.
5345         * tests/test-isblank.c (isblank): Likewise.
5346         * tests/test-lchown.c (lchown): Likewise.
5347         * tests/test-ldexpl.c (ldexpl): Likewise.
5348         * tests/test-link.c (link): Likewise.
5349         * tests/test-linkat.c (linkat): Likewise.
5350         * tests/test-lseek.c (lseek): Likewise.
5351         * tests/test-lstat.c (lstat): Likewise.
5352         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5353         * tests/test-mbsinit.c (mbsinit): Likewise.
5354         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5355         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5356         * tests/test-memchr.c (memchr): Likewise.
5357         * tests/test-memcmp.c (memcmp): Likewise.
5358         * tests/test-memmem.c (memmem): Likewise.
5359         * tests/test-memrchr.c (memrchr): Likewise.
5360         * tests/test-mkdir.c (mkdir): Likewise.
5361         * tests/test-mkdirat.c (mkdirat): Likewise.
5362         * tests/test-mkfifo.c (mkfifo): Likewise.
5363         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5364         * tests/test-mknod.c (mknod): Likewise.
5365         * tests/test-nanosleep.c (nanosleep): Likewise.
5366         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5367         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5368         Likewise.
5369         * tests/test-open.c (open): Likewise.
5370         * tests/test-openat.c (openat): Likewise.
5371         * tests/test-perror.c (perror): Likewise.
5372         * tests/test-pipe2.c (pipe2): Likewise.
5373         * tests/test-poll.c (poll): Likewise.
5374         * tests/test-popen.c (popen, pclose): Likewise.
5375         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5376         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5377         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5378         (posix_spawn_file_actions_destroy)
5379         (posix_spawn_file_actions_addclose)
5380         (posix_spawn_file_actions_addopen)
5381         (posix_spawn_file_actions_adddup2): Likewise.
5382         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5383         * tests/test-pread.c (pread): Likewise.
5384         * tests/test-printf-posix.c (printf): Likewise.
5385         * tests/test-pty.c (openpty, forkpty): Likewise.
5386         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5387         (random_r): Likewise.
5388         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5389         * tests/test-readlink.c (readlink): Likewise.
5390         * tests/test-remove.c (remove): Likewise.
5391         * tests/test-rename.c (rename): Likewise.
5392         * tests/test-renameat.c (renameat): Likewise.
5393         * tests/test-rmdir.c (rmdir): Likewise.
5394         * tests/test-round1.c (round): Likewise.
5395         * tests/test-roundf1.c (roundf): Likewise.
5396         * tests/test-roundl.c (roundl): Likewise.
5397         * tests/test-setenv.c (setenv): Likewise.
5398         * tests/test-sigaction.c (sigaction): Likewise.
5399         * tests/test-sleep.c (sleep): Likewise.
5400         * tests/test-snprintf.c (snprintf): Likewise.
5401         * tests/test-sprintf-posix.c (sprintf): Likewise.
5402         * tests/test-stat.c (stat): Likewise.
5403         * tests/test-stpncpy.c (stpncpy): Likewise.
5404         * tests/test-strcasestr.c (strcasestr): Likewise.
5405         * tests/test-strchrnul.c (strchrnul): Likewise.
5406         * tests/test-strerror.c (strerror): Likewise.
5407         * tests/test-strsignal.c (strsignal): Likewise.
5408         * tests/test-strstr.c (strstr): Likewise.
5409         * tests/test-strtod.c (strtod): Likewise.
5410         * tests/test-strverscmp.c (strverscmp): Likewise.
5411         * tests/test-symlink.c (symlink): Likewise.
5412         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5413         * tests/test-times.c (times): Likewise.
5414         * tests/test-trunc1.c (trunc): Likewise.
5415         * tests/test-truncf1.c (truncf): Likewise.
5416         * tests/test-truncl.c (truncl): Likewise.
5417         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5418         Likewise.
5419         * tests/test-uname.c (uname): Likewise.
5420         * tests/test-unlink.c (unlink): Likewise.
5421         * tests/test-unlinkat.c (unlinkat): Likewise.
5422         * tests/test-unsetenv.c (unsetenv): Likewise.
5423         * tests/test-usleep.c (usleep): Likewise.
5424         * tests/test-utimensat.c (utimensat): Likewise.
5425         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5426         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5427         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5428         * tests/test-vprintf-posix.c (vprintf): Likewise.
5429         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5430         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5431         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5432         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5433         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5434         * tests/test-wcwidth.c (wcwidth): Likewise.
5435
5436         build: pull in conditional headers during GNULIB_POSIXCHECK
5437         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5438         definitions from any conditionally-included headers.
5439         * lib/stdlib.in.h (includes): Likewise.
5440         * lib/unistd.in.h (includes): Likewise.
5441
5442 2009-12-24  Bruno Haible  <bruno@clisp.org>
5443
5444         * tests/test-argv-iter.c: Include header file being tested immediately
5445         after config.h.
5446         * tests/test-base64.c: Likewise.
5447         * tests/test-flock.c: Likewise.
5448         * tests/test-fsync.c: Likewise.
5449         * tests/test-getdate.c: Likewise.
5450         * tests/test-getndelim2.c: Likewise.
5451         * tests/test-isfinite.c: Likewise.
5452         * tests/test-isinf.c: Likewise.
5453         * tests/test-strerror.c: Likewise.
5454         * tests/test-strsignal.c: Likewise.
5455
5456 2009-12-23  Eric Blake  <ebb9@byu.net>
5457
5458         unistd: work around cygwin bug
5459         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5460         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5461         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5462
5463 2009-12-23  Bruno Haible  <bruno@clisp.org>
5464
5465         localename: More tests.
5466         * tests/test-localename.c (SIZEOF): New macro.
5467         (categories): New variable.
5468         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5469         test_locale_name_default): Add test w.r.t. thread locale.
5470         (test_locale_name_thread): New function.
5471         (main): Invoke it.
5472
5473         localename: Make aware of thread locale.
5474         * lib/localename.h (gl_locale_name_thread): New declaration.
5475         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5476         behaviour with respect to thread locale.
5477         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5478         <langinfo.h>, glthread/lock.h.
5479         (SIZE_BITS): New macro.
5480         (string_hash): New function.
5481         (struct hash_node): New type.
5482         (HASH_TABLE_SIZE): New macro.
5483         (struniq_hash_table, struniq_lock): New variables.
5484         (struniq): New function.
5485         (gl_locale_name_thread): New function.
5486         (gl_locale_name): Invoke it.
5487         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5488         * modules/localename (Depends-on): Add lock.
5489         Reported by Mike Gran <spk121@yahoo.com>.
5490
5491 2009-12-23  Eric Blake  <ebb9@byu.net>
5492
5493         va-args: new module
5494         * modules/va-args: New file.
5495         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5496         * MODULES.html.sh (Core language properties): Mention it.
5497
5498         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5499         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5500         named alias for __attribute__((__unused__)).
5501         * lib/chown.c: Update client.
5502         * lib/fchmodat.c: Likewise.
5503         * lib/fts.c: Likewise.
5504         * lib/getdate.y: Likewise.
5505         * lib/getgroups.c: Likewise.
5506         * lib/getopt.c: Likewise.
5507         * lib/getugroups.c: Likewise.
5508         * lib/mkdir.c: Likewise.
5509         * lib/mkfifo.c: Likewise.
5510         * lib/mkfifoat.c: Likewise.
5511         * lib/mknod.c: Likewise.
5512         * lib/mknodat.c: Likewise.
5513         * lib/readlink.c: Likewise.
5514         * lib/se-context.in.h: Likewise.
5515         * lib/se-selinux.in.h: Likewise.
5516         * lib/sockets.c: Likewise.
5517         * lib/symlink.c: Likewise.
5518         * lib/symlinkat.c: Likewise.
5519         * lib/unicodeio.c: Likewise.
5520         * lib/unistr.h: Likewise.
5521         * tests/test-areadlink.c: Likewise.
5522         * tests/test-areadlinkat.c: Likewise.
5523         * tests/test-filenamecat.c: Likewise.
5524         * tests/test-fseeko.c: Likewise.
5525         * tests/test-ftello.c: Likewise.
5526         * tests/test-getdate.c: Likewise.
5527         * tests/test-getgroups.c: Likewise.
5528         * tests/test-gethostname.c: Likewise.
5529         * tests/test-quotearg.c: Likewise.
5530         * tests/test-version-etc.c: Likewise.
5531         * tests/test-xalloc-die.c: Likewise.
5532         * tests/test-xfprintf-posix.c: Likewise.
5533         * tests/test-xprintf-posix.c: Likewise.
5534         * tests/test-xvasprintf.c: Likewise.
5535
5536         tests: avoid compiler warnings
5537         * tests/test-fcntl.c (main): Delete unused parameters.
5538         * tests/test-freopen-safer.c (main): Likewise.
5539         * tests/test-xalloc-die.c (main): Mark unused parameters.
5540         * tests/test-fseeko.c (main): Likewise.
5541         * tests/test-ftello.c (main): Likewise.
5542         * tests/test-nanosleep.c (main): Avoid declaration warning.
5543         * tests/test-sleep.c (main): Likewise.
5544         * tests/test-unsetenv.c (main): Silence warning about string
5545         literal.
5546         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5547
5548 2009-12-23  Bruno Haible  <bruno@clisp.org>
5549
5550         * tests/test-localename.c (test_locale_name): New function, extracted
5551         from main. Also test mixed situations.
5552         (test_locale_name_posix, test_locale_name_environ,
5553         test_locale_name_default): New functions.
5554         (main): Invoke them all.
5555         * modules/localename-tests (configure.ac): Test for newlocale.
5556
5557 2009-12-23  Bruno Haible  <bruno@clisp.org>
5558
5559         unistd: Ensure getcwd gets declared before being overridden.
5560         * lib/unistd.in.h: Conditionally include <io.h>.
5561
5562 2009-12-22  Bruno Haible  <bruno@clisp.org>
5563
5564         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5565         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5566         (gl_WCHAR_H): Invoke it.
5567         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5568         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5569         Reported by Karl Berry <karl@freefriends.org>.
5570
5571 2009-12-22  Eric Blake  <ebb9@byu.net>
5572
5573         math, unistd: avoid redundant includes
5574         * lib/math.in.h (isnan): No need to re-include <math.h>.
5575         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5576
5577         getsubopt: work around cygwin bug
5578         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5579         avoid conflicting with system getsubopt.
5580         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5581         bug.
5582
5583         getopt: synchronize from glibc
5584         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5585         parameter order.  Adjust all callers.
5586         (_getopt_internal_r, main): Adjust quoting in error messages.
5587         Drop considerations for outdated POSIX 1003.2 error message.
5588         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5589         callers.
5590         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5591
5592         test-getopt: test stderr behavior
5593         * modules/getopt-posix-tests (Depends-on): Add dup2.
5594         * tests/test-getopt.c (ASSERT): Avoid stderr.
5595         (main): Move stderr to a temporary file.
5596         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5597         Instead, add parameter to inform caller if output occurred.
5598         (test_getopt): Adjust all existing tests to expect silence, and
5599         add new tests of leading ":".
5600         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5601         glibc shortcomings with leading "-:" or "+:" in optstring.
5602         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5603         Likewise.
5604         * doc/posix-functions/getopt.texi (getopt): Likewise.
5605
5606         test-getopt: enhance test
5607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5608         supports optind=0.
5609         * tests/test-getopt.c (OPTIND_MIN): Move...
5610         * tests/test-getopt.h (OPTIND_MIN): ...here.
5611         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5612         Require that optind=0 works, since modern BSD supports it in
5613         addition to optreset, and since coreutils expects it.
5614         (test_getopt_long_only): New test.
5615         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5616         glibc shortcomings with 'W;', and enforcement of optind=0.
5617         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5618         Likewise.
5619
5620 2009-12-21  Bruno Haible  <bruno@clisp.org>
5621
5622         localename: Improvements for MacOS X and Cygwin.
5623         * lib/localename.h (gl_locale_name_environ): New declaration.
5624         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5625         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5626         (gl_locale_name_posix): Invoke it.
5627         (gl_locale_name_default): Add comments. Use Windows native API also on
5628         Cygwin.
5629
5630 2009-12-21  Bruno Haible  <bruno@clisp.org>
5631
5632         Update list of Win32 locale ids.
5633         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5634         (LANG_SAMI): Renamed from LANG_SAAMI.
5635         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5636         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5637         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5638         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5639         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5640         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5641         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5642         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5643         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5644         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5645         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5646         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5647         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5648         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5649         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5650         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5651         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5652         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5653         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5654         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5655         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5656         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5657         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5658         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5659         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5660         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5661         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5662         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5663         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5664         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5665         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5666         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5667         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5668         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5669         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5670         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5671         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5672         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5673         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5674         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5675         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5676         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5677         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5678         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5679         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5680         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5681         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5682         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5683         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5684         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5685         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5686         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5687         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5688         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5689         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5690         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5691         Add more languages and countries for Sami, Sorbian. Add more countries
5692         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5693         for Pashto. Change country for Syriac, Tswana.
5694
5695 2009-12-21  Eric Blake  <ebb9@byu.net>
5696
5697         test-utimens: avoid spurious failure
5698         * tests/test-chown.h (nap): Factor...
5699         * tests/nap.h: ...into new file.
5700         * tests/test-lchown.h (nap): Avoid duplication.
5701         * tests/test-utimens-common.h (nap): Use shared implementation,
5702         necessary on file systems with 1-second resolution.
5703         * modules/chown-tests (Files): Include new file.
5704         * modules/fdutimensat-tests (Files): Likewise.
5705         * modules/futimens-tests (Files): Likewise.
5706         * modules/lchown-tests (Files): Likewise.
5707         * modules/openat-tests (Files): Likewise.
5708         * modules/utimens-tests (Files): Likewise.
5709         * modules/utimensat-tests (Files): Likewise.
5710
5711 2009-12-19  Eric Blake  <ebb9@byu.net>
5712
5713         futimens, utimensat: work around Linux bug
5714         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5715         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5716         * lib/utimensat.c (rpl_utimensat): Work around it.
5717         * lib/futimens.c (rpl_futimens): Adjust comment.
5718
5719         utimens: work around Linux ctime bug
5720         * lib/utimens.c (detect_ctime_bug): New helper function.
5721         (update_timespec): Differentiate between workaround needed for
5722         this bug vs. what is needed for systems that lack utimensat.
5723         (fdutimens, lutimens): Work around bug.
5724
5725         utimens: check for ctime update
5726         * tests/test-utimens-common.h (check_ctime): Define.
5727         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5728         * tests/test-futimens.h (test_futimens): Likewise.
5729         * tests/test-lutimens.h (test_lutimens): Likewise.
5730         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5731         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5732
5733 2009-12-19  Bruno Haible  <bruno@clisp.org>
5734
5735         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5736         * tests/test-dprintf-posix2.sh: New file.
5737         * tests/test-dprintf-posix2.c: New file.
5738         * modules/dprintf-posix-tests (Files): Add them.
5739         (configure.ac): Check for getrlimit and setrlimit.
5740         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5741
5742 2009-12-19  Bruno Haible  <bruno@clisp.org>
5743
5744         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5745         * tests/test-fprintf-posix3.sh: New file.
5746         * tests/test-fprintf-posix3.c: New file.
5747         * modules/fprintf-posix-tests (Files): Add them.
5748         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5749
5750 2009-12-19  Eric Blake  <ebb9@byu.net>
5751
5752         dirfd: fix prototype
5753         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5754         * lib/dirfd.c (dirfd): Likewise.
5755
5756         canonicalize: reduce memory usage
5757         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5758         allocation to size.
5759         Reported by Solar Designer <solar@openwall.com>.
5760
5761 2009-12-19  Bruno Haible  <bruno@clisp.org>
5762
5763         New module attribute 'Applicability'.
5764         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5765         * gnulib-tool: New option --extract-applicability.
5766         (func_usage): Document it.
5767         (sed_extract_prog): Recognize it.
5768         (func_get_applicability): New function.
5769         (func_import): Generalize handling of 'link-warning' module.
5770         * modules/link-warning (Applicability): New section.
5771         * modules/arg-nonnull (Applicability): New section.
5772         Repoted by Simon Josefsson <simon@josefsson.org>.
5773
5774 2009-12-19  Bruno Haible  <bruno@clisp.org>
5775
5776         fflush: tweak
5777         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5778         * lib/fseeko.c (rpl_fseeko): Likewise.
5779
5780 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5781
5782         * lib/gl_list.h: Fix typo in comment.
5783
5784 2009-12-16  Eric Blake  <ebb9@byu.net>
5785
5786         fcntl: use to simplify other modules
5787         * modules/cloexec (Depends-on): Add fcntl.
5788         * modules/fchdir (Depends-on): Likewise.
5789         * modules/fd-safer-flag (Depends-on): Likewise.
5790         * modules/unistd-safer (Depends-on): Likewise.
5791         * modules/dup3 (configure.ac): Set module indicator.
5792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5793         missing.
5794         * lib/fchdir.c (_gl_register_dup): Fix comment.
5795         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5796         * lib/dup-safer.c (dup_safer): Likewise.
5797         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5798         * lib/dup3.c (dup3): Likewise.
5799         * tests/test-fchdir.c (main): Enhance test.
5800         Fixes a dup_cloexec bug reported by Ondřej Vašík.
5801
5802         fcntl: port portions of fcntl to mingw
5803         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5804         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5805         replacement for mingw.
5806         * modules/fcntl (Description): Update.
5807         (Depends-on): Add dup2.
5808         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5809         * modules/fcntl-h (Makefile.am): Substitute it.
5810         * lib/fcntl.in.h (fcntl): Update declaration.
5811         (F_DUPFD, F_GETFD): New macros, when needed.
5812         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5813         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5814         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5815         we now guarantee.
5816
5817         fcntl: work around cygwin bug in F_DUPFD
5818         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5819         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5820         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5821         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5822         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5823
5824         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5825         * modules/fcntl (Files): List new files.
5826         (configure.ac): Run a test.
5827         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5828         * lib/fcntl.c (rpl_fcntl): Likewise.
5829         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5830         (gl_FCNTL_H): Always replace fcntl.h.
5831         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5832         * lib/fcntl.in.h (fcntl): Declare replacement.
5833         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5834         needed, plus a witness.
5835         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5836         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5837         * tests/test-fcntl.c: New file.
5838         * modules/fcntl-tests: Likewise.
5839
5840         binary-io: avoid potential compilation warning
5841         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5842         directives.
5843
5844         fflush: avoid compilation error on NetBSD
5845         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5846         between off_t and fpos_t, since the latter is sometimes a struct.
5847         * lib/fseeko.c (rpl_fseeko): Likewise.
5848         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5849
5850 2009-12-15  Eric Blake  <ebb9@byu.net>
5851
5852         fcntl-h, stdio, sys_ioctl: fix declarations
5853         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5854         function must not take arguments.
5855         * lib/sys_ioctl.in.h (ioctl): Likewise.
5856         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5857         (open): Add a link warning.
5858
5859 2009-12-15  Jim Meyering  <meyering@redhat.com>
5860
5861         areadlink, areadlink-with-size: relax license to LGPLv2+
5862         * modules/areadlink (License): Relax to LGPLv2+.
5863         * modules/areadlink-with-size (License): Likewise.
5864
5865 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5866             Bruno Haible  <bruno@clisp.org>
5867
5868         *printf: Fix memory leak.
5869         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5870         * lib/vfprintf.c (vfprintf): Likewise.
5871         * lib/dprintf.c (dprintf): Likewise.
5872         * lib/vdprintf.c (vdprintf): Likewise.
5873
5874 2009-12-14  Eric Blake  <ebb9@byu.net>
5875
5876         accept4: adjust module dependencies
5877         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5878
5879         utimens: one more try at avoiding compiler warning
5880         * lib/utimens.c (lutimens): Lower scope of result.
5881
5882 2009-12-13  Bruno Haible  <bruno@clisp.org>
5883
5884         Move the malloc checking from module 'list' to new module 'xlist'.
5885         * modules/xlist: New file.
5886         * lib/gl_xlist.h: New file.
5887         * lib/gl_xlist.c: New file.
5888         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5889         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5890         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5891         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5892         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5893         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5894         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5895         gl_sortedlist_nx_add): New declarations.
5896         (struct gl_list_implementation): Rename and change methods accordingly.
5897         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5898         (gl_list_nx_create): Renamed from gl_list_create.
5899         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5900         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5901         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5902         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5903         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5904         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5905         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5906         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5907         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5908         gl_list_create_empty.
5909         (gl_list_nx_create): Renamed from gl_list_create.
5910         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5911         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5912         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5913         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5914         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5915         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5916         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5917         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5918         * lib/gl_array_list.c: Don't include xalloc.h.
5919         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5920         NULL upon out-of-memory.
5921         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5922         out-of-memory.
5923         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5924         Change return type to 'int'.
5925         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5926         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5927         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5928         upon out-of-memory.
5929         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5930         upon out-of-memory.
5931         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5932         upon out-of-memory.
5933         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5934         upon out-of-memory.
5935         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5936         out-of-memory.
5937         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5938         Update.
5939         (gl_array_list_implementation): Update.
5940         * lib/gl_carray_list.c: Don't include xalloc.h.
5941         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5942         Return NULL upon out-of-memory.
5943         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5944         out-of-memory.
5945         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5946         Change return type to 'int'.
5947         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5948         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5949         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5950         upon out-of-memory.
5951         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5952         upon out-of-memory.
5953         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5954         out-of-memory.
5955         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5956         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5957         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5958         Update.
5959         (gl_carray_list_implementation): Update.
5960         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5961         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5962         gl_linked_create_empty. Return NULL upon out-of-memory.
5963         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5964         out-of-memory.
5965         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5966         Change return type to 'int'. Return -1 upon out-of-memory.
5967         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5968         out-of-memory.
5969         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5970         upon out-of-memory.
5971         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5972         upon out-of-memory.
5973         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5974         NULL upon out-of-memory.
5975         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5976         upon out-of-memory.
5977         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5978         out-of-memory.
5979         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5980         Update.
5981         * lib/gl_linked_list.c: Don't include xalloc.h.
5982         (gl_linked_list_implementation): Update.
5983         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5984         (add_to_bucket): Change return type to 'int'.
5985         (gl_linkedhash_list_implementation): Update.
5986         * lib/gl_anytree_list1.h (free_subtree): New function.
5987         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5988         gl_tree_create_empty. Return NULL upon out-of-memory.
5989         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5990         Change return type to 'int'. Return -1 upon out-of-memory.
5991         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5992         out-of-memory.
5993         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5994         (gl_tree_remove_node): New function, moved here from
5995         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5996         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5997         Update.
5998         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5999         malloc, not xmalloc. Return NULL upon out-of-memory.
6000         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6001         out-of-memory.
6002         (gl_tree_remove_node_from_tree): New function, extracted from
6003         gl_tree_remove_node.
6004         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6005         upon out-of-memory.
6006         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6007         out-of-memory.
6008         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6009         upon out-of-memory.
6010         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6011         upon out-of-memory.
6012         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6013         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6014         not xmalloc. Return NULL upon out-of-memory.
6015         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6016         out-of-memory.
6017         (gl_tree_remove_node_from_tree): New function, extracted from
6018         gl_tree_remove_node.
6019         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6020         upon out-of-memory.
6021         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6022         out-of-memory.
6023         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6024         upon out-of-memory.
6025         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6026         upon out-of-memory.
6027         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6028         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6029         gl_anytree_list1.h before gl_anyavltree_list2.h.
6030         (gl_avltree_list_implementation): Update.
6031         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6032         gl_anytree_list1.h before gl_anyavltree_list2.h.
6033         (gl_rbtree_list_implementation): Update.
6034         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6035         Change return type to 'int'. Return -1 upon out-of-memory. Use
6036         __builtin_expect.
6037         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6038         (gl_avltreehash_list_implementation): Update.
6039         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6040         (gl_rbtreehash_list_implementation): Update.
6041         * modules/array-list (Depends-on): Remove xalloc.
6042         * modules/carray-list (Depends-on): Likewise.
6043         * modules/linked-list (Depends-on): Likewise.
6044         * modules/linkedhash-list (Depends-on): Likewise.
6045         * modules/avltree-list (Depends-on): Likewise.
6046         * modules/rbtree-list (Depends-on): Likewise.
6047         * modules/avltreehash-list (Depends-on): Likewise.
6048         * modules/rbtreehash-list (Depends-on): Likewise.
6049
6050         * modules/xsublist: New file.
6051         * lib/gl_xsublist.h: New file.
6052         * lib/gl_xsublist.c: New file.
6053         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6054         (gl_sublist_nx_create): New declaration.
6055         * lib/gl_sublist.c: Don't include xalloc.h.
6056         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6057         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6058         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6059         Change return type to 'int'. Return -1 upon out-of-memory.
6060         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6061         upon out-of-memory.
6062         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6063         NULL upon out-of-memory.
6064         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6065         upon out-of-memory.
6066         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6067         NULL upon out-of-memory.
6068         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6069         NULL upon out-of-memory.
6070         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6071         upon out-of-memory.
6072         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6073         (gl_sublist_list_implementation): Update.
6074         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6075         upon out-of-memory.
6076         * modules/sublist (Depends-on): Remove xalloc.
6077
6078         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6079         * tests/test-carray_list.c: Likewise.
6080         * tests/test-linked_list.c: Likewise.
6081         * tests/test-linkedhash_list.c: Likewise.
6082         * tests/test-avltree_list.c: Likewise.
6083         * tests/test-rbtree_list.c: Likewise.
6084         * tests/test-avltreehash_list.c: Likewise.
6085         * tests/test-rbtreehash_list.c: Likewise.
6086         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6087         * modules/carray-list-tests (Makefile.am): Likewise.
6088         * modules/linked-list-tests (Makefile.am): Likewise.
6089         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6090         * modules/avltree-list-tests (Makefile.am): Likewise.
6091         * modules/rbtree-list-tests (Makefile.am): Likewise.
6092         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6093         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6094
6095         * NEWS: Mention the changes.
6096
6097         * lib/clean-temp.c: Include gl_xlist.h.
6098         * modules/clean-temp (Depends-on): Add xlist.
6099
6100         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6101         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6102
6103         * tests/test-array_oset.c: Include gl_xlist.h.
6104         * modules/array-oset-tests (Depends-on): Add xlist.
6105
6106         Reported by José E. Marchesi <jemarch@gnu.org>.
6107
6108 2009-12-13  Bruno Haible  <bruno@clisp.org>
6109
6110         Move the malloc checking from module 'oset' to new module 'xoset'.
6111         * modules/xoset: New file.
6112         * lib/gl_xoset.h: New file.
6113         * lib/gl_xoset.c: New file.
6114         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6115         declarations.
6116         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6117         (struct gl_oset_implementation): Rename and change methods accordingly.
6118         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6119         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6120         'int'. Mark as __warn_unused_result__.
6121         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6122         gl_oset_create_empty.
6123         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6124         'int'.
6125         * lib/gl_array_oset.c: Don't include xalloc.h.
6126         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6127         malloc, not xmalloc.
6128         (grow): Change return type to 'int'. Don't call xalloc_die.
6129         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6130         to 'int'.
6131         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6132         'int'.
6133         (gl_array_oset_implementation): Update.
6134         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6135         gl_tree_create_empty.
6136         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6137         'int'.
6138         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6139         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6140         xmalloc.
6141         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6142         not xmalloc.
6143         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6144         xmalloc.
6145         (gl_avltree_oset_implementation): Update.
6146         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6147         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6148         xmalloc.
6149         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6150         not xmalloc.
6151         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6152         xmalloc.
6153         (gl_rbtree_oset_implementation): Update.
6154         * modules/array-oset (Depends-on): Remove xalloc.
6155         * modules/avltree-oset (Depends-on): Likewise.
6156         * modules/rbtree-oset (Depends-on): Likewise.
6157         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6158         * tests/test-avltree_oset.c: Likewise.
6159         * tests/test-rbtree_oset.c: Likewise.
6160         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6161         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6162         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6163         * NEWS: Mention the change.
6164
6165 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6166
6167         maint.mk: allow a project to override release-prep commands
6168         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6169         commands into a new rule.
6170         (release-prep): New rule.
6171         (release-prep-hook): New overridable variable.
6172
6173 2009-12-13  Bruno Haible  <bruno@clisp.org>
6174
6175         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6176
6177 2009-12-13  Jim Meyering  <meyering@redhat.com>
6178
6179         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6180         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6181
6182 2009-12-12  Bruno Haible  <bruno@clisp.org>
6183
6184         duplocale: Tweak.
6185         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6186
6187 2009-12-12  Karl Berry  <karl@gnu.org>
6188
6189         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6190
6191 2009-12-12  Bruno Haible  <bruno@clisp.org>
6192
6193         * m4/po.m4: Undo incorrect untabification.
6194
6195 2009-12-12  Bruno Haible  <bruno@clisp.org>
6196
6197         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6198         * modules/c-strtod (Depends-on): Add locale.
6199         * modules/c-strtold (Depends-on): Likewise.
6200
6201 2009-12-12  Bruno Haible  <bruno@clisp.org>
6202
6203         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6204
6205 2009-12-11  Eric Blake  <ebb9@byu.net>
6206
6207         setenv: relax requirement in light of POSIX ruling
6208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6209         not NULL.
6210         * tests/test-setenv.c (main): Relax test.
6211         * tests/test-unsetenv.c (main): Likewise.
6212         * doc/posix-functions/setenv.texi (setenv): Document this.
6213         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6214
6215 2009-12-11  Bruno Haible  <bruno@clisp.org>
6216
6217         New module 'fd-safer-flag'.
6218         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6219         * lib/dup-safer.c (dup_safer_flag): Remove function.
6220         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6221         * lib/fd-safer.c (fd_safer_flag): Remove function.
6222         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6223         * modules/cloexec (configure.ac): Drop indicator macro.
6224         * modules/fd-safer-flag: New file.
6225         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6226         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6227         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6228
6229 2009-12-11  Bruno Haible  <bruno@clisp.org>
6230
6231         Tests for module 'nl_langinfo'.
6232         * modules/nl_langinfo-tests: New file.
6233         * tests/test-nl_langinfo.sh: New file.
6234         * tests/test-nl_langinfo.c: New file.
6235
6236         New module 'nl_langinfo'.
6237         * lib/nl_langinfo.c: New file.
6238         * m4/nl_langinfo.m4: New file.
6239         * modules/nl_langinfo: New file.
6240         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6241
6242 2009-12-11  Bruno Haible  <bruno@clisp.org>
6243
6244         Tests for module 'langinfo'.
6245         * modules/langinfo-tests: New file.
6246         * tests/test-langinfo.c: New file.
6247
6248         New module 'langinfo'.
6249         * lib/langinfo.in.h: New file.
6250         * m4/langinfo_h.m4: New file.
6251         * modules/langinfo: New file.
6252         * doc/posix-headers/langinfo.texi: Mention the new module.
6253
6254 2009-12-11  Bruno Haible  <bruno@clisp.org>
6255
6256         * lib/config.charset: Untabify.
6257
6258 2009-12-11  Bruno Haible  <bruno@clisp.org>
6259
6260         * modules/unistd-safer (configure.ac): Drop indicator macro.
6261
6262 2009-12-11  Bruno Haible  <bruno@clisp.org>
6263
6264         Move pipe2-safer code to its own file.
6265         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6266         * lib/pipe-safer.c (pipe2_safer): Remove function.
6267         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6268         (Makefile.am): Add it to lib_SOURCES.
6269
6270 2009-12-10  Bruno Haible  <bruno@clisp.org>
6271
6272         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6273
6274 2009-12-10  Bruno Haible  <bruno@clisp.org>
6275
6276         Declare which arguments expect non-NULL values, for GCC and clang.
6277         * build-aux/arg-nonnull.h: New file.
6278         * modules/arg-nonnull: New file.
6279         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6280         (inet_ntop, inet_pton): Use it.
6281         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6282         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6283         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6284         (open, openat): Use it.
6285         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6286         (fnmatch): Use it.
6287         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6288         (getopt, getopt_long, getopt_long_only): Use it.
6289         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6290         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6291         Use it.
6292         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6293         (iconv_open): Use it.
6294         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6295         (strtoimax, strtoumax): Use it.
6296         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6297         (duplocale): Use it.
6298         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6299         (frexp, frexpl): Use it.
6300         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6301         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6302         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6303         (tsearch, tfind, tdelete, twalk): Use it.
6304         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6305         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6306         sigpending): Use it.
6307         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6308         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6309         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6310         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6311         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6312         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6313         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6314         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6315         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6316         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6317         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6318         Use it.
6319         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6320         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6321         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6322         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6323         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6324         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6325         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6326         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6327         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6328         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6329         strtoull, unsetenv): Use it.
6330         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6331         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6332         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6333         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6334         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6335         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6336         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6337         (strcasecmp, strncasecmp): Use it.
6338         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6339         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6340         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6341         rpl_setsockopt): Use it.
6342         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6343         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6344         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6345         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6346         (gettimeofday): Use it.
6347         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6348         (times): Use it.
6349         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6350         (uname): Use it.
6351         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6352         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6353         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6354         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6355         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6356         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6357         unlinkat, write): Use it.
6358         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6359         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6360         * lib/argv-iter.h: Include arg-nonnull.h.
6361         (_ATTRIBUTE_NONNULL_): Remove macro.
6362         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6363         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6364         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6365         optimization.
6366         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6367         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6368         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6369         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6370         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6371         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6372         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6373         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6374         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6375         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6376         * modules/dirent (Depends-on): Add arg-nonnull.
6377         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6378         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6379         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6380         * modules/fnmatch (Depends-on): Add arg-nonnull.
6381         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6382         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6383         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6384         * modules/glob (Depends-on): Add arg-nonnull.
6385         (Makefile.am): Insert arg-nonnull.h into glob.h.
6386         * modules/iconv_open (Depends-on): Add arg-nonnull.
6387         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6388         * modules/inttypes (Depends-on): Add arg-nonnull.
6389         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6390         * modules/locale (Depends-on): Add arg-nonnull.
6391         (Makefile.am): Insert arg-nonnull.h into locale.h.
6392         * modules/math (Depends-on): Add arg-nonnull.
6393         (Makefile.am): Insert arg-nonnull.h into math.h.
6394         * modules/netdb (Depends-on): Add arg-nonnull.
6395         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6396         * modules/search (Depends-on): Add arg-nonnull.
6397         (Makefile.am): Insert arg-nonnull.h into search.h.
6398         * modules/signal (Depends-on): Add arg-nonnull.
6399         (Makefile.am): Insert arg-nonnull.h into signal.h.
6400         * modules/spawn (Depends-on): Add arg-nonnull.
6401         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6402         * modules/stdio (Depends-on): Add arg-nonnull.
6403         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6404         * modules/stdlib (Depends-on): Add arg-nonnull.
6405         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6406         * modules/string (Depends-on): Add arg-nonnull.
6407         (Makefile.am): Insert arg-nonnull.h into string.h.
6408         * modules/strings (Depends-on): Add arg-nonnull.
6409         (Makefile.am): Insert arg-nonnull.h into strings.h.
6410         * modules/sys_socket (Depends-on): Add arg-nonnull.
6411         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6412         * modules/sys_stat (Depends-on): Add arg-nonnull.
6413         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6414         * modules/sys_time (Depends-on): Add arg-nonnull.
6415         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6416         * modules/sys_times (Depends-on): Add arg-nonnull.
6417         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6418         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6419         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6420         * modules/time (Depends-on): Add arg-nonnull.
6421         (Makefile.am): Insert arg-nonnull.h into time.h.
6422         * modules/unistd (Depends-on): Add arg-nonnull.
6423         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6424         * modules/wchar (Depends-on): Add arg-nonnull.
6425         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6426         * modules/argv-iter (Depends-on): Add arg-nonnull.
6427         * tests/test-canonicalize.c (null_ptr): New function.
6428         (main): Use it.
6429         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6430         (main): Use it.
6431         * tests/test-memmem.c (null_ptr): New function.
6432         (main): Use it.
6433         Reported by Jim Meyering.
6434
6435 2009-12-10  Bruno Haible  <bruno@clisp.org>
6436
6437         Use spaces for indentation, not tabs.
6438         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6439         * m4/*.m4: Untabify.
6440         * build-aux/*.h: Untabify.
6441         * tests/**/*.[hc]: Untabify.
6442         * README: New section "Indent with spaces, not TABs", based on
6443         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6444         * NEWS: Mention the change.
6445
6446 2009-12-10  Bruno Haible  <bruno@clisp.org>
6447
6448         pty test: Fix link error.
6449         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6450         test_pty_LDADD.
6451
6452 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6453
6454         * modules/pty: New file.
6455         * modules/pty-tests: New file.
6456         * m4/pty.m4: New file.
6457         * tests/test-pty.c: New file.
6458         * doc/glibc-headers/pty.texi: Modified.
6459         * doc/glibc-functions/forkpty.texi: Modified.
6460         * doc/glibc-functions/openpty.texi: Modified.
6461
6462 2009-12-10  Bruno Haible  <bruno@clisp.org>
6463
6464         Avoid syntax error in C++ mode.
6465         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6466
6467 2009-12-10  Bruno Haible  <bruno@clisp.org>
6468
6469         Use sed with option -e.
6470         * gnulib-tool (func_version, func_emit_copyright_notice,
6471         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6472         option -e to sed.
6473         * modules/link-warning (Makefile.am): Likewise.
6474
6475 2009-12-10  Jim Meyering  <meyering@redhat.com>
6476
6477         mgetgroups: do not write bytes beyond end of malloc'd buffer
6478         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6479         username, we call getgroups with a one-element-shorter buffer,
6480         but still told it the length was original, max_n_groups.
6481
6482 2009-12-09  Eric Blake  <ebb9@byu.net>
6483
6484         cloexec: relax license
6485         * modules/cloexec (Maintainer): Add myself.
6486         (License): Use LGPL, not GPL.
6487
6488         link-warning: optimize generation
6489         * modules/link-warning (Makefile.am): Reduce process usage.
6490
6491 2009-12-09  Bruno Haible  <bruno@clisp.org>
6492
6493         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6494         workaround was added on 2009-11-17.
6495
6496 2009-12-09  Jim Meyering  <meyering@redhat.com>
6497             Bruno Haible  <bruno@clisp.org>
6498
6499         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6500         * modules/link-warning (Makefile.am): Make the comment-removing sed
6501         command more robust in the face of bootstrap-prepended comment lines.
6502
6503 2009-12-09  Bruno Haible  <bruno@clisp.org>
6504
6505         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6506         most one group.
6507
6508 2009-12-09  Simon Josefsson <simon@josefsson.org>
6509             Bruno Haible  <bruno@clisp.org>
6510
6511         * build-aux/link-warning.h: Add copyright notice.
6512         * modules/link-warning (Makefile.am): Generate link-warning.h from
6513         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6514         * NEWS: Mention change in link-warning module.
6515         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6516         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6517         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6518         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6519         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6520         * modules/math (Makefile.am): Add dependency to math.h.
6521         * modules/search (Makefile.am): Add dependency to search.h.
6522         * modules/signal (Makefile.am): Add dependency to signal.h.
6523         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6524         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6525         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6526         * modules/string (Makefile.am): Add dependency to string.h.
6527         * modules/strings (Makefile.am): Add dependency to strings.h.
6528         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6529         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6530         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6531         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6532         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6533         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6534         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6535         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6536         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6537
6538 2009-12-09  Bruno Haible  <bruno@clisp.org>
6539
6540         fchdir: Optimize away rpl_fstat when possible.
6541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6542         REPLACE_OPEN_DIRECTORY.
6543         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6544
6545 2009-12-09  Bruno Haible  <bruno@clisp.org>
6546
6547         * lib/fchdir.c: Update comment.
6548
6549 2009-12-09  Bruno Haible  <bruno@clisp.org>
6550
6551         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6552
6553 2009-12-08  Eric Blake  <ebb9@byu.net>
6554
6555         fchdir: avoid memory leak on re-registration.
6556         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6557
6558 2009-12-08  Jim Meyering  <meyering@redhat.com>
6559
6560         init.sh: avoid Solaris 10 /bin/sh portability problem
6561         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6562         sourced script:
6563           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6564           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6565           bar
6566         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6567         and two tests used that idiom.
6568         * tests/init.sh: Update suggested usage comments.
6569         (path_prepend_): New function, to be used in place
6570         of the --src-path=DIR option.
6571         (setup_): Move PATH-prepending code into path_prepend_.
6572         * tests/test-pread.sh: Adapt to new usage.
6573         * tests/test-xalloc-die.sh: Likewise.
6574
6575 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6576
6577         * doc/gnulib.texi (Glibc pty.h): Add.
6578         * doc/glibc-functions/forkpty.texi: Add.
6579         * doc/glibc-functions/openpty.texi: Add.
6580         Suggested by Bruno Haible.
6581
6582 2009-12-08  Eric Blake  <ebb9@byu.net>
6583
6584         fchdir: fix logic bugs
6585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6586         * tests/test-fchdir.c (main): Enhance test.
6587         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6588         is in use.
6589
6590         dup2: fix logic bugs
6591         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6592         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6593         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6594         exists.
6595         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6596
6597 2009-12-07  Eric Blake  <ebb9@byu.net>
6598
6599         unlink: fix m4 detection
6600         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6601
6602         unistd-safer: add unit test
6603         * modules/unistd-safer-tests: New file.
6604         * tests/test-dup-safer.c: Likewise.
6605         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6606         * tests/test-dup2.c (setmode): Likewise.
6607         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6608
6609         cloexec: preserve text vs. binary across dup_cloexec
6610         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6611         mode.
6612         * modules/dup2-tests (Depends-on): Add binary-io.
6613         * modules/cloexec-tests (Depends-on): Likewise.
6614         * tests/test-dup2.c (setmode, is_mode): New helpers.
6615         (main): Add tests that translation mode is preserved.
6616         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6617         Reported by Bruno Haible.
6618
6619         mgetgroups: reduce duplicate listings
6620         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6621         resulting array.
6622         * tests/test-chown.h (test_chown): Simplify client.
6623         * tests/test-lchown.h (test_lchown): Likewise.
6624
6625 2009-12-06  Bruno Haible  <bruno@clisp.org>
6626
6627         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6628         value.
6629
6630 2009-12-06  Bruno Haible  <bruno@clisp.org>
6631
6632         * lib/progname.c: Include stdio.h, stdlib.h.
6633         (set_program_name): Reject a NULL argument.
6634
6635 2009-12-05  Eric Blake  <ebb9@byu.net>
6636
6637         pipe2-safer: new module
6638         * modules/pipe2-safer: New file.
6639         * lib/unistd-safer.h (pipe2_safer): New prototype.
6640         * lib/unistd--.h (pipe2): New wrapper.
6641         * lib/pipe-safer.c (pipe2_safer): New function.
6642         * modules/pipe (Depends-on): Add pipe2-safer.
6643         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6644
6645         stdlib-safer: preserve cloexec flag for mkostemp[s]
6646         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6647         fd_safer_flag.
6648
6649         unistd-safer: allow preservation of cloexec status via flag
6650         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6651         prototypes.
6652         * lib/dup-safer.c (dup_safer_flag): New function.
6653         * lib/fd-safer.c (fd_safer_flag): Likewise.
6654         * modules/cloexec (configure.ac): Set witness.
6655
6656         test-dup2: enhance test
6657         * modules/dup2-tests (Depends-on): Add cloexec.
6658         * tests/test-dup2.c (main): Enhance test.
6659
6660         cloexec: add dup_cloexec
6661         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6662         header and comments.
6663         * lib/cloexec.c (set_cloexec_flag): Add comments.
6664         (dup_cloexec): New function, with mingw implementation borrowed
6665         from...
6666         * lib/w32spawn.h (dup_noinherit): ...here.
6667         * modules/execute (Depends-on): Add cloexec.
6668         * modules/pipe (Depends-on): Likewise.
6669         * modules/cloexec (Depends-on): Add dup2.
6670         * modules/cloexec-tests (Files): New file.
6671         * tests/test-cloexec.c: Likewise.
6672
6673         test-xalloc-die: fix test for mingw
6674         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6675         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6676         directory and .exe suffix off argv[0] output.
6677
6678         test-fseeko: fix test for mingw
6679         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6680         than undefining fseek, so test will pass on mingw.
6681
6682 2009-12-05  Bruno Haible  <bruno@clisp.org>
6683
6684         * lib/progname.h (set_program_name): Clarify specification.
6685         * lib/progname.c (set_program_name): Likewise.
6686         Reported by Jim Meyering.
6687
6688 2009-12-05  Jim Meyering  <meyering@redhat.com>
6689
6690         maint.mk: backslash-escape parens in default regexp
6691         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6692         backslash-escape the literal parentheses.
6693
6694         maint.mk: news-date-check: use grep -E
6695         * top/maint.mk (today): Define a Make variable, not a...
6696         (news-date-check): ...shell variable.
6697         (news-date-regexp): Use the Make variable.
6698         Use grep's -E option.  Change the failing diagnostic to mention
6699         the variable, $(news-date-regexp).
6700
6701 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6702
6703         maintainer-makefile: allow customization of NEWS entry format
6704         * top/maint.mk (news-date-regexp): New overridable variable.
6705         (news-date-check): Use it.
6706
6707 2009-12-04  Eric Blake  <ebb9@byu.net>
6708
6709         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6710         * lib/mgetgroups.h (xgetgroups): New prototype.
6711         * lib/mgetgroups.c (xgetgroups): New wrapper.
6712         (mgetgroups): Handle ENOSYS.
6713         * modules/mgetgroups (Depends-on): Add realloc.
6714         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6715
6716         mgetgroups: avoid argument promotion issues with -1
6717         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6718         for invalid gid_t.
6719         * tests/test-chown.h (getegid, test_chown): Likewise.
6720         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6721
6722 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6723
6724         exclude: Fix header file problems.
6725         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6726
6727 2009-12-01  Jim Meyering  <meyering@redhat.com>
6728
6729         fts: fts_open: do not let an empty string cause immediate failure
6730         This is required in support of GNU rm, for which the command
6731         "rm A '' B" must process and remove both A and B, in spite of
6732         the empty string argument.
6733         * lib/fts.c (fts_open): Do not let the presence of an empty string
6734         cause fts_open to fail immediately.  Most fts-using tools must be
6735         able to process all arguments, in order, and can be expected to
6736         diagnose such arguments themselves.
6737
6738 2009-11-30  Eric Blake  <ebb9@byu.net>
6739
6740         utimens: fix compilation error
6741         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6742         Declare variable at right scope.
6743
6744 2009-11-29  Jim Meyering  <meyering@redhat.com>
6745
6746         bootstrap: handle perl-5.11's changed --version output
6747         * build-aux/bootstrap (get_version): Handle perl separately,
6748         since perl-5.11's --version output is different.
6749
6750 2009-11-28  Jim Meyering  <meyering@redhat.com>
6751
6752         userspec: depend on the inttostr module, too
6753         * modules/userspec (Depends-on): Add inttostr.
6754
6755         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6756         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6757         number of MAXUID when it evaluates to (uid_t) -1.
6758         Likewise for group ID.  Reported by Matt McCutchen in
6759         <http://savannah.gnu.org/bugs/?28113>
6760
6761         userspec: reformat to use spaces, not TABs
6762         * lib/userspec.c: Expand TABs to spaces.
6763         Add Emacs' "indent-tabs-mode: nil" hint.
6764
6765 2009-11-27  Eric Blake  <ebb9@byu.net>
6766
6767         getopt-gnu: flush out another BSD bug
6768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6769         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6770         flush out BSD bug.
6771         * tests/test-getopt.h (test_getopt): End lists with NULL.
6772         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6773         (test_getopt_long_posix): Enhance test.
6774         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6775         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6776         getopt-gnu.
6777         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6778         Likewise.
6779
6780 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6781
6782         * modules/idpriv-droptemp-tests (Notice): Fix text.
6783
6784 2009-11-27  Jim Meyering  <meyering@redhat.com>
6785
6786         test-xalloc-die: avoid spurious failure due to libtool argv difference
6787         In a libtool-enabled project, this test would fail due to a difference
6788         in the emitted program name, e.g.,
6789         -test-xalloc-die: memory exhausted
6790         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6791         Use program to avoid that.
6792         * modules/xalloc-die-tests (Depends-on): Add progname.
6793         * tests/test-xalloc-die.c: Include progname.h".
6794         (program_name): Remove decl.
6795         (main): Call set_program_name.
6796         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6797
6798 2009-11-26  Richard Jones  <rjones@redhat.com>
6799
6800         w32sock: leave win32 error in place.
6801         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6802
6803 2009-11-26  Eric Blake  <ebb9@byu.net>
6804
6805         init.sh: suggest to use skip_ and fail_ functions in comments
6806         * tests/init.sh: Add a sentence.
6807
6808 2009-11-25  Bruno Haible  <bruno@clisp.org>
6809
6810         init.sh: add documentation in comments
6811         * tests/init.sh: Add some developer and user documentation.
6812
6813 2009-11-26  Jim Meyering  <meyering@redhat.com>
6814
6815         init.sh: accommodate even those who specify bogus srcdir manually
6816         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6817         configure-time tests to be sanitized, so that there is no need to
6818         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6819         (with no double quotes) suffices.  However, since tests may be
6820         invoked manually, and since you may explicitly set srcdir to the
6821         name of a directory containing spaces, do quote its uses here.
6822         * tests/test-pread.sh: Likewise.
6823         Suggested by Bruno Haible.
6824
6825         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6826         * tests/test-pread.sh: Write no data into the pipe, because
6827         test-pread actually reads none.  This avoids a diagnostic,
6828         "bash: echo: write error: Broken pipe", that arises in the unusual
6829         event something is ignoring SIGPIPE, and might be interpreted
6830         as some sort of failure.  Reported by Bruno Haible.
6831
6832 2009-11-25  Jim Meyering  <meyering@redhat.com>
6833
6834         test-pread: cover failure with ESPIPE and EINVAL
6835         * tests/test-pread.c (main): Test for failure, too.
6836         * tests/test-pread.sh: Invoke with stdin on a pipe.
6837         Suggested by Eric Blake.
6838
6839         pread: improvement and fix
6840         * modules/pread (Depends-on): Depend on lseek, for portability to
6841         e.g., mingw.  Suggested by Eric Blake.
6842         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6843
6844         unistd.in.h: correct declaration of pread
6845         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6846         Reported by Richard W.M. Jones.
6847
6848         test-pread.sh: distribute the test script
6849         * modules/pread-tests (Files): Include test-pread.sh.
6850
6851         test-pread.sh: clean up
6852         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6853         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6854         That is unnecessary, since it's always ".".
6855         Suggestion from Eric Blake.
6856
6857         test-pread.sh: make executable
6858         * tests/test-pread.sh: Set executable bit.
6859         Reported by Eric Blake.
6860
6861         correct typo in test-pread.sh
6862         * tests/test-pread.sh: Add #! line.
6863
6864         test pread
6865         * tests/test-pread.c: New file.
6866         * tests/test-pread.sh: Likewise.
6867         * modules/pread-tests: Likewise.
6868
6869         pread: new module
6870         * modules/pread: New file.
6871         * lib/unistd.in.h (pread): Define/declare.
6872         * lib/pread.c (pread): New file.
6873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6874         * modules/unistd (Makefile.am): Substitute witnesses.
6875         * doc/posix-functions/pread.texi (pread): Update.
6876         * MODULES.html.sh: Add pread.
6877
6878 2009-11-25  Jim Meyering  <meyering@redhat.com>
6879
6880         tests/init.sh: new file to be used via most *.sh tests
6881         * tests/init.sh: New file.
6882
6883 2009-11-25  Eric Blake  <ebb9@byu.net>
6884
6885         utimens: work around older Linux failure with symlinks
6886         * lib/utimens.c (lutimensat_works_really): New variable.
6887         (fdutimens, lutimens): Use it to manage kernels that support
6888         nanosecond times on files, but not on symlinks.
6889         Reported by Ondřej Vašík.
6890
6891         utimes: fix configure grammar
6892         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6893
6894 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6895
6896         regex: Fix fastmap for multibyte character ranges.
6897         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6898         characters when a multibyte character range is included.
6899
6900 2009-11-22  Andy Wingo  <wingo@pobox.com>
6901
6902         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6903         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6904
6905 2009-11-24  Bruno Haible  <bruno@clisp.org>
6906
6907         doc: Most *_l functions exist in MacOS X 10.5.
6908         * doc/posix-functions/duplocale.texi: Update platforms list.
6909         * doc/posix-functions/freelocale.texi: Likewise.
6910         * doc/posix-functions/newlocale.texi: Likewise.
6911         * doc/posix-functions/uselocale.texi: Likewise.
6912         * doc/posix-functions/isalnum_l.texi: Likewise.
6913         * doc/posix-functions/isalpha_l.texi: Likewise.
6914         * doc/posix-functions/isblank_l.texi: Likewise.
6915         * doc/posix-functions/iscntrl_l.texi: Likewise.
6916         * doc/posix-functions/isdigit_l.texi: Likewise.
6917         * doc/posix-functions/isgraph_l.texi: Likewise.
6918         * doc/posix-functions/islower_l.texi: Likewise.
6919         * doc/posix-functions/isprint_l.texi: Likewise.
6920         * doc/posix-functions/ispunct_l.texi: Likewise.
6921         * doc/posix-functions/isspace_l.texi: Likewise.
6922         * doc/posix-functions/isupper_l.texi: Likewise.
6923         * doc/posix-functions/iswalnum_l.texi: Likewise.
6924         * doc/posix-functions/iswalpha_l.texi: Likewise.
6925         * doc/posix-functions/iswblank_l.texi: Likewise.
6926         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6927         * doc/posix-functions/iswctype_l.texi: Likewise.
6928         * doc/posix-functions/iswdigit_l.texi: Likewise.
6929         * doc/posix-functions/iswgraph_l.texi: Likewise.
6930         * doc/posix-functions/iswlower_l.texi: Likewise.
6931         * doc/posix-functions/iswprint_l.texi: Likewise.
6932         * doc/posix-functions/iswpunct_l.texi: Likewise.
6933         * doc/posix-functions/iswspace_l.texi: Likewise.
6934         * doc/posix-functions/iswupper_l.texi: Likewise.
6935         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6936         * doc/posix-functions/isxdigit_l.texi: Likewise.
6937         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6938         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6939         * doc/posix-functions/strcoll_l.texi: Likewise.
6940         * doc/posix-functions/strfmon_l.texi: Likewise.
6941         * doc/posix-functions/strftime_l.texi: Likewise.
6942         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6943         * doc/posix-functions/strxfrm_l.texi: Likewise.
6944         * doc/posix-functions/tolower_l.texi: Likewise.
6945         * doc/posix-functions/toupper_l.texi: Likewise.
6946         * doc/posix-functions/towctrans_l.texi: Likewise.
6947         * doc/posix-functions/towlower_l.texi: Likewise.
6948         * doc/posix-functions/towupper_l.texi: Likewise.
6949         * doc/posix-functions/wcscoll_l.texi: Likewise.
6950         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6951         * doc/posix-functions/wctrans_l.texi: Likewise.
6952         * doc/posix-functions/wctype_l.texi: Likewise.
6953         * doc/glibc-functions/strptime_l.texi: Likewise.
6954         * doc/glibc-functions/strtod_l.texi: Likewise.
6955         * doc/glibc-functions/strtof_l.texi: Likewise.
6956         * doc/glibc-functions/strtol_l.texi: Likewise.
6957         * doc/glibc-functions/strtold_l.texi: Likewise.
6958         * doc/glibc-functions/strtoll_l.texi: Likewise.
6959         * doc/glibc-functions/strtoul_l.texi: Likewise.
6960         * doc/glibc-functions/strtoull_l.texi: Likewise.
6961         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6962         * doc/glibc-functions/wcstod_l.texi: Likewise.
6963         * doc/glibc-functions/wcstof_l.texi: Likewise.
6964         * doc/glibc-functions/wcstol_l.texi: Likewise.
6965         * doc/glibc-functions/wcstold_l.texi: Likewise.
6966         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6967         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6968         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6969
6970 2009-11-24  Bruno Haible  <bruno@clisp.org>
6971
6972         duplocale: Fix logic bug.
6973         * lib/duplocale.c: Don't include <langinfo.h>.
6974         (_NL_LOCALE_NAME): Remove macro.
6975         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6976         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6977
6978 2009-11-23  Jim Meyering  <meyering@redhat.com>
6979
6980         test-update-copyright: don't hard-code /usr/bin/perl
6981         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6982         perl to print the current year.  Gilles Espinasse reported that
6983         the replaced use of perl was hard-coded as /usr/bin/perl.
6984
6985 2009-11-23  Bruno Haible  <bruno@clisp.org>
6986
6987         duplocale: Add support for glibc 2.3.x.
6988         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6989
6990 2009-11-22  Bruno Haible  <bruno@clisp.org>
6991
6992         vasnprintf: Tiny optimization.
6993         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6994         MacOS X.
6995
6996 2009-11-22  Bruno Haible  <bruno@clisp.org>
6997
6998         Tests for module 'duplocale'.
6999         * modules/duplocale-tests: New file.
7000         * tests/test-duplocale.c: New file.
7001
7002         New module 'duplocale'.
7003         * m4/duplocale.m4: New file.
7004         * lib/locale.in.h (duplocale): New declaration.
7005         * lib/duplocale.c: New file.
7006         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7007         gl_LOCALE_H_DEFAULTS): New macros.
7008         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7009         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7010         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7011         REPLACE_DUPLOCALE.
7012         * modules/duplocale: New file.
7013         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7014
7015 2009-11-22  Bruno Haible  <bruno@clisp.org>
7016
7017         * modules/locale-tests (configure.ac): Test for newlocale function.
7018         * tests/test-locale.c: When the system has extended locale functions,
7019         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7020
7021         locale: Make locale_t available when possible.
7022         * lib/locale.in.h: Include <xlocale.h> when it exists.
7023         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7024         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7025         * modules/locale (Depends-on): Add extensions.
7026         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7027         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7028
7029 2009-11-22  Bruno Haible  <bruno@clisp.org>
7030
7031         Add comments.
7032         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7033         invocation.
7034         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7035         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7036         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7037
7038 2009-11-22  Bruno Haible  <bruno@clisp.org>
7039
7040         error: account for the possibility of freopen (stdout).
7041         * lib/error.c: Include <unistd.h>.
7042         (flush_stdout): New function, extracted from error and error_at_line.
7043         Determine stdout's fd dynamically.
7044         (error, error_at_line): Invoke flush_stdout.
7045         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7046         * modules/error (Depends-on): Add unistd.
7047
7048 2009-11-22  Bruno Haible  <bruno@clisp.org>
7049
7050         diffseq: Add comment.
7051         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7052
7053 2009-11-22  Jim Meyering  <meyering@redhat.com>
7054
7055         c-stack: avoid defining an unused static function
7056         * lib/c-stack.c (find_stack_direction): Do not define this function
7057         when it will not be used.
7058
7059         diffseq: avoid spurious gcc warnings
7060         * lib/diffseq.h (IF_LINT2): Define.
7061         (compareseq): Use it to initialize two members of "part".
7062         This avoids two used-uninitialized warnings.
7063
7064 2009-11-21  Jim Meyering  <meyering@redhat.com>
7065
7066         c-stack: avoid "ignoring return value of `write'" warning
7067         * lib/c-stack.c: Include "ignore-value.h".
7068         (die): Explicitly ignore each write return value.
7069         * modules/c-stack (Depends-on): Add ignore-value.
7070
7071 2009-11-21  Bruno Haible  <bruno@clisp.org>
7072
7073         diffseq: reduce scope of variable 'best'.
7074         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7075         variable, earlier used for two different purposes.
7076
7077 2009-11-21  Jim Meyering  <meyering@redhat.com>
7078
7079         diffseq: remove useless assignment to "best"
7080         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7081         assignment.  At that point "best" is already guaranteed to be zero.
7082
7083 2009-11-20  Eric Blake  <ebb9@byu.net>
7084
7085         build: mention ftp redirector in release announcements
7086         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7087         values that used to come from cfg.mk; mention FTP redirect URL.
7088         * build-aux/announce-gen: Mention the mirror list.
7089         Suggested by Karl Berry.
7090
7091         nanosleep: improve port to mingw
7092         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7094         LIB_NANOSLEEP, but only when needed.
7095         * modules/select (Link): Document LIBSOCKET.
7096         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7097         enough.
7098
7099         nanosleep: work around cygwin bug
7100         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7101         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7102         bug.
7103         (getnow): Delete, not needed.
7104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7105         LIB_CLOCK_GETTIME.
7106         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7107         clock-time, gettime.
7108         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7109         bug.
7110         * modules/nanosleep-tests: New test.
7111         * tests/test-nanosleep.c: New file.
7112
7113         sleep: work around cygwin bug
7114         * lib/sleep.c (rpl_sleep): Work around the bug.
7115         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7116         (gl_PREREQ_SLEEP): Delete unused macro.
7117         * modules/sleep (Depends-on): Add verify.
7118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7119         * modules/unistd (Makefile.am): Substitute witness.
7120         * lib/unistd.in.h (sleep): Update prototype.
7121         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7122         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7123         * modules/sleep-tests (Depends-on): Check for alarm.
7124
7125 2009-11-20  Jim Meyering  <meyering@redhat.com>
7126
7127         maint.mk: improve sc_prohibit_magic_number_exit
7128         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7129         so it does not match uses like System.exit(1).
7130         Add comments showing how to correct all offenders.
7131
7132 2009-11-19  Eric Blake  <ebb9@byu.net>
7133
7134         xalloc-die-tests: add missing library
7135         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7136
7137         test-xvasprintf: silence compiler warnings
7138         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7139         empty string from gcc.
7140
7141 2009-11-19  Jim Meyering  <meyering@redhat.com>
7142
7143         xfreopen: new module, from coreutils
7144         * modules/xfreopen: New module.
7145         * lib/xfreopen.c: New file.
7146         * lib/xfreopen.h: New file.
7147         * MODULES.html.sh (File stream based Input/Output"): Add it.
7148
7149 2009-11-19  Eric Blake  <ebb9@byu.net>
7150
7151         manywarnings: depend on warnings
7152         * modules/manywarnings (Depends-on): Add warnings.
7153
7154         build: avoid compiler warnings
7155         * lib/select.c (rpl_select): Delete unused variable.
7156         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7157
7158 2009-11-18  Eric Blake  <ebb9@byu.net>
7159
7160         tests: avoid false negative with --with-packager
7161         * tests/test-version-etc.sh: Discard packager information.
7162         * tests/test-argp-version-etc-1.sh: Likewise.
7163         Reported by Mike Frysinger.
7164
7165         utimens: fix regression on Solaris
7166         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7167         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7168         can only change fd timestamps via futimesat.  Instead, use an
7169         additional witness macro to avoid BSD bug.
7170         Reported by Jim Meyering.
7171
7172 2009-11-17  Eric Blake  <ebb9@byu.net>
7173
7174         usleep: use it to simplify tests
7175         * modules/stat-time-tests (Depends-on): Add usleep.
7176         (configure.ac): Drop usleep check.
7177         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7178         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7179         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7180         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7181         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7182         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7183         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7184         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7185         Likewise.
7186         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7187         * tests/test-lchown.h (nap): Likewise.
7188         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7189         * tests/test-stat-time.c (nap): Likewise.
7190         * tests/test-utimens-common.h (nap): Update comments.
7191
7192         usleep: new module
7193         * modules/usleep: New file.
7194         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7195         * lib/usleep.c (usleep): Likewise.
7196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7197         * modules/unistd (Makefile.am): Substitute witnesses.
7198         * lib/unistd.in.h (usleep): Add declaration.
7199         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7200         * MODULES.html.sh (Date and time): Likewise.
7201         * modules/usleep-tests (Depends-on): New test.
7202         * tests/test-usleep.c: New file.
7203
7204         chown: work around OpenBSD bug
7205         * lib/chown.c (rpl_chown): Work around the bug.
7206         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7207         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7209         * modules/chown (Depends-on): Add stdbool.
7210         * modules/lchown (Depends-on): Likewise.
7211         * doc/posix-functions/chown.texi (chown): Document the bug.
7212         * doc/posix-functions/lchown.texi (lchown): Likewise.
7213         * tests/test-lchown.h (test_chown): Relax test.
7214
7215         mkstemp: avoid conflict with C++ keyword template
7216         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7217         * lib/mkostemp.c (mkostemp): Likewise.
7218         * lib/mkostemps.c (mkostemps): Likewise.
7219         * lib/mkstemp.c (mkstemp): Likewise.
7220         * lib/mkstemps.c (mkstemps): Likewise.
7221
7222         xalloc-die-tests: optimize
7223         * tests/test-xalloc-die.sh: Reduce number of processes.
7224
7225 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7226
7227         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7228         patch from ludo@gnu.org (Ludovic Courtès).
7229
7230 2009-11-17  Jim Meyering  <meyering@redhat.com>
7231
7232         version-etc: use proper license string
7233         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7234         * modules/version-etc-fsf: Likewise.
7235
7236 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7237
7238         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7239         printed to stdout.  Deal with EOL differences.
7240
7241 2009-11-17  Eric Blake  <ebb9@byu.net>
7242
7243         unsetenv: work around Solaris bug
7244         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7245         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7246         Reported by Jim Meyering.
7247
7248         vasnprintf: avoid compiler warnings
7249         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7250         variables.
7251         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7252
7253 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7254
7255         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7256         settings since xalloc-die is no longer the self test,
7257         xalloc-die.sh is.
7258
7259 2009-11-17  Jim Meyering  <meyering@redhat.com>
7260
7261         test-xalloc-die.sh: make the code agree with the commit log
7262         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7263         at the end, just in case you happen to have a test-xalloc-die
7264         program in some other PATH directory.
7265
7266         test-xalloc-die.sh: fix a portability bug
7267         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7268         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7269         Otherwise, argv[0] (as often seen in diagnostics) would be too
7270         system-dependent, sometimes with, and sometimes without the leading "./".
7271
7272         version-etc-fsf: relax license to LGPLv3+
7273         * modules/version-etc-fsf (License): Relax license.
7274
7275 2009-11-16  Eric Blake  <ebb9@byu.net>
7276
7277         xalloc-die-tests: avoid printing null pointer
7278         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7279         shell script.
7280         * tests/test-xalloc-die.c (program_name): Declare.
7281         * tests/test-xalloc-die.sh (tmpfiles): New file.
7282
7283         setenv, unsetenv: work around various bugs
7284         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7285         (setenv) [HAVE_SETENV]: Work around bugs.
7286         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7287         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7288         for bugs.
7289         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7290         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7292         * modules/stdlib (Makefile.am): Update substitutions.
7293         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7294         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7295         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7296         * modules/setenv-tests: New test.
7297         * modules/unsetenv-tests: Likewise.
7298         * tests/test-setenv.c: New file.
7299         * tests/test-unsetenv.c: Likewise.
7300
7301 2009-11-16  Jim Meyering  <meyering@redhat.com>
7302
7303         version-etc: relax license to LGPLv3+
7304         * modules/version-etc (License): Relax license.
7305
7306         better AC_REQUIRE expanded-before-required-warning avoidance
7307         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7308         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7309         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7310         which is no longer needed.
7311
7312 2009-11-16  Eric Blake  <ebb9@byu.net>
7313
7314         test-freading: clean up temporary file
7315         * tests/test-freading.c (main): Remove file on success, and use
7316         ASSERT more liberally.
7317         Reported by Jim Meyering.
7318
7319 2009-11-16  Jim Meyering  <meyering@redhat.com>
7320
7321         avoid new AC_REQUIRE expanded-before-required warnings
7322         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7323         merely using it.
7324         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7325         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7326
7327 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7328
7329         * tests/test-xalloc-die.c: New file.
7330         * modules/xalloc-die-tests: New file.
7331         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7332         XFAIL_TESTS so it can be appended by modules.
7333
7334 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7335
7336         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7337         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7338
7339 2009-11-14  Eric Blake  <ebb9@byu.net>
7340
7341         fnmatch: avoid compiler warning
7342         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7343         to silence compiler warning about mismatch signedness in ?:.
7344         Reported by Robert Millan.
7345
7346         intprops: add double-inclusion guard
7347         * lib/intprops.h: Allow idempotent includes.
7348         Suggested by Bruce Korb.
7349
7350         openat: detect Solaris fchownat bug
7351         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7352         penalizing glibc chownat when only lchownat is broken.
7353         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7354         trailing slash bugs.
7355         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7356         * modules/openat-tests (Files): Include more files.
7357         (Depends-on): Add mgetgroups, sleep, stat-time.
7358         (configure.ac): Add additional checks.
7359         (Makefile.am): Build new test.
7360         * tests/test-fchownat.c: New file.
7361
7362         lchown: detect Solaris and FreeBSD bug
7363         * lib/lchown.c (rpl_lchown): Work around bug.
7364         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7366         * modules/unistd (Makefile.am): Populate it.
7367         * lib/unistd.in.h (lchown): Update declaration.
7368         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7369         * modules/lchown-tests: New file.
7370         * tests/test-lchown.h (test_lchown): Likewise.
7371         * tests/test-lchown.c (main): Likewise.
7372
7373         chown: detect Solaris and FreeBSD bug
7374         * lib/chown.c (rpl_chown): Work around bug.
7375         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7376         (gl_PREREQ_CHOWN): Delete.
7377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7378         * modules/unistd (Makefile.am): Populate it.
7379         * lib/unistd.in.h (chown): Update declaration.
7380         * lib/lchown.c (chown): Update client.
7381         * modules/lchown (Depends-on): Add lstat.
7382         * doc/posix-functions/chown.texi (chown): Document the bug.
7383         * doc/posix-functions/getgroups.texi (getgroups): Document
7384         getgroups pitfall.
7385         * modules/chown-tests: New file.
7386         * tests/test-chown.h (test_chown): Likewise.
7387         * tests/test-chown.c (main): Likewise.
7388
7389 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7390
7391         gnulib-tool: correctly detect absence of m4 directories
7392         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7393
7394 2009-11-14  Jim Meyering  <meyering@redhat.com>
7395
7396         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7397         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7398
7399 2009-11-14  John W. Eaton  <jwe@gnu.org>
7400
7401         strftime.h: wrap funtion declaration in extern "C" block
7402         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7403
7404 2009-11-13  Eric Blake  <ebb9@byu.net>
7405
7406         getgroups: avoid compiler warning
7407         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7408
7409         getgroups: work around FreeBSD bug
7410         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7411         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7412         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7413         * tests/test-getgroups.c (main): Fix buffer overrun.
7414
7415         getgroups: avoid compilation failure
7416         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7417         * modules/getgroups (Depends-on): Add stdint.
7418
7419 2009-11-13  Jim Meyering  <meyering@redhat.com>
7420
7421         test-getgroups: avoid compilation failure
7422         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7423
7424 2009-11-13  Eric Blake  <ebb9@byu.net>
7425
7426         mgetgroups: new module, taken from coreutils
7427         * modules/mgetgroups: New file.
7428         * lib/mgetgroups.h: Likewise.
7429         * lib/mgetgroups.c (mgetgroups): Likewise.
7430         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7431         * MODULES.html.sh (Users and groups): Mention it.
7432
7433         getgroups: don't expose GETGROUPS_T to user
7434         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7435         an element at a time if GETGROUPS_T is wrong size.
7436         * lib/getugroups.h (getugroups): Change signature.
7437         * lib/unistd.in.h (getgroups): Likewise.
7438         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7439         signature needs fixing.
7440         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7441         AC_TYPE_GETGROUPS.
7442         * modules/group-member (Depends-on): Add getgroups.
7443         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7444         (group_member): Rely on getgroups replacement.
7445         * lib/getugroups.c (getugroups): Use gid_t.
7446         * tests/test-getgroups.c (main): Likewise.
7447         * NEWS: Mention the signature change.
7448         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7449         problem with signature.
7450         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7451         GETGROUPS_T is still useful for setgroups.
7452
7453         getgroups, getugroups: provide stubs for mingw
7454         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7455         * lib/getugroups.c (getugroups): Likewise.
7456         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7457         function.  Modernize replacement scheme.
7458         (gl_PREREQ_GETGROUPS): Delete.
7459         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7460         * modules/getgroups (configure.ac): Declare witness.
7461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7462         * modules/unistd (Depends-on): Substitute witness.
7463         * lib/unistd.in.h (getgroups): Declare replacement.
7464
7465         getgroups: avoid calling exit
7466         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7467         drop xalloc.
7468         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7469         dependencies.
7470         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7471         exiting, in the rare case of malloc failure.
7472
7473         getgroups: fix logic error
7474         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7475         has more than 20 groups.
7476         * modules/getgroups-tests: New test.
7477         * tests/test-getgroups.c: New file.
7478
7479 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7480
7481         * tests/test-base64.c: Improve.
7482
7483 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7484
7485         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7486         Blake <ebb9@byu.net>.
7487
7488 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7489
7490         * tests/test-xvasprintf.c: Add %s%s related checks.
7491
7492 2009-11-12  Eric Blake  <ebb9@byu.net>
7493
7494         version-etc: match standards.texi style
7495         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7496         and use <> only for URLs.
7497
7498 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7499
7500         fts: do not fail on a submount during traversal
7501         * lib/fts.c (fts_build): Read the stat info again after opening
7502         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7503         Original report at http://bugzilla.redhat.com/501848.
7504
7505 2009-11-12  Jim Meyering  <meyering@redhat.com>
7506
7507         bootstrap: sync from coreutils
7508         * build-aux/bootstrap (bootstrap_epilogue): New function.
7509         Use git_modules_config in one more place.  This make bootstrap's
7510         --gnulib-srcdir option more useful for testing.
7511
7512         bootstrap: generalize autoheader check
7513         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7514         AC_CONFIG_HEADERS.
7515
7516 2009-11-11  Eric Blake  <ebb9@byu.net>
7517
7518         mkfifoat: use new modules for Solaris and BSD bugs
7519         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7520         * lib/mkfifoat.c (mknodat): Split...
7521         * lib/mknodat.c (mknodat): ...into new file.
7522         * modules/mkfifoat (Files): Ship new file.
7523         (Depends-on): Add mkfifo, mknod.
7524         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7525         (Depends-on): Add symlink.
7526         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7527         redundant with test_mkfifo.h.
7528         (do_mkfifoat, do_mknodat): New helpers.
7529
7530         mknod: new module
7531         * modules/mknod: New file.
7532         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7533         * lib/mknod.c (mknod): Likewise.
7534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7535         defaults.
7536         * modules/sys_stat (Makefile.am): Substitute them.
7537         * lib/sys_stat.in.h (mknod): Declare replacement.
7538         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7539         Document it.
7540         * doc/posix-functions/mknod.texi (mknod): Likewise.
7541         * modules/mknod-tests: New test.
7542         * tests/test-mknod.c: Likewise.
7543
7544         mkfifo: new module
7545         * modules/mkfifo: New file.
7546         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7547         * lib/mkfifo.c (mkfifo): Likewise.
7548         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7549         defaults.
7550         * modules/sys_stat (Makefile.am): Substitute them.
7551         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7552         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7553         Document it.
7554         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7555         * modules/mkfifo-tests: New test.
7556         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7557         from test-mkfifoat.c.
7558         * tests/test-mkfifo.c: New file.
7559
7560         readlink: detect FreeBSD bug
7561         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7562         slash on symlink.
7563         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7564         * tests/test-readlink.h (test_readlink): Enhance test.
7565
7566         symlink: detect FreeBSD bug
7567         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7568         slash on symlink.
7569         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7570         * tests/test-symlink.h (test_symlink): Enhance test.
7571
7572 2009-11-10  Eric Blake  <ebb9@byu.net>
7573
7574         link: detect FreeBSD bug
7575         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7576         symlink.
7577         * doc/posix-functions/link.texi (link): Document the bug.
7578         * tests/test-link.h (test_link): Enhance test.
7579         * tests/test-linkat.c (main): Update caller.
7580
7581         unlink, remove: detect FreeBSD bug
7582         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7583         slash on symlink.
7584         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7585         * doc/posix-functions/remove.texi (remove): Likewise.
7586         * tests/test-unlink.h (test_unlink): Enhance test.
7587         * tests/test-remove.c (main): Likewise.
7588
7589 2009-11-09  Eric Blake  <ebb9@byu.net>
7590
7591         rename: detect FreeBSD bug
7592         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7593         slash on symlink.
7594         * modules/renameat-tests (Depends-on): Add filenamecat.
7595         * tests/test-rename.h (test_rename): Allow one more errno.
7596         * tests/test-renameat.c (main): Likewise.
7597         * doc/posix-functions/rename.texi (rename): Document the bug.
7598
7599         open: detect FreeBSD bug
7600         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7601         symlink.
7602         * doc/posix-functions/open.texi (open): Document the bug.
7603         * doc/posix-functions/utimes.texi (utimes): Likewise.
7604         * tests/test-open.h (test_open): Add parameters, and test symlink
7605         handling.
7606         * tests/test-open.c (main): Adjust caller.
7607         * tests/test-fcntl-safer.c (main): Likewise.
7608         * modules/open-tests (Depends-on): Add stdbool, symlink.
7609         * modules/fcntl-safer-tests (Depends-on): Likewise.
7610         * tests/test-openat.c (main): Add test-open tests.
7611
7612         stat: detect FreeBSD bug
7613         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7614         symlink.
7615         * doc/posix-functions/stat.texi (stat): Document the bug.
7616         * tests/test-stat.h (test_stat_func): Add argument.
7617         * tests/test-stat.c (main): Adjust caller.
7618         * tests/test-fstatat.c (main): Likewise.
7619         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7620         Reported by Jim Meyering.
7621
7622 2009-11-09  James Youngman  <jay@gnu.org>
7623
7624         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7625         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7626
7627 2009-11-08  Jim Meyering  <meyering@redhat.com>
7628
7629         utimens: remove invalid futimesat call
7630         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7631         It used the file descriptor of the target file as the DIR_FD
7632         parameter and NULL as the file name.  That caused failure with
7633         errno == EFAULT on FreeBSD-8.0-rc2
7634
7635 2009-11-07  Eric Blake  <ebb9@byu.net>
7636
7637         fflush, freadseek: use fseeko, not fseek
7638         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7639         (clear_ungetc_buffer): Avoid potential problems on large files.
7640         * lib/freadseek.c (freadseek): Likewise.
7641         * modules/freadseek (Depends-on): Add fseeko.
7642         * modules/fseek (configure.ac): Set a witness.
7643         * tests/test-fflush.c (main): Use fseeko.
7644         * tests/test-fpurge.c (fseek): Disable link warning.
7645         * tests/test-freadable.c (fseek): Likewise.
7646         * tests/test-freading.c (fseek): Likewise.
7647         * tests/test-fseeko.c (fseek): Likewise.
7648         * tests/test-ftell.c (fseek): Likewise.
7649         * tests/test-ftello.c (fseek): Likewise.
7650         * tests/test-fwritable.c (fseek): Likewise.
7651         * tests/test-fwriting.c (fseek): Likewise.
7652
7653 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7654
7655         * modules/memchr (Depends-on): Drop getpagesize dependency.
7656
7657 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7658
7659         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7660         Reported by Ludovic Courtès.
7661         * build-aux/pmccabe2html: Improve example usage.
7662         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7663
7664 2009-11-06  Jim Meyering  <meyering@redhat.com>
7665
7666         do-release-commit-and-tag: New module.
7667         Automate the release-commit and tag process.
7668         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7669         * modules/do-release-commit-and-tag: New file.
7670         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7671
7672 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7673
7674         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7675         because test-select.c uses inet_pton.
7676
7677 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7678
7679         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7680         GETADDRINFO_LIB.  Bump serial number.
7681         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7682         Suggested by Eric Blake <ebb9@byu.net>.
7683
7684 2009-11-05  Eric Blake  <ebb9@byu.net>
7685
7686         strtod: detect darwin bug
7687         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7688         Reported by Leo Davis.
7689
7690         freopen-safer: new module
7691         * modules/freopen-safer: New module.
7692         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7693         * lib/freopen-safer.c (freopen_safer): New file.
7694         * lib/stdio-safer.h (freopen_safer): New declaration.
7695         * lib/stdio--.h (freopen): New override.
7696         * MODULES.html.sh (File stream based Input/Output): Mention it.
7697         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7698         freopen-safer module.
7699         * doc/posix-functions/stderr.texi (stderr): Likewise.
7700         * doc/posix-functions/stdin.texi (stdin): Likewise.
7701         * doc/posix-functions/stdout.texi (stdout): Likewise.
7702         * modules/freopen-safer-tests: New test.
7703         * tests/test-reopen-safer.c: New file.
7704
7705 2009-11-05  Jim Meyering  <meyering@redhat.com>
7706
7707         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7708         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7709
7710 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7711
7712         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7713
7714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7715
7716         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7717
7718 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7719
7720         Fix link error.
7721         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7722         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7723
7724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7725
7726         * tests/test-func.c: Also test value of __func__.
7727
7728 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7729
7730         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7731         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7732
7733 2009-11-05  Bruno Haible  <bruno@clisp.org>
7734
7735         Fix link error.
7736         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7737         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7738         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7739
7740 2009-11-05  Bruno Haible  <bruno@clisp.org>
7741
7742         Tests for module 'inet_pton'.
7743         * modules/inet_pton-tests: New file.
7744         * tests/test-inet_pton.c: New file.
7745
7746 2009-11-05  Bruno Haible  <bruno@clisp.org>
7747
7748         Tests for module 'inet_ntop'.
7749         * modules/inet_ntop-tests: New file.
7750         * tests/test-inet_ntop.c: New file.
7751
7752 2009-11-04  Eric Blake  <ebb9@byu.net>
7753
7754         stdlib-safer: wrap all mkstemp variants
7755         * modules/mkostemp (configure.ac): Set witness.
7756         * modules/mkostemps (configure.ac): Likewise.
7757         * modules/mkstemps (configure.ac): Likewise.
7758         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7759         (mkstemps_safer): Wrap more functions.
7760         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7761         wrapping.
7762         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7763         (mkstemps_safer): Implement the wrappers.
7764
7765         mkstemps, mkostemps: new modules
7766         * modules/mkostemps: New module.
7767         * modules/mkstemps: Likewise.
7768         * lib/mkostemps.c (mkostemps): New file.
7769         * lib/mkstemps.c (mkstemps): Likewise.
7770         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7771         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7773         * modules/stdlib (Makefile.am): Substitute them.
7774         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7775         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7776         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7777         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7778         * MODULES.html.sh (File system functions): Mention them.
7779
7780         tempname: resync from glibc
7781         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7782         same values for __GT_FILE as glibc.  Abort even when assertions
7783         are disabled.
7784         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7785         match its value otherwise.  Allow idempotent inclusion.
7786         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7787         * lib/mkostemp.c (mkostemp): Likewise.
7788         * lib/mkstemp.c (mkstemp): Likewise.
7789         * lib/tmpfile.c (tmpfile): Likewise.
7790         * NEWS: Document this.
7791
7792         utimens: fix use of futimens on older Linux
7793         * lib/utimens.c (fdutimens): Use updated, rather than original,
7794         timespec to avoid bug in older Linux kernel.
7795         Reported by Simon Josefsson.
7796
7797 2009-11-04  Bruno Haible  <bruno@clisp.org>
7798
7799         Make num_processors more flexible and consistent.
7800         * lib/nproc.h (enum nproc_query): New type.
7801         (num_processors): Add a 'query' argument.
7802         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7803         (num_processors): Add a 'query' argument. Test the value of the
7804         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7805         mingw, count the number of CPUs available for the current process.
7806         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7807         Check for sched_getaffinity and sched_getaffinity_np.
7808         * modules/nproc (Depends-on): Add c-ctype, extensions.
7809         * NEWS: Mention the change.
7810
7811 2009-11-03  Bruno Haible  <bruno@clisp.org>
7812
7813         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7814
7815 2009-11-03  Jim Meyering  <meyering@redhat.com>
7816
7817         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7818         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7819         if it is defined.
7820
7821 2009-11-02  Eric Blake  <ebb9@byu.net>
7822
7823         mktime, timegm: share common declaration
7824         * lib/mktime-internal.h: New file.
7825         * lib/mktime.c: Use it rather than open-coding a declaration.
7826         * lib/timegm.c: Likewise.
7827         * modules/mktime (Files): Ship it.
7828         * modules/timegm (Files): Likewise.
7829         Suggested by Bruno Haible.
7830
7831         test-update-copyright: update test to match script changes
7832         * tests/test-update-copyright.sh: Avoid hard-coding perl
7833         location.  Don't update *.bak created by earlier runs.
7834
7835 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7836             Simon Josefsson  <simon@josefsson.org>
7837             Bruno Haible  <bruno@clisp.org>
7838
7839         Fix link error on Solaris 8.
7840         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7841         also in libnsl. Define also INET_PTON_LIB.
7842         * modules/inet_pton (Link): New section.
7843
7844 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7845             Bruno Haible  <bruno@clisp.org>
7846
7847         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7848         * modules/inet_ntop (Link): New section.
7849         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7850
7851 2009-11-02  Eric Blake  <ebb9@byu.net>
7852
7853         maint: avoid compiler warnings in m4 macros
7854         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7855         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7856
7857 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7858
7859         * m4/pmccabe2html.m4: Remove file.
7860         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7861         function.  Change maintainer.
7862         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7863         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7864         Courtès).
7865
7866 2009-10-31  Eric Blake  <ebb9@byu.net>
7867
7868         fseeko: fix m4 regression
7869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7870         regression from 2009-10-27.
7871         Reported by Ralf Wildenhues.
7872
7873 2009-10-31  Jim Meyering  <meyering@redhat.com>
7874
7875         inttostr: aesthetics and improved (compile-time) safety
7876         Define inttype_is_signed rather than inttype_is_unsigned,
7877         since the sole use is via "#if inttype_is_signed".
7878         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7879         inttype_is_unsigned.
7880         * lib/offtostr.c (inttype_is_signed): Likewise.
7881         * lib/uinttostr.c (inttype_is_signed): Likewise.
7882         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7883         * lib/inttostr.c (inttostr): Use verify to cross-check the
7884         inttype_is_signed value and the signedness of the actual type.
7885         * modules/inttostr (Depends-on): Add verify.
7886
7887 2009-10-30  Eric Blake  <ebb9@byu.net>
7888
7889         build: avoid compiler warnings
7890         * lib/fchmodat.c (lchmod): Mark unused variables.
7891         * lib/getopt.c (_getopt_initialize): Likewise.
7892         * lib/mktime.c (__mktime_internal): Provide prototype.
7893         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7894         older gcc that do not understand #pragma GCC diagnostic.
7895         * lib/uinttostr.c (inttype_is_unsigned): Define.
7896         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7897
7898 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7899
7900         stat: fix compilation on AIX
7901         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7902         only see struct stat64.
7903
7904 2009-10-30  Eric Blake  <ebb9@byu.net>
7905
7906         exclude: make more robust
7907         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7908         rather than masking a coding bug.
7909         Suggested by Bruno Haible.
7910
7911 2009-10-30  Jim Meyering  <meyering@redhat.com>
7912
7913         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7914         Rather than putting #!/usr/bin/perl on the first line,
7915         start with a variant of what's recommended by "man perlrun" that
7916         invokes the first "perl" program from your shell's search path.
7917         * build-aux/gitlog-to-changelog: Replace #!... as above.
7918         Add a "Local Variables" perl mode setting.
7919         Prompted by a patch from Ludovic Courtès.
7920         Improved by Eric Blake.
7921         * build-aux/useless-if-before-free: Likewise.
7922         * build-aux/announce-gen: Likewise.
7923         * build-aux/update-copyright: Likewise.
7924
7925 2009-10-29  Eric Blake  <ebb9@byu.net>
7926
7927         filenamecat-lgpl: adjust clients
7928         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7929         filenamecat.
7930         * modules/renameat (Depends-on): Likewise.
7931
7932         filenamecat: split into filenamecat-lgpl
7933         * modules/filenamecat-lgpl: New module.
7934         * modules/filenamecat (Files): Move library-safe files into
7935         filenamecat-lgpl.
7936         (Depends-on): Add filenamecat-lgpl.
7937         (configure.ac): Declare witness.
7938         * lib/filenamecat.h (file_name_concat): Only declare when using
7939         GPL module.
7940         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7941         Move...
7942         * lib/filenamecat-lgpl.c: ...into new file.
7943         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7944         (gl_FILE_NAME_CONCAT): Use it.
7945         * MODULES.html.sh (File system functions): Mention new module.
7946
7947         argp: avoid memory leak
7948         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7949         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7950         base_name, since the latter malloc()s and can call exit().
7951         Leak introduced 2006-07-03.
7952
7953         dirname-lgpl: adjust clients that don't need full dirname
7954         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7955         * modules/filenamecat (Depends-on): Likewise.
7956         * modules/linkat (Depends-on): Likewise.
7957         * modules/mkancesdirs (Depends-on): Likewise.
7958         * modules/mkdir (Depends-on): Likewise.
7959         * modules/openat (Depends-on): Likewise.
7960         * modules/savewd (Depends-on): Likewise.
7961         * modules/rename (Depends-on): Likewise.
7962         (License): Relax license.
7963         * modules/mkdir-tests (Depends-on): Drop progname.
7964         (Makefile.am): Delete unneeded LDADD.
7965         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7966
7967         dirname: split into dirname-lgpl
7968         * modules/dirname-lgpl: New module.
7969         * modules/dirname (Files): Move library-safe files into
7970         dirname-lgpl.
7971         (Depends-on): Add dirname-lgpl.
7972         (configure.ac): Declare witness.
7973         * modules/double-slash-root (License): Relax license.
7974         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7975         module.
7976         * lib/dirname.c (dir_len, mdir_name): Move...
7977         * lib/dirname-lgpl.c: ...into new file.
7978         * lib/basename.c (last_component, base_len): Move...
7979         * lib/basename-lgpl.c: ...into new file.
7980         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7981         (gl_DIRNAME): Use it.
7982         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7983         Mention new module.
7984         * modules/dirname-tests (Depends-on): Add progname.
7985         * tests/test-dirname.c (program_name): Delete.
7986
7987         mkdir: make safe for libraries
7988         * modules/mkdir (Depends-on): Drop xalloc.
7989         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7990         exit.
7991
7992         tests: avoid some compiler warnings
7993         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7994         literals.
7995         * tests/test-memchr.c (main): Avoid type mismatch.
7996         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7997         * tests/test-base64.c (main): Likewise.
7998         * tests/test-getdelim.c (main): Likewise.
7999         * tests/test-gethostname.c (main): Likewise.
8000         * tests/test-getline.c (main): Likewise.
8001         * tests/test-netinet_in.c (main): Likewise.
8002         * tests/test-select.c (open_server_socket, main): Likewise.
8003         * tests/test-select-stdin.c (main): Likewise.
8004         * tests/test-sockets.c (main): Likewise.
8005         * tests/test-strsignal.c (main): Likewise.
8006         * tests/test-sys_select.c (main): Likewise.
8007         * tests/test-sys_socket.c (main): Likewise.
8008         * tests/test-u64.c (main): Likewise.
8009         * tests/test-xfprintf-posix.c (main): Likewise.
8010         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8011
8012         sockets: avoid compiler warning
8013         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8014
8015         maint: detect usage(1) and other suspicious exits
8016         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8017
8018 2009-10-29  Jim Meyering  <meyering@redhat.com>
8019
8020         timespec: long-to-int truncation could make timespec_cmp malfunction
8021         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8022         a multiple of 2^32 nanoseconds as no difference.
8023
8024 2009-10-28  Jim Meyering  <meyering@redhat.com>
8025
8026         fprintftime: wrap macro code argument in "do {...} while(0)"
8027         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8028         cpy macro must be a statement that can be followed by a semicolon.
8029         Now that the else clause contains a comment and is hence longer
8030         than one line, I require curly braces.  That in turn requires
8031         that we wrap this code block in the standard do...while(0).
8032
8033         fprintftime: remove stray semicolon from previous change
8034         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8035
8036         fprintftime: avoid a warning about ignored fwrite return value
8037         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8038         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8039         that is unsafe.
8040         * modules/fprintftime (Depends-on): Add ignore-value.
8041
8042         exclude: avoid an unwarranted warning
8043         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8044
8045 2009-10-27  Eric Blake  <ebb9@byu.net>
8046
8047         fseek: avoid compilation failure when fflush is replaced
8048         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8049         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8050         module is in use.
8051         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8052         module is not in use; since REPLACE_FSEEK worked otherwise.
8053         (GNULIB_FTELLO): Likewise for ftell.
8054         Reported by Ian Beckwith and others.
8055
8056 2009-10-27  Bruno Haible  <bruno@clisp.org>
8057
8058         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8059         Reported by Jim Meyering.
8060
8061 2009-10-27  Jim Meyering  <jim@meyering.net>
8062             Bruno Haible  <bruno@clisp.org>
8063
8064         Avoid warning despite dropping the return value of fwrite.
8065         * lib/unicodeio.c: Include ignore-value.h.
8066         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8067         * modules/unicodeio (Depends-on): Add ignore-value.
8068
8069 2009-10-26  Eric Blake  <ebb9@byu.net>
8070
8071         areadlinkat: fix fallback path
8072         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8073         pointer and zero.
8074
8075 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8076
8077         Use a better IO block size for modern systems
8078         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8079         * lib/md2.c: Likewise.
8080         * lib/md4.c: Likewise.
8081         * lib/md5.c: Likewise.
8082         * lib/sha1.c: Likewise.
8083         * lib/sha256.c: Likewise.
8084         * lib/sha512.c: Likewise.
8085
8086 2009-10-22  Eric Blake  <ebb9@byu.net>
8087
8088         tests: avoid several compiler warnings
8089         * tests/test-getcwd.c (main): Avoid buffer underflow.
8090         * tests/test-getdate.c (main): String literals are not safe with
8091         putenv, so use setenv.  Declare unused argument.
8092         * modules/getdate-tests (Depends-on): Add setenv.
8093         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8094         problems with string literals in char *.
8095         * tests/test-hash.c (main): Avoid shadowing declaration.
8096         (insert_new): Treat string literals as char const *.
8097         * tests/test-getopt.h (test_getopt): Likewise.
8098         (getopt_loop): Alter types to minimize casting elsewhere.
8099         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8100         (test_getopt_long_posix): Likewise.
8101         (do_getopt_long): Add wrapper to minimize casting.
8102         * tests/test-atexit.c (clear_temp_file): Use void.
8103         * tests/test-areadlink-with-size.c (main): Declare unused
8104         arguments.
8105         * tests/test-areadlink.c (main): Likewise.
8106         * tests/test-areadlinkat-with-size.c (main): Likewise.
8107         * tests/test-areadlinkat.c (main): Likewise.
8108         * tests/test-canonicalize-lgpl.c (main): Likewise.
8109         * tests/test-canonicalize.c (main): Likewise.
8110         * tests/test-dirent-safer.c (main): Likewise.
8111         * tests/test-dirname.c (main): Likewise.
8112         * tests/test-dup2.c (main): Likewise.
8113         * tests/test-fchdir.c (main): Likewise.
8114         * tests/test-fcntl-h.c (main): Likewise.
8115         * tests/test-fcntl-safer.c (main): Likewise.
8116         * tests/test-fdopendir.c (main): Likewise.
8117         * tests/test-fdutimensat.c (main): Likewise.
8118         * tests/test-fflush.c (main): Likewise.
8119         * tests/test-filenamecat.c (main): Likewise.
8120         * tests/test-filevercmp.c (main): Likewise.
8121         * tests/test-fopen-safer.c (main): Likewise.
8122         * tests/test-fopen.c (main): Likewise.
8123         * tests/test-fpending.c (main): Likewise.
8124         * tests/test-fpurge.c (main): Likewise.
8125         * tests/test-freading.c (main): Likewise.
8126         * tests/test-fstatat.c (main): Likewise.
8127         * tests/test-fsync.c (main): Likewise.
8128         * tests/test-futimens.c (main): Likewise.
8129         * tests/test-getndelim2.c (main): Likewise.
8130         * tests/test-gettimeofday.c (main): Likewise.
8131         * tests/test-getopt.c (main): Likewise.
8132         * tests/test-i-ring.c (main): Likewise.
8133         * tests/test-inttypes.c (main): Likewise.
8134         * tests/test-link.c (main): Likewise.
8135         * tests/test-lstat.c (main): Likewise.
8136         * tests/test-math.c (main): Likewise.
8137         * tests/test-md5.c (main): Likewise.
8138         * tests/test-memchr2.c (main): Likewise.
8139         * tests/test-memrchr.c (main): Likewise.
8140         * tests/test-mkdir.c (main): Likewise.
8141         * tests/test-mkdirat.c (main): Likewise.
8142         * tests/test-mkfifoat.c (main): Likewise.
8143         * tests/test-open.c (main): Likewise.
8144         * tests/test-openat-safer.c (main): Likewise.
8145         * tests/test-openat.c (main): Likewise.
8146         * tests/test-quotearg.c (main): Likewise.
8147         * tests/test-rawmemchr.c (main): Likewise.
8148         * tests/test-readlink.c (main): Likewise.
8149         * tests/test-remove.c (main): Likewise.
8150         * tests/test-rename.c (main): Likewise.
8151         * tests/test-renameat.c (main): Likewise.
8152         * tests/test-rmdir.c (main): Likewise.
8153         * tests/test-sha1.c (main): Likewise.
8154         * tests/test-signal.c (main): Likewise.
8155         * tests/test-sigaction.c (main): Likewise.
8156         * tests/test-stat.c (main): Likewise.
8157         * tests/test-stat-time.c (main): Likewise.
8158         * tests/test-stddef.c (main): Likewise.
8159         * tests/test-stdint.c (main): Likewise.
8160         * tests/test-stdio.c (main): Likewise.
8161         * tests/test-stdlib.c (main): Likewise.
8162         * tests/test-strchrnul.c (main): Likewise.
8163         * tests/test-strerror.c (main): Likewise.
8164         * tests/test-string.c (main): Likewise.
8165         * tests/test-strtod.c (main): Likewise.
8166         * tests/test-strverscmp.c (main): Likewise.
8167         * tests/test-symlink.c (main): Likewise.
8168         * tests/test-symlinkat.c (main): Likewise.
8169         * tests/test-sys_stat.c (main): Likewise.
8170         * tests/test-sys_time.c (main): Likewise.
8171         * tests/test-time.c (main): Likewise.
8172         * tests/test-unistd.c (main): Likewise.
8173         * tests/test-unlink.c (main): Likewise.
8174         * tests/test-unlinkat.c (main): Likewise.
8175         * tests/test-utimens.c (main): Likewise.
8176         * tests/test-utimensat.c (main): Likewise.
8177         * tests/test-version-etc.c (main): Likewise.
8178         * tests/test-wchar.c (main): Likewise.
8179         * tests/test-wctype.c (main): Likewise.
8180         * tests/test-xprintf-posix.c (main): Likewise.
8181         * tests/test-posixtm.c (main): Likewise.
8182         (STREQ): Delete unused macro.
8183         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8184         shadowed variables.
8185         * tests/test-memchr.c (main): Likewise.
8186
8187 2009-10-21  Eric Blake  <ebb9@byu.net>
8188
8189         areadlinkat: avoid failure on older glibc
8190         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8191         rather than mis-comparing 0 against FUNC_RESULT of char*.
8192
8193 2009-10-21  Bruno Haible  <bruno@clisp.org>
8194
8195         * modules/stpncpy (License): Relicense under LGPLv2+.
8196         Reported by David Lutterkort <lutter@redhat.com>.
8197
8198 2009-10-20  Eric Blake  <ebb9@byu.net>
8199
8200         utimensat: work around Solaris 9 bug
8201         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8202         has trailing slash bugs.
8203         * tests/test-lutimens.h (test_lutimens): Enhance test.
8204         * tests/test-utimens.h (test_utimens): Likewise.
8205         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8206         * doc/posix-functions/utimes.texi (utimes): Likewise.
8207         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8208         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8209         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8210         * doc/posix-functions/futimens.texi (futimens): Likewise.
8211
8212         fdutimensat: new module
8213         * modules/fdutimensat: New file.
8214         * lib/fdutimensat.c (fdutimensat): Likewise.
8215         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8216         * MODULES.html.sh (File system functions): Mention module.
8217         * modules/fdutimensat-tests: New test.
8218         * tests/test-fdutimensat.c: Likewise.
8219
8220         doc: regenerate INSTALL
8221         * doc/INSTALL: Reflect recent autoconf update.
8222         * doc/INSTALL.ISO: Likewise.
8223         * doc/INSTALL.UTF-8: Likewise.
8224
8225 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8226
8227         acl: warn if ACL support is not detected
8228         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8229
8230 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8231
8232         * lib/nproc.h: Add extern "C" block for C++.
8233
8234 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8235             Bruno Haible  <bruno@clisp.org>
8236
8237         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8238         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8239         * doc/posix-functions/isalpha.texi: Likewise.
8240         * doc/posix-functions/isblank.texi: Likewise.
8241         * doc/posix-functions/iscntrl.texi: Likewise.
8242         * doc/posix-functions/isdigit.texi: Likewise.
8243         * doc/posix-functions/isgraph.texi: Likewise.
8244         * doc/posix-functions/islower.texi: Likewise.
8245         * doc/posix-functions/isprint.texi: Likewise.
8246         * doc/posix-functions/ispunct.texi: Likewise.
8247         * doc/posix-functions/isspace.texi: Likewise.
8248         * doc/posix-functions/isupper.texi: Likewise.
8249         * doc/posix-functions/isxdigit.texi: Likewise.
8250
8251 2009-10-18  Bruno Haible  <bruno@clisp.org>
8252
8253         Tests for module 'isblank'.
8254         * modules/isblank-tests: New file.
8255         * tests/test-isblank.c: New file.
8256
8257         New module 'isblank'.
8258         * lib/isblank.c: New file.
8259         * m4/isblank.m4: New file.
8260         * modules/isblank: New file.
8261         * doc/posix-functions/isblank.texi: Mention the new module.
8262
8263 2009-10-18  Bruno Haible  <bruno@clisp.org>
8264
8265         New module 'ctype'.
8266         * lib/ctype.in.h: New file.
8267         * m4/ctype.m4: New file.
8268         * modules/ctype: New file.
8269         * doc/posix-headers/ctype.texi: Mention the new module.
8270
8271 2009-10-18  Jim Meyering  <meyering@redhat.com>
8272
8273         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8274         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8275         right after its initialization, rather than farther down.
8276         Keeping these in close proximity makes it easier to ensure
8277         that each such variable is initialized.  E.g.,
8278
8279             LIB_CLOCK_GETTIME=
8280             AC_SUBST([LIB_CLOCK_GETTIME])
8281
8282         This change also increments these serial numbers.
8283         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8284         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8286
8287 2009-10-18  Bruno Haible  <bruno@clisp.org>
8288
8289         Don't let environment variables perturb build.
8290         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8291         (gl_PREREQ_GETHRXTIME): ... not here.
8292
8293 2009-10-18  Bruno Haible  <bruno@clisp.org>
8294
8295         Avoid symlink attack in localcharset module.
8296         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8297         (O_NOFOLLOW): Define fallback.
8298         (get_charset_aliases): Don't open the file if it is a symbolic link.
8299         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8300         gl_FCNTL_H.
8301         (gl_FCNTL_H): Require it.
8302         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8303         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8304         Reported by Fergal Glynn <fglynn@veracode.com>.
8305
8306 2009-10-18  Bruno Haible  <bruno@clisp.org>
8307
8308         Implement nproc for mingw.
8309         * lib/nproc.c: Include <windows.h>
8310         (num_processors): On native Windows platforms, try GetSystemInfo.
8311
8312 2009-10-18  Bruno Haible  <bruno@clisp.org>
8313
8314         Implement nproc for IRIX.
8315         * lib/nproc.c: Include <sys/sysmp.h>.
8316         (num_processors): On IRIX systems, try sysmp.
8317         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8318
8319 2009-10-18  Bruno Haible  <bruno@clisp.org>
8320
8321         Implement nproc for HP-UX.
8322         * lib/nproc.c: Include <sys/pstat.h>
8323         (num_processors): On HP-UX systems, try pstat_getdynamic.
8324         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8325         pstat_getdynamic.
8326
8327 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8328             Bruno Haible  <bruno@clisp.org>
8329
8330         Implement nproc for NetBSD, OpenBSD.
8331         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8332         (ARRAY_SIZE): New macro.
8333         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8334         * m4/nproc.m4: New file.
8335         * modules/nproc (Files): Add m4/nproc.m4.
8336         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8337         (Makefile.am): Instead, augment lib_SOURCES.
8338
8339 2009-10-18  Bruno Haible  <bruno@clisp.org>
8340
8341         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8342         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8343         sys/param.h.
8344
8345 2009-10-16  Eric Blake  <ebb9@byu.net>
8346
8347         utimensat: new module
8348         * modules/utimensat: New file.
8349         * lib/utimensat.c (utimensat): Likewise.
8350         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8351         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8352         so we can work around Linux bugs.
8353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8354         * modules/sys_stat (Makefile.am): Substitute them.
8355         * lib/sys_stat.in.h (utimensat): Declare it.
8356         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8357         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8358         * modules/utimensat-tests: New test.
8359         * tests/test-utimensat.c: Likewise.
8360
8361         utimens: let lutimens work on non-symlinks
8362         * lib/utimens.c (lutimens): Fall back to utimens rather than
8363         failing with ENOSYS, when file is not a symlink.
8364         (utimens): Reduce redirection.
8365         * tests/test-lutimens.h (test_lutimens): Update test to cover
8366         non-symlinks.
8367         * tests/test-utimens.h (test_utimens): Update test to cover
8368         symlinks.
8369         * tests/test-utimens.c (main): Update caller.
8370
8371         utimens: cache whether utimensat syscall works
8372         * lib/utimens.c (utimensat_works_really): New cache variable.
8373         (fdutimens, lutimens): Use it to avoid failing syscall.
8374
8375         test-stat-time, test-utimens: improve portability
8376         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8377         ext4 on alpha, and for cygwin.
8378         * tests/test-utimens-common.h: New file.
8379         (nap): Factor delays into single function.
8380         * tests/test-lutimens.h (test_lutimens): Use new header.
8381         * tests/test-futimens.h (test_futimens): Likewise.
8382         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8383         timestamps to occur from same machine, as was done previously for
8384         test_utimens.
8385         * modules/utimens-tests (Files): Ship new file.
8386         * modules/futimens-tests (Files): Likewise.
8387         Reported in part by Jim Meyering.
8388
8389         sys_stat: sort replacement declarations
8390         * lib/sys_stat.in.h: Sort declarations.
8391         * lib/futimens.c (futimens): Fix typo.
8392
8393 2009-10-15  Jim Meyering  <meyering@redhat.com>
8394
8395         don't let environment settings perturb build
8396         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8397         could cause a configure-time and/or build-time malfunction.
8398         Typically, a configure-time function-in-library test is performed
8399         via code like this:
8400
8401           LIB_VAR=
8402           AC_SUBST([LIB_VAR])
8403           prefix_saved_LIBS=$LIBS
8404             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8405                        [test "$ac_cv_search_FUNC" = "none required" ||
8406                         LIB_VAR=$ac_cv_search_FUNC])
8407           LIBS=$prefix_saved_LIBS
8408
8409         However, in each of the files affected by this change, the LIB_VAR=
8410         initialization was omitted.  Thus, when set in the environment, its
8411         value would propagate into generated Makefiles when FUNC is not found
8412         in LIB_NAME.
8413         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8414         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8416
8417 2009-10-14  Eric Blake  <ebb9@byu.net>
8418
8419         fchdir: avoid infinite recursion in mingw
8420         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8421         recursing.
8422
8423         test-stat-time: port to mingw
8424         * tests/test-stat-time.c (force_unlink): Return a value.
8425         (test_ctime) [W32]: Fix compilation error.
8426         (nap): Don't call usleep with too large an argument.  Use
8427         force_unlink.
8428         * doc/pastposix-functions/usleep.texi (usleep): Document the
8429         portability issue.
8430
8431 2009-10-13  Jim Meyering  <meyering@redhat.com>
8432
8433         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8434         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8435         * modules/pipe-filter-ii: Likewise.
8436         * modules/sys_socket-tests: Likewise.
8437         * modules/tsearch-tests: Likewise.
8438         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8439         (check): Depend on it.
8440
8441 2009-10-12  Eric Blake  <ebb9@byu.net>
8442
8443         utimens-tests: port to NFS file systems
8444         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8445         comparisons to avoid spurious failures from timestamp drift
8446         between NFS machines.
8447
8448 2009-10-12  Eric Blake  <ebb9@byu.net>
8449
8450         stat-time-tests: minor cleanups
8451         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8452         * tests/test-stat-time.c (nap): Separate assignment from call.
8453         Suggested by Paolo Bonzini and Bruno Haible.
8454
8455         sys_stat: guarantee struct timespec
8456         * lib/sys_stat.in.h (includes): Always include <time.h>
8457         * modules/sys_stat (Depends-on): Add time.
8458         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8459         mode_t permission values.
8460         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8461         get at subsecond timestamps.
8462
8463 2009-10-10  Eric Blake  <ebb9@byu.net>
8464
8465         futimens: new module
8466         * modules/futimens: New file.
8467         * lib/futimens.c (futimens): Likewise.
8468         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8469         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8470         we can work around Linux bugs.
8471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8472         * modules/sys_stat (Makefile.am): Substitute them.
8473         * lib/sys_stat.in.h (futimens): Declare it.
8474         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8475         * doc/posix-functions/futimens.texi (futimens): Likewise.
8476         * modules/futimens-tests: New test.
8477         * tests/test-futimens.c: Likewise.
8478
8479         utimens: introduce fdutimens
8480         * lib/utimens.h (fdutimens): New prototype.
8481         * lib/utimens.c (gl_futimens): Move guts...
8482         (fdutimens): ...to new interface.
8483         * tests/test-utimens.c (do_fdutimens): Use it.
8484
8485         utimens: add UTIME_NOW and UTIME_OMIT support
8486         * lib/utimens.c (validate_timespec, update_timespec): New helper
8487         functions.
8488         (gl_futimens, lutimens): Use them.
8489         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8490         stdbool, sys_stat.
8491         (Link): Mention resulting library dependency.
8492         * modules/utimecmp (Link): Likewise.
8493         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8494         (Makefile.am): Pick up library dependency.
8495         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8496         definition.
8497         * tests/test-sys_stat.c: Test the definitions.
8498         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8499         * NEWS: Document library dependency.
8500
8501         utimecmp: support symlink timestamps
8502         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8503         hashing when possible.  Use pathconf when available.
8504         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8505         * modules/utimecmp (Depends-on): Add lstat.
8506
8507         utimens: add lutimens interface
8508         * lib/utimens.c (lutimens): New function.
8509         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8510         * lib/utimens.h (lutimens): Declare new interface.
8511         * tests/test-utimens.c (main): Enhance test.
8512         * tests/test-lutimens.h (test_lutimens): New file.
8513         * modules/utimens-tests (Files): Distribute it.
8514         (Depends-on): Add symlink.
8515         (configure.ac): Check for usleep.
8516
8517         utimens: validate futimens usage
8518         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8519         fewer syscalls on failure later on.  Avoid compiler warning on
8520         mingw.
8521         * modules/utimens (Depends-on): Add dup2.
8522
8523         utimens: add test
8524         * modules/utimens-tests: New test.
8525         * tests/test-utimens.h: New file.
8526         * tests/test-futimens.h: Likewise.
8527         * tests/test-utimens.c: Likewise.
8528
8529         doc: mention timestamp portability issues
8530         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8531         instead.
8532         * doc/posix-functions/utime.texi (utime): Likewise.
8533         * doc/posix-functions/utimes.texi (utimes): Likewise.
8534         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8535         instead.
8536         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8537         module.
8538         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8539         Mention weakness with symlink timestamps.
8540         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8541         to utimensat/futimens instead.
8542         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8543
8544         test-dup2: enhance test
8545         * tests/test-dup2.c (main): Also check AT_FDCWD.
8546
8547         test-stat-time: avoid more spurious failures
8548         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8549         xfs; and avoid race if the two timestamps cross quantization edge.
8550
8551         relocatable: prefer 'file system' over 'filesystem'
8552         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8553         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8554         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8555         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8556         * lib/relocatable.c (compute_curr_prefix): Likewise.
8557
8558 2009-10-10  Jim Meyering  <meyering@redhat.com>
8559
8560         stat-time-tests: check for the usleep function
8561         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8562
8563 2009-10-10  Bruno Haible  <bruno@clisp.org>
8564
8565         * modules/xnanosleep: Put the Link section after the Include section.
8566
8567 2009-10-09  Eric Blake  <ebb9@byu.net>
8568
8569         dup2: work around FreeBSD 6.1 bug
8570         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8571         * doc/posix-functions/dup2.texi (dup2): Document it.
8572         Reported by Nelson H. F. Beebe and Jim Meyering.
8573
8574         test-stat-time: port to buggy NFS clients
8575         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8576         (test_ctime): Also skip test if mtime and ctime are skewed.
8577
8578         maint: prefer 'file system' over 'filesystem'
8579         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8580         * doc/posix-functions/lstat.texi (lstat): Likewise.
8581         * lib/file-has-acl.c (file_has_acl): Likewise.
8582         * lib/fwriteerror.c [TEST]: Likewise.
8583         * tests/test-areadlink.h (test_areadlink): Likewise.
8584         * tests/test-areadlinkat-with-size.c (main): Likewise.
8585         * tests/test-areadlinkat.c (main): Likewise.
8586         * tests/test-canonicalize-lgpl.c (main): Likewise.
8587         * tests/test-canonicalize.c (main): Likewise.
8588         * tests/test-fstatat.c (main): Likewise.
8589         * tests/test-linkat.c (main): Likewise.
8590         * tests/test-lstat.h (test_lstat_func): Likewise.
8591         * tests/test-mkdir.h (test_mkdir): Likewise.
8592         * tests/test-readlink.h (test_readlink): Likewise.
8593         * tests/test-remove.c (main): Likewise.
8594         * tests/test-rename.h (test_rename): Likewise.
8595         * tests/test-renameat.c (main): Likewise.
8596         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8597         * tests/test-symlink.h (test_symlink): Likewise.
8598         * tests/test-symlinkat.c (main): Likewise.
8599         * tests/test-unlink.h (test_unlink_func): Likewise.
8600         * tests/test-unlinkat.c (main): Likewise.
8601
8602         maint: make realtime library usage explicit
8603         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8604         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8605         * modules/settime (Link): Likewise.
8606         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8607
8608         test-stat-time: speed up execution
8609         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8610         warning on mingw.
8611         (nap): New helper function.
8612         (prepare_test): Use it to reduce sleep time.
8613         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8614         execution.
8615         * modules/stat-time-tests (configure.ac): Check for usleep.
8616
8617 2009-10-09  Jim Meyering  <meyering@redhat.com>
8618
8619         selinux-h: always use getfilecon wrappers
8620         * lib/getfilecon.c: New file.
8621         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8622         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8623         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8624         (fgetfilecon): Provide a stub.
8625         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8626         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8627         file unconditionally.
8628         When <selinux/selinux.h> is found, arrange to use wrappers.
8629         * modules/selinux-h (Files): Add getfilecon.c.
8630         (Makefile.am): Substitute include-next-related bits
8631         into the now-always-generated selinux/selinux.h file.
8632         * doc/glibc-functions/lgetfilecon.texi: New file.
8633         * doc/glibc-functions/fgetfilecon.texi: New file.
8634         * doc/glibc-functions/getfilecon.texi: New file.
8635         * doc/glibc-functions/getfilecon-desc.texi: New file.
8636         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8637         which to pull in the new files.
8638         * MODULES.html.sh (Misc): Add selinux-h.
8639
8640 2009-10-08  Jim Meyering  <meyering@redhat.com>
8641
8642         unistd: fix comment typo
8643         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8644
8645 2009-10-08  Eric Blake  <ebb9@byu.net>
8646
8647         areadlink: use SIZE_MAX consistently
8648         * modules/areadlink (Depends-on): Add stdint.
8649         * modules/areadlink-with-size (Depends-on): Likewise.
8650         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8651         gives NULL; drop sys/types, since unistd gives size_t; and add
8652         stdint for SIZE_MAX.
8653         (SIZE_MAX): Rely on headers.
8654         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8655         and add stdint.
8656         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8657         (SIZE_MAX): Likewise.
8658         (INITIAL_BUF_SIZE): Turn into enum.
8659         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8660
8661 2009-10-08  Jim Meyering  <meyering@redhat.com>
8662
8663         areadlinkat: avoid compilation failure
8664         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8665         Fix typo in comment.
8666
8667 2009-10-07  Eric Blake  <ebb9@byu.net>
8668
8669         areadlinkat-with-size: new module
8670         * modules/areadlinkat-with-size: New module.
8671         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8672         * lib/areadlink.h (areadlinkat): Declare it.
8673         * MODULES.html.sh (File system functions): Mention it.
8674         * modules/areadlinkat-with-size-tests: New test.
8675         * tests/test-areadlinkat-with-size.c: New file.
8676
8677         xreadlinkat: new module
8678         * modules/xreadlinkat: New module.
8679         * lib/xreadlinkat.c (xreadlinkat): New file.
8680         * lib/xreadlink.h (xreadlinkat): Declare it.
8681         * MODULES.html.sh (File system functions): Mention it.
8682
8683         areadlinkat: new module
8684         * lib/at-func.c (FUNC_FAIL): New define.
8685         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8686         * modules/areadlinkat: New module.
8687         * lib/linkat.c (areadlinkat): Move...
8688         * lib/areadlinkat.c (areadlinkat): ...to new file.
8689         * lib/areadlink.h (areadlinkat): Declare it.
8690         * modules/linkat (Depends-on): Add areadlinkat.
8691         * MODULES.html.sh (File system functions): Mention it.
8692         * modules/areadlinkat-tests: New test.
8693         * tests/test-areadlinkat.c: New file.
8694
8695         areadlink, areadlink-with-size: add tests
8696         * modules/areadlink-tests: New test.
8697         * modules/areadlink-with-size-tests: Likewise.
8698         * tests/test-areadlink.h: New file.
8699         * tests/test-areadlink.c: Likewise.
8700         * tests/test-areadlink-with-size.c: Likewise.
8701
8702         maint: minor cleanups
8703         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8704         _UNUSED_PARAMETER_ instead.
8705         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8706         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8707         * modules/linkat-tests (Files): Distribute test-link.h.
8708
8709         openat, utimens: whitespace cleanup
8710         * lib/openat.c: Prefer space throughout, rather than mix of 8
8711         spaces vs. tabs.
8712         * lib/at-func.c: Likewise.
8713         * lib/utimens.c: Likewise.
8714
8715         openat: avoid using wrong fd
8716         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8717         working directory chooses same fd.
8718         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8719
8720         mkdir, mkdirat: fix cygwin 1.5.x bug
8721         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8722         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8723         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8724         bug.
8725         (gl_PREREQ_MKDIR): Delete unused macro.
8726         * modules/mkdir (Files): Track file rename.
8727         (configure.ac): Update macro name.
8728         * modules/openat (Depends-on): Add mkdir.
8729         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8730
8731         mkdir, mkdirat: add tests
8732         * modules/mkdir-tests: New test.
8733         * tests/test-mkdir.h: New file.
8734         * tests/test-mkdir.c: Likewise.
8735         * tests/test-mkdirat.c: Likewise.
8736         * modules/openat-tests (Files): Add new files.
8737         (Makefile.am): Run new test.
8738
8739 2009-10-06  Eric Blake  <ebb9@byu.net>
8740
8741         doc: tweak *at function documentation
8742         * doc/posix-functions/faccessat.texi (faccessat): Mention
8743         known issue with replacement.
8744         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8745         * doc/posix-functions/linkat.texi (linkat): Likewise.
8746         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8747         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8748         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8749         * doc/posix-functions/renameat.texi (renameat): Likewise.
8750         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8751
8752         openat: fix GNU/Hurd bug in unlinkat
8753         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8754         broken.
8755         * doc/posix-functions/unlink.texi (unlink): Document this.
8756         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8757
8758         fdopendir: fix GNU/Hurd bug
8759         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8760         allowing non-directory fds.
8761         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8762         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8763         * modules/dirent (Makefile.am): Substitute it.
8764         * lib/dirent.in.h (fdopendir): Declare replacement.
8765         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8766         * tests/test-fdopendir.c (main): Test something other than
8767         /dev/null, since on Hurd that behaves like a directory.
8768
8769         test-symlink: port to GNU/Hurd
8770         * tests/test-symlink.h (test_symlink): Relax expected errno.
8771
8772         doc: tweak more cygwin information
8773         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8774         now compatible with glibc.
8775         * doc/posix-functions/getopt.texi (getopt): Likewise.
8776
8777         getopt-gnu: add another test
8778         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8779         guarantee behavior relied on by m4.
8780         * tests/test-getopt.c (main): Use it.
8781         * modules/getopt-posix-tests (Depends-on): Add setenv.
8782         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8783
8784         getopt: fix compilation on darwin
8785         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8786         include.
8787         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8788         Reported by Ludovic Courtès.
8789
8790 2009-10-06  Bruno Haible  <bruno@clisp.org>
8791
8792         * modules/size_max (Description): Discourage its use.
8793         Reported by Simon Josefsson.
8794
8795 2009-10-06  Jim Meyering  <meyering@redhat.com>
8796
8797         linkat: avoid compilation failure
8798         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8799
8800 2009-10-05  Eric Blake  <ebb9@byu.net>
8801
8802         linkat: support Linux 2.6.17
8803         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8804         linkat on Linux, but allow cache variable override.
8805         * lib/linkat.c (rpl_linkat): Define override.
8806         * modules/linkat (Depends-on): Add symlinkat.
8807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8808         * modules/unistd (Makefile.am): Substitute it.
8809         * lib/unistd.in.h (linkat): Declare replacement.
8810         Reported by Pádraig Brady.
8811
8812         quotearg: port test to systems with C.UTF-8 locale
8813         * tests/test-quotearg.c (struct result_strings): Add another
8814         member, differentiating between C.ASCII and C.UTF-8 handling.
8815         (compare_strings): Add parameter.
8816         (main): Adjust all callers.
8817
8818         getopt: avoid clash with FreeBSD _getopt_internal
8819         * lib/getopt.in.h (_getopt_internal): Override the name.
8820         * lib/getopt_int.h (includes): Pick up any overrides.
8821         Reported by Reuben Thomas.
8822
8823         hash: allow C89 compilation
8824         * lib/hash.c (check_tuning): Move declaration before statement.
8825         Reported by Reuben Thomas.
8826
8827 2009-10-05  Karl Berry  <karl@gnu.org>
8828
8829         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8830
8831 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8832             Bruno Haible  <bruno@clisp.org>
8833
8834         * lib/uname.c (uname): Use a table-driven algorithm to compute
8835         Windows NT versions.
8836
8837 2009-10-04  Bruno Haible  <bruno@clisp.org>
8838
8839         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8840         program_invocation_short_name.
8841         * modules/progname (configure.ac): Test for presence of
8842         program_invocation_short_name.
8843         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8844
8845 2009-10-04  Bruno Haible  <bruno@clisp.org>
8846
8847         * lib/progname.c (set_program_name): Fix comment.
8848         Reported by Jim Meyering.
8849
8850 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8851             Bruno Haible  <bruno@clisp.org>
8852
8853         * lib/uname.c: Include <string.h>.
8854         (uname): Do only one call to GetVersionEx in the common case.
8855
8856 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8857             Bruno Haible  <bruno@clisp.org>
8858
8859         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8860         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8861         (uname): Add support for Windows CE and various non-x86 CPU types.
8862
8863 2009-10-03  Bruno Haible  <bruno@clisp.org>
8864
8865         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8866         invocation to tests/configure.ac.
8867         Reported by Ian Beckwith <ianb@erislabs.net>.
8868
8869 2009-10-02  Eric Blake  <ebb9@byu.net>
8870
8871         fchdir: avoid compiler warning
8872         * lib/fchdir.c (canonicalize_file_name)
8873         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8874
8875         test-open: support mingw errno values
8876         * tests/test-open.h (test_open): Relax test.
8877         * tests/test-fopen.h (test_fopen): Likewise.
8878         * tests/test-openat-safer.c (main): Likewise.
8879
8880         open: fix opening directory on mingw
8881         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8882
8883         test-open: on GNU/Hurd, /dev/null is a directory
8884         * tests/test-fopen.h (main): Rename...
8885         (test_fopen): ...to this.  Use a guaranteed non-directory when
8886         confirming open behavior on trailing slash.
8887         * tests/test-openat-safer.c (main): Likewise.
8888         * tests/test-open.h (main): Likewise....
8889         (test_open): ...to this.
8890         * tests/test-fopen.c (main): Adjust caller.
8891         * tests/test-fopen-safer.c (main): Likewise.
8892         * tests/test-open.c (main): Likewise.
8893         * tests/test-fcntl-safer.c (main): Likewise.
8894         Reported by Samuel Thibault.
8895
8896         rename, fchdir: don't ignore chdir failure
8897         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8898         * lib/rename.c (rpl_rename) [W32]: Likewise.
8899         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8900         an empty destination directory if source cannot be renamed,
8901         although there is still possibility for failure.
8902         * doc/posix-functions/rename.texi (rename): Document the race.
8903         Reported by Jim Meyering.
8904
8905         maint: cleanup whitespace in recent commits
8906         * lib/rename.c (rpl_rename): Remove tabs.
8907         * tests/test-link.h (test_link): Likewise.
8908         * lib/fchdir.c (get_name): Likewise.
8909         Reported by Jim Meyering.
8910
8911 2009-10-02  Ben Pfaff  <blp@gnu.org>
8912
8913         relocatable-prog-wrapper: Add missing dependency on
8914         double-slash-root.
8915         * modules/relocatable-prog-wrapper: Add dependency.
8916         Reported by Ian Beckwith <ianb@erislabs.net>.
8917
8918 2009-10-02  Eric Blake  <ebb9@byu.net>
8919
8920         renameat: fix Solaris bugs
8921         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8922         needed fixing.
8923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8924         * modules/stdio (Makefile.am): Substitute it.
8925         * lib/stdio.in.h (renameat): Declare replacement.
8926         * lib/renameat.c (rpl_renameat): Implement fix.
8927
8928         renameat: new module
8929         * modules/renameat: New file.
8930         * lib/renameat.c (renameat): Likewise.
8931         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8933         * modules/stdio (Makefile.am): Substitute them.
8934         * lib/stdio.in.h (renameat): Declare it.
8935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8936         * doc/posix-functions/renameat.texi (renameat): Likewise.
8937         * modules/renameat-tests: New test.
8938         * tests/test-renameat.c: Likewise.
8939
8940         rename: fix mingw bugs
8941         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8942         directory overwrite bugs.
8943
8944         rename: fix another cygwin 1.5 bug
8945         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8946         checks.
8947         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8948         unnecessary cygwin workarounds.  Also work around bug with moving
8949         full directory onto an empty one.
8950         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8951
8952         rename-dest-slash: merge into rename module
8953         * modules/rename-dest-slash (Status): Mark obsolete.
8954         (Depends-on): Add rename.
8955         (Files): Let rename do it all.
8956         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8957         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8958         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8959         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8960         * lib/rename.c (rpl_rename): Update comments.
8961
8962         rename: fix cygwin 1.5.x bugs
8963         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8964         * lib/rename.c (rpl_rename): Work around them.
8965         * modules/rename (Depends-on): Add same-inode.
8966
8967         rename: fix Solaris 10 bug
8968         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8969         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8970         was the only bug.
8971
8972         rename: fix Solaris 9 bug
8973         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8974         on non-directory.  Avoid calling exit.
8975         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8976         strdup.
8977         * modules/rename-tests (Depends-on): Drop lstat.
8978         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8979         (gl_PREREQ_RENAME): Delete unused macro.
8980
8981         rename-dest-slash: fix NetBSD bug
8982         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8983         links.
8984         * modules/rename-dest-slash (Depends-on): Add same-inode.
8985
8986         rename-tests: new test, exposes several platform bugs
8987         * modules/rename-tests: New file.
8988         * tests/test-rename.h: Likewise.
8989         * tests/test-rename.c: Likewise.
8990         * doc/posix-functions/rename.texi (rename): Improve documentation,
8991         including bugs that will eventually be fixed in gnulib.
8992
8993 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8994
8995         * lib/uname.c: Include <stdlib.h>
8996         (uname): Assume version info is available.
8997
8998 2009-10-02  Jim Meyering  <meyering@redhat.com>
8999
9000         gnu-web-doc-update: correct --help output
9001         * build-aux/gnu-web-doc-update: Make --help output relevant.
9002
9003         gnu-web-doc-update: add standard options
9004         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9005
9006         gnu-web-doc-update: New module.
9007         Use this script to automatically update the on-line web documentation
9008         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9009         * modules/gnu-web-doc-update: New file, from coreutils.
9010         * build-aux/gnu-web-doc-update: New script.
9011
9012 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9013
9014         link: LoadLibrary is not needed.
9015         * lib/link.c: Use GetModuleHandle.
9016
9017 2009-10-01  Eric Blake  <ebb9@byu.net>
9018
9019         getopt: bump serial number
9020         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9021         change.
9022
9023         tests: tighten link, rmdir, and remove tests
9024         * tests/test-link.h (includes): No need to use <config.h> here.
9025         Clean up if directory hard link was created, otherwise test for
9026         trailing '.'.
9027         * tests/test-linkat.c (main): Simplify.
9028         * tests/test-remove.c (main): Enhance test for trailing '.'.
9029         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9030
9031 2009-10-01  Jim Meyering  <meyering@redhat.com>
9032
9033         maint.mk: requiring "make major" was annoying, for a "minor" release.
9034         What is intended is "stable", to contrast with alpha and beta,
9035         so require "make stable", not "make major".
9036         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9037         (get_tool_versions): Likewise.
9038         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9039
9040 2009-09-30  Ben Pfaff  <blp@gnu.org>
9041
9042         Fix broken build of replacement for Windows tmpfile().
9043         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9044         flags argument added along with the 'mkostemp' module.
9045
9046 2009-09-28  Bruno Haible  <bruno@clisp.org>
9047
9048         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9049         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9050         to 'remove_elt'.
9051         (gl_list_remove): Update.
9052         * lib/gl_list.c (gl_list_remove): Update.
9053         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9054         to 'remove_elt'.
9055         (gl_oset_remove): Update.
9056         * lib/gl_list.c (gl_oset_remove): Update.
9057         Reported by Eric Blake.
9058
9059 2009-09-28  Eric Blake  <ebb9@byu.net>
9060
9061         doc: mention yet more cygwin 1.7 status
9062         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9063         cygwin.
9064         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9065         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9066
9067         argp: fix test failure
9068         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9069         that are not upper-case.  Pass correct range to tolower.
9070
9071 2009-09-27  Jim Meyering  <meyering@redhat.com>
9072
9073         test-yesno: work around sparc-dash here-document infelicity
9074         Without this change, the literal \177 byte in a here document
9075         would make dash 0.5.5.1-3 access uninitialized memory.
9076         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9077         Instead, use a marker, "@", and filter through tr to create the desired
9078         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9079
9080 2009-09-27  Bruno Haible  <bruno@clisp.org>
9081
9082         Disable untested support for new flavours of ACLs on AIX.
9083         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9084         progress.
9085         * lib/set-mode-acl.c (qset_acl): Likewise.
9086
9087 2008-12-07  Bruno Haible  <bruno@clisp.org>
9088
9089         Add support for new flavours of ACLs on AIX. (Untested.)
9090         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9091         (file_has_acl): Add support for newer AIX.
9092         * lib/set-mode-acl.c (qset_acl): Likewise.
9093         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9094         Rainer Tammer <tammer@tammer.net>.
9095
9096 2009-09-26  Eric Blake  <ebb9@byu.net>
9097
9098         argp: fix compilation of getopt
9099         * lib/getopt.in.h (includes): Use different guard than glibc.
9100         Reported by Sergey Poznyakoff.
9101
9102         doc: mention more cygwin 1.7 status
9103         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9104         bug.
9105         * doc/posix-functions/execl.texi (execl): Likewise.
9106         * doc/posix-functions/execle.texi (execle): Likewise.
9107         * doc/posix-functions/execlp.texi (execlp): Likewise.
9108         * doc/posix-functions/execv.texi (execv): Likewise.
9109         * doc/posix-functions/execve.texi (execve): Likewise.
9110         * doc/posix-functions/execvp.texi (execvp): Likewise.
9111         * doc/glibc-functions/canonicalize_file_name.texi
9112         (canonicalize_file_name): Cygwin 1.7 now provides this.
9113         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9114         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9115         on AT_SYMLINK_NOFOLLOW.
9116
9117 2009-09-24  Eric Blake  <ebb9@byu.net>
9118
9119         test-linkat: make test more robust
9120         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9121
9122         getopt: fix inclusion guards for cygwin
9123         * modules/getopt-posix (Depends-on): Add include-next.
9124         (Makefile.am): Substitute more items in replacement header.
9125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9126         <getopt.h>.
9127         * lib/getopt.in.h (includes): Use split inclusion guard, and
9128         prefer <getopt.h> over include <unistd.h> when one is present.
9129         (option): Also override name of 'struct option'.
9130
9131         same-inode: revert prior change; it is not yet ready
9132         * NEWS: Undo mention of this change.
9133         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9135         * lib/cycle-check.c (cycle_check): Likewise.
9136         * lib/same.c (same_name): Likewise.
9137         * lib/at-func2.c (at_func2): Likewise.
9138
9139 2009-09-23  Eric Blake  <ebb9@byu.net>
9140
9141         linkat: new module
9142         * modules/linkat: New file.
9143         * lib/at-func2.c (at_func2): Likewise.
9144         * lib/linkat.c (linkat): Likewise.
9145         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9146         * lib/openat-priv.h (at_func2): Add declaration.
9147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9148         * modules/unistd (Makefile.am): Substitute them.
9149         * lib/unistd.in.h (linkat): Declare it.
9150         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9151         * doc/posix-functions/linkat.texi (linkat): Likewise.
9152         * doc/posix-functions/link.texi (link): Tweak wording.
9153         * tests/test-link.c (main): Move guts...
9154         * tests/test-link.h (test_link): ...into new file.
9155         * modules/linkat-tests: New test.
9156         * tests/test-linkat.c: Likewise.
9157         * modules/link-tests (Files): Ship new file.
9158         (Depends-on): Add stdbool.
9159
9160         dirname: add library-safe mdir_name
9161         * lib/dirname.h (mdir_name): New prototype.
9162         * lib/dirname.c (dir_name): Move guts...
9163         (mdir_name): ...to new function that avoids xalloc_die.
9164
9165         fchdir: another mingw fix
9166         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9167         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9168         on mingw (where it has not yet been ported), and make it optional
9169         elsewhere.
9170         (_gl_register_fd): Use it.
9171
9172         same-inode: make SAME_INODE tri-state, to port to mingw
9173         * NEWS: Mention this change.
9174         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9175         st_ino always being 0.
9176         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9177         * lib/cycle-check.c (cycle_check): Likewise.
9178         * lib/same.c (same_name): Likewise.
9179
9180         lstat: avoid mingw compilation error
9181         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9182         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9183         lstat ourselves.
9184         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9185         was adequate.
9186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9187         the checks for lstat.
9188         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9189
9190         link: fix test failure on Solaris 9
9191         * lib/link.c (rpl_link): Don't assume link will catch bogus
9192         trailing slash on source.
9193
9194         test-symlinkat: enhance test
9195         * tests/test-readlink.c (main): Move guts...
9196         * tests/test-readlink.h (test_readlink): ...into new file.
9197         * tests/test-symlink.c (main): Move guts...
9198         * tests/test-symlink.h (test_symlink): ...into new file.
9199         * tests/test-symlinkat.c (main): Use new files for further
9200         coverage.
9201         (do_symlink, do_readlink): New helper functions.
9202         * modules/symlink-tests (Files): Ship new file.
9203         (Depends-on): Add stdbool.
9204         * modules/readlink-tests (Files): Ship new file.
9205         (Depends-on): Add stdbool.
9206         * modules/symlinkat-tests (Files): Use new files.
9207
9208 2009-09-23  Eric Blake  <ebb9@byu.net>
9209
9210         readlink: document portability issue with symlink length
9211         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9212         systems have bogus st_size on symlinks, and mention the
9213         areadlink-with-size module.
9214         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9215         * doc/posix-functions/readlink.texi (readlink): Mention the
9216         areadlink module, and ERANGE failure.
9217         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9218         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9219
9220         readlink: fix Solaris 9 bug with trailing slash
9221         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9222         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9223         * doc/posix-functions/readlink.texi (readlink): Document this.
9224         * modules/readlink-tests: New test.
9225         * tests/test-readlink.c: Likewise.
9226
9227         readlink: fix cygwin 1.5.x bug with return type
9228         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9229         * lib/unistd.in.h (readlink): Use ssize_t.
9230         * lib/readlink.c (readlink): Likewise.
9231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9232         * modules/unistd (Makefile.am): Substitute it.
9233         * lib/unistd.in.h (readlink): Declare replacement.
9234         * doc/posix-functions/readlink.texi (readlink): Document this.
9235
9236         symlink: use throughout gnulib
9237         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9238         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9239         symlink is not used.
9240         * modules/symlinkat (Depends-on): Add symlink.
9241         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9242         * modules/canonicalize-tests (Depends-on): Likewise.
9243         * modules/lstat-tests (Depends-on): Likewise.
9244         * modules/openat-tests (Depends-on): Likewise.
9245         * modules/remove-tests (Depends-on): Likewise.
9246         * modules/rmdir-tests (Depends-on): Likewise.
9247         * modules/unlink-tests (Depends-on): Likewise.
9248         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9249         * tests/test-canonicalize.c (symlink): Likewise.
9250         * tests/test-fstatat.c (symlink): Likewise.
9251         * tests/test-lstat.c (symlink): Likewise.
9252         * tests/test-remove.c (symlink): Likewise.
9253         * tests/test-rmdir.c (symlink): Likewise.
9254         * tests/test-unlink.c (symlink): Likewise.
9255         * tests/test-unlinkat.c (symlink): Likewise.
9256
9257         symlink: new module, for Solaris 9 bug
9258         * modules/symlink: New file.
9259         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9260         * lib/symlink.c: Likewise.
9261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9262         * modules/unistd (Makefile.am): Substitute them.
9263         * lib/unistd.in.h (symlink): Declare replacement.
9264         * MODULES.html.sh (File system functions): Mention it.
9265         * doc/posix-functions/symlink.texi (symlink): Likewise.
9266         * modules/symlink-tests: New test.
9267         * tests/test-symlink.c: Likewise.
9268
9269 2009-09-23  Bruno Haible  <bruno@clisp.org>
9270
9271         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9272         when needed.
9273         Test case: gnulib-tool --import --with-tests atexit inttypes.
9274         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9275
9276 2009-09-23  Bruno Haible  <bruno@clisp.org>
9277
9278         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9279         subcommand, not in a subshell.
9280
9281 2009-09-22  Eric Blake  <ebb9@byu.net>
9282
9283         unistd: sort replacement declarations
9284         * lib/unistd.in.h: Sort declarations.
9285
9286         open, openat: minor optimization
9287         * lib/open.c (open): If open succeeded, len is non-zero.
9288         * lib/openat.c (rpl_openat): Likewise.
9289
9290         link-follow: ensure correct result
9291         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9292         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9293         distinguish between possible failures.
9294
9295 2009-09-21  Eric Blake  <ebb9@byu.net>
9296
9297         fts: avoid compiler warning
9298         * lib/fts.c (dirent_inode_sort_may_be_useful)
9299         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9300
9301 2009-09-19  Bruno Haible  <bruno@clisp.org>
9302
9303         * lib/progreloc.c (canonicalize_file_name): New declaration.
9304
9305 2009-09-19  Eric Blake  <ebb9@byu.net>
9306
9307         link: fix quoting
9308         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9309
9310         openat: fix openat bugs on Solaris 9
9311         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9312         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9313         * modules/openat (Depends-on): Add open.
9314         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9315         * modules/fcntl-h (Makefile.am): Substitute it.
9316         * lib/fcntl.in.h (openat): Declare replacement.
9317         * doc/posix-functions/openat.texi (openat): Document this.
9318
9319         openat: move fstatat and unlinkat into correct files
9320         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9321         compiled.
9322         * lib/openat.c (fstatat, unlinkat): Move...
9323         * lib/fstatat.c (fstatat): ...into correct files.
9324         * lib/unlinkat.c (unlinkat): Likewise.
9325
9326         openat: fix unlinkat bugs on Solaris 9
9327         * lib/unlinkat.c (unlinkat): New file.
9328         * modules/openat (Depends-on): Add unlink.
9329         (Files): Distribute it.
9330         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9331         trailing slash behavior is broken.
9332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9333         * modules/unistd (Makefile.am): Substitute it.
9334         * lib/unistd.in.h (unlinkat): Declare replacement.
9335         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9336
9337         openat: fix fstatat bugs on Solaris 9
9338         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9339         stat.
9340         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9341
9342         test-unlinkat: enhance test, to expose Solaris 9 bug
9343         * tests/test-unlink.c (main): Factor guts...
9344         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9345         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9346         * tests/test-rmdir.c (main): Adjust caller.
9347         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9348         (unlinker): New helper function.
9349         (rmdirat): Enhance check.
9350         * modules/rmdir-tests (Depends-on): Add stdbool.
9351         * modules/unlink-tests (Depends-on): Likewise.
9352         (Files): Add test-unlink.h.
9353         * modules/openat-tests (Files): Likewise.
9354         (Depends-on): Add unlinkdir.
9355
9356         test-fstatat: new test, to expose Solaris 9 bugs
9357         * tests/test-stat.c (main): Factor guts...
9358         * tests/test-stat.h (test_stat_func): ...into new file.
9359         * tests/test-lstat.c (main): Factor guts...
9360         * tests/test-lstat.h (test_lstat_func): ...into new file.
9361         * tests/test-fstatat.c: New file.
9362         * modules/stat-tests (Files): Add test-stat.h.
9363         * modules/lstat-tests (Files): Add test-lstat.h.
9364         (Depends-on): Add stdbool.
9365         * modules/openat-tests (Depends-on): Add pathmax.
9366         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9367         (Makefile.am): Run new test.
9368
9369         remove: new module, for mingw and Solaris 9 bugs
9370         * modules/remove: New file.
9371         * lib/remove.c: Likewise.
9372         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9374         * modules/stdio (Makefile.am): Use them.
9375         * lib/stdio.in.h (remove): Declare replacement.
9376         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9377         * doc/posix-functions/remove.texi (remove): Likewise.
9378         * modules/remove-tests: New test.
9379         * tests/test-remove.c: Likewise.
9380
9381         unlink: new module, for Solaris 9 bug
9382         * modules/unlink: New file.
9383         * lib/unlink.c: Likewise.
9384         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9386         * modules/unistd (Makefile.am): Use them.
9387         * lib/unistd.in.h (stat): Declare replacement.
9388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9389         * doc/posix-functions/unlink.texi (unlink): Likewise.
9390         * modules/unlink-tests: New test.
9391         * tests/test-unlink.c: Likewise.
9392
9393         lstat: fix Solaris 9 bug
9394         * lib/lstat.c (lstat): Also check for trailing slash on
9395         non-symlink, non-directories.  Use stat module to simplify logic.
9396         * doc/posix-functions/lstat.texi (lstat): Document it.
9397         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9398         (configure.ac): Check for symlink.
9399         * tests/test-lstat.c (main): Add more tests.
9400
9401         stat: add as dependency to other modules
9402         * modules/chown (Depends-on): Add stat.
9403         * modules/euidaccess (Depends-on): Likewise.
9404         * modules/fchdir (Depends-on): Likewise.
9405         * modules/isdir (Depends-on): Likewise.
9406         * modules/link (Depends-on): Likewise.
9407         * modules/lstat (Depends-on): Likewise.
9408         * modules/mkdir-p (Depends-on): Likewise.
9409         * modules/modechange (Depends-on): Likewise.
9410         * modules/open (Depends-on): Likewise.
9411         * modules/readlink (Depends-on): Likewise.
9412         * modules/same (Depends-on): Likewise.
9413
9414         stat: fix Solaris 9 bug
9415         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9416         slash.
9417         * lib/stat.c (rpl_stat): Work around it.
9418         * doc/posix-functions/stat.texi (stat): Update documentation.
9419
9420         stat: new module, for mingw bug
9421         * modules/stat: New file.
9422         * lib/stat.c: Likewise.
9423         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9425         * modules/sys_stat (Makefile.am): Use them.
9426         * lib/sys_stat.in.h (stat): Declare replacement.
9427         * lib/openat.c (fstatat): Deal with lstat and stat being function
9428         macros.
9429         * modules/openat (Depends-on): Add inline.
9430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9431         * doc/posix-functions/stat.texi (stat): Likewise.
9432         * modules/stat-tests: New test.
9433         * tests/test-stat.c: Likewise.
9434
9435 2009-09-19  Jim Meyering  <meyering@redhat.com>
9436
9437         syntax-check: detect unnecessary inclusion of canonicalize.h
9438         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9439
9440 2009-09-19  Eric Blake  <ebb9@byu.net>
9441
9442         canonicalize-lgpl: adjust clients to use correct header
9443         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9444         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9445         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9446         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9447         * lib/progreloc.c (includes): Likewise.
9448
9449 2009-09-19  Jim Meyering  <meyering@redhat.com>
9450
9451         test-posixtm.c: correct a comment
9452         * tests/test-posixtm.c: Correct first-line comment.
9453         Spotted by Eric Blake.
9454
9455 2009-09-16  Jim Meyering  <meyering@redhat.com>
9456
9457         posixtm-tests: make T const-correct; add a test case
9458         * tests/test-posixtm.c (T): Declare const.
9459         Add a test for -(2^31+1).
9460         Remove useless can-succeed-only-in-2002 test.
9461
9462         posixtm-tests: adjust the sole failing test
9463         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9464         expected output matches what mktime now produces.  Cross-checked via
9465         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9466
9467         posixtm: move #ifdef'd tests into a new module
9468         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9469         * tests/test-posixtm.c: ... this new file.
9470         * modules/posixtm-tests: New module.
9471
9472 2009-09-19  Eric Blake  <ebb9@byu.net>
9473
9474         openat: simplify use of at-func.c
9475         * lib/at-func.c (includes): Include prerequisites here, to
9476         simplify requirements on client files.
9477         * lib/openat-priv.h: Add double-inclusion guard.
9478         * lib/faccessat.c (includes): Simplify.
9479         * lib/fchmodat.c (includes): Likewise.
9480         * lib/fchownat.c (includes): Likewise.
9481         * lib/mkdirat.c (includes): Likewise.
9482         * lib/mkfifoat.c (includes): Likewise.
9483         * lib/symlinkat.c (includes): Likewise.
9484
9485         openat: allow return of fd 0
9486         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9487         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9488         unistd-safer.
9489         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9490         <fcntl.h>; this module does not leak fds.
9491         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9492         must be allowed to return 0, leaving openat_safer to add the
9493         safety.
9494         (openat_permissive): Avoid writing to just-opened fd 2 if
9495         restoring the current directory fails.
9496         * lib/openat-die.c (openat_restore_fail): Add comment.
9497         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9498         (save_cwd): Guarantee safe fd, but without use of open_safer.
9499         * tests/test-openat.c: New test.
9500         * modules/openat-tests (Files, Makefile.am): Distribute and build
9501         new file.
9502
9503         relocatable-prog-wrapper: fix build
9504         * modules/relocatable-prog-wrapper (Files): Update name of
9505         canonicalize m4 file, broken on 2009-09-17.
9506         Reported by emad hajjar <aleppos@hotmail.com>.
9507
9508 2009-09-19  Bruno Haible  <bruno@clisp.org>
9509
9510         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9511         * lib/safe-alloc.c: Likewise.
9512         Reported by Ian Beckwith <ianb@erislabs.net>.
9513
9514 2009-09-18  Bruno Haible  <bruno@clisp.org>
9515
9516         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9517         Reported by <erobles@sensacd.com.mx>.
9518
9519 2009-09-17  Eric Blake  <ebb9@byu.net>
9520
9521         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9522         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9523         slashes when checking if last component is missing.
9524         * tests/test-canonicalize.c (main): Test this.
9525
9526         canonicalize, canonicalize-lgpl: honor // if distinct from /
9527         * modules/canonicalize (Files): Add double-slash-root.m4.
9528         * modules/canonicalize-lgpl (Files): Likewise.
9529         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9530         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9531         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9532         fallback definition.
9533         (canonicalize_filename_mode): Use it to protect //.
9534         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9535         (__realpath): Likewise.
9536         * tests/test-canonicalize.c (main): Test this.
9537         * tests/test-canonicalize-lgpl.c (main): Likewise.
9538         * modules/canonicalize-tests (Depends-on): Add same-inode.
9539         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9540
9541         canonicalize-lgpl: fix glibc bug with trailing slash
9542         * m4/canonicalize-lgpl.m4: Move contents...
9543         * m4/canonicalize.m4: ...here.
9544         (gl_CANONICALIZE_LGPL): Factor realpath check...
9545         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9546         glibc 2.3.5 bug, fixed 2005-04-27.
9547         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9548         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9549         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9550         * modules/canonicalize-lgpl (Files): Manage file rename.
9551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9552         * modules/stdlib (Makefile.am): Substitute witness.
9553         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9554         is needed.
9555         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9556         replacement is required.
9557         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9558         * doc/glibc-functions/canonicalize_file_name.texi
9559         (canonicalize_file_name): Document this.
9560         * doc/posix-functions/realpath.texi (realpath): Likewise.
9561
9562         canonicalize-lgpl: reject non-directory with trailing slash
9563         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9564         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9565         catches failures in glibc 2.3.5.
9566         * tests/test-canonicalize.c (main): Likewise.
9567
9568         canonicalize-lgpl: use native realpath if it works
9569         * lib/canonicalize-lgpl.c (realpath): Guard with
9570         FUNC_REALPATH_WORKS.
9571         * lib/stdlib.in.h (realpath): Make declaration optional based on
9572         HAVE_REALPATH.
9573         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9574         native realpath works.
9575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9576         * modules/stdlib (Makefile.am): Substitute witness.
9577
9578         canonicalize, canonicalize-lgpl: use <stdlib.h>
9579         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9580         (Include): Mention <stdlib.h>.
9581         (configure.ac): Mention functions we provide.
9582         * modules/canonicalize (configure.ac): Likewise.
9583         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9584         realpath if canonicalize_file_name is missing.
9585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9586         * modules/stdlib (Makefile.am): Substitute witnesses.
9587         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9588         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9589         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9590         * NEWS: Document this.
9591         * doc/glibc-functions/canonicalize_file_name.texi
9592         (canonicalize_file_name): Likewise.
9593         * doc/posix-functions/realpath.texi (realpath): Likewise.
9594         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9595
9596         test-canonicalize: consolidate into single C program
9597         * tests/test-canonicalize.sh: Delete; move setup into...
9598         * tests/test-canonicalize.c (main): ...the program, making it
9599         easier to run in debugger.  Add some tests.
9600         * modules/canonicalize-tests (Files): Remove unused file.
9601         (Depends-on): Add progname.
9602         (configure.ac, Makefile.am): Simplify.
9603
9604         test-canonicalize-lgpl: consolidate into single C program
9605         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9606         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9607         easier to run in debugger.  Add some tests.
9608         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9609         (configure.ac, Makefile.am): Simplify.
9610
9611         canonicalize: avoid resolvepath
9612         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9613         unnecessary checks.
9614         * lib/canonicalize.c (includes): Simplify.
9615         (canonicalize_file_name): Drop resolvepath implementation.
9616         * modules/canonicalize (Depends-on): Drop filenamecat.
9617
9618         canonicalize: don't lose errno
9619         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9620         over calls to free.
9621
9622         canonicalize: simplify errno handling
9623         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9624         assignment.
9625
9626         canonicalize, canonicalize-lgpl: update module dependencies
9627         * modules/canonicalize (Depends-on): Add extensions, lstat,
9628         pathmax, stdlib.
9629         (Files): Drop pathmax.h.
9630         (configure.ac): Adjust macro name.
9631         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9632         lstat, stdlib, sys_stat.
9633         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9634         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9635         extensions.
9636         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9637         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9638         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9639         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9640         declaration, if available.
9641         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9642         we can rely on the readlink module.
9643         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9644         (includes): Use <unistd.h> unconditionally.
9645
9646 2009-09-17  Eric Blake  <ebb9@byu.net>
9647
9648         maint: make Include sections of modules consistent
9649         * modules/alloca: Use only header name; no need to list #include.
9650         * modules/alloca-opt: Likewise.
9651         * modules/arpa_inet: Likewise.
9652         * modules/canon-host: Likewise.
9653         * modules/configmake: Likewise.
9654         * modules/dirent: Likewise.
9655         * modules/eealloc: Likewise.
9656         * modules/environ: Likewise.
9657         * modules/fchdir: Likewise.
9658         * modules/fcntl: Likewise.
9659         * modules/fcntl-h: Likewise.
9660         * modules/gethrxtime: Likewise.
9661         * modules/gettime: Likewise.
9662         * modules/ignore-value: Likewise.
9663         * modules/inet_ntop: Likewise.
9664         * modules/inet_pton: Likewise.
9665         * modules/inttypes: Likewise.
9666         * modules/isnand-nolibm: Likewise.
9667         * modules/isnanf-nolibm: Likewise.
9668         * modules/mbchar: Likewise.
9669         * modules/mbfile: Likewise.
9670         * modules/mbiter: Likewise.
9671         * modules/mbuiter: Likewise.
9672         * modules/netdb: Likewise.
9673         * modules/netinet_in: Likewise.
9674         * modules/nproc: Likewise.
9675         * modules/pagealign_alloc: Likewise.
9676         * modules/poll: Likewise.
9677         * modules/printf-frexp: Likewise.
9678         * modules/pthread: Likewise.
9679         * modules/putenv: Likewise.
9680         * modules/random_r: Likewise.
9681         * modules/relocatable-prog: Likewise.
9682         * modules/search: Likewise.
9683         * modules/select: Likewise.
9684         * modules/selinux-h: Likewise.
9685         * modules/settime: Likewise.
9686         * modules/signal: Likewise.
9687         * modules/size_max: Likewise.
9688         * modules/socklen: Likewise.
9689         * modules/ssize_t: Likewise.
9690         * modules/stdarg: Likewise.
9691         * modules/stdbool: Likewise.
9692         * modules/stddef: Likewise.
9693         * modules/stdint: Likewise.
9694         * modules/stdio: Likewise.
9695         * modules/stdlib: Likewise.
9696         * modules/string: Likewise.
9697         * modules/strings: Likewise.
9698         * modules/sys_file: Likewise.
9699         * modules/sys_ioctl: Likewise.
9700         * modules/sys_select: Likewise.
9701         * modules/sys_socket: Likewise.
9702         * modules/sys_stat: Likewise.
9703         * modules/sys_time: Likewise.
9704         * modules/sys_times: Likewise.
9705         * modules/sys_utsname: Likewise.
9706         * modules/sys_wait: Likewise.
9707         * modules/sysexits: Likewise.
9708         * modules/time: Likewise.
9709         * modules/times: Likewise.
9710         * modules/tmpfile: Likewise.
9711         * modules/trim: Likewise.
9712         * modules/unistd: Likewise.
9713         * modules/wchar: Likewise.
9714         * modules/wctype: Likewise.
9715
9716 2009-09-17  Bruno Haible  <bruno@clisp.org>
9717
9718         Make getdate.y compile on QNX and NetBSD 5 / i386.
9719         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9720         TIME_T_FITS_IN_LONG_INT.
9721         * lib/getdate.y (long_time_t): New type.
9722         (relative_time): Change type of 'seconds' field to long_time_t.
9723         (get_date): Update types of local variables. Check against overflow
9724         during conversion from long_time_t to time_t.
9725         Reported by Matt Kraai <kraai@ftbfs.org>
9726         and Hasso Tepper <hasso@netbsd.org>.
9727
9728 2009-09-17  Bruno Haible  <bruno@clisp.org>
9729
9730         * modules/COPYING: Update copyright years.
9731         * modules/README: Likeiwse.
9732         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9733         Reported by Ian Beckwith <ianb@erislabs.net>.
9734
9735 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9736
9737         * users.txt: Update references for gnuit package.
9738
9739 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9740
9741         * m4/getdelim.m4: Fix typo in copyright line.
9742
9743 2009-09-17  Bruno Haible  <bruno@clisp.org>
9744
9745         * lib/atoll.c: Use the standard header with GPL copyright.
9746         * lib/argz.in.h: Likewise.
9747         * lib/glob.c: Likewise.
9748         * lib/glob-libc.h: Likewise.
9749         * lib/random_r.c: Likewise.
9750         * lib/siglist.h: Likewise.
9751         * lib/strsignal.c: Likewise.
9752         Reported by Ian Beckwith <ianb@erislabs.net>.
9753
9754 2009-09-17  Eric Blake  <ebb9@byu.net>
9755
9756         rmdir: ensure correct dependency order
9757         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9758
9759 2009-09-17  Bruno Haible  <bruno@clisp.org>
9760
9761         Disable assertion that fails on NetBSD 5 / i386.
9762         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9763         Reported by Sam Steingold <sds@gnu.org>
9764         and Hasso Tepper <hasso@netbsd.org>.
9765
9766 2009-09-16  Eric Blake  <ebb9@byu.net>
9767
9768         unlinkdir: port to mingw
9769         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9770         on which no one can unlink a directory.
9771
9772         stdlib: sort witness names
9773         * modules/stdlib (Makefile.am): Sort replacements.
9774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9775         * lib/stdlib.in.h: Likewise.
9776
9777         parse-duration-tests: avoid link failure
9778         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9779         LIBINTL.
9780         Reported by Tom G. Christensen.
9781
9782         openat-tests: ensure unlinkat behaves like rmdir
9783         * tests/test-rmdir.c (main): Factor guts...
9784         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9785         * modules/rmdir-tests (Files): Ship new file.
9786         * modules/openat-tests: New test.
9787         * tests/test-unlinkat.c: Likewise.
9788
9789         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9790         * modules/rmdir-errno (Status, Notice): Now obsolete.
9791
9792         rmdir: work around cygwin 1.5.x and mingw bugs
9793         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9794         * lib/rmdir.c (rmdir): Work around it.
9795         * modules/rmdir (Status, Notice): No longer obsolete.
9796         (Files): Add dos.m4.
9797         (Depends-on): Add unistd.
9798         (configure.ac): Set witnesses.
9799         (License): Relax to LGPLv2+.
9800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9801         * modules/unistd (Makefile.am): Substitute witnesses.
9802         * lib/unistd.in.h (rmdir): Declare replacement.
9803         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9804         * modules/rmdir-tests: New tests.
9805         * tests/test-rmdir.c: Likewise.
9806
9807 2009-09-15  Eric Blake  <ebb9@byu.net>
9808
9809         fchdir: improve use of replacement functions
9810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9812         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9813         REPLACE_CLOSEDIR.
9814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9815         * modules/sys_stat (Makefile.am): Substitute correct witness.
9816         * modules/dirent (Makefile.am): Likewise.
9817         * modules/unistd (Makefile.am): Likewise.
9818         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9819         * lib/unistd.in.h (dup): Likewise.
9820         * lib/sys_stat.in.h (fstat): Likewise.
9821
9822         maint: ignore gnulib-tool temp files
9823         * .gitignore: Ignore files created during gnulib-tool --test.
9824
9825 2009-09-13  Jim Meyering  <meyering@redhat.com>
9826
9827         posixtm: don't reject a time that specify "60" as the number of seconds
9828         * lib/posixtm.c (posixtime): The code to reject invalid dates
9829         would also reject a time specified with the .60 suffix.
9830         But POSIX allows that, in order to accommodate leap seconds.
9831         So don't reject it.
9832         (main): Adjust tests accordingly.
9833         * modules/posixtm (Depends-on): Add stpcpy.
9834
9835 2009-09-11  Jim Meyering  <meyering@redhat.com>
9836
9837         announce-gen: include [$release_type] in emitted Subject:
9838         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9839         e.g., [stable] in the emitted Subject: line.
9840
9841 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9842
9843         Remove obsolete macros from several modules.
9844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9845         obsolete Autoconf macros with their modern counterparts.
9846         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9847         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9849         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9850         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9851         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9853         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9854         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9855         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9856         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9857         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9858         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9859         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9860         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9861         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9862         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9863         * m4/time_r.m4 (gl_TIME_R): Likewise.
9864         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9865         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9866         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9867
9868         Fix copyright header in build-aux scripts.
9869         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9870         recommendation.
9871         * build-aux/ncftpput-ftp: Likewise.
9872         * build-aux/update-copyright: Likewise.
9873
9874 2009-09-09  Eric Blake  <ebb9@byu.net>
9875
9876         test-link: allow Linux choice of errno
9877         * tests/test-link.c (main): Relax test for alternate error.
9878
9879         strndup: fix improper m4 caching
9880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9881         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9882         (gl_PREREQ_STRNDUP): Delete.
9883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9884         * modules/string (Makefile.am): Substitute it.
9885         * lib/string.in.h (strndup): Modernize prototype.
9886
9887         getcwd: port to mingw
9888         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9889         different from the POSIX assumptions made throughout the getcwd
9890         module; fortunately, the mingw getcwd does not need replacement.
9891         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9892         * modules/getcwd-tests: New test.
9893         * tests/test-getcwd.c: Likewise.
9894
9895         link: fix platform bugs
9896         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9897         * lib/link.c (link): Work around them.  Fix related mingw bug.
9898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9899         * modules/unistd (Makefile.am): Substitute it.
9900         * lib/unistd.in.h (link): Declare replacement.
9901         * doc/posix-functions/link.texi (link): Document this.
9902         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9903
9904         test-link: consolidate into single C program, test more cases
9905         * tests/test-link.sh: Delete.
9906         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9907         at least Cygwin and Solaris.
9908         * modules/link-tests (Files): Remove unused file.
9909         (Depends-on): Add errno, sys_stat.
9910         (Makefile.am): Simplify.
9911
9912 2009-09-08  Bruno Haible  <bruno@clisp.org>
9913
9914         Work around towlower, towupper bug on mingw.
9915         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9916         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9917         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9918         * doc/posix-functions/towupper.texi: Likewise.
9919         Reported by Eric Blake.
9920
9921 2009-09-08  Jim Meyering  <meyering@redhat.com>
9922
9923         build: don't try to run autoheader if we don't use it
9924         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9925         is not used in configure.ac.
9926
9927 2009-09-08  Eric Blake  <ebb9@byu.net>
9928
9929         euidaccess: fix compilation error
9930         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9931
9932         rawmemchr: relax license
9933         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9934         okay.
9935         Reported by Jim Meyering.
9936
9937         mkfifoat: new module
9938         * modules/mkfifoat: New file.
9939         * lib/mkfifoat.c: Likewise.
9940         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9942         * modules/sys_stat (Makefile.am): Use them.
9943         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9944         * MODULES.html.sh (File system functions): Mention module.
9945         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9946         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9947         * modules/mkfifoat-tests: New test.
9948         * tests/test-mkfifoat.c: Likewise.
9949
9950         strchrnul: relax license
9951         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9952         okay.
9953         Reported by Jim Meyering.
9954
9955 2009-09-08  Eric Blake  <ebb9@byu.net>
9956
9957         fstatat: fix compilation on Solaris
9958         * lib/fstatat.c (includes): Add fcntl.h.
9959         Reported by Pádraig Brady.
9960
9961 2009-09-07  Eric Blake  <ebb9@byu.net>
9962
9963         rename: modernize replacement
9964         * modules/rename (Depends-on): Add stdio.
9965         (configure.ac): Declare witness.
9966         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9967         stdio take care of replacement.
9968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9969         * modules/stdio (Makefile.am): Substitute them.
9970         * lib/stdio.in.h (rename): Declare replacement.
9971         * lib/rename.c (includes): Allow cross-compilation to non-windows
9972         machines.
9973         * doc/posix-functions/rename.texi (rename): Improve
9974         documentation.
9975
9976         stdio: sort witness names
9977         * modules/stdio (Makefile.am): Sort replacements.
9978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9979         * lib/stdio.in.h: Likewise.
9980
9981         getcwd: minor cleanups
9982         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9983         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9984
9985         openat: provide more convenience names
9986         * modules/faccessat (configure.ac): Add C witness.
9987         * lib/unistd.in.h (readlinkat): Fix typo.
9988         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9989         convenience wrappers.
9990         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9991         wrappers in syntax checks.
9992
9993 2009-09-06  Eric Blake  <ebb9@byu.net>
9994
9995         doc: fix comments in recent patches
9996         * lib/faccessat.c: Mention correct function.
9997         * lib/fchmodat.c: Likewise.
9998         * lib/fchownat.c: Likewise.
9999         * lib/symlinkat.c: Likewise.
10000         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10001         constants.
10002
10003         faccessat, symlinkat: continue cleanup of previous patch
10004         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10005         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10006         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10008         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10009         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10010         set.
10011
10012 2009-09-06  Bruno Haible  <bruno@clisp.org>
10013
10014         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10015         (fstatat): Declare if GNULIB_FSTATAT is set.
10016         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10017         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10018         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10019         * modules/fcntl-h (Files): Remove m4/openat.m4.
10020         * modules/sys_stat (Files): Remove m4/openat.m4.
10021         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10022         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10023         * modules/unistd (Files): Remove m4/openat.m4.
10024         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10025         GNULIB_OPENAT.
10026         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10027         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10029         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10030         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10031         gl_OPENAT_DEFAULTS.
10032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10033         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10034         Don't require gl_OPENAT_DEFAULTS.
10035         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10036         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10037         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10038         (gl_OPENAT_DEFAULTS): Remove macro.
10039
10040 2009-09-06  Bruno Haible  <bruno@clisp.org>
10041
10042         * modules/openat (configure.ac): Remove unneeded witness.
10043
10044 2009-09-06  Bruno Haible  <bruno@clisp.org>
10045
10046         Set errno to ENOSYS when a function is entirely unsupported.
10047         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10048         EOPNOTSUPP.
10049         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10050         * modules/chown (Depends-on): Remove errno.
10051
10052 2009-09-06  Bruno Haible  <bruno@clisp.org>
10053
10054         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10055
10056 2009-09-06  Bruno Haible  <bruno@clisp.org>
10057
10058         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10059
10060 2009-09-06  Ben Pfaff  <blp@gnu.org>
10061             Bruno Haible  <bruno@clisp.org>
10062
10063         Work around a glibc bug in strtok_r.
10064         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10065         Undefine if UNDEFINE_STRTOK_R is set.
10066         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10068         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10069         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10070         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10071         UNDEFINE_STRTOK_R.
10072         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10073
10074 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10075
10076         exclude: minor fix
10077         * lib/exclude.c: Include wctype.h
10078
10079 2009-09-06  Akim Demaille  <demaille@gostai.com>
10080
10081         bootstrap: improve error message
10082         * build-aux/bootstrap (find_tool): Upon failure, report the list
10083         of candidates.
10084         Honor the initial value of the envvar.
10085
10086 2009-09-05  Eric Blake  <ebb9@byu.net>
10087
10088         symlinkat: new module
10089         * modules/symlinkat: New file.
10090         * lib/symlinkat.c: Likewise.
10091         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10093         * modules/unistd (Makefile.am): Use them.
10094         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10095         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10096         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10097         * MODULES.html.sh (File system functions): Mention module.
10098         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10099         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10100         * modules/symlinkat-tests: New test.
10101         * tests/test-symlinkat.c: Likewise.
10102
10103         test-openat-safer: add more checks
10104         * tests/test-openat-safer.c (main): Check more code paths.
10105
10106 2009-09-05  Jim Meyering  <meyering@redhat.com>
10107
10108         syntax-check: detect unnecessary inclusion of openat.h
10109         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10110
10111 2009-09-05  Bruno Haible  <bruno@clisp.org>
10112
10113         Support towlower, towupper.
10114         * doc/posix-functions/towlower.texi: Mention module wctype.
10115         * doc/posix-functions/towupper.texi: Likewise.
10116         * lib/wctype.in.h (towlower, towupper): New functions.
10117         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10118         (ASSERT): New macro.
10119         (e): New variable.
10120         (main): Test also towlower, towupper. Test WEOF argument.
10121         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10122
10123 2009-09-05  Bruno Haible  <bruno@clisp.org>
10124
10125         Fix conversion behaviour when the input is invalid.
10126         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10127         mark occurring in first pass of indirect conversion.
10128         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10129         input.
10130         Found by clang's static analyzer.
10131
10132 2009-09-05  Bruno Haible  <bruno@clisp.org>
10133
10134         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10135         where direct conversion is possible.
10136
10137 2009-09-04  Eric Blake  <ebb9@byu.net>
10138
10139         openat: fail with ENOENT on empty name
10140         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10141         buffer.
10142
10143         link-follow: fix logic bug in prior patch
10144         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10145         reversed sense of yes and no in prior patch.  Avoid confusing
10146         compilation failure with desired semantics.
10147
10148         link-follow: accomodate mingw and cross-compilation
10149         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10150         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10151         cross-compilation results to -1, to make linkat easier to
10152         implement when cross-compiling.  Trivially support mingw.
10153         * modules/link-follow (configure.ac): Call new name.
10154         * NEWS: Mention this.
10155
10156 2009-09-03  Eric Blake  <ebb9@byu.net>
10157
10158         faccessat: compile replacement
10159         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10160         needed.
10161
10162         fts: fix compilation error
10163         * lib/fts.c (includes): Re-add "openat.h", for
10164         openat_needs_fchdir.
10165
10166         faccessat: new module
10167         * modules/faccessat: New file.
10168         * lib/faccessat.c: Likewise.
10169         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10171         * modules/unistd (Makefile.am): Use it.
10172         * lib/unistd.in.h (faccessat): Declare it.
10173         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10174         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10175         * MODULES.html.sh (File system functions): Mention it.
10176         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10177         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10178
10179         euidaccess: prefer POSIX over non-standard implementation
10180         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10181         * lib/euidaccess.c (euidaccess): Use it if available.
10182
10183         openat: make template easier to use
10184         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10185         AT_FUNC_F2 to be undefined.
10186         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10187         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10188         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10189         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10190         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10191         Likewise.
10192         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10193         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10194         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10195         Likewise.
10196
10197         openat: declare in POSIX headers
10198         * NEWS: Mention this.
10199         * modules/openat (configure.ac): Declare witnesses.
10200         (Depends-on): Add fcntl-h, sys_stat, unistd.
10201         (Include): Mention correct headers.
10202         * modules/fcntl-h (Depends-on): Add link-warning.
10203         (Files): Add openat.m4.
10204         (Makefile.am): Substitute witnesses.
10205         * modules/sys_stat (Files, Makefile.am): Likewise.
10206         * modules/unistd (Files, Makefile.am): Likewise.
10207         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10208         (gl_OPENAT_DEFAULTS): New macro.
10209         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10212         (SYS_STAT_H): Remove unused variable.
10213         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10214         * lib/fcntl--.h (includes): Remove unneeded header.
10215         * lib/openat-safer.c (includes): Likewise.
10216         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10217         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10218         appropriate headers.
10219         (__OPENAT_PREFIX): Delete.
10220         * lib/fcntl.in.h (openat): Provide declaration.
10221         (AT_FDCWD): Fix Solaris bug.
10222         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10223         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10224         * lib/fchmodat.c (includes):  Adjust to find declaration.
10225         * lib/fchownat.c (includes): Likewise.
10226         * lib/mkdirat.c (includes): Likewise.
10227         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10228         still visible.
10229
10230 2009-09-02  Eric Blake  <ebb9@byu.net>
10231
10232         errno: use consistently
10233         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10234         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10235         * lib/canonicalize.c (ELOOP): Likewise.
10236         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10237         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10238         * lib/lchown.c (EOPNOTSUPP): Likewise.
10239         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10240         * lib/savewd.c (ESTALE): Likewise.
10241         * lib/settime.c (ENOSYS): Likewise.
10242         * lib/utimens.c (ENOSYS): Likewise.
10243         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10244         * lib/chdir-safer.c (ELOOP): Likewise.
10245         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10246         * modules/c-stack (Depends-on): Add errno.
10247         * modules/canonicalize (Depends-on): Likewise.
10248         * modules/chdir-safer (Depends-on): Likewise.
10249         * modules/fdopendir (Depends-on): Likewise.
10250         * modules/inet_ntop (Depends-on): Likewise.
10251         * modules/inet_pton (Depends-on): Likewise.
10252         * modules/lchown (Depends-on): Likewise.
10253         * modules/openat (Depends-on): Likewise.
10254         * modules/savewd (Depends-on): Likewise.
10255         * modules/settime (Depends-on): Likewise.
10256         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10257
10258         fts: avoid leaking fds
10259         * modules/fts (Depends-on): Add cloexec.
10260         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10261         flag.
10262
10263         fts: make directory fds more robust
10264         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10265         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10266
10267         backupfile, chdir-long, fts, savedir: make safer
10268         * lib/backupfile.c (includes): Use "dirent--.h", since
10269         numbered_backup can write to stderr during readdir.
10270         * lib/savedir.c (includes): Likewise.
10271         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10272         emulation can write to stderr on failure.
10273         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10274         * lib/getcwd.c: Document why opendir_safer is unused.
10275         * lib/glob.c: Likewise.
10276         * lib/scandir.c: Likewise.
10277         * lib/openat-proc.c: Likewise, for open_safer.
10278         * modules/backupfile (Depends-on): Add dirent-safer.
10279         * modules/savedir (Depends-on): Likewise.
10280         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10281         * modules/chdir-long (Depends-on): Add openat-safer.
10282
10283         openat-safer: new module
10284         * modules/openat-safer: New file.
10285         * lib/openat-safer.c: Likewise.
10286         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10287         * lib/fcntl-safer.h (openat_safer): Declare.
10288         * lib/fcntl--.h (openat): Override.
10289         * MODULES.html.sh (File descriptor based I/O): Mention it.
10290         * lib/openat.h: Add double-inclusion guards.
10291         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10292         "fcntl--.h", so we can implement openat.
10293         * modules/openat-safer-tests: New test.
10294         * tests/test-openat-safer.c: New file.
10295
10296         dirent-safer: new module
10297         * modules/dirent-safer: New file.
10298         * lib/dirent--.h: Likewise.
10299         * lib/dirent-safer.h: Likewise.
10300         * lib/opendir-safer.c: Likewise.
10301         * m4/dirent-safer.m4: Likewise.
10302         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10303         * modules/dirent-safer-tests: New test.
10304         * tests/test-dirent-safer.c: New file.
10305         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10306
10307         fdopendir: optimize on mingw
10308         * lib/unistd.in.h (_gl_directory_name): New prototype.
10309         * lib/fchdir.c (_gl_directory_name): Implement it.
10310         (fchdir): Use it to simplify implementation.
10311         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10312         fchdir, when available, to avoid calling [f]chdir().
10313
10314         fdopendir: split into its own module
10315         * lib/openat.c (fdopendir): Move...
10316         * lib/fdopendir.c: ...into new file.
10317         * modules/fdopendir: New module.
10318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10319         * modules/openat (Depends-on): Add fdopendir.
10320         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10321         fdopendir here.
10322         * modules/savedir (Depends-on): Only need fdopendir, not full
10323         openat.
10324         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10325         * lib/openat.h (fdopendir): Drop prototype.
10326         * lib/dirent.in.h (fdopendir): Provide prototype.
10327         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10328         * modules/dirent (Makefile.am): Substitute them.
10329         * MODULES.html.sh (File system functions): Mention it.
10330         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10331         * modules/fdopendir-tests: New file.
10332         * tests/test-fdopendir.c: Likewise.
10333
10334         fchdir: use more consistent macro convention
10335         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10336         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10337         REPLACE_FCHDIR, rather than relying on config.h macros.
10338         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10339         inside a single make-time REPLACE_FCHDIR block, rather than using
10340         the config.h FCHDIR_REPLACEMENT.
10341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10342         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10343         Manage fstat replacement.
10344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10345         REPLACE_FCHDIR.
10346         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10347         (Makefile.am): Substitute REPLACE_FCHDIR.
10348         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10349         FCHDIR_REPLACEMENT.
10350         * lib/dup-safer.c (dup_safer): Likewise.
10351         * lib/dup2.c (rpl_dup2): Likewise.
10352         * lib/dup3.c (rpl_dup3): Likewise.
10353         * lib/open.c (rpl_open): Likewise.
10354
10355         fchdir: simplify error handling, and support dup3
10356         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10357         stdbool, malloc-posix, realloc-posix.
10358         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10359         (ensure_dirs_slot): Return false on allocation failure.
10360         (rpl_dup2): Delete.
10361         (_gl_register_dup): New function.
10362         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10363         (_gl_register_fd): Close fd on allocation failure.
10364         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10365         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10366         prototype.
10367         (rpl_dup2_fchdir): Delete prototype.
10368         * lib/open.c (open): Update caller.
10369         * lib/dup2.c (dup2): Track fchdir metadata.
10370         * lib/dup3.c (dup3): Likewise.
10371         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10373
10374 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10375
10376         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10377         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10378         don't pass arguments to AC_OUTPUT.
10379
10380 2009-09-02  Bruno Haible  <bruno@clisp.org>
10381
10382         * modules/mkdtemp (License): Relicense under LGPLv2+.
10383         Reported by Paolo Bonzini.
10384
10385 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10386
10387         Replace uses of obsolete autoconf macros in Jim's modules.
10388         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10389         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10390         can evoke a warning from autoconf when run with -Wobsolete
10391         enabled.  They were declared obsolete for good reasons (see
10392         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10393         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10394         should not continue using the deprecated macros.
10395         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10396         obsolete Autoconf macros with modern counterparts.
10397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10398         * m4/dos.m4 (gl_AC_DOS): Likewise.
10399         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10400         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10401         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10402         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10403         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10404         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10405         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10406         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10407         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10408         Likewise.
10409         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10410         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10411         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10412         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10413         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10414         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10415
10416 2009-09-01  Eric Blake  <ebb9@byu.net>
10417
10418         fchdir: fix off-by-one bug in previous patch
10419         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10420         (_gl_unregister_fd): Delete useless if.
10421
10422 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10423
10424         maint.mk: sort the list of syntax-check rules
10425         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10426         easier to get a sense of progress when the rules are run sequentially
10427         and take a long time.
10428
10429 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10430
10431         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10432         * modules/netinet_in: Likewise.
10433         * modules/sys_file: Likewise.
10434         * modules/sys_ioctl: Likewise.
10435         * modules/sys_select: Likewise.
10436         * modules/sys_socket: Likewise.
10437         * modules/sys_stat: Likewise.
10438         * modules/sys_time: Likewise.
10439         * modules/sys_times: Likewise.
10440         * modules/sys_utsname: Likewise.
10441         * modules/sys_wait: Likewise.
10442
10443 2009-09-01  Jim Meyering  <meyering@redhat.com>
10444
10445         fts: help ensure that return values are not ignored
10446         * lib/fts_.h (__GNUC_PREREQ): Define.
10447         (__attribute_warn_unused_result__): Define.
10448         (fts_children, fts_close, fts_open, fts_read): Declare with
10449         __attribute_warn_unused_result__.
10450
10451         fts: fts_close now fails also when closing a dir file descriptor fails
10452         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10453         and propagate to caller, along with errno.
10454
10455         announce-gen: correct formatting in --help output
10456         * build-aux/announce-gen (usage): Move the one-line description in
10457         --help output "up", to where it belongs, just after Usage:.
10458
10459 2009-08-31  Eric Blake  <ebb9@byu.net>
10460
10461         fchdir: port to mingw
10462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10463         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10464         opened, then use a substitute.
10465         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10466         replacement.
10467         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10468         (_gl_register_fd): No need to check stat if open already filters
10469         all directories.
10470         (fchdir): Fix error condition to match POSIX.
10471         * modules/fchdir (Depends-on): Add sys_stat.
10472         * doc/posix-functions/open.texi (open): Document the limitation.
10473         * modules/fchdir-tests: New file.
10474         * tests/test-fchdir.c: Likewise.
10475
10476         canonicalize: allow cross-testing from cygwin to mingw
10477         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10478         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10479         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10480         Likewise.
10481         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10482         target does not support symlinks.
10483         * tests/test-canonicalize-lgpl.sh: Likewise.
10484
10485         chown: avoid compilation warning on mingw
10486         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10487         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10488         mingw.
10489         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10490         * modules/chown (Depends-on): Add errno.
10491
10492 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10493
10494         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10495         command.
10496
10497 2009-08-31  Jim Meyering  <meyering@redhat.com>
10498
10499         canonicalize: remove useless initialization
10500         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10501         initialization of local, "end".
10502
10503 2009-08-30  Bruno Haible  <bruno@clisp.org>
10504
10505         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10506         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10507         ENOSYS.
10508
10509 2009-08-30  Bruno Haible  <bruno@clisp.org>
10510
10511         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10512         /usr/xpg4/bin/tr when it exists.
10513         * tests/test-pipe-filter-gi1.sh: Likewise.
10514
10515 2009-08-30  Bruno Haible  <bruno@clisp.org>
10516
10517         Work around deficient /usr/bin/id program on Solaris.
10518         * tests/test-file-has-acl.sh (ID): New variable.
10519         * tests/test-set-mode-acl.sh (ID): Likewise.
10520         * tests/test-copy-acl.sh (ID): Likewise.
10521         * tests/test-copy-file.sh (ID): Likewise.
10522
10523 2009-08-30  Bruno Haible  <bruno@clisp.org>
10524
10525         New module 'xstriconveh'.
10526         * lib/xstriconveh.h: New file.
10527         * lib/xstriconveh.c: New file.
10528         * modules/xstriconveh: New file.
10529
10530 2009-08-30  Bruno Haible  <bruno@clisp.org>
10531
10532         Make it easier to use mem_cd_iconveh.
10533         * lib/striconveh.h (iconveh_t): New type.
10534         (iconveh_open, iconveh_close): New declarations.
10535         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10536         with a single 'const iconveh_t *' argument.
10537         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10538         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10539         with a single 'const iconveh_t *' argument.
10540         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10541         * tests/test-striconveh.c (main): Update.
10542         * NEWS: Mention the change.
10543
10544 2009-08-30  Bruno Haible  <bruno@clisp.org>
10545
10546         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10547         problem.
10548
10549 2009-08-30  Bruno Haible  <bruno@clisp.org>
10550
10551         Work around iconv_open problem on Solaris.
10552         * lib/iconv_open-solaris.gperf: New file.
10553         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10555         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10556         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10557         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10558         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10559
10560 2009-08-29  Jim Meyering  <meyering@redhat.com>
10561
10562         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10563         * top/maint.mk (cvs-check): Remove target; it was just an alias
10564         to the better-named vc-diff-check.
10565         (maintainer-distcheck): Remove rule.  It was used only from
10566         the (alpha/beta/major) target, and all of its commands but one
10567         were coreutils-specific.
10568         (vc-dist): Remove rule.
10569         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10570         Run vc-diff-check, not vc-dist.
10571         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10572
10573 2009-08-27  Bruno Haible  <bruno@clisp.org>
10574
10575         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10576         of 0.
10577
10578 2009-08-27  Bruno Haible  <bruno@clisp.org>
10579
10580         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10581         compilers.
10582         * doc/func.texi: Document the SunPRO C bug.
10583
10584 2009-08-27  Bruno Haible  <bruno@clisp.org>
10585
10586         Fix link error on Solaris.
10587         * tests/test-parse-duration.c (xstrdup): Remove function.
10588
10589 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10590
10591         ignore-value: handle pointer types, too
10592         * lib/ignore-value.h (__attribute__): Remove definition.
10593         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10594         of a more concise and more-often effective "(void) i" statement.
10595         (ignore_ptr): New function to suppress warnings from functions that
10596         return pointers, and to make it explicit that one function doesn't
10597         handle all cases.
10598
10599 2009-08-25  Bruno Haible  <bruno@clisp.org>
10600
10601         dup2: work around a Linux bug.
10602         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10603         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10604         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10605         Reported by Simon Josefsson.
10606
10607 2009-08-25  Jim Meyering  <meyering@redhat.com>
10608
10609         libguestfs uses gnulib
10610         * users.txt: Add libguestfs.
10611
10612 2009-08-24  Eric Blake  <ebb9@byu.net>
10613
10614         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10615         * lib/pipe2.c (includes): Add binary-io.h.
10616         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10617
10618 2009-08-24  Bruno Haible  <bruno@clisp.org>
10619
10620         Tolerate declared but missing accept4 syscall.
10621         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10622         available.
10623         * lib/sys_socket.in.h (accept4): If the function is already present,
10624         override it.
10625         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10626         * modules/accept4 (Makefile.am): Compile accept4.c always.
10627         Reported by Paolo Bonzini and Eric Blake.
10628
10629 2009-08-23  Bruno Haible  <bruno@clisp.org>
10630
10631         New module 'accept4'.
10632         * lib/sys_socket.in.h (accept4): New declaration.
10633         * lib/accept4.c: New file.
10634         * m4/accept4.m4: New file.
10635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10636         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10637         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10638         HAVE_ACCEPT4.
10639         * modules/accept4: New file.
10640         * doc/glibc-functions/accept4.texi: Mention the new module.
10641
10642 2009-08-24  Jim Meyering  <meyering@redhat.com>
10643
10644         progname: also set global program_invocation_name, when possible
10645         Before this change, a libtool-enabled program that calls glibc's
10646         error function would report the program name as
10647         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10648         * modules/progname (configure.ac): Check for a declaration of
10649         program_invocation_name.
10650         * lib/progname.c:  Include <errno.h>.
10651         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10652         Set program_invocation_name.
10653
10654 2009-08-23  Bruno Haible  <bruno@clisp.org>
10655
10656         * lib/dup3.c: Include <string.h>.
10657
10658 2009-08-23  Bruno Haible  <bruno@clisp.org>
10659
10660         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10661         * lib/pipe2.c (pipe2): Likewise.
10662         Suggested by Eric Blake.
10663
10664 2009-08-23  Bruno Haible  <bruno@clisp.org>
10665
10666         Tolerate declared but missing dup3 syscall.
10667         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10668         * lib/unistd.in.h (dup3): If the function is already present,
10669         override it.
10670         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10671         * modules/dup3 (Makefile.am): Compile dup3.c always.
10672         Reported by Paolo Bonzini.
10673
10674 2009-08-23  Bruno Haible  <bruno@clisp.org>
10675
10676         Tolerate declared but missing pipe2 syscall.
10677         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10678         available.
10679         * lib/unistd.in.h (pipe2): If the function is already present,
10680         override it.
10681         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10682         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10683         Reported by Paolo Bonzini.
10684
10685 2009-08-23  Bruno Haible  <bruno@clisp.org>
10686
10687         * lib/pipe2.c (pipe2): Move #ifs inside function.
10688
10689 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10690
10691         quotearg: document limitations of quote_these_too
10692         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10693         those limitations are created.
10694         * lib/quotearg.h (set_char_quoting): Document that digits and
10695         letters that are special after backslash are not permitted.
10696         (quotearg_char): Cross-reference set_char_quoting documentation.
10697
10698 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10699
10700         quotearg: implement custom_quoting_style
10701         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10702         right_quote fields.
10703         (set_custom_quoting): New public function.
10704         (quotearg_buffer_restyled): Add left_quote and right_quote
10705         arguments, handle them very much like locale quoting, and update
10706         all uses.
10707         (quotearg_n_custom): New public function.
10708         (quotearg_n_custom_mem): New public function.
10709         (quotearg_custom): New public function.
10710         (quotearg_custom_mem): New public function.
10711         * lib/quotearg.h: Prototype and document new public functions.
10712         (enum quoting_style): For escape_quoting_style and
10713         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10714         ignored even though they're otherwise like c_quoting_style.
10715         Add custom_quoting_style member and document with comparison to
10716         clocale_quoting_style.
10717         * tests/test-quotearg.c (custom_quotes): New array.
10718         (custom_results): New array.
10719         (main): Extend to test custom quoting.
10720
10721 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10722
10723         quotearg: fix right quote escaping when it's in quote_these_too
10724         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10725         quote, be sure to prepend only one backslash.
10726         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10727         (main): Test it.
10728
10729 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10730
10731         quotearg-tests: test escaping of embedded locale quotes
10732         * tests/test-quotearg.c (struct result_strings): Add member for
10733         new input.
10734         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10735         (inputs): Add new input.
10736         (results_g): Add expected results.
10737         (flag_results): Likewise.
10738         (locale_results): Likewise.
10739         (compare_strings): Check those.
10740
10741 2009-08-23  Bruno Haible  <bruno@clisp.org>
10742
10743         Tests for module 'dup3'.
10744         * modules/dup3-tests: New file.
10745         * tests/test-dup3.c: New file.
10746
10747         New module 'dup3'.
10748         * lib/unistd.in.h (dup3): New declaration.
10749         * lib/dup3.c: New file.
10750         * m4/dup3.m4: New file.
10751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10752         HAVE_DUP3.
10753         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10754         * modules/dup3: New file.
10755         * doc/glibc-functions/dup3.texi: Mention the new module.
10756
10757 2009-08-23  Bruno Haible  <bruno@clisp.org>
10758
10759         Tweak the dup2 test.
10760         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10761         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10762         the test file is still empty. Fix argument order of lseek.
10763
10764 2009-08-23  Bruno Haible  <bruno@clisp.org>
10765
10766         Avoid test link errors when the modules getopt-gnu, gettext are used.
10767         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10769
10770 2009-08-23  Bruno Haible  <bruno@clisp.org>
10771
10772         Fix getdtablesize() on mingw.
10773         * lib/getdtablesize.c (getdtablesize): Implement differently.
10774         * lib/unistd.in.h (getdtablesize): Improve comment.
10775
10776 2009-08-23  Bruno Haible  <bruno@clisp.org>
10777
10778         New module 'mkostemp'.
10779         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10780         * lib/stdlib.in.h (mksotemp): New declaration.
10781         * lib/mkostemp.c: New file, from glibc with modifications.
10782         * lib/tempname.h (GT_FILE): Remove outdated comment.
10783         (gen_tempname): Add flags argument.
10784         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10785         (__GT_FILE): Map to 1.
10786         (small_open, large_open): Remove macros.
10787         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10788         * lib/mkstemp.c (mkstemp): Update.
10789         * lib/mkdtemp.c (mkdtemp): Likewise.
10790         * m4/mkostemp.m4: New file.
10791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10792         HAVE_MKOSTEMP.
10793         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10794         HAVE_MKOSTEMP.
10795         * modules/mkostemp: New file, based on modules/mkstemp.
10796         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10797         * NEWS: Mention the change.
10798
10799 2009-08-23  Bruno Haible  <bruno@clisp.org>
10800
10801         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10802         Reported by Eric Blake.
10803
10804 2009-08-23  Bruno Haible  <bruno@clisp.org>
10805
10806         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10807         Reported by Eric Blake.
10808
10809 2009-08-23  Bruno Haible  <bruno@clisp.org>
10810
10811         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10812         * modules/pipe2 (Depends-on): Likewise.
10813
10814 2009-08-23  Eric Blake  <ebb9@byu.net>
10815
10816         fcntl-h: add O_TTY_INIT support
10817         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10818         * tests/test-fcntl-h.c (o): Test it.
10819         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10820
10821         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10822         * modules/fcntl: Move <fcntl.h> header replacement...
10823         * modules/fcntl-h: ...to new name, so as not to collide with
10824         like-named function.
10825         * tests/test-fcntl.c: Rename...
10826         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10827         * modules/fcntl-tests: Rename...
10828         * modules/fcntl-h-tests: ...to this.  Update test file name.
10829         * modules/chdir-long (Depends-on): Update clients.
10830         * modules/chdir-safer (Depends-on): Likewise.
10831         * modules/fcntl-safer (Depends-on): Likewise.
10832         * modules/fts (Depends-on): Likewise.
10833         * modules/mkancesdirs (Depends-on): Likewise.
10834         * modules/mkdir-p (Depends-on): Likewise.
10835         * modules/open (Depends-on): Likewise.
10836         * modules/savewd (Depends-on): Likewise.
10837         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10838         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10839
10840 2009-08-22  Bruno Haible  <bruno@clisp.org>
10841
10842         * modules/binary-io (License): Relicense under LGPL.
10843         * modules/pipe2 (License): Likewise.
10844
10845 2009-08-22  Bruno Haible  <bruno@clisp.org>
10846
10847         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10848         return value.
10849         * lib/pipe-filter-gi.c (filter_init): Likewise.
10850         Reported by Eric Blake.
10851
10852 2009-08-22  Bruno Haible  <bruno@clisp.org>
10853
10854         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10855         * modules/pipe (Depends-on): Add pipe2.
10856
10857 2009-08-22  Bruno Haible  <bruno@clisp.org>
10858
10859         Tests for module 'pipe2'.
10860         * modules/pipe2-tests: New file.
10861         * tests/test-pipe2.c: New file.
10862
10863         New module 'pipe2'.
10864         * lib/unistd.in.h (pipe2): New declaration.
10865         * lib/pipe2.c: New file.
10866         * m4/pipe2.m4: New file.
10867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10868         HAVE_PIPE2.
10869         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10870         * modules/pipe2: New file.
10871         * doc/glibc-functions/pipe2.texi: Mention the new module.
10872
10873 2009-08-22  Bruno Haible  <bruno@clisp.org>
10874
10875         Reference some new glibc functions.
10876         * doc/glibc-functions/accept4.texi: New file.
10877         * doc/glibc-functions/dup3.texi: New file.
10878         * doc/glibc-functions/mkostemp.texi: New file.
10879         * doc/glibc-functions/pipe2.texi: New file.
10880         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10881         (Glibc sys/socket.h): Refer to accept4.
10882         (Glibc unistd.h): Refer to dup3, pipe2.
10883         Reported by Eric Blake.
10884
10885 2009-08-22  Jim Meyering  <meyering@redhat.com>
10886             Bruno Haible  <bruno@clisp.org>
10887
10888         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10889         This makes it so packages using automake-1.11's silent-rules option
10890         can print e.g., a single "GEN    configmake.h" line, rather than
10891         the 30+ statements that perform the job.  If you want to see the
10892         actual commands, you can still run "make V=1".
10893         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10894         so that make output is abbreviated when those variables are defined
10895         appropriately.
10896         * modules/argz: Likewise.
10897         * modules/arpa_inet: Likewise.
10898         * modules/byteswap: Likewise.
10899         * modules/configmake: Likewise.
10900         * modules/dirent: Likewise.
10901         * modules/errno: Likewise.
10902         * modules/fcntl: Likewise.
10903         * modules/float: Likewise.
10904         * modules/fnmatch: Likewise.
10905         * modules/getopt-posix: Likewise.
10906         * modules/glob: Likewise.
10907         * modules/iconv_open: Likewise.
10908         * modules/inttypes: Likewise.
10909         * modules/localcharset: Likewise.
10910         * modules/locale: Likewise.
10911         * modules/math: Likewise.
10912         * modules/netdb: Likewise.
10913         * modules/netinet_in: Likewise.
10914         * modules/poll: Likewise.
10915         * modules/posix_spawnp-tests: Likewise.
10916         * modules/sched: Likewise.
10917         * modules/search: Likewise.
10918         * modules/selinux-h: Likewise.
10919         * modules/signal: Likewise.
10920         * modules/spawn: Likewise.
10921         * modules/stdarg: Likewise.
10922         * modules/stdbool: Likewise.
10923         * modules/stddef: Likewise.
10924         * modules/stdint: Likewise.
10925         * modules/stdio: Likewise.
10926         * modules/stdlib: Likewise.
10927         * modules/string: Likewise.
10928         * modules/strings: Likewise.
10929         * modules/sys_file: Likewise.
10930         * modules/sys_ioctl: Likewise.
10931         * modules/sys_select: Likewise.
10932         * modules/sys_socket: Likewise.
10933         * modules/sys_stat: Likewise.
10934         * modules/sys_time: Likewise.
10935         * modules/sys_times: Likewise.
10936         * modules/sys_utsname: Likewise.
10937         * modules/sys_wait: Likewise.
10938         * modules/sysexits: Likewise.
10939         * modules/time: Likewise.
10940         * modules/unistd: Likewise.
10941         * modules/wchar: Likewise.
10942         * modules/wctype: Likewise.
10943
10944 2009-08-22  Jim Meyering  <meyering@redhat.com>
10945
10946         announce-gen: detect write failure
10947         * build-aux/announce-gen: Add Coda at end.
10948         Remove equivalent-but-more-verbose block at top.
10949
10950 2009-08-19  Akim Demaille  <demaille@gostai.com>
10951
10952         bootstrap: --help to stdout.
10953         * bootstrap (usage): Don't send --help to stderr.
10954         Use a here doc instead of a long string.
10955
10956 2009-08-21  Eric Blake  <ebb9@byu.net>
10957
10958         test-popen-safer: split from test-popen
10959         * tests/test-popen.c (main): Move...
10960         * tests/test-popen.h: ...into new file.
10961         * tests/test-popen-safer2.c: New file.
10962         * modules/popen-tests (Files): Add test-popen.h.
10963         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10964         Suggested by Bruno Haible.
10965
10966         test-fcntl-safer: split from test-open
10967         * tests/test-open.c (main): Move...
10968         * tests/test-open.h: ...into new file.
10969         * tests/test-fcntl-safer.c: New file.
10970         * modules/open-tests (Files): Add test-open.h.
10971         * modules/fcntl-safer-tests: New file.
10972         Suggested by Bruno Haible.
10973
10974         test-fopen-safer: split from test-fopen
10975         * tests/test-fopen.c (main): Move...
10976         * tests/test-fopen.h: ...into new file.
10977         * tests/test-fopen-safer.c: New file.
10978         * modules/fopen-tests (Files): Add test-fopen.h.
10979         * modules/fopen-safer-tests: New file.
10980         Suggested by Bruno Haible.
10981
10982 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10983
10984         popen-safer: test O_CLOEXEC at run-time.
10985         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10986
10987 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10988
10989         fcntl: move more flags to the header
10990         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10991         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10992         * lib/fcntl.in.h: Do both things here.
10993
10994 2009-08-21  Jim Meyering  <meyering@redhat.com>
10995
10996         consistently remove $@-t before redirecting to it
10997         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10998         * modules/alloca-opt: Likewise.
10999         * modules/byteswap: Likewise.
11000         * modules/fnmatch: Likewise.
11001         * modules/getopt-posix: Likewise.
11002         * modules/glob: Likewise.
11003         * modules/poll: Likewise.
11004         * modules/posix_spawnp-tests: Likewise.
11005         * modules/sys_socket: Likewise.
11006         * modules/sysexits: Likewise.
11007
11008 2009-08-21  Eric Blake  <ebb9@byu.net>
11009
11010         popen: simplify access to original popen
11011         * lib/popen.c (rpl_popen): No need to worry about popen being a
11012         macro.
11013         Reported by Bruno Haible.
11014
11015 2009-08-20  Eric Blake  <ebb9@byu.net>
11016
11017         build: avoid some compiler warnings
11018         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11019         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11020         type.
11021         (new_exclude_segment, excluded_file_pattern_p)
11022         (excluded_file_name_p): Reduce scope.
11023         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11024         old-style declaration.
11025
11026 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11027
11028         * tests/test-exclude1.sh: Handle Windows EOL.
11029         * tests/test-exclude2.sh: Likewise.
11030         * tests/test-exclude3.sh: Likewise.
11031         * tests/test-exclude4.sh: Likewise.
11032         * tests/test-exclude5.sh: Likewise.
11033         * tests/test-exclude6.sh: Likewise.
11034         * tests/test-exclude7.sh: Likewise.
11035
11036 2009-08-19  Akim Demaille  <demaille@gostai.com>
11037
11038         bootstrap: find sha1sum when named gsha1sum.
11039         * bootstrap (find_tool): New.
11040         ($SHA1SUM): New.
11041         Use it.
11042
11043 2009-08-20  Jim Meyering  <meyering@redhat.com>
11044
11045         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11046         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11047         expression that converts "." in a file name to "\." in the resulting
11048         regexp.  Start with a dummy statement, so that prior shell variable
11049         definitions are expanded portably.  Reported by Simon Josefsson.
11050
11051 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11052
11053         Fix polling for writeability of a screen buffer.
11054         * lib/poll.c: Distinguish input and screen buffers for the
11055         Win32 implementation.
11056         * lib/select.c: Likewise.
11057
11058 2009-08-19  Eric Blake  <ebb9@byu.net>
11059
11060         popen-safer: prevent popen from clobbering std descriptors
11061         * modules/popen-safer: New file.
11062         * lib/popen-safer.c: Likewise.
11063         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11064         * lib/stdio--.h (popen): Provide override.
11065         * lib/stdio-safer.h (popen_safer): Provide declaration.
11066         * tests/test-popen.c (includes): Partially test this.
11067         * modules/popen-safer-tests: New file, for more tests.
11068         * tests/test-popen-safer.c: Likewise.
11069         * MODULES.html.sh (file stream based Input/Output): Mention it.
11070
11071         tests: test some of the *-safer modules
11072         * modules/fopen-safer (Depends-on): Add fopen.
11073         * modules/fcntl-safer (Depends-on): Add fcntl.
11074         * modules/stdlib-safer (Depends-on): Add stdlib.
11075         (configure.ac): Set indicator.
11076         * modules/unistd-safer (configure.ac): Likewise.
11077         * modules/tmpfile-safer (configure.ac): Likewise.
11078         (Depends-on): Add tmpfile.
11079         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11080         active.
11081         * tests/test-fopen.c (includes): Test safer versions when they are
11082         in use.
11083         * tests/test-open.c (includes): Likewise.
11084
11085         popen: fix cygwin 1.5 bug when stdin closed
11086         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11087         * modules/popen: New file.
11088         * modules/popen-tests: Likewise.
11089         * tests/test-popen.c: Likewise.
11090         * m4/popen.m4: Likewise.
11091         * lib/popen.c: Likewise.
11092         * lib/stdio.in.h (popen): New declaration.
11093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11094         * modules/stdio (Makefile.am): Likewise.
11095         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11096
11097 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11098
11099         maint.mk: give full control over update-copyright exclusions
11100         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11101         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11102         (update-copyright): Don't force inclusion of top-level
11103         ChangeLog.  Don't force exclusion of all COPYING files, but make
11104         them the default exclusion instead.
11105
11106 2009-08-16  Bruno Haible  <bruno@clisp.org>
11107
11108         Fix test failures on Solaris 10.
11109         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11110         tests when Solaris iconv() is used.
11111         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11112         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11113         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11114         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11115         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11116
11117 2009-08-16  Bruno Haible  <bruno@clisp.org>
11118
11119         Fix test failures on Solaris 10.
11120         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11121         'tr' program and pass it as first argument.
11122         * tests/test-pipe-filter-gi1.sh: Likewise.
11123         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11124         program as first argument.
11125         * tests/test-pipe-filter-gi1.c (main): Likewise.
11126
11127 2009-08-16  Eric Blake  <ebb9@byu.net>
11128
11129         fpurge: fix previous commits
11130         * modules/fpurge (Makefile.am): Make replacement conditional,
11131         partially reverting 2007-04-29 change; missed in previous
11132         attempt.
11133         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11134         is missing.
11135
11136 2009-08-16  Bruno Haible  <bruno@clisp.org>
11137
11138         Clarify fpurge's effect on the file position.
11139         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11140         * tests/test-fpurge.c (main): Make a second pass for checking the file
11141         position.
11142
11143 2009-08-16  Bruno Haible  <bruno@clisp.org>
11144
11145         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11146         declaration of fpurge is missing.
11147         * tests/test-fpurge.c (main): Check that the file has not more contents
11148         than expected. Close the file before removing it.
11149
11150 2009-08-15  Eric Blake  <ebb9@byu.net>
11151
11152         fpurge: don't wrap working cygwin implementation
11153         * lib/fpurge.c (fpurge): Fix comment typo.
11154         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11155         1.7 to avoid replacement.
11156         * tests/test-fpurge.c (main): Enhance test.
11157
11158 2009-08-15  Eric Blake  <ebb9@byu.net>
11159         and Jim Meyering  <meyering@redhat.com>
11160
11161         test-update-copyright: skip if perl is insufficient
11162         * tests/test-update-copyright.sh: Failure to run maintainer tool
11163         should not cause testsuite failure on cygwin 1.5.
11164
11165 2009-08-14  Eric Blake  <ebb9@byu.net>
11166
11167         doc: mention more functions added in cygwin 1.7.0
11168         * doc/posix-headers/limits.texi (limits.h): Update for recent
11169         cygwin additions.
11170         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11171         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11172         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11173         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11174         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11175
11176 2009-08-14  Eric Blake  <ebb9@byu.net>
11177
11178         maint.mk: simplify update-copyright rule
11179         * top/maint.mk (update-copyright-local): Delete, and document how
11180         to do it in cfg.mk instead.
11181         (update-copyright-exclude-regexp): Delete, and document how to do
11182         it in .x-update-copyright instead.
11183         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11184         exclude ChangeLog.
11185
11186 2009-08-14  Bruno Haible  <bruno@clisp.org>
11187
11188         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11189
11190 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11191
11192         maint.mk: support update-copyright-env
11193         * top/maint.mk (update-copyright-env): Define place-holder.
11194         (update-copyright): Expand $(update-copyright-env) before
11195         invoking update-copyright.
11196
11197 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11198
11199         update-copyright: implement forced reformatting
11200         * build-aux/update-copyright: Implement and document
11201         UPDATE_COPYRIGHT_FORCE.
11202         * tests/test-update-copyright.sh: Test it.
11203
11204 2009-08-14  Eric Blake  <ebb9@byu.net>
11205         and Bruno Haible  <bruno@clisp.org>
11206
11207         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11208         * tests/test-locale.c: Revert previous patch related to NULL.
11209         * tests/test-stdio.c: Likewise.
11210         * tests/test-stdlib.c: Likewise.
11211         * tests/test-string.c: Likewise.
11212         * tests/test-unistd.c: Likewise.
11213         * modules/time-tests (Depends-on): Add verify.
11214         * modules/wchar-tests (Depends-on): Likewise.
11215         * tests/test-time.c: Test for NULL compliance.
11216         * tests/test-wchar.c: Likewise.
11217         * modules/locale (Depends-on): Add stddef.
11218         * modules/stdio (Depends-on): Likewise.
11219         * modules/stdlib (Depends-on): Likewise.
11220         * modules/string (Depends-on): Likewise.
11221         * modules/time (Depends-on): Likewise.
11222         * modules/unistd (Depends-on): Likewise.
11223         * modules/wchar (Depends-on): Likewise.
11224         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11225         * lib/stdlib.in.h (includes): Likewise.
11226         * lib/string.in.h (includes): Likewise.
11227         * lib/time.in.h (includes): Likewise.
11228         * lib/unistd.in.h (includes): Likewise.
11229         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11230         replaced.
11231         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11232         * m4/stddef_h.m4: New file.
11233         * modules/stddef: Likewise.
11234         * lib/stddef.in.h: Likewise.
11235         * modules/stddef-tests: Likewise.
11236         * tests/test-stddef.c: Likewise.
11237         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11238         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11239         * doc/posix-headers/locale.texi (locale.h): Likewise.
11240         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11241         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11242         * doc/posix-headers/string.texi (string.h): Likewise.
11243         * doc/posix-headers/time.texi (time.h): Likewise.
11244         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11245         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11246
11247 2009-08-14  Eric Blake  <ebb9@byu.net>
11248
11249         doc: improve git diff of texinfo files
11250         * .gitattributes: Add rule for *.texi files, with hint on how to
11251         use it.
11252         Copied from m4, and based on a report by Bruno Haible.
11253
11254 2009-08-14  Bruno Haible  <bruno@clisp.org>
11255
11256         Disable multithread support by default on Cygwin 1.5.x for real.
11257         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11258
11259 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11260
11261         update-copyright: much ado about intervals
11262         * build-aux/update-copyright: Implement and document
11263         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11264         of copyright year intervals.
11265         Also, document UPDATE_COPYRIGHT_YEAR.
11266         * tests/test-update-copyright.sh: Test it.
11267
11268         update-copyright: convert 2-digit to 4-digit years
11269         * build-aux/update-copyright: Implement and document.
11270         * tests/test-update-copyright.sh: Update.
11271
11272 2009-08-14  Jim Meyering  <meyering@redhat.com>
11273
11274         test-exclude: avoid coreutils "make check" failure
11275         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11276         just as in test-argmatch.c.
11277
11278 2009-08-13  Eric Blake  <ebb9@byu.net>
11279
11280         test-dup2: fix bad assumption
11281         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11282         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11283
11284         test-version-etc: fix CRLF portability issue
11285         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11286         recognize \r.
11287         * tests/test-argp-version-etc-1.sh: Likewise.
11288
11289         getopt: update client modules
11290         * modules/argp (Depends-on): Use getopt-gnu.
11291         * modules/git-merge-changelog (Depends-on): Likewise.
11292         * modules/long-options (Depends-on): Likewise.
11293         * modules/xstrtol (Depends-on): Likewise.
11294
11295 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11296
11297         * tests/test-version-etc.sh: Don't fail on different
11298         project/version.  Don't fail on CRLF differences.  Rewrite to use
11299         multiple -e instead of multiple sed forks, suggested by Eric Blake
11300         <ebb9@byu.net>.
11301         * tests/test-argp-version-etc-1.sh: Likewise.
11302
11303 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11304
11305         * tests/test-version-etc.sh: Don't fail on different
11306         project/version.
11307
11308 2009-08-12  Bruno Haible  <bruno@clisp.org>
11309
11310         Tests for modules 'getopt-posix', 'getopt-gnu'.
11311         * modules/getopt-posix-tests: New file.
11312         * tests/test-getopt.c: New file.
11313         * tests/test-getopt.h: New file.
11314         * tests/test-getopt_long.h: New file.
11315
11316         New modules 'getopt-posix', 'getopt-gnu'.
11317         * modules/getopt-gnu: New file, renamed from modules/getopt.
11318         * modules/getopt-posix: New file.
11319         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11320         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11321         (gl_GETOPT): Remove macro.
11322         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11323         Disable the test against BSD systems that declare optreset. Test
11324         against mingw bug. Test against lack of support of optional arguments
11325         on many platforms.
11326         * doc/glibc-headers/getopt.texi: Update module name and list of
11327         relevant platforms.
11328         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11329         'getopt-gnu' and more portability problems.
11330         * NEWS: Mention the changes.
11331
11332 2009-08-12  Bruno Haible  <bruno@clisp.org>
11333
11334         Ensure that optarg etc. get declared by <unistd.h>.
11335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11336         AC_USE_SYSTEM_EXTENSIONS.
11337         * modules/getopt (Depends-on): Add 'extensions'.
11338
11339 2009-08-12  Bruno Haible  <bruno@clisp.org>
11340
11341         Avoid test link errors.
11342         * modules/pipe-filter-ii-tests (Makefile.am): Define
11343         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11344         * modules/pipe-filter-gi-tests (Makefile.am): Define
11345         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11347
11348 2009-08-12  Bruno Haible  <bruno@clisp.org>
11349
11350         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11351         gl_GETOPT_SUBSTITUTE before.
11352         (gl_GETOPT): Use it.
11353         * m4/argp.m4 (gl_ARGP): Update.
11354         Reported by Sergey Poznyakoff.
11355
11356         * m4/getopt.m4: Reorder macros.
11357         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11358         (gl_GETOPT_SUBSTITUTE): Remove macro.
11359
11360 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11361
11362         Minor improvement in gitlog-to-changelog
11363
11364         * build-aux/gitlog-to-changelog: New option `--format' makes
11365         output format string configurable.
11366
11367 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11368
11369         Optimize exclude: use hash tables for non-wildcard patterns.
11370
11371         * lib/exclude.c: Include hash.h and mbuiter.h
11372         (struct exclude_pattern, exclude_segment): New data types.
11373         (struct exclude): Rewrite.
11374         (fnmatch_pattern_has_wildcards): New function.
11375         (new_exclude_segment, free_exclude_segment): New functions.
11376         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11377         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11378         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11379         * modules/exclude: Depend on hash and mbuiter.
11380
11381         * modules/exclude-tests: New file.
11382         * tests/test-exclude.c: New file.
11383         * tests/test-exclude1.sh: New file.
11384         * tests/test-exclude2.sh: New file.
11385         * tests/test-exclude3.sh: New file.
11386         * tests/test-exclude4.sh: New file.
11387         * tests/test-exclude5.sh: New file.
11388         * tests/test-exclude6.sh: New file.
11389         * tests/test-exclude7.sh: New file.
11390
11391 2009-08-12  Bruno Haible  <bruno@clisp.org>
11392
11393         Ensure that getopt() gets declared by <unistd.h>.
11394         * lib/unistd.in.h: Conditionally include getopt.h.
11395         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11396         Set GNULIB_UNISTD_H_GETOPT.
11397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11398         GNULIB_UNISTD_H_GETOPT.
11399         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11400
11401 2009-08-12  Bruno Haible  <bruno@clisp.org>
11402
11403         Clarify logic.
11404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11405         gl_replace_getopt instead of GETOPT_H.
11406
11407 2009-08-12  Bruno Haible  <bruno@clisp.org>
11408
11409         * m4/getopt.m4: Add comments.
11410
11411 2009-08-12  Bruno Haible  <bruno@clisp.org>
11412
11413         Disable multithread support by default on Cygwin 1.5.x.
11414         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11415         set gl_use_threads=no if not specified otherwise.
11416
11417 2009-08-11  Bruno Haible  <bruno@clisp.org>
11418
11419         Avoid compilation error on NetBSD 5.0.
11420         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11421         * tests/test-stdio.c: Likewise.
11422         * tests/test-stdlib.c: Likewise.
11423         * tests/test-string.c: Likewise.
11424         * tests/test-unistd.c: Likewise.
11425         Reported by Greg Troxel <gdt@ir.bbn.com>
11426         at <https://savannah.gnu.org/support/?106973>.
11427
11428 2009-08-11  Bruno Haible  <bruno@clisp.org>
11429
11430         * modules/dup2-tests (Depends-on): Remove close.
11431
11432         Undo 2009-07-19 commit.
11433         * modules/acl-tests (Depends-on): Remove close.
11434         * modules/binary-io-tests (Depends-on): Likewise.
11435         * modules/closein-tests (Depends-on): Likewise.
11436         * modules/flock-tests (Depends-on): Likewise.
11437         * modules/fsync-tests (Depends-on): Likewise.
11438         * modules/lseek-tests (Depends-on): Likewise.
11439         * modules/pipe-tests (Depends-on): Likewise.
11440         * modules/posix_spawn-tests (Depends-on): Likewise.
11441         * modules/posix_spawnp-tests (Depends-on): Likewise.
11442         * modules/stat-time-tests (Depends-on): Likewise.
11443         * modules/yesno-tests (Depends-on): Likewise.
11444
11445 2009-08-10  Bruno Haible  <bruno@clisp.org>
11446
11447         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11448
11449 2009-08-10  Bruno Haible  <bruno@clisp.org>
11450
11451         Fix a gcc warning.
11452         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11453
11454 2009-08-10  Bruno Haible  <bruno@clisp.org>
11455
11456         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11457         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11458         not only the first time.
11459         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11460         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11461         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11462         is 1, not only the the first time.
11463
11464 2009-08-10  Bruno Haible  <bruno@clisp.org>
11465
11466         Make it possible to use module 'gethostname' without module 'close'.
11467         * lib/unistd.in.h (close): Evoke a link error only if
11468         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11470         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11471         * modules/unistd (Makefile.am): Substitute
11472         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11473         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11474         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11475         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11476         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11477         * modules/sys_ioctl (Makefile.am): Substitute
11478         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11479         * modules/socket (configure.ac): On native Windows, set
11480         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11481         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11482         Reported by Sam Steingold <sds@gnu.org>.
11483
11484 2009-08-10  Bruno Haible  <bruno@clisp.org>
11485
11486         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11487         * modules/ioctl (configure.ac): Likewise.
11488
11489 2009-08-10  Bruno Haible  <bruno@clisp.org>
11490
11491         Avoid collision between gnulib wrapper and libintl wrapper.
11492         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11493         already defined in intl/printf.c.
11494         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11495         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11496
11497 2009-08-09  Bruno Haible  <bruno@clisp.org>
11498
11499         Make <sys/select.h> really self-contained, also on Solaris 10.
11500         * lib/sys_select.in.h: Include <string.h>.
11501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11502         Solaris 10 problem.
11503         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11504         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11505         Reported by Jim Meyering.
11506
11507 2009-08-09  Bruno Haible  <bruno@clisp.org>
11508
11509         Avoid warnings from 'aclocal' that are due to a use of macro name
11510         AM_XGETTEXT_OPTION that is not defined in automake.
11511         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11512         automake.
11513         * modules/error (configure.ac): Likewise.
11514         * modules/propername (configure.ac): Likewise.
11515         * modules/vasprintf (configure.ac): Likewise.
11516         * modules/verror (configure.ac): Likewise.
11517         * modules/xprintf (configure.ac): Likewise.
11518         * modules/xvasprintf (configure.ac): Likewise.
11519
11520 2009-08-08  Bruno Haible  <bruno@clisp.org>
11521
11522         Avoid compilation error in C++ mode.
11523         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11524         Reported by Sam Steingold <sds@gnu.org>.
11525
11526 2009-08-08  Bruno Haible  <bruno@clisp.org>
11527
11528         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11529         for the various Unix platforms.
11530         * doc/posix-headers/limits.texi: Update platforms list regarding
11531         HOST_NAME_MAX.
11532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11533
11534 2009-08-07  Jim Meyering  <meyering@redhat.com>
11535
11536         selinux-at: fix typo in a comment
11537         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11538         Spotted by Paolo Bonzini.
11539
11540         selinux-at: remove redundant m4 code, add documentation
11541         * modules/selinux-at (configure.ac): Remove redundant code.
11542         LIB_SELINUX is already set via the dependent module, selinux-h.
11543         (Include): Add quotes around selinux-at.h.
11544         * lib/selinux-at.h: Add documentation.
11545         Reported by Bruno Haible in
11546         http://marc.info/?l=gnulib-bug&m=124958988300749
11547
11548 2009-08-07  Bruno Haible  <bruno@clisp.org>
11549
11550         Avoid link error on MacOS X 10.3 and 10.4.
11551         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11552         on non-ELF systems.
11553         * lib/argp-pv.c (argp_program_version): Likewise.
11554         Reported by Simon Josefsson.
11555
11556 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11557
11558         * tests/test-version-etc.sh: Use $EXEEXT.
11559
11560 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11561
11562         update-copyright: update documentation to point to maint.mk
11563         * build-aux/update-copyright: Here.
11564
11565 2009-08-06  Jim Meyering  <meyering@redhat.com>
11566
11567         maint.mk: support update-copyright-local
11568         * top/maint.mk (update-copyright-local): Define place-holder.
11569         (update-copyright): Depend on $(update-copyright-local).
11570
11571 2009-08-06  Jim Meyering  <meyering@redhat.com>
11572
11573         selinux-at: new module
11574         Initially written for coreutils, this module will soon be
11575         used by findutils, too.
11576         * MODULES.html.sh [Misc]: Add selinux-at.
11577         * lib/selinux-at.h: New file, from coreutils.
11578         * lib/selinux-at.c: Likewise.
11579         * modules/selinux-at: Likewise.
11580         (License): Change from LGPL to GPL, since it depends
11581         on the GPL'd openat module.
11582
11583         doc: update README
11584         * README: Remove references to cogito.
11585         Remove cvs-repo-updating instructions from 2007.
11586         Don't imply that CVS is better if you have limited disk space.
11587
11588 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11589
11590         update-copyright: support C-style comments
11591         * build-aux/update-copyright: Implement and document.
11592         * tests/test-update-copyright.sh: Test.
11593
11594 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11595
11596         update-copyright: support omitted "(C)"
11597         * build-aux/update-copyright: Implement and document.  Also,
11598         allow variable whitespace before "(C)".
11599         * tests/test-update-copyright.sh: Test.
11600
11601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11602
11603         update-copyright: don't trip on non-FSF copyright statements
11604         * build-aux/update-copyright: Fix so that the first correctly
11605         formatted FSF copyright statement is recognized no matter what
11606         appears before it.  Update documentation.
11607         * tests/test-update-copyright.sh: Test that.
11608
11609 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11610
11611         update-copyright: clean up code a little
11612         * build-aux/update-copyright: Append "_re" to the name of any
11613         variable holding a regular expression.
11614         Replace "old" and "new" with "stmt" in variable names.
11615         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11616         handled correctly.
11617         Format code more consistently.
11618
11619 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11620
11621         update-copyright-tests: improve portability
11622         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11623         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11624
11625 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11626
11627         update-copyright: support @copyright{} and &copy;
11628         * build-aux/update-copyright: Implement and document.
11629         * tests/test-update-copyright.sh: Test.
11630
11631 2009-08-04  Jim Meyering  <meyering@redhat.com>
11632
11633         update-copyright-tests: correctly test EOL=\r\n handling
11634         * tests/test-update-copyright.sh: Put \r at the end of some lines
11635         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11636
11637         maint.mk: make update-copyright exclusion list more configurable
11638         * top/maint.mk (update-copyright): Default to excluding COPYING,
11639         but allow an override, in case someone does want to update that file.
11640
11641         maint.mk: don't update copyright date in COPYING
11642         * top/maint.mk (update-copyright): Exclude COPYING.
11643
11644         maint.mk: add a copyright-updating rule
11645         * top/maint.mk (update-copyright): New rule.
11646         Derived from coreutils/Makefile.am.
11647
11648         update-copyright: rename some variables
11649         * build-aux/update-copyright: Rename a few variables for clarity.
11650         Tweak syntax.  List Joel E. Denny as coauthor.
11651
11652 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11653
11654         update-copyright: fix bug for 2-digit last year and add tests
11655         * build-aux/update-copyright: Fix bug.
11656         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11657         specified.
11658         * modules/update-copyright-tests: New
11659         * tests/test-update-copyright.sh: New.
11660
11661 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11662
11663         update-copyright: handle leading tabs in line prefix
11664         * build-aux/update-copyright: Count leading tabs as 8 spaces
11665         when computing margin.  This helps with the formatting of
11666         ChangeLogs, for example.
11667         Fix documentation a little.
11668
11669 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11670
11671         update-copyright: support EOL=\r\n
11672         * build-aux/update-copyright: Implement that.
11673
11674 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11675
11676         update-copyright: automatically format copyright statements
11677         * build-aux/update-copyright: Implement that.
11678         Also, be a little more predictable and safer by always failing
11679         when the full copyright format is not perfectly recognized as an
11680         unbroken whole.  Discussed at
11681         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11682         Rewrite documentation.
11683
11684 2009-08-03  Bruno Haible  <bruno@clisp.org>
11685
11686         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11687
11688 2009-08-02  Bruno Haible  <bruno@clisp.org>
11689
11690         Tests for module 'uname'.
11691         * modules/uname-tests: New file.
11692         * tests/test-uname.c: New file.
11693
11694         New module 'uname'.
11695         * lib/uname.c: New file.
11696         * m4/uname.m4: New file.
11697         * modules/uname: New file.
11698         * doc/posix-functions/uname.texi: Mention the new module.
11699
11700 2009-08-02  Bruno Haible  <bruno@clisp.org>
11701
11702         Tests for module 'sys_utsname'.
11703         * modules/sys_utsname-tests: New file.
11704         * tests/test-sys_utsname.c: New file.
11705
11706         New module 'sys_utsname'.
11707         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11708         * m4/sys_utsname_h.m4: New file.
11709         * modules/sys_utsname: New file.
11710         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11711
11712 2009-08-02  Bruno Haible  <bruno@clisp.org>
11713
11714         Implicitly initialize the sockets library.
11715         * lib/gethostname.c: Include sockets.h.
11716         (rpl_gethostname): Invoke gl_sockets_startup.
11717         * lib/socket.c: Include sockets.h.
11718         (rpl_socket): Invoke gl_sockets_startup.
11719         * modules/gethostname (Depends-on): Add sockets.
11720         * modules/socket (Depends-on): Likewise.
11721         * tests/test-poll.c: Don't include sockets.h.
11722         (main): Don't invoke gl_sockets_startup.
11723         * tests/test-select.c: Don't include sockets.h.
11724         (main): Don't invoke gl_sockets_startup.
11725
11726 2009-08-02  Bruno Haible  <bruno@clisp.org>
11727
11728         Allow multiple calls to gl_sockets_startup.
11729         * lib/sockets.c (initialized_sockets_version): New variable.
11730         (gl_sockets_startup): Do nothing if already called for this or a higher
11731         version.
11732         (gl_sockets_cleanup): Reset initialized_sockets_version.
11733
11734 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11735
11736         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11737         different project/version.
11738
11739 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11740             Bruno Haible  <bruno@clisp.org>
11741
11742         Tests for module 'pipe-filter-gi'.
11743         * modules/pipe-filter-gi-tests: New file.
11744         * tests/test-pipe-filter-gi1.sh: New file.
11745         * tests/test-pipe-filter-gi1.c: New file.
11746         * tests/test-pipe-filter-gi2.sh: New file.
11747         * tests/test-pipe-filter-gi2-main.c: New file.
11748         * tests/test-pipe-filter-gi2-child.c: New file.
11749
11750         New module 'pipe-filter-gi'.
11751         * lib/pipe-filter-gi.c: New file.
11752         * modules/pipe-filter-gi: New file.
11753
11754 2009-08-02  Bruno Haible  <bruno@clisp.org>
11755             Paolo Bonzini  <bonzini@gnu.org>
11756
11757         Tests for module 'pipe-filter-ii'.
11758         * modules/pipe-filter-ii-tests: New file.
11759         * tests/test-pipe-filter-ii1.sh: New file.
11760         * tests/test-pipe-filter-ii1.c: New file.
11761         * tests/test-pipe-filter-ii2.sh: New file.
11762         * tests/test-pipe-filter-ii2-main.c: New file.
11763         * tests/test-pipe-filter-ii2-child.c: New file.
11764
11765         New module 'pipe-filter-ii'.
11766         * lib/pipe-filter.h: New file.
11767         * lib/pipe-filter-ii.c: New file.
11768         * lib/pipe-filter-aux.h: New file.
11769         * modules/pipe-filter-ii: New file.
11770
11771 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11772
11773         * lib/gc-libgcrypt.c: Change copyright to FSF.
11774         * lib/gc-gnulib.c: Likewise.
11775
11776 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11777
11778         * lib/gethostname.c: Include limits.h.
11779
11780 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11781             Bruno Haible  <bruno@clisp.org>
11782
11783         Ensure HOST_NAME_MAX as part of the gethostname module.
11784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11785         define also HOST_NAME_MAX.
11786         * tests/test-gethostname.c: Include <limits.h>.
11787         (main): Check also HOST_NAME_MAX.
11788         * doc/posix-headers/limits.texi: Document the mingw problem.
11789
11790 2009-08-02  Bruno Haible  <bruno@clisp.org>
11791
11792         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11793         Add comments.
11794
11795 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11796
11797         * lib/gethostname.c: Add Windows wrapper.
11798         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11799         * modules/gethostname: Depend on sys_socket & errno, for also
11800         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11801         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11802
11803 2009-07-31  Jim Meyering  <meyering@redhat.com>
11804
11805         getloadavg: fix symbol name in comment
11806         * lib/getloadavg.c: Correct a typo I introduced when adding
11807         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11808         Matt Kraai spotted the problem.
11809
11810 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11811
11812         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11813         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11814         code also if ! defined N_NAME_POINTER.
11815         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11816         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11817         but the n_name member is a 12-byte array.
11818
11819 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11820
11821         update-copyright: generalize comment handling
11822         * build-aux/update-copyright: Handle copyright statements
11823         within more comment styles.
11824         Document usage.
11825         Report any file with an external copyright holder or parse failure.
11826
11827 2009-07-29  Jim Meyering  <meyering@redhat.com>
11828
11829         mktime: correct setting of REPLACE_MKTIME
11830         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11831
11832         update-copyright: new module
11833         * modules/update-copyright: New file.
11834         * build-aux/update-copyright: New file.
11835         * MODULES.html.sh (maint+release support): Add update-copyright.
11836
11837 2009-07-27  Bruno Haible  <bruno@clisp.org>
11838
11839         Fix compilation error when <ctime> is used and mktime is replaced.
11840         * lib/time.in.h (mktime): New declaration.
11841         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11842         REPLACE_MKTIME instead of defining mktime in config.h.
11843         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11844         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11845         Reported by Ross McFarland <rwmcfa1@neces.com>.
11846
11847 2009-07-27  Bruno Haible  <bruno@clisp.org>
11848
11849         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11850         Reported by Matt Kraai <mkraai@beckman.com>.
11851
11852 2009-07-25  Jim Meyering  <meyering@redhat.com>
11853
11854         maint.mk: avoid warnings about missing files
11855         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11856         diagnostic when .prev-version does not exist.
11857         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11858         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11859         nonexistent cfg.mk.
11860         Suggestions from Simon Josefsson.
11861
11862 2009-07-25  Bruno Haible  <bruno@clisp.org>
11863
11864         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11865         defined as macros. Needed on QNX 6.4.1.
11866         Reported by Matt Kraai <mkraai@beckman.com>.
11867
11868 2009-07-23  Jim Meyering  <meyering@redhat.com>
11869
11870         maint.mk: invoke "make dist" with a working value of XZ_OPT
11871         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11872
11873 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11874
11875         Make fseeko.c compile on QNX.
11876         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11877
11878 2009-07-22  Peter Simons  <simons@cryp.to>
11879
11880         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11881         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11882         * lib/md4.h: Likewise.
11883         * lib/md5.h: Likewise.
11884         * lib/sha1.h: Likewise.
11885         * lib/sha256.h: Likewise.
11886         * lib/sha512.h: Likewise.
11887
11888         tests-sha1: don't assign literal string to 'char *' variable
11889         * tests/test-sha1.c (main): Declare locals with "const" to match
11890         attributes of the right hand side.
11891
11892 2009-07-21  Eric Blake  <ebb9@byu.net>
11893
11894         dup2: fix more mingw problems
11895         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11896         fd to itself.
11897         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11898         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11899         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11900         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11901         care of mingw bugs.
11902
11903 2009-07-21  Jim Meyering  <meyering@redhat.com>
11904
11905         vc-list-files: avoid failure when /bin/sh is dash
11906         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11907         On some Debian based systems, /bin/sh is a symlink to dash, and running
11908         this command would omit the "/" following each 'tests' prefix:
11909           dash -x build-aux/vc-list-files -C . tests
11910         That is because bash and dash work differently:
11911           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11912           bash ok
11913           dash odd
11914
11915 2009-07-21  Eric Blake  <ebb9@byu.net>
11916
11917         dup2-tests: test previous patch
11918         * modules/dup2-tests: New file.
11919         * tests/test-dup2.c: Likewise.
11920         * tests/test-open.c (main): Avoid unspecified behavior.
11921         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11922         test.
11923
11924         dup2: work around mingw and cygwin 1.5 bug
11925         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11927         * modules/unistd (Makefile.am): Substitute it.
11928         * lib/unistd.in.h (dup2): Declare the replacement.
11929         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11930         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11931         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11932         * modules/execute (Depends-on): Add dup2.
11933         * modules/fseterr (Depends-on): Likewise.
11934         * modules/pipe (Depends-on): Likewise.
11935         * modules/posix_spawn-internal (Depends-on): Likewise.
11936
11937 2009-07-21  Bruno Haible  <bruno@clisp.org>
11938
11939         * modules/.gitattributes: New file.
11940
11941 2009-07-20  Bruno Haible  <bruno@clisp.org>
11942
11943         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11944         (main): Use it.
11945
11946 2009-07-20  Eric Blake  <ebb9@byu.net>
11947
11948         test-pipe: make a bit more robust.
11949         * tests/test-pipe.c (myerr): Allow error messages regardless of
11950         what we do to stderr.
11951         (test_pipe): Rearrange to avoid deadlock.
11952         (child_main): Try a larger read, to ensure we avoided deadlock.
11953         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11954         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11955         if misused.
11956
11957 2009-07-19  Jim Meyering  <meyering@redhat.com>
11958
11959         fts: avoid false-positive cycle-detection
11960         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11961         for each new command line argument.
11962
11963 2009-07-19  Bruno Haible  <bruno@clisp.org>
11964
11965         Fix build error on mingw with the modules sys_select and unistd.
11966         * modules/acl-tests (Depends-on): Add close.
11967         * modules/binary-io-tests (Depends-on): Likewise.
11968         * modules/closein-tests (Depends-on): Likewise.
11969         * modules/flock-tests (Depends-on): Likewise.
11970         * modules/fsync-tests (Depends-on): Likewise.
11971         * modules/lseek-tests (Depends-on): Likewise.
11972         * modules/pipe-tests (Depends-on): Likewise.
11973         * modules/posix_spawn-tests (Depends-on): Likewise.
11974         * modules/posix_spawnp-tests (Depends-on): Likewise.
11975         * modules/stat-time-tests (Depends-on): Likewise.
11976         * modules/yesno-tests (Depends-on): Likewise.
11977
11978 2009-07-19  Bruno Haible  <bruno@clisp.org>
11979
11980         Unify conditionals.
11981         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11982         macros, not at the compiler macros.
11983         * lib/pipe.c: Likewise.
11984         * lib/execute.c: Likewise.
11985         * lib/spawni.c: Likewise.
11986
11987 2009-07-19  Bruno Haible  <bruno@clisp.org>
11988
11989         Fix handling of closed stdin/stdout/stderr on mingw.
11990         * lib/w32spawn.h: Include unistd.h.
11991         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11992         file descriptor with O_NOINHERIT flag.
11993         (fd_safer_noinherit): New function, based on fd-safer.c.
11994         (dup_safer_noinherit): New function, based on dup-safer.c.
11995         (undup_safer_noinherit): New function.
11996         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11997         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11998         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11999         instead of fd_safer.
12000         * tests/test-pipe.c: Include <windows.h>.
12001         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12002
12003         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12004         from main.
12005         (test_pipe): Pass an extra argument for disambiguation.
12006         (main): Invoke parent_main or child_main.
12007
12008         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12009         consistently.
12010
12011 2009-07-18  Eric Blake  <ebb9@byu.net>
12012
12013         test-pipe: fix mingw build
12014         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12015
12016 2009-07-18  Bruno Haible  <bruno@clisp.org>
12017
12018         * modules/pipe-tests (Makefile.am): Fix typo.
12019
12020 2009-07-18  Eric Blake  <ebb9@byu.net>
12021
12022         error: fix mingw build
12023         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12024         Reported by Bruno Haible.
12025
12026         error: avoid undefined use of stdout
12027         * lib/error.c (error, error_at_line): Check that fd 1 is open
12028         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12029         is handling faults and the close_stdout module wants to report the
12030         detection of closed stdout as an error.
12031
12032 2009-07-17  Eric Blake  <ebb9@byu.net>
12033
12034         pipe: be robust in face of closed fds
12035         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12036         should cause child to misbehave.
12037         * modules/pipe-tests: New module.
12038         * tests/test-pipe.c: New file.
12039         * tests/test-pipe.sh: New file.
12040         Reported by Akim Demaille.
12041
12042 2009-07-14  Bruno Haible  <bruno@clisp.org>
12043
12044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12045         Reported by anonymous kc.
12046
12047 2009-07-07  Jim Meyering  <meyering@redhat.com>
12048
12049         maint.mk: don't look for translatable strings in *.m4 or *.mk
12050         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12051         when searching for translatable strings.
12052
12053 2009-07-05  Jim Meyering  <meyering@redhat.com>
12054
12055         remove superfluous parentheses in STREQ definition
12056         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12057         * lib/getugroups.c (STREQ): Likewise.
12058         * lib/fnmatch.c (STREQ): Likewise.
12059         Spotted by Bruno Haible.
12060
12061 2009-07-04  Jim Meyering  <meyering@redhat.com>
12062
12063         argv-iter: new module
12064         * MODULES.html.sh: Add argv-iter.
12065         * lib/argv-iter.c, lib/argv-iter.h: New files.
12066         * modules/argv-iter: New file.
12067         * modules/argv-iter-tests: New file.
12068         * tests/test-argv-iter.c: Test it.
12069
12070 2009-07-04  Bruno Haible  <bruno@clisp.org>
12071
12072         Fix assertion.
12073         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12074         contains more exact copies of a given entry than file2, leave the extra
12075         copies unpaired rather than aborting.
12076         Reported by Eric Blake.
12077
12078 2009-07-02  Bruno Haible  <bruno@clisp.org>
12079
12080         Speedup git-merge-changelog for git cherry-pick.
12081         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12082         (entries_mapping_get): New function, extracted from compute_mapping.
12083         (entries_mapping_reverse_get): New function.
12084         (compute_mapping): Add a 'full' argument. Return the result in a
12085         'struct entries_mapping'.
12086         (main): Update. Access the mappings through entries_mapping_get.
12087         Reported by Eric Blake.
12088
12089 2009-07-02  Bruno Haible  <bruno@clisp.org>
12090
12091         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12092         best_i.
12093
12094 2009-07-02  Bruno Haible  <bruno@clisp.org>
12095
12096         Speed up approximate search for matching ChangeLog entries.
12097         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12098         argument. Call fstrcmp_bounded instead of fstrcmp.
12099         (compute_mapping, try_split_merged_entry, main): Update callers.
12100
12101 2009-07-02  Bruno Haible  <bruno@clisp.org>
12102
12103         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12104
12105 2009-06-30  Bruno Haible  <bruno@clisp.org>
12106
12107         Reduce the number of uc_is_cased calls.
12108         * lib/unicase.h (casing_suffix_context_t): Add
12109         'first_char_except_ignorable' field.
12110         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12111         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12112         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12113         Update initializer.
12114         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12115         case-ignorable characters.
12116         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12117         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12118         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12119         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12120         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12121
12122 2009-06-30  Bruno Haible  <bruno@clisp.org>
12123
12124         Tests for module 'unicase/ignorable'.
12125         * modules/unicase/ignorable-tests: New file.
12126         * tests/unicase/test-ignorable.c: New file, generated by
12127         gen-uni-tables.
12128
12129         Tests for module 'unicase/cased'.
12130         * modules/unicase/cased-tests: New file.
12131         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12132         * tests/unicase/test-predicate-part1.h: New file, derived from
12133         tests/unictype/test-predicate-part1.h.
12134         * tests/unicase/test-predicate-part2.h: New file, same as
12135         tests/unictype/test-predicate-part2.h.
12136
12137         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12138         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12139         (output_casing_properties): New function.
12140         (main): Call it.
12141         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12142         * lib/unicase/cased.c: Include unictype/bitmap.h.
12143         (uc_is_cased): Define through a bitmap lookup.
12144         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12145         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12146         (uc_is_case_ignorable): Define through a bitmap lookup.
12147         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12148         lib/unictype/bitmap.h.
12149         (Depends-on): Add inline. Clean up.
12150         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12151         lib/unictype/bitmap.h.
12152         (Depends-on): Add inline. Clean up.
12153         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12154         recognition.
12155         * tests/unicase/test-u16-tolower.c (main): Likewise.
12156         * tests/unicase/test-u32-tolower.c (main): Likewise.
12157
12158 2009-06-30  Bruno Haible  <bruno@clisp.org>
12159
12160         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12161         * lib/unicase/u16-casemap.c: Likewise.
12162         * lib/unicase/u32-casemap.c: Likewise.
12163
12164 2009-06-29  Bruno Haible  <bruno@clisp.org>
12165
12166         Define u32_casefold as a wrapper around u32_ct_casefold.
12167         * lib/unicase/u32-casefold.c: Update.
12168         * modules/unicase/u32-casefold (Depends-on): Add
12169         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12170         unicase/empty-suffix-context. Clean up.
12171
12172         Define u16_casefold as a wrapper around u16_ct_casefold.
12173         * lib/unicase/u16-casefold.c: Update.
12174         * modules/unicase/u16-casefold (Depends-on): Add
12175         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12176         unicase/empty-suffix-context. Clean up.
12177
12178         Define u8_casefold as a wrapper around u8_ct_casefold.
12179         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12180         * lib/unicase/u8-casefold.c: Update.
12181         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12182         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12183
12184         Define u32_totitle as a wrapper around u32_ct_totitle.
12185         * lib/unicase/u32-totitle.c: Update.
12186         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12187         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12188
12189         Define u16_totitle as a wrapper around u16_ct_totitle.
12190         * lib/unicase/u16-totitle.c: Update.
12191         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12192         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12193
12194         Define u8_totitle as a wrapper around u8_ct_totitle.
12195         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12196         functions.
12197         (FUNC): Delegate to U_CT_TOTITLE.
12198         * lib/unicase/u8-totitle.c: Update.
12199         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12200         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12201
12202         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12203         invocation.
12204         * modules/unicase/u32-tolower (Depends-on): Add
12205         unicase/empty-prefix-context, unicase/empty-suffix-context.
12206
12207         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12208         invocation.
12209         * modules/unicase/u16-tolower (Depends-on): Add
12210         unicase/empty-prefix-context, unicase/empty-suffix-context.
12211
12212         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12213         * modules/unicase/u8-tolower (Depends-on): Add
12214         unicase/empty-prefix-context, unicase/empty-suffix-context.
12215
12216         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12217         invocation.
12218         * modules/unicase/u32-toupper (Depends-on): Add
12219         unicase/empty-prefix-context, unicase/empty-suffix-context.
12220
12221         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12222         invocation.
12223         * modules/unicase/u16-toupper (Depends-on): Add
12224         unicase/empty-prefix-context, unicase/empty-suffix-context.
12225
12226         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12227         * modules/unicase/u8-toupper (Depends-on): Add
12228         unicase/empty-prefix-context, unicase/empty-suffix-context.
12229
12230         New module 'unicase/u32-ct-casefold'.
12231         * lib/unicase/u32-ct-casefold.c: New file.
12232         * modules/unicase/u32-ct-casefold: New file.
12233
12234         New module 'unicase/u16-ct-casefold'.
12235         * lib/unicase/u16-ct-casefold.c: New file.
12236         * modules/unicase/u16-ct-casefold: New file.
12237
12238         New module 'unicase/u8-ct-casefold'.
12239         * lib/unicase/u8-ct-casefold.c: New file.
12240         * lib/unicase/u-ct-casefold.h: New file, derived from
12241         lib/unicase/u-casefold.h.
12242         * modules/unicase/u8-ct-casefold: New file.
12243
12244         New module 'unicase/u32-ct-totitle'.
12245         * lib/unicase/u32-ct-totitle.c: New file.
12246         * modules/unicase/u32-ct-totitle: New file.
12247
12248         New module 'unicase/u16-ct-totitle'.
12249         * lib/unicase/u16-ct-totitle.c: New file.
12250         * modules/unicase/u16-ct-totitle: New file.
12251
12252         New module 'unicase/u8-ct-totitle'.
12253         * lib/unicase/u8-ct-totitle.c: New file.
12254         * lib/unicase/u-ct-totitle.h: New file, derived from
12255         lib/unicase/u-totitle.h.
12256         * modules/unicase/u8-ct-totitle: New file.
12257
12258         New module 'unicase/u32-ct-tolower'.
12259         * lib/unicase/u32-ct-tolower.c: New file.
12260         * modules/unicase/u32-ct-tolower: New file.
12261
12262         New module 'unicase/u16-ct-tolower'.
12263         * lib/unicase/u16-ct-tolower.c: New file.
12264         * modules/unicase/u16-ct-tolower: New file.
12265
12266         New module 'unicase/u8-ct-tolower'.
12267         * lib/unicase/u8-ct-tolower.c: New file.
12268         * modules/unicase/u8-ct-tolower: New file.
12269
12270         New module 'unicase/u32-ct-toupper'.
12271         * lib/unicase/u32-ct-toupper.c: New file.
12272         * modules/unicase/u32-ct-toupper: New file.
12273
12274         New module 'unicase/u16-ct-toupper'.
12275         * lib/unicase/u16-ct-toupper.c: New file.
12276         * modules/unicase/u16-ct-toupper: New file.
12277
12278         New module 'unicase/u8-ct-toupper'.
12279         * lib/unicase/u8-ct-toupper.c: New file.
12280         * modules/unicase/u8-ct-toupper: New file.
12281
12282         Add context arguments to u*_casemap functions.
12283         * lib/unicase/unicasemap.h: Include unicase.h.
12284         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12285         suffix_context arguments.
12286         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12287         functions.
12288         (FUNC): Add prefix_context and suffix_context arguments. Use
12289         uc_is_cased and uc_is_case_ignorable.
12290         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12291         * lib/unicase/u16-casemap.c: Likewise.
12292         * lib/unicase/u32-casemap.c: Likewise.
12293         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12294         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12295         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12296         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12297         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12298         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12299
12300         New module 'unicase/u32-suffix-context'.
12301         * lib/unicase/u32-suffix-context.c: New file.
12302         * modules/unicase/u32-suffix-context: New file.
12303
12304         New module 'unicase/u16-suffix-context'.
12305         * lib/unicase/u16-suffix-context.c: New file.
12306         * modules/unicase/u16-suffix-context: New file.
12307
12308         New module 'unicase/u8-suffix-context'.
12309         * lib/unicase/u8-suffix-context.c: New file.
12310         * lib/unicase/u-suffix-context.h: New file.
12311         * modules/unicase/u8-suffix-context: New file.
12312
12313         New module 'unicase/empty-suffix-context'.
12314         * lib/unicase/empty-suffix-context.c: New file.
12315         * modules/unicase/empty-suffix-context: New file.
12316
12317         New module 'unicase/u32-prefix-context'.
12318         * lib/unicase/u32-prefix-context.c: New file.
12319         * modules/unicase/u32-prefix-context: New file.
12320
12321         New module 'unicase/u16-prefix-context'.
12322         * lib/unicase/u16-prefix-context.c: New file.
12323         * modules/unicase/u16-prefix-context: New file.
12324
12325         New module 'unicase/u8-prefix-context'.
12326         * lib/unicase/u8-prefix-context.c: New file.
12327         * lib/unicase/u-prefix-context.h: New file.
12328         * lib/unicase/context.h: New file.
12329         * modules/unicase/u8-prefix-context: New file.
12330
12331         New module 'unicase/empty-prefix-context'.
12332         * lib/unicase/empty-prefix-context.c: New file.
12333         * modules/unicase/empty-prefix-context: New file.
12334
12335         New module 'unicase/ignorable'.
12336         * lib/unicase/ignorable.c: New file.
12337         * modules/unicase/ignorable: New file.
12338
12339         New module 'unicase/cased'.
12340         * lib/unicase/caseprop.h: New file.
12341         * lib/unicase/cased.c: New file.
12342         * modules/unicase/cased: New file.
12343
12344         New functions for case mapping of substrings.
12345         * lib/unicase.h (casing_prefix_context_t): New type.
12346         (unicase_empty_prefix_context): New variable.
12347         (u8_casing_prefix_context, u16_casing_prefix_context,
12348         u32_casing_prefix_context, u8_casing_prefixes_context,
12349         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12350         declarations.
12351         (casing_suffix_context_t): New type.
12352         (unicase_empty_suffix_context): New variable.
12353         (u8_casing_suffix_context, u16_casing_suffix_context,
12354         u32_casing_suffix_context, u8_casing_suffixes_context,
12355         u16_casing_suffixes_context, u32_casing_suffixes_context,
12356         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12357         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12358         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12359         declarations.
12360
12361 2009-06-28  Jim Meyering  <meyering@redhat.com>
12362
12363         boostrap: indent only with spaces
12364         * build-aux/bootstrap: Indent only with spaces, never TABs.
12365
12366         bootstrap: split long lines
12367         * build-aux/bootstrap: Keep line length < 80.
12368
12369         bootstrap: sync from coreutils
12370         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12371         just as autoreconf does.  Verify a list of prerequisite
12372         package-name,version-number pairs if defined in bootstrap.conf.
12373         Refer to README-prereq, if prerequisites are not satisfied.
12374
12375 2009-06-27  Eric Blake  <ebb9@byu.net>
12376
12377         tests: add test for bogus NULL definition
12378         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12379         * tests/test-stdlib.c: Likewise.
12380         * tests/test-string.c: Likewise.
12381         * tests/test-locale.c: Likewise.
12382         * tests/test-unistd.c: Likewise.
12383         * modules/stdio-tests (Depends-on): Add verify.
12384         * modules/stdlib-tests (Depends-on): Likewise.
12385         * modules/string-tests (Depends-on): Likewise.
12386         * modules/locale-tests (Depends-on): Likewise.
12387         * modules/unistd-tests (Depends-on): Likewise.
12388
12389 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12390
12391         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12392         self-explaining comment.
12393         * m4/selinux-selinux-h: Update serial.
12394         (gl_LIBSELINUX): New macro, adding a warning for missing development
12395         packages to code extracted from...
12396         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12397         Add warning for missing development packages here, too.
12398
12399 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12400
12401         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12402
12403 2009-06-25  Eric Blake  <ebb9@byu.net>
12404
12405         version-etc: fix regression
12406         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12407         gcc.
12408         (version_etc): Use it, to catch bugs with trailing NULL.
12409         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12410         (version_etc_va): Fix logic bug.
12411         * modules/version-etc-tests: Add test.
12412         * tests/test-version-etc.c: New file.
12413         * tests/test-version-etc.sh: Likewise.
12414
12415 2009-06-25  Sam Steingold  <sds@gnu.org>
12416
12417         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12418         mbtowc declaration.
12419
12420 2009-06-25  Eric Blake  <ebb9@byu.net>
12421
12422         fpurge: migrate into <stdio.h>
12423         * lib/fpurge.h: Delete...
12424         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12425         * lib/fpurge.c (fpurge): Change declaring header.
12426         * modules/fpurge (Files): Drop deleted file.
12427         (Depends-on): Add stdio.
12428         (configure.ac): Set witness.
12429         * modules/stdio (Makefile.am): Support fpurge macros.
12430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12431         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12432         * lib/fflush.c: Update client.
12433         * tests/test-fpurge.c: Likewise.
12434         * NEWS: Mention the change.
12435
12436 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12437
12438         * lib/argp-version-etc.c (program_authors): Add const
12439         qualifier.
12440         * lib/version-etc.c: Fix typos in the comments.
12441         * modules/argp-version-etc: Depends on version-etc.
12442
12443 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12444
12445         argp-version-etc: new module.
12446
12447         * lib/argp-version-etc.c: New file.
12448         * lib/argp-version-etc.h: New file.
12449         * modules/argp-version-etc: New file.
12450         * modules/argp-version-etc-tests: New file.
12451         * tests/test-argp-version-etc.c: New test.
12452         * tests/test-argp-version-etc-1.sh: New test.
12453
12454 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12455
12456         Provide additional interfaces and documentation for version-etc
12457         module.
12458
12459         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12460         interfaces.
12461         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12462         prototypes.
12463
12464 2009-06-24  Bruno Haible  <bruno@clisp.org>
12465
12466         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12467         HAVE_LIB${NAME} macro.
12468         Reported by Sam Steingold <sds@gnu.org>.
12469
12470 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12471
12472         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12473         needed.
12474
12475 2009-06-21  Bruno Haible  <bruno@clisp.org>
12476
12477         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12478         work.
12479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12480         together with LIB${NAME}, LTLIB${NAME}.
12481         Reported by Sam Steingold <sds@gnu.org>.
12482
12483 2009-06-20  Jim Meyering  <meyering@redhat.com>
12484
12485         tests: make sc_require_test_exit_idiom more generic
12486         * top/maint.mk (Exit_witness_file): New overridable variable.
12487         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12488         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12489
12490 2009-06-19  Jim Meyering  <meyering@redhat.com>
12491
12492         hash: reverse order of src/dst parameters in an internal interface
12493         * lib/hash.c (transfer_entries): Reverse order of parameters to
12494         put DST before SRC.  Adjust callers.
12495
12496         tests: test-hash: avoid wholesale duplication
12497         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12498         Instead, use a loop and add a single conditional.
12499
12500         tests: test-hash: allow seed selection via a command line argument
12501         * tests/test-hash.c (get_seed): New function.
12502         (main): Use it.
12503
12504 2009-06-19  Eric Blake  <ebb9@byu.net>
12505
12506         hash: avoid memory leak on allocation failure
12507         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12508         failure.  Factor repeated algorithm...
12509         (transfer_entries): ...into new helper routine.
12510         (hash_delete): React to hash_rehash return value.
12511
12512         hash: reduce memory pressure in hash_rehash no-op case
12513         * lib/hash.c (next_prime): Avoid overflow.
12514         (hash_initialize): Factor bucket size computation...
12515         (compute_bucket_size): ...into new helper function.
12516         (hash_rehash): Use new function and open coding to reduce memory
12517         pressure, and avoid a memory leak in USE_OBSTACK code.
12518         Reported by Jim Meyering.
12519
12520 2009-06-18  Eric Blake  <ebb9@byu.net>
12521
12522         hash: make rotation more obvious
12523         * modules/hash (Depends-on): Add bitrotate and stdint.
12524         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12525         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12526         (SIZE_MAX): Rely on headers for definition.
12527         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12528         (raw_hasher): Use rotr_sz.
12529         Suggested by Jim Meyering.
12530
12531         hash: fix memory leak in last patch
12532         * lib/hash.c (hash_rehash): Avoid memory leak.
12533
12534         hash: avoid no-op rehashing
12535         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12536
12537         hash: provide default callback functions
12538         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12539         (hash_initialize): Use them as defaults.
12540         * tests/test-hash.c (main): Test this.
12541
12542         hash: minor optimization
12543         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12544         when possible.
12545         (hash_initialize): Document this promise.
12546         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12547         * tests/test-hash.c (hash_compare_strings): Test this.
12548
12549 2009-06-18  Bruno Haible  <bruno@clisp.org>
12550
12551         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12552         going to be replaced anyway.
12553
12554 2009-06-18  Bruno Haible  <bruno@clisp.org>
12555
12556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12557         in one place.
12558         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12559         be replaced anyway.
12560
12561 2009-06-18  Eric Blake  <ebb9@byu.net>
12562
12563         hash: check for resize before insertion
12564         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12565         threshold before insertion, so that a pathological hash_rehash
12566         that fills every bucket can still trigger another rehash.
12567
12568 2009-06-18  Jim Meyering  <meyering@redhat.com>
12569
12570         hash-tests: add a loop around the small tests
12571         * tests/test-hash.c (main): Repeat small tests with selected
12572         small initial table sizes.
12573
12574 2009-06-17  Eric Blake  <ebb9@byu.net>
12575
12576         hash: minor cleanups
12577         * lib/hash.h (hash_entry): Make opaque, by moving...
12578         * lib/hash.c (hash_entry): ...here.
12579         (hash_insert): Clarify restrictions on what can be inserted.
12580         (hash_get_next): Clarify when it is safe to remove an element
12581         during traversal.
12582         (check_tuning): Skip verification when tuning is known safe.
12583         (hash_initialize): Clarify restrictions on tuning.
12584
12585 2009-06-17  Jim Meyering  <jim@meyering.net>
12586         and Eric Blake  <ebb9@byu.net>
12587
12588         hash-tests: new module
12589         * modules/hash-tests: New file.
12590         * tests/test-hash.c: New file.
12591
12592 2009-06-17  Eric Blake  <ebb9@byu.net>
12593
12594         strstr-simple: document new module
12595         * MODULES.html.sh: Document new module.
12596
12597         strstr, strcasestr: replace on platforms with broken memchr
12598         * modules/strstr: Split into...
12599         * modules/strstr-simple: ...new module that does not care about
12600         performance, but does care about glibc bug.
12601         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12602         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12603         if platform memchr is broken, per Debian bug 521737.
12604         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12605         memchr.
12606         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12607         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12608         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12609         * modules/mountlist (Depends-on): Add strstr-simple.
12610         * modules/gen-uni-tables (Depends-on): Likewise.
12611         * modules/argz (Depends-on): Add strstr.
12612
12613 2009-06-17  Bruno Haible  <bruno@clisp.org>
12614
12615         * modules/posix_spawn-internal (Depends-on): Add errno.
12616
12617 2009-06-17  Bruno Haible  <bruno@clisp.org>
12618
12619         Define missing ESTALE on Interix 3.5.
12620         * lib/errno.in.h (ESTALE): Assign a value if missing.
12621         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12623         missing.
12624         * doc/posix-headers/errno.texi: Mention the Interix bug.
12625         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12626
12627 2009-06-15  Eric Blake  <ebb9@byu.net>
12628
12629         memchr, memchr2: add valgrind exception
12630         * lib/memchr.valgrind: New file.
12631         * lib/memchr2.valgrind: New file.
12632         * modules/memchr (Files): Distribute valgrind file.
12633         * modules/memchr2 (Files): Likewise.
12634
12635         docs: memchr is no longer obsolete
12636         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12637         * lib/string.in.h (memchr): Simplify logic.
12638
12639 2009-06-14  Jim Meyering  <meyering@redhat.com>
12640
12641         link-follow: fix the "checking..." message to not mention trailing slash
12642         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12643         never considered trailing slashes.
12644
12645 2009-06-14  Bruno Haible  <bruno@clisp.org>
12646
12647         * m4/memchr.m4: Mention also the bug on IA-64.
12648         * doc/posix-functions/memchr.texi: Likewise.
12649
12650 2009-06-12  Eric Blake  <ebb9@byu.net>
12651
12652         memchr: detect broken x86_64 and alpha implementations
12653         * modules/memchr-tests (Depends-on): Move mmap detection...
12654         * modules/memchr (Depends-on): ...here.
12655         (configure.ac): Set indicator.
12656         * lib/string.in.h (memchr): Declare replacement.
12657         * modules/string (Makefile.am): Trigger replacement.
12658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12659         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12660         bugs.
12661         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12662         * modules/getpagesize (License): Relax license.
12663
12664 2009-06-11  Bruno Haible  <bruno@clisp.org>
12665
12666         * lib/idpriv.h: Add more references.
12667
12668 2009-06-08  Bruno Haible  <bruno@clisp.org>
12669
12670         Tests for module 'idpriv-droptemp'.
12671         * modules/idpriv-droptemp-tests: New file.
12672         * tests/test-idpriv-droptemp.sh: New file.
12673         * tests/test-idpriv-droptemp.su.sh: New file.
12674         * tests/test-idpriv-droptemp.c: New file.
12675
12676         New module 'idpriv-droptemp'.
12677         * lib/idpriv-droptemp.c: New file.
12678         * modules/idpriv-droptemp: New file.
12679
12680 2009-06-08  Bruno Haible  <bruno@clisp.org>
12681
12682         Tests for module 'idpriv-drop'.
12683         * modules/idpriv-drop-tests: New file.
12684         * tests/test-idpriv-drop.sh: New file.
12685         * tests/test-idpriv-drop.su.sh: New file.
12686         * tests/test-idpriv-drop.c: New file.
12687
12688         New module 'idpriv-drop'.
12689         * lib/idpriv.h: New file.
12690         * lib-idpriv-drop.c: New file.
12691         * m4/idpriv.m4: New file.
12692         * modules/idpriv-drop: New file.
12693
12694 2009-06-08  Bruno Haible  <bruno@clisp.org>
12695
12696         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12697         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12698         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12699         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12700         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12701         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12702         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12703
12704 2009-06-08  Eric Blake  <ebb9@byu.net>
12705
12706         test-strstr: use memory fence, when possible
12707         * tests/test-strstr.c (main): Use memory fence, in order to be
12708         more likely to trigger Debian bug 521737.
12709         * modules/strstr-tests (Files): Pull in additional files.
12710
12711         memchr: no longer obsolete, for wider field testing
12712         * modules/memchr (Status, Notice): Delete, this module is no
12713         longer obsolete.
12714         * modules/vasnprintf (Depends-on): Add memchr.
12715
12716 2009-06-07  Jim Meyering  <meyering@redhat.com>
12717
12718         hash: declare some functions with the warn_unused_result attribute
12719         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12720
12721 2009-06-07  Bruno Haible  <bruno@clisp.org>
12722
12723         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12724         Reported by Eric Blake.
12725
12726 2009-06-06  Eric Blake  <ebb9@byu.net>
12727
12728         test-alignof: fix typo with long double
12729         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12730         compiler error.
12731
12732 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12733
12734         Escape non-texinfo { and }s.
12735         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12736         markup error.
12737
12738 2009-06-04  Jim Meyering  <meyering@redhat.com>
12739
12740         gitlog-to-changelog: don't infloop on an empty commit log
12741         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12742         Reported by Boris Petersen <transacid@centerim.org>.
12743
12744 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12745
12746         version-etc: extend for packagers
12747         Add three new configure options, intended for packagers:
12748           --with-packager="packager name"
12749           --with-packager-version="packager-specific version"
12750           --with-packager-bug-reports="packager bug reporting"
12751         An example with coreutils:
12752           $ ./configure \
12753             --with-packager=Gentoo \
12754             --with-packager-bug-report=http://bugs.gentoo.org/ \
12755             --with-packager-version="patchset 1.6"
12756           $ ./src/ls --version | head -n2
12757           ls (GNU coreutils) 7.1-dirty
12758           Packaged by Gentoo (patchset 1.6)
12759         Note that the bug reporting info via --help doesn't show up because
12760         coreutils uses its own custom emit_bug_reporting_address() implementation
12761         in src/system.h.  If it didn't, it'd look like:
12762           $ ./src/ls --help | tail -n4
12763           Report bugs to <bug-coreutils@gnu.org>.
12764           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12765           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12766           General help using GNU software: <http://www.gnu.org/gethelp/>.
12767         * lib/version-etc.c: Print new information, if provided.
12768         * m4/version-etc.m4: New file.
12769         * modules/version-etc (Files): Add m4/version-etc.m4.
12770         (configure.ac): Add gl_VERSION_ETC.
12771
12772 2009-05-31  Bruno Haible  <bruno@clisp.org>
12773
12774         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12775         and 'int64_t'.
12776         * modules/alignof-tests (Dependencies): Add stdint.
12777         Reported by Eric Blake.
12778
12779 2009-05-31  Bruno Haible  <bruno@clisp.org>
12780
12781         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12782         restriction due to compiler bugs.
12783         Reported by Eric Blake.
12784
12785 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12786             Bruno Haible  <bruno@clisp.org>
12787
12788         Fix test-alignof failure.
12789         * lib/alignof.h (alignof_slot): New macro.
12790         (alignof_type): New macro, with the same semantics as the previous
12791         'alignof'.
12792         (alignof): Alias to alignof_slot.
12793         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12794         check that the results are usable as constant expressions.
12795
12796 2009-05-31  Bruno Haible  <bruno@clisp.org>
12797
12798         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12799         * tests/test-memchr.c (main): Check that memchr does not read past the
12800         first occurrence of the byte.
12801         * tests/test-strstr.c (main): Update comment.
12802         Suggested by Eric Blake.
12803
12804 2009-05-30  Bruno Haible  <bruno@clisp.org>
12805
12806         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12807         detail how to use dumpbin.
12808         Reported by David Byron <dbyron@dbyron.com>.
12809
12810 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12811
12812         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12813
12814 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12815
12816         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12817
12818 2009-05-28  Bruno Haible  <bruno@clisp.org>
12819
12820         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12821         build-aux/ files.
12822
12823 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12824
12825         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12826
12827 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12828
12829         * gnulib-tool (sed_transform_main_lib_file)
12830         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12831         regexps.
12832
12833 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12834
12835         * tests/test-strstr.c: Add another self-test.
12836         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12837         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12838
12839 2009-05-23  Bruno Haible  <bruno@clisp.org>
12840
12841         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12842         change.
12843
12844 2009-05-21  Bruno Haible  <bruno@clisp.org>
12845
12846         Simplify use of mode_t varargs.
12847         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12848         uses 'mode_t' or 'int'.
12849         * lib/openat.c (openat): Likewise.
12850         * lib/open-safer.c (open_safer): Likewise.
12851         * m4/mode_t.m4: New file.
12852         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12853         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12854         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12855         * modules/open (Files): Add m4/mode_t.m4.
12856         * modules/openat (Files): Likewise.
12857         * modules/fcntl-safer (Files): Likewise.
12858         Suggested by Eric Blake.
12859
12860 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12861
12862         * doc/glibc-functions/fallocate.texi: New file.
12863         * doc/gnulib.texi: Include it.
12864
12865 2009-05-21  Eric Blake  <ebb9@byu.net>
12866             Bruno Haible  <bruno@clisp.org>
12867
12868         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12869         invocations.
12870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12871
12872 2009-05-21  Eric Blake  <ebb9@byu.net>
12873             Bruno Haible  <bruno@clisp.org>
12874
12875         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12876         include_next. Fix of 2008-11-20 commit.
12877         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12878         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12879         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12880         NEXT_MATH_H.
12881         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12882         instead of NEXT_MATH_H.
12883
12884 2009-05-21  Bruno Haible  <bruno@clisp.org>
12885
12886         Avoid redefinition warnings for SIZE_MAX.
12887         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12888         Reported by Simon Josefsson.
12889
12890 2009-05-21  Bruno Haible  <bruno@clisp.org>
12891
12892         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12893         AC_CACHE_VAL.
12894
12895 2009-05-20  Bruno Haible  <bruno@clisp.org>
12896
12897         Make zeroptr.h work on mingw.
12898         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12899         mprotect.
12900         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12901         * modules/memchr2-tests (configure.ac): Likewise.
12902         * modules/memcmp-tests (configure.ac): Likewise.
12903         * modules/memmem-tests (configure.ac): Likewise.
12904         * modules/memrchr-tests (configure.ac): Likewise.
12905         Reported by Simon Josefsson.
12906
12907 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12908
12909         * tests/test-glob.c: Include string.h for strcmp prototype.
12910
12911 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12912
12913         * modules/getdelim (Depends-on): Add explicit stdint, although it
12914         was implicitly already pulled in via realloc-posix.
12915         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12916
12917 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12918
12919         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12920         G. Christensen" <tgc@jupiterrise.com>.
12921         * m4/sys_socket_h.m4: Check for sa_family_t.
12922         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12923         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12924         * tests/test-sys_socket.c: Check that sa_family_t works.
12925
12926 2009-05-18  Eric Blake  <ebb9@byu.net>
12927
12928         maint.mk: allow gnulib_dir in VPATH build
12929         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12930
12931 2009-05-15  Jim Meyering  <meyering@redhat.com>
12932
12933         maint.mk: Give gnulib_dir a default definition.
12934         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12935         Thus, most packages no longer need to specify this variable in cfg.mk
12936
12937 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12938
12939         rename.m4: fix typos that would make non-mingw cross-configure fail
12940         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12941
12942 2009-05-13  Eric Blake  <ebb9@byu.net>
12943
12944         mmap-anon: avoid out-of-order autoconf expansion
12945         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12946         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12947         * modules/memchr-tests (Depends-on): Add extensions.
12948         * modules/memchr2-tests (Depends-on): Add extensions.
12949         * modules/memcmp-tests (Depends-on): Add extensions.
12950         * modules/memmem-tests (Depends-on): Add extensions.
12951         * modules/memrchr-tests (Depends-on): Add extensions.
12952
12953 2009-05-13  Bruno Haible  <bruno@clisp.org>
12954
12955         Make some tests ISO C 99 compliant.
12956         * tests/zerosize-ptr.h: New file.
12957         * tests/test-memchr.c: Include zerosize-ptr.h.
12958         (main): Use a zero-size object pointer instead of NULL.
12959         * tests/test-memchr2.c: Include zerosize-ptr.h.
12960         (main): Use a zero-size object pointer instead of NULL.
12961         * tests/test-memcmp.c: Include zerosize-ptr.h.
12962         (main): Use a zero-size object pointer instead of NULL.
12963         * tests/test-memmem.c: Include zerosize-ptr.h.
12964         (main): Use a zero-size object pointer instead of NULL.
12965         * tests/test-memrchr.c: Include zerosize-ptr.h.
12966         (main): Use a zero-size object pointer instead of NULL.
12967         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12968         m4/mmap-anon.m4.
12969         (Depends-on): Add getpagesize.
12970         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12971         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12972         m4/mmap-anon.m4.
12973         (Depends-on): Add getpagesize.
12974         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12975         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12976         m4/mmap-anon.m4.
12977         (Depends-on): Add getpagesize.
12978         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12979         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12980         m4/mmap-anon.m4.
12981         (Depends-on): Add getpagesize.
12982         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12983         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12984         m4/mmap-anon.m4.
12985         (Depends-on): Add getpagesize.
12986         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12987
12988 2009-05-12  Bruno Haible  <bruno@clisp.org>
12989
12990         Tests for module 'alignof'.
12991         * modules/alignof-tests: New file.
12992         * tests/test-alignof.c: New file.
12993
12994 2009-05-12  Bruno Haible  <bruno@clisp.org>
12995
12996         Fix alignof macro.
12997         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12998         vendor compilers that are always correct.
12999
13000 2009-05-12  Bruno Haible  <bruno@clisp.org>
13001
13002         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13003         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13004         not whether its fully works.
13005
13006 2009-05-12  Bruno Haible  <bruno@clisp.org>
13007
13008         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13009
13010 2009-05-12  Jim Meyering  <meyering@redhat.com>
13011
13012         * top/maint.mk: Adjust backslash alignment.
13013
13014 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13015
13016         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13017
13018 2009-05-11  Eric Blake  <ebb9@byu.net>
13019
13020         argp: avoid undefined behavior
13021         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13022         macros.
13023
13024 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13025
13026         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13027         user.name to prevent git commit from complaining.
13028
13029 2009-05-10  Bruno Haible  <bruno@clisp.org>
13030
13031         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13032         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13033         it rewrites every file name only once.
13034         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13035
13036 2009-05-08  Bruno Haible  <bruno@clisp.org>
13037
13038         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13039         instead of 'max'.
13040
13041 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13042
13043         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13044         sockaddr_storage test.
13045
13046 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13047
13048         * modules/sys_socket (Makefile.am): Substitute
13049         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13050         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13051         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13052         * tests/test-sys_socket.c: Check sockaddr_storage.
13053
13054 2009-05-08  Bruno Haible  <bruno@clisp.org>
13055
13056         New module 'alignof'.
13057         * lib/alignof.h: New file.
13058         * modules/alignof: New file.
13059
13060 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13061             Bruno Haible  <bruno@clisp.org>
13062
13063         Fix test-file-has-acl on FreeBSD.
13064         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13065         mask is implicitly added.
13066         * tests/test-file-has-acl.c: Include <signal.h>.
13067         (main): Terminate the test after 5 seconds.
13068         * modules/acl-tests (configure.ac): Check for alarm function.
13069
13070 2009-05-04  Bruno Haible  <bruno@clisp.org>
13071
13072         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13073         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13074         * modules/errno (configure.ac): Drop AC_REQUIRE.
13075         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13076         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13077
13078 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13079
13080         * modules/glob-tests: New module.
13081         * tests/test-glob.c: Add.
13082
13083 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13084
13085         * modules/fnmatch-tests: New module.
13086         * tests/test-fnmatch.c: Add.
13087
13088 2009-05-04  Eric Blake  <ebb9@byu.net>
13089
13090         maint: make the new no-submodule-changes rule VPATH-safe
13091         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13092
13093 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13094             Bruno Haible  <bruno@clisp.org>
13095
13096         acl: Fix infinite loop on FreeBSD.
13097         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13098         of return value from acl_get_entry.
13099         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13100         Likewise.
13101
13102 2009-05-03  Bruno Haible  <bruno@clisp.org>
13103
13104         * lib/acl-internal.h (acl_entries): Clarify return value.
13105         * lib/acl_entries.c (acl_entries): Likewise.
13106
13107 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13108
13109         Bug fix in acl module.
13110         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13111
13112 2009-05-03  Bruno Haible  <bruno@clisp.org>
13113
13114         Create gperf-generated file in the source dir, not in the build dir.
13115         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13116         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13117         * modules/unicase/locale-language (unicase/locale-languages.h):
13118         Likewise.
13119         * modules/unicase/special-casing (unicase/special-casing-table.h):
13120         Likewise.
13121         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13122         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13123         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13124         Reported by Ralf Wildenhues.
13125
13126 2009-05-03  Bruno Haible  <bruno@clisp.org>
13127
13128         * modules/fnmatch (Description, configure.ac): Taken from
13129         fnmatch-posix.
13130         * modules/fnmatch-posix: Turn into a symbolic reference to the
13131         'fnmatch' module, and deprecate.
13132         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13133
13134 2009-05-03  Bruno Haible  <bruno@clisp.org>
13135
13136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13137         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13138         Reported by Ralf Wildenhues.
13139
13140 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13141
13142         * m4/fnmatch.m4: Fix fnmatch re-define.
13143
13144 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13145
13146         priv-set: new module and tests; adapt write-any-file
13147         * lib/priv-set.c: New file.
13148         * lib/priv-set.h: New file.
13149         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13150         * lib/write-any-file.c: Simplify by using priv-set module.
13151         * m4/priv-set.m4: New file.
13152         * modules/priv-set: New file.
13153         * modules/unlinkdir: Add dependency on priv-set module.
13154         * modules/write-any-file: Likewise.
13155
13156         Tests for module 'priv-set'.
13157         * modules/priv-set-tests: New file.
13158         * tests/test-priv-set.c: New file.
13159
13160 2009-05-03  Jim Meyering  <meyering@redhat.com>
13161             Bruno Haible  <bruno@clisp.org>
13162
13163         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13164         use the converted UTF-8 variant of the name instead.
13165
13166 2009-05-03  Jim Meyering  <meyering@redhat.com>
13167
13168         tests: tighten some getdate tests
13169         * tests/test-getdate.c (main): Tighten tests: require equality,
13170         not just greater than.  Set TZ envvar to UTC0.
13171
13172 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13173
13174         getdate: correctly interpret "next monday" when run on a Monday
13175         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13176         that e.g., "next tues" (when run on a tuesday) results in a date
13177         that is one week in the future, and not today's date.
13178         I.e., add a week when the wday is the same as the current one.
13179         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13180         and earlier by Martin Bernreuther and Jan Minář.
13181         * tests/test-getdate.c (main): Check that "next DAY" is always in
13182         the future and that "last DAY" is always in the past.
13183
13184 2009-05-02  Jim Meyering  <meyering@redhat.com>
13185
13186         build: ensure that a release build fails when a submodule is unclean
13187         * top/maint.mk (no-submodule-changes): New rule.
13188         (alpha beta major): Depend on it.
13189
13190 2009-05-02  Bruno Haible  <bruno@clisp.org>
13191
13192         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13193         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13194         shell variable gl_fnmatch_required to detect which variant is
13195         requested.
13196         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13197         gl_FUNC_FNMATCH_POSIX.
13198         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13199         exclude fnmatch-posix.
13200
13201 2009-05-02  Bruno Haible  <bruno@clisp.org>
13202
13203         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13204         * modules/mbsrtowcs (License): Change to LGPLv2+.
13205         * modules/strnlen1 (License): Likewise.
13206         Reported by Simon Josefsson.
13207
13208 2009-05-02  Bruno Haible  <bruno@clisp.org>
13209
13210         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13211         "cross".
13212         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13213         gnulib-tool was called with option --source-base=lib.
13214
13215 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13216
13217         Use automake *-local hooks without commands, for extensibility.
13218         * modules/localcharset (Makefile.am): Rename install-exec-local
13219         rule to install-exec-localcharset, and make it a prerequisite of
13220         install-exec-local.  Likewise, rename the uninstall-local rule to
13221         uninstall-localcharset, and make it a prerequisite of the former.
13222
13223 2009-05-01  Bruno Haible  <bruno@clisp.org>
13224
13225         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13226         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13227         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13229         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13230         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13231         m4/locale-zh.m4, m4/codeset.m4.
13232
13233         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13234         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13235         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13236         m4/locale-zh.m4.
13237
13238         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13239         REPLACE_WCRTOMB if mbstate_t must be replaced.
13240         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13241         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13242
13243 2009-05-01  Bruno Haible  <bruno@clisp.org>
13244
13245         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13246         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13247         dngettext, dcngettext, textdomain, bindtextdomain,
13248         bind_textdomain_codeset): Undefine before redefining.
13249
13250 2009-04-30  Bruno Haible  <bruno@clisp.org>
13251
13252         Fix bug introduced on 2009-04-25.
13253         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13254         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13255         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13256         is defined.
13257         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13258         is defined.
13259         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13260         is defined.
13261         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13262
13263 2009-04-28  Bruno Haible  <bruno@clisp.org>
13264
13265         Comment tweaks.
13266         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13267         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13268         * lib/unicase.h (u*_casexfrm): Likewise.
13269         Reported by Paolo Bonzini.
13270
13271 2009-04-28  Bruno Haible  <bruno@clisp.org>
13272
13273         Fix a compilation error.
13274         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13275         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13276         Reported by Jim Meyering.
13277
13278 2009-04-27  Bruno Haible  <bruno@clisp.org>
13279
13280         New module 'libunistring'.
13281         * modules/libunistring: New file.
13282         * m4/libunistring.m4: New file.
13283         * MODULES.html.sh (Unicode string functions): Add it.
13284
13285 2009-04-27  Eric Blake  <ebb9@byu.net>
13286
13287         maint.mk: allow package-specific header to provide <config.h>
13288         * top/maint.mk (sc_require_config_h): New variable.
13289         (sc_require_config_h, sc_require_config_h_first): Use it.
13290
13291 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13292
13293         * top/maint.mk (sc_avoid_if_before_free): Except
13294         useless-if-before-free script.
13295
13296 2009-04-27  Eric Blake  <ebb9@byu.net>
13297
13298         maintainer-makefile: depend on all required helper scripts
13299         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13300         useless-if-before-free.
13301         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13302         version, rather than assuming gnulib checkout is available.
13303         Reported by Simen Josefsson.
13304
13305 2009-04-26  Bruno Haible  <bruno@clisp.org>
13306
13307         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13308         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13309         "../" or "..".
13310
13311 2009-04-26  Bruno Haible  <bruno@clisp.org>
13312
13313         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13314         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13315         AC_LIB_HAVE_LINKFLAGS.
13316
13317 2009-04-26  Bruno Haible  <bruno@clisp.org>
13318
13319         Simplify calling convention of u*_conv_from_encoding.
13320         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13321         u32_conv_from_encoding): Expect a resultbuf argument and return the
13322         result directly as a pointer.
13323         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13324         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13325         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13326         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13327         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13328         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13329         Update.
13330         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13331         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13332         * lib/vasnprintf.c (VASNPRINTF): Update.
13333         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13334         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13335         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13336         * NEWS: Mention the change.
13337
13338 2009-04-26  Bruno Haible  <bruno@clisp.org>
13339
13340         Simplify calling convention of u*_conv_to_encoding.
13341         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13342         u32_conv_to_encoding): Expect a resultbuf argument and return the
13343         result directly as a pointer.
13344         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13345         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13346         freeing scaled_offsets if mem_iconveha failed.
13347         * lib/unicase/u-casexfrm.h (FUNC): Update.
13348         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13349         * lib/vasnprintf.c (VASNPRINTF): Update.
13350         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13351         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13352         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13353         * NEWS: Mention the change.
13354
13355 2009-04-26  Bruno Haible  <bruno@clisp.org>
13356
13357         Avoid test failures on AIX and OSF/1.
13358         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13359         malloc(0).
13360         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13361         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13362         Likewise.
13363         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13364         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13365         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13366         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13367         * doc/posix-functions/malloc.texi: Document the portability problem
13368         related to malloc(0).
13369
13370 2009-04-26  Bruno Haible  <bruno@clisp.org>
13371
13372         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13373         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13374         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13375
13376 2009-04-25  Bruno Haible  <bruno@clisp.org>
13377
13378         Avoid link error when creating a namespace clean library.
13379         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13380         as macro with arguments if already defined as an alias.
13381         * lib/signbitf.c (gl_signbitf): Don't undefine.
13382         * lib/signbitd.c (gl_signbitd): Don't undefine.
13383         * lib/signbitl.c (gl_signbitl): Don't undefine.
13384
13385 2009-04-25  Jim Meyering  <meyering@redhat.com>
13386
13387         vc-list-files: fix another quoting bug
13388         * build-aux/vc-list-files: Avoid sed backslash expansion
13389         of pathological directory names.
13390
13391 2009-04-25  Eric Blake  <ebb9@byu.net>
13392
13393         vc-list-files: fix shell quoting error
13394         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13395         timestamp.
13396
13397 2009-04-25  Jim Meyering  <meyering@redhat.com>
13398
13399         vc-list-files: restore lost functionality with subdir argument
13400         * build-aux/vc-list-files: When given a non-"." sub-directory
13401         argument, substitute the $dir/ prefix back onto each resulting name.
13402         Otherwise, coreutils' root_tests check would fail.
13403
13404 2009-04-24  Eric Blake  <ebb9@byu.net>
13405
13406         vc-list-files: ignore git symlinks
13407         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13408         than ls-files, to ignore git symlinks.
13409
13410         maint.mk: import improvements from m4
13411         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13412         (move_if_change): Delete unused macro.
13413         (news-date-check, vc-diff-check): Support VPATH builds.
13414         (announcement): Likewise.  Split --bootstrap-tools list...
13415         (boostrap-tools): ...into separate list, which can be overridden
13416         in cfg.mk.
13417         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13418         requiring dependency on useless-if-before-free module.
13419         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13420         Support VPATH builds.
13421
13422 2009-04-24  Jim Meyering  <meyering@redhat.com>
13423
13424         maint.mk: remove coreutils-specific rules and variables
13425         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13426         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13427         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13428
13429         maint.mk: remove obsolete rule
13430         * top/maint.mk (rel-check): Remove rule.
13431         (WGET, WGETFLAGS): Remove now-unused variables.
13432
13433 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13434
13435         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13436         consistency.
13437
13438         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13439         '$(PATH_SEPARATOR)' instead of ':'.
13440
13441 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13442
13443         * lib/getopt1.c (main): Use 'const' for static array.
13444
13445 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13446
13447         * top/maint.mk: Sync with coreutils.
13448         * NEWS: Explain incompatibilities.
13449
13450 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13451             Bruno Haible  <bruno@clisp.org>
13452
13453         Fix cross-compilation results.
13454         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13455         statement, as third argument of AC_TRY_RUN.
13456         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13457         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13458         Likewise.
13459         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13460         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13461         Likewise.
13462         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13463         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13464         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13465
13466 2009-04-20  Bruno Haible  <bruno@clisp.org>
13467
13468         Avoid test failure on mingw.
13469         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13470
13471 2009-04-20  Bruno Haible  <bruno@clisp.org>
13472
13473         Avoid compilation error on mingw.
13474         * modules/localename-tests (Depends-on): Add locale.
13475
13476 2009-04-19  Bruno Haible  <bruno@clisp.org>
13477
13478         Support for building a shared library on Windows platforms.
13479         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13480         (main): Test the presence of UNINORM_NFC here.
13481         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13482         (main): Test the presence of UNINORM_NFD here.
13483         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13484         (main): Test the presence of UNINORM_NFKC here.
13485         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13486         (main): Test the presence of UNINORM_NFKD here.
13487
13488 2009-04-19  Bruno Haible  <bruno@clisp.org>
13489
13490         Avoid a compiler warning.
13491         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13492         Change type of variable 'sequence'.
13493
13494 2009-04-19  Bruno Haible  <bruno@clisp.org>
13495
13496         * modules/configmake (Makefile.am): When the contents of configmake.h
13497         does not change, arrange to preserve its modification time.
13498
13499 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13500
13501         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13502         gettext domain.
13503
13504 2009-04-16  Jim Meyering  <meyering@redhat.com>
13505
13506         useless-if-before-free: improve conversion code
13507         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13508         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13509
13510 2009-04-14  Bruno Haible  <bruno@clisp.org>
13511
13512         * modules/fcntl (Depends-on): Add extensions.
13513         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13514
13515 2009-04-12  Ben Pfaff  <blp@gnu.org>
13516
13517         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13518         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13519
13520 2009-03-20  Ben Pfaff  <blp@gnu.org>
13521
13522         Make rename replace existing destinations on Windows.
13523         * m4/rename.m4: Add test for Mingw.
13524         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13525         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13526         * doc/posix-functions/rename.texi: Document.
13527
13528 2009-04-10  Bruno Haible  <bruno@clisp.org>
13529
13530         New include file "iconveh.h".
13531         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13532         * lib/striconveh.h: Include it.
13533         (enum iconv_ilseq_handler): Remove definition.
13534         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13535         striconveh.h.
13536         * lib/striconveha.c: Include striconveh.h.
13537         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13538         * modules/striconveh (Files): Add lib/iconveh.h.
13539         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13540         lib/striconveh.h.
13541
13542 2009-04-10  Bruno Haible  <bruno@clisp.org>
13543
13544         * lib/uniconv.h: Update comment.
13545
13546 2009-04-10  Bruno Haible  <bruno@clisp.org>
13547
13548         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13549         always.
13550         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13551         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13552         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13553         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13554         "unistring-notinline.h", so that the function gets defined always.
13555         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13556         * lib/unistr/u8-uctomb.c: Likewise.
13557         * lib/unistr/u16-mbtouc.c: Likewise.
13558         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13559         * lib/unistr/u16-uctomb.c: Likewise.
13560         * lib/unistr/u32-mbtouc.c: Likewise.
13561         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13562         * lib/unistr/u32-uctomb.c: Likewise.
13563
13564 2009-04-10  Bruno Haible  <bruno@clisp.org>
13565
13566         Mark 'utime' obsolete.
13567         * modules/utime (Status, Notice): New sections.
13568         Suggested by Jim Meyering.
13569
13570         Fix cross-compile guess for utime test.
13571         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13572         autoconf.
13573         * doc/posix-functions/utime.texi: Give more precisions.
13574         Reported by Jan <ipif@ymail.com>.
13575
13576 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13577
13578         filevercmp: correct today's change
13579         * lib/filevercmp.c: Also handle coreutils' test inputs.
13580         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13581
13582         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13583         for reporting it.
13584         * lib/filevercmp.c: Special handle for "", "." and "..".
13585         * tests/test-filevercmp.c: Enlarge the set suite.
13586
13587 2009-04-07  Jim Meyering  <meyering@redhat.com>
13588
13589         useless-if-before-free: show how to remove braced useless free, too
13590         * build-aux/useless-if-before-free: still only in a comment, though.
13591
13592 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13593
13594         maint.mk: import changes to syntax-check macros from coreutils
13595         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13596         Use them in the relevant macros.
13597
13598 2009-04-06  Bruno Haible  <bruno@clisp.org>
13599
13600         Fix unportable use of bit-fields.
13601         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13602         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13603         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13604
13605 2009-04-06  Bruno Haible  <bruno@clisp.org>
13606
13607         Avoid test failures on AIX and OSF/1.
13608         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13609         that malloc(0) = NULL.
13610         * tests/unicase/test-u8-tolower.c (check): Likewise.
13611         * tests/unicase/test-u8-totitle.c (check): Likewise.
13612         * tests/unicase/test-u8-toupper.c (check): Likewise.
13613         * tests/unicase/test-u16-casefold.c (check): Likewise.
13614         * tests/unicase/test-u16-tolower.c (check): Likewise.
13615         * tests/unicase/test-u16-totitle.c (check): Likewise.
13616         * tests/unicase/test-u16-toupper.c (check): Likewise.
13617         * tests/unicase/test-u32-casefold.c (check): Likewise.
13618         * tests/unicase/test-u32-tolower.c (check): Likewise.
13619         * tests/unicase/test-u32-totitle.c (check): Likewise.
13620         * tests/unicase/test-u32-toupper.c (check): Likewise.
13621         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13622         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13623         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13624         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13625         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13626         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13627         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13628         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13629         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13630         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13631         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13632         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13633
13634 2009-04-05  Bruno Haible  <bruno@clisp.org>
13635
13636         Work around an autoconf limitation.
13637         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13638         comment line if it would be longer than 3 KB.
13639
13640 2009-04-05  Bruno Haible  <bruno@clisp.org>
13641
13642         Avoid test failure with libiconv-1.13.
13643         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13644         of the expected test results.
13645
13646 2009-04-05  Bruno Haible  <bruno@clisp.org>
13647
13648         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13649         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13650         that it should be installed.
13651
13652 2009-04-05  Bruno Haible  <bruno@clisp.org>
13653
13654         * gnulib-tool: New option --copy-file.
13655         (func_usage): Document it.
13656         (func_dest_tmpfilename): Moved out of func_import.
13657         (func_add_file, func_update_file): New functions, extracted from
13658         func_import.
13659         (func_import): Update.
13660
13661 2009-04-05  Karl Berry  <karl@gnu.org>
13662
13663         * README: prominently mention gnulib-tool.
13664         Rearrange sections so getting the code is near the top.
13665
13666 2009-04-05  Bruno Haible  <bruno@clisp.org>
13667
13668         * lib/unicase.h: Mention u*_cmp2.
13669         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13670         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13671         * lib/unicase/ulc-casecmp.c: Likewise.
13672         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13673         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13674         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13675         unistr/u8-cmp.
13676         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13677         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13678         unistr/u16-cmp.
13679         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13680         unistr/u32-cmp.
13681
13682         * lib/uninorm.h: Mention u*_cmp2.
13683         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13684         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13685         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13686         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13687         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13688         unistr/u8-cmp.
13689         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13690         unistr/u16-cmp.
13691         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13692         unistr/u32-cmp.
13693
13694         New module 'unistr/u32-cmp2'.
13695         * lib/unistr/u32-cmp2.c: New file.
13696         * modules/unistr/u32-cmp2: New file.
13697
13698         New module 'unistr/u16-cmp2'.
13699         * lib/unistr/u16-cmp2.c: New file.
13700         * modules/unistr/u16-cmp2: New file.
13701
13702         New module 'unistr/u8-cmp2'.
13703         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13704         * lib/unistr/u8-cmp2.c: New file.
13705         * lib/unistr/u-cmp2.h: New file.
13706         * modules/unistr/u8-cmp2: New file.
13707
13708 2009-04-05  Bruno Haible  <bruno@clisp.org>
13709
13710         * lib/unictype.h (uc_property_is_valid): New macro.
13711         * tests/unictype/test-pr_byname.c (main): Use it.
13712
13713         * lib/unistr.h: Doc fixes.
13714         * lib/uniconv.h: Doc fixes.
13715         * lib/unictype.h: Doc fixes.
13716
13717 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13718
13719         Port coreutils 7.2 to Solaris 8.
13720
13721         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13722         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13723         for Solaris 8.  This is a bit of a hack, as it means it's the
13724         caller's responsibility to add -lnsl if needed, but most likely it
13725         won't be needed since only getaddrinfo uses this and getaddrinfo
13726         isn't needed on Solaris 8.
13727
13728         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13729         problem to Solaris 8 encountered with coreutils 7.2, which
13730         resulted in a message "fnmatch.c:292: warning: passing argument 4
13731         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13732         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13733
13734 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13735
13736         * m4/ld-version-script.m4: Add FIXME comment.
13737
13738 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13739
13740         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13741         SOVERSION variable.
13742
13743 2009-04-02  Bruno Haible  <bruno@clisp.org>
13744
13745         * Makefile (info, html, dvi, pdf): Combine the rules.
13746         Suggested by Jim Meyering.
13747
13748 2009-04-01  Bruno Haible  <bruno@clisp.org>
13749
13750         * Makefile (info, html, dvi, pdf): New targets.
13751         Reported by Reuben Thomas <rrt@sc3d.org>.
13752
13753 2009-04-01  Bruno Haible  <bruno@clisp.org>
13754
13755         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13756         can be put into PATH.
13757         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13758
13759 2009-04-01  Bruno Haible  <bruno@clisp.org>
13760
13761         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13762
13763 2009-04-01  Bruno Haible  <bruno@clisp.org>
13764
13765         Rename module 'visibility'.
13766         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13767         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13768         * doc/gnulib.texi: Update.
13769         * MODULES.html.sh (Misc): Update.
13770         * NEWS: Mention the change.
13771
13772 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13773
13774         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13775         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13776         Eric Blake <ebb9@byu.net> for review.
13777         * MODULES.html.sh: Add lib-msvc-compat.
13778         * doc/gnulib.texi: Link to new section.
13779         * m4/ld-output-def.m4: New file.
13780         * doc/ld-output-def.texi: New file.
13781
13782 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13783
13784         Rename ld-version-script to lib-symbol-versions.  Suggested by
13785         Bruno Haible <bruno@clisp.org>.
13786         * modules/ld-version-script: Renamed to lib-symbol-versions.
13787         * doc/ld-version-script.texi: Fix module name.
13788         * MODULES.html.sh: Add lib-symbol-versions.
13789
13790 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13791
13792         * modules/u64-tests: New file.
13793         * tests/test-u64.c: New file.
13794
13795 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13796
13797         * MODULES.html.sh: Mention u64.
13798         * modules/u64: New module.
13799         * modules/crypto/sha512: Depend on u64 module instead of providing
13800         u64.h.
13801
13802 2009-03-27  Eric Blake  <ebb9@byu.net>
13803
13804         test-strerror: make debugging EAI_SYSTEM easier
13805         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13806         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13807         failure was EAI_SYSTEM.
13808
13809 2009-03-25  Bruno Haible  <bruno@clisp.org>
13810
13811         Fix a problem with --enable-relocatable on Solaris 7.
13812         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13813         since 2008-02-24.
13814
13815 2009-03-25  Eric Blake  <ebb9@byu.net>
13816
13817         test-sockets: avoid gcc warning
13818         * tests/test-sockets.c (main): Silence compiler warning.
13819
13820 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         New modules nproc, pthread, contributed by Glen Lenker.
13823
13824         * MODULES.html.sh: Add pthread, nproc.
13825         * lib/nproc.c: New file.
13826         * lib/nproc.h: New file.
13827         * lib/pthread.in.h: New file.
13828         * m4/pthread.m4: New file.
13829         * modules/nproc: New file.
13830         * modules/pthread: New file.
13831
13832 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13833
13834         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13835         New variable.
13836
13837 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13838
13839         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13840         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13841         * tests/test-filevercmp.c: Add tests for backup suffixes.
13842
13843 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13844
13845         * modules/stdlib (Depends-on): Add stdint, needed when defining
13846         struct random_data on, for example, HP-UX 10.20.  Reported by
13847         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13848
13849 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13850
13851         * lib/readline.c (readline): Call fflush on stdout after printing
13852         prompt.
13853
13854 2009-03-20  Bruno Haible  <bruno@clisp.org>
13855
13856         Remove dependency from 'close' module to -lws2_32 on native Windows.
13857         * lib/close-hook.h: New file.
13858         * lib/close-hook.c: New file.
13859         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13860         w32sock.h.
13861         (_gl_close_fd_maybe_socket): Remove function.
13862         (rpl_close): Invoke execute_all_close_hooks instead of
13863         _gl_close_fd_maybe_socket.
13864         * lib/sockets.c: Include close-hook.h, w32sock.h.
13865         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13866         (close_sockets_hook): New variable.
13867         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13868         (gl_sockets_cleanup): Unregister it.
13869         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13870         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13871         * modules/close-hook: New file.
13872         * modules/close (Files): Remove lib/w32sock.h.
13873         (Depends-on): Add close-hook.
13874         (Link): Remove section.
13875         * modules/sockets (Files): Add lib/w32sock.h.
13876         (Depends-on): Add close-hook.
13877         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13878         invocation.
13879         * NEWS: Mention that LIB_CLOSE is gone.
13880
13881 2009-03-23  Eric Blake  <ebb9@byu.net>
13882
13883         signal-tests: test previous patch
13884         * tests/test-signal.c: New file.
13885         * modules/signal-tests: Likewise.
13886
13887         signal.h: always support 'volatile sig_atomic_t'
13888         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13889         (gl_SIGNAL_H_DEFAULTS): Add a default.
13890         * modules/signal (Makefile.am): Substitute if needed.
13891         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13892         users can blindly add volatile.
13893         * doc/posix-headers/signal.texi (signal.h): Document it.
13894         Reported by Matthew Woehlke.
13895
13896 2009-03-23  Jim Meyering  <meyering@redhat.com>
13897
13898         pathmax: PATH_MAX: use pathconf only when available
13899         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13900         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13901         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13902         This avoids a link failure in a PSP cross-compilation environment
13903         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13904
13905         * lib/vasnprintf.c (divide): Fix typo in comment.
13906
13907 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13908
13909         * gnulib-tool (func_filter_filelist): Fix comment.
13910
13911 2009-03-20  Bruno Haible  <bruno@clisp.org>
13912
13913         Make sockets.h self-contained.
13914         * lib/sockets.c: Include sockets.h first.
13915         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13916
13917 2009-03-19  Eric Blake  <ebb9@byu.net>
13918
13919         doc: mention more functions added in cygwin 1.7.0
13920         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13921         addition.
13922         * doc/posix-functions/log2f.texi: Likewise.
13923
13924 2009-03-19  Jim Meyering  <meyering@redhat.com>
13925
13926         fsusage: avoid syntax error due to statement-before-declaration
13927         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13928         after all declarations.  Reported by Matthew Woehlke in
13929         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13930
13931 2009-03-18  Eric Blake  <ebb9@byu.net>
13932
13933         build-aux/compile: sync from automake
13934         * build-aux/compile: New file, from automake.
13935         * config/srclist.txt: Mention build-aux/compile.
13936
13937 2009-03-17  Bruno Haible  <bruno@clisp.org>
13938
13939         * lib/git-merge-changelog.c: Fix typo in comment.
13940         Reported by Reuben Thomas <rrt@sc3d.org>.
13941
13942 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13943
13944         * m4/regex.m4: update and improve help for
13945         --without-included-regex.
13946
13947 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13948
13949         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13950         failure on missing include files.
13951
13952 2009-03-17  Eric Blake  <ebb9@byu.net>
13953
13954         doc: mention more functions added in cygwin 1.7.0
13955         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13956         addition.
13957         * doc/posix-functions/fwscanf.texi: Likewise.
13958         * doc/posix-functions/swprintf.texi: Likewise.
13959         * doc/posix-functions/swscanf.texi: Likewise.
13960         * doc/posix-functions/vfwprintf.texi: Likewise.
13961         * doc/posix-functions/vfwscanf.texi: Likewise.
13962         * doc/posix-functions/vswprintf.texi: Likewise.
13963         * doc/posix-functions/vswscanf.texi: Likewise.
13964         * doc/posix-functions/vwprintf.texi: Likewise.
13965         * doc/posix-functions/vwscanf.texi: Likewise.
13966         * doc/posix-functions/wcscasecmp.texi: Likewise.
13967         * doc/posix-functions/wcsdup.texi: Likewise.
13968         * doc/posix-functions/wcsftime.texi: Likewise.
13969         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13970         * doc/posix-functions/wprintf.texi: Likewise.
13971         * doc/posix-functions/wscanf.texi: Likewise.
13972         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13973
13974 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13975
13976         maint.mk: really add $(AM_MAKEFLAGS)
13977         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13978         was inadvertently omitted in the last commit.
13979         Spotted by Bruno Haible.
13980
13981         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13982         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13983         $(AM_MAKEFLAGS)' rather than plain `make'.
13984
13985         gnulib-tool: execute $MAKE not make
13986         * gnulib-tool: Default $MAKE to 'make'.
13987         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13988         than make.  Initialize $MAKE in the do-autobuild script.
13989
13990         gnulib-tool: use $MAKE not make in generated files
13991         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13992         make, in generated files.  Initialize $MAKE in the do-autobuild
13993         script.
13994
13995         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13996
13997         GNUmakefile: disable parallelism only for multiple, recursive targets
13998         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13999         additions in the Makefile.
14000         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14001         by Automake.
14002         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14003         are listed on the command line and at least one of them is
14004         listed in $(ALL_RECURSIVE_TARGETS).
14005
14006 2009-03-14  Bruno Haible  <bruno@clisp.org>
14007
14008         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14009         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14010         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14011         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14012         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14013         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14014         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14015         unistr/u8-uctomb.
14016         * modules/unistr/u8-strchr (Depends-on): Likewise.
14017         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14018         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14019         unistr/u16-uctomb.
14020         * modules/unistr/u16-strchr (Depends-on): Likewise.
14021         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14022
14023 2009-03-12  Bruno Haible  <bruno@clisp.org>
14024
14025         Work around select() bug on Interix 3.5.
14026         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14027         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14028         * m4/select.m4: New file.
14029         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14030         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14031         * modules/select (Files): Add m4/select.m4.
14032         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14033         * modules/nanosleep (Depends-on): Add select.
14034         * modules/poll (Depends-on): Likewise.
14035         * doc/posix-functions/select.texi: Mention the Interix bug.
14036         Reported by Markus Duft <mduft@gentoo.org>.
14037
14038         * lib/select.c: Renamed from lib/winsock-select.c.
14039         * modules/select (Files): Add lib/select.c, remove
14040         lib/winsock-select.c.
14041         (configure.ac): Update.
14042
14043 2009-03-12  Jim Meyering  <meyering@redhat.com>
14044
14045         avoid gcc warnings about unused macro definitions
14046         * lib/readtokens.c (STREQ): Remove unused definition.
14047         * lib/xmalloc.c (SIZE_MAX): Likewise.
14048         * lib/openat-die.c (N_): Likewise.
14049         * lib/mountlist.c (SIZE_MAX): Remove definition.
14050         Instead, include <stdint.h>.
14051         * lib/readutmp.c: Likewise.
14052         * modules/readutmp (Depends-on): Add stdint.
14053         * modules/mountlist (Depends-on): Add stdint.
14054         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14055
14056 2009-03-10  Bruno Haible  <bruno@clisp.org>
14057
14058         Tests for module 'mbmemcasecoll'.
14059         * modules/mbmemcasecoll-tests: New file.
14060         * tests/test-mbmemcasecoll1.sh: New file.
14061         * tests/test-mbmemcasecoll2.sh: New file.
14062         * tests/test-mbmemcasecoll3.sh: New file.
14063         * tests/test-mbmemcasecoll.c: New file.
14064
14065         New module 'mbmemcasecoll'.
14066         * lib/mbmemcasecoll.h: New file.
14067         * lib/mbmemcasecoll.c: New file.
14068         * modules/mbmemcasecoll: New file.
14069
14070         * tests/test-mbmemcasecmp.h: New file, extracted from
14071         tests/test-mbmemcasecmp.c.
14072         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14073         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14074         (main): Update.
14075         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14076
14077 2009-03-09  Bruno Haible  <bruno@clisp.org>
14078
14079         Tests for module 'mbmemcasecmp'.
14080         * modules/mbmemcasecmp-tests: New file.
14081         * tests/test-mbmemcasecmp1.sh: New file.
14082         * tests/test-mbmemcasecmp2.sh: New file.
14083         * tests/test-mbmemcasecmp3.sh: New file.
14084         * tests/test-mbmemcasecmp.c: New file.
14085
14086         New module 'mbmemcasecmp'.
14087         * lib/mbmemcasecmp.h: New file.
14088         * lib/mbmemcasecmp.c: New file.
14089         * modules/mbmemcasecmp: New file.
14090
14091 2009-03-09  Bruno Haible  <bruno@clisp.org>
14092
14093         Tests for module 'unicase/ulc-casecoll'.
14094         * modules/unicase/ulc-casecoll-tests: New file.
14095         * tests/unicase/test-ulc-casecoll1.sh: New file.
14096         * tests/unicase/test-ulc-casecoll2.sh: New file.
14097         * tests/unicase/test-ulc-casecoll.c: New file.
14098
14099         New module 'unicase/ulc-casecoll'.
14100         * lib/unicase.h (ulc_casecoll): New declaration.
14101         * lib/unicase/ulc-casecoll.c: New file.
14102         * modules/unicase/ulc-casecoll: New file.
14103
14104         New module 'unicase/ulc-casexfrm'.
14105         * lib/unicase.h (ulc_casexfrm): New declaration.
14106         * lib/unicase/ulc-casexfrm.c: New file.
14107         * modules/unicase/ulc-casexfrm: New file.
14108
14109 2009-03-09  Bruno Haible  <bruno@clisp.org>
14110
14111         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14112         invocations.
14113
14114         * m4/mbscasecmp.m4: Remove file.
14115         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14116         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14117
14118         * m4/mbscasestr.m4: Remove file.
14119         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14120         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14121
14122         * m4/mbschr.m4: Remove file.
14123         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14124         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14125
14126         * m4/mbscspn.m4: Remove file.
14127         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14128         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14129
14130         * m4/mbslen.m4: Remove file.
14131         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14132         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14133
14134         * m4/mbsncasecmp.m4: Remove file.
14135         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14136         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14137
14138         * m4/mbsnlen.m4: Remove file.
14139         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14140         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14141
14142         * m4/mbspbrk.m4: Remove file.
14143         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14144         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14145
14146         * m4/mbspcasecmp.m4: Remove file.
14147         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14148         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14149
14150         * m4/mbsrchr.m4: Remove file.
14151         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14152         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14153
14154         * m4/mbssep.m4: Remove file.
14155         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14156         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14157
14158         * m4/mbsspn.m4: Remove file.
14159         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14160         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14161
14162         * m4/mbsstr.m4: Remove file.
14163         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14164         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14165
14166         * m4/mbstok_r.m4: Remove file.
14167         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14168         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14169
14170         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14171
14172         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14173         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14174
14175         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14176
14177 2009-03-08  Bruno Haible  <bruno@clisp.org>
14178
14179         Tests for module 'unicase/ulc-casecmp'.
14180         * modules/unicase/ulc-casecmp-tests: New file.
14181         * tests/unicase/test-ulc-casecmp1.sh: New file.
14182         * tests/unicase/test-ulc-casecmp2.sh: New file.
14183         * tests/unicase/test-ulc-casecmp.c: New file.
14184
14185         New module 'unicase/ulc-casecmp'.
14186         * lib/unicase.h (ulc_casecmp): New declaration.
14187         * lib/unicase/ulc-casecmp.c: New file.
14188         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14189         'const SRC_UNIT *'.
14190         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14191         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14192         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14193         * modules/unicase/ulc-casecmp: New file.
14194
14195         Tests for module 'unicase/u32-is-cased'.
14196         * modules/unicase/u32-is-cased-tests: New file.
14197         * tests/unicase/test-u32-is-cased.c: New file.
14198
14199         Tests for module 'unicase/u16-is-cased'.
14200         * modules/unicase/u16-is-cased-tests: New file.
14201         * tests/unicase/test-u16-is-cased.c: New file.
14202
14203         Tests for module 'unicase/u8-is-cased'.
14204         * modules/unicase/u8-is-cased-tests: New file.
14205         * tests/unicase/test-u8-is-cased.c: New file.
14206         * tests/unicase/test-is-cased.h: New file.
14207
14208         New module 'unicase/u32-is-cased'.
14209         * lib/unicase/u32-is-cased.c: New file.
14210         * modules/unicase/u32-is-cased: New file.
14211
14212         New module 'unicase/u16-is-cased'.
14213         * lib/unicase/u16-is-cased.c: New file.
14214         * modules/unicase/u16-is-cased: New file.
14215
14216         New module 'unicase/u8-is-cased'.
14217         * lib/unicase/u8-is-cased.c: New file.
14218         * lib/unicase/u-is-cased.h: New file.
14219         * modules/unicase/u8-is-cased: New file.
14220
14221         Tests for module 'unicase/u32-is-casefolded'.
14222         * modules/unicase/u32-is-casefolded-tests: New file.
14223         * tests/unicase/test-u32-is-casefolded.c: New file.
14224
14225         Tests for module 'unicase/u16-is-casefolded'.
14226         * modules/unicase/u16-is-casefolded-tests: New file.
14227         * tests/unicase/test-u16-is-casefolded.c: New file.
14228
14229         Tests for module 'unicase/u8-is-casefolded'.
14230         * modules/unicase/u8-is-casefolded-tests: New file.
14231         * tests/unicase/test-u8-is-casefolded.c: New file.
14232         * tests/unicase/test-is-casefolded.h: New file.
14233
14234         New module 'unicase/u32-is-casefolded'.
14235         * lib/unicase/u32-is-casefolded.c: New file.
14236         * modules/unicase/u32-is-casefolded: New file.
14237
14238         New module 'unicase/u16-is-casefolded'.
14239         * lib/unicase/u16-is-casefolded.c: New file.
14240         * modules/unicase/u16-is-casefolded: New file.
14241
14242         New module 'unicase/u8-is-casefolded'.
14243         * lib/unicase/u8-is-casefolded.c: New file.
14244         * modules/unicase/u8-is-casefolded: New file.
14245
14246         Tests for module 'unicase/u32-is-titlecase'.
14247         * modules/unicase/u32-is-titlecase-tests: New file.
14248         * tests/unicase/test-u32-is-titlecase.c: New file.
14249
14250         Tests for module 'unicase/u16-is-titlecase'.
14251         * modules/unicase/u16-is-titlecase-tests: New file.
14252         * tests/unicase/test-u16-is-titlecase.c: New file.
14253
14254         Tests for module 'unicase/u8-is-titlecase'.
14255         * modules/unicase/u8-is-titlecase-tests: New file.
14256         * tests/unicase/test-u8-is-titlecase.c: New file.
14257         * tests/unicase/test-is-titlecase.h: New file.
14258
14259         New module 'unicase/u32-is-titlecase'.
14260         * lib/unicase/u32-is-titlecase.c: New file.
14261         * modules/unicase/u32-is-titlecase: New file.
14262
14263         New module 'unicase/u16-is-titlecase'.
14264         * lib/unicase/u16-is-titlecase.c: New file.
14265         * modules/unicase/u16-is-titlecase: New file.
14266
14267         New module 'unicase/u8-is-titlecase'.
14268         * lib/unicase/u8-is-titlecase.c: New file.
14269         * modules/unicase/u8-is-titlecase: New file.
14270
14271         Tests for module 'unicase/u32-is-lowercase'.
14272         * modules/unicase/u32-is-lowercase-tests: New file.
14273         * tests/unicase/test-u32-is-lowercase.c: New file.
14274
14275         Tests for module 'unicase/u16-is-lowercase'.
14276         * modules/unicase/u16-is-lowercase-tests: New file.
14277         * tests/unicase/test-u16-is-lowercase.c: New file.
14278
14279         Tests for module 'unicase/u8-is-lowercase'.
14280         * modules/unicase/u8-is-lowercase-tests: New file.
14281         * tests/unicase/test-u8-is-lowercase.c: New file.
14282         * tests/unicase/test-is-lowercase.h: New file.
14283
14284         New module 'unicase/u32-is-lowercase'.
14285         * lib/unicase/u32-is-lowercase.c: New file.
14286         * modules/unicase/u32-is-lowercase: New file.
14287
14288         New module 'unicase/u16-is-lowercase'.
14289         * lib/unicase/u16-is-lowercase.c: New file.
14290         * modules/unicase/u16-is-lowercase: New file.
14291
14292         New module 'unicase/u8-is-lowercase'.
14293         * lib/unicase/u8-is-lowercase.c: New file.
14294         * modules/unicase/u8-is-lowercase: New file.
14295
14296         Tests for module 'unicase/u32-is-uppercase'.
14297         * modules/unicase/u32-is-uppercase-tests: New file.
14298         * tests/unicase/test-u32-is-uppercase.c: New file.
14299
14300         Tests for module 'unicase/u16-is-uppercase'.
14301         * modules/unicase/u16-is-uppercase-tests: New file.
14302         * tests/unicase/test-u16-is-uppercase.c: New file.
14303
14304         Tests for module 'unicase/u8-is-uppercase'.
14305         * modules/unicase/u8-is-uppercase-tests: New file.
14306         * tests/unicase/test-u8-is-uppercase.c: New file.
14307         * tests/unicase/test-is-uppercase.h: New file.
14308
14309         New module 'unicase/u32-is-uppercase'.
14310         * lib/unicase/u32-is-uppercase.c: New file.
14311         * modules/unicase/u32-is-uppercase: New file.
14312
14313         New module 'unicase/u16-is-uppercase'.
14314         * lib/unicase/u16-is-uppercase.c: New file.
14315         * modules/unicase/u16-is-uppercase: New file.
14316
14317         New module 'unicase/u8-is-uppercase'.
14318         * lib/unicase/u8-is-uppercase.c: New file.
14319         * modules/unicase/u8-is-uppercase: New file.
14320
14321         New module 'unicase/u32-is-invariant'.
14322         * lib/unicase/u32-is-invariant.c: New file.
14323         * modules/unicase/u32-is-invariant: New file.
14324
14325         New module 'unicase/u16-is-invariant'.
14326         * lib/unicase/u16-is-invariant.c: New file.
14327         * modules/unicase/u16-is-invariant: New file.
14328
14329         New module 'unicase/u8-is-invariant'.
14330         * lib/unicase/u8-is-invariant.c: New file.
14331         * lib/unicase/invariant.h: New file.
14332         * lib/unicase/u-is-invariant.h: New file.
14333         * modules/unicase/u8-is-invariant: New file.
14334
14335         Tests for module 'unicase/u32-casecoll'.
14336         * modules/unicase/u32-casecoll-tests: New file.
14337         * tests/unicase/test-u32-casecoll.c: New file.
14338
14339         Tests for module 'unicase/u16-casecoll'.
14340         * modules/unicase/u16-casecoll-tests: New file.
14341         * tests/unicase/test-u16-casecoll.c: New file.
14342
14343         Tests for module 'unicase/u8-casecoll'.
14344         * modules/unicase/u8-casecoll-tests: New file.
14345         * tests/unicase/test-u8-casecoll.c: New file.
14346
14347         New module 'unicase/u32-casecoll'.
14348         * lib/unicase/u32-casecoll.c: New file.
14349         * modules/unicase/u32-casecoll: New file.
14350
14351         New module 'unicase/u16-casecoll'.
14352         * lib/unicase/u16-casecoll.c: New file.
14353         * modules/unicase/u16-casecoll: New file.
14354
14355         New module 'unicase/u8-casecoll'.
14356         * lib/unicase/u8-casecoll.c: New file.
14357         * lib/unicase/u-casecoll.h: New file.
14358         * modules/unicase/u8-casecoll: New file.
14359
14360         New module 'unicase/u32-casexfrm'.
14361         * lib/unicase/u32-casexfrm.c: New file.
14362         * modules/unicase/u32-casexfrm: New file.
14363
14364         New module 'unicase/u16-casexfrm'.
14365         * lib/unicase/u16-casexfrm.c: New file.
14366         * modules/unicase/u16-casexfrm: New file.
14367
14368         New module 'unicase/u8-casexfrm'.
14369         * lib/unicase/u8-casexfrm.c: New file.
14370         * lib/unicase/u-casexfrm.h: New file.
14371         * modules/unicase/u8-casexfrm: New file.
14372
14373         Tests for module 'unicase/u32-casecmp'.
14374         * modules/unicase/u32-casecmp-tests: New file.
14375         * tests/unicase/test-u32-casecmp.c: New file.
14376
14377         Tests for module 'unicase/u16-casecmp'.
14378         * modules/unicase/u16-casecmp-tests: New file.
14379         * tests/unicase/test-u16-casecmp.c: New file.
14380
14381         Tests for module 'unicase/u8-casecmp'.
14382         * modules/unicase/u8-casecmp-tests: New file.
14383         * tests/unicase/test-u8-casecmp.c: New file.
14384         * tests/unicase/test-casecmp.h: New file.
14385
14386         New module 'unicase/u32-casecmp'.
14387         * lib/unicase/u32-casecmp.c: New file.
14388         * modules/unicase/u32-casecmp: New file.
14389
14390         New module 'unicase/u16-casecmp'.
14391         * lib/unicase/u16-casecmp.c: New file.
14392         * modules/unicase/u16-casecmp: New file.
14393
14394         New module 'unicase/u8-casecmp'.
14395         * lib/unicase/u8-casecmp.c: New file.
14396         * lib/unicase/u-casecmp.h: New file.
14397         * modules/unicase/u8-casecmp: New file.
14398
14399         Tests for module 'unicase/u32-casefold'.
14400         * modules/unicase/u32-casefold-tests: New file.
14401         * tests/unicase/test-u32-casefold.c: New file.
14402
14403         Tests for module 'unicase/u16-casefold'.
14404         * modules/unicase/u16-casefold-tests: New file.
14405         * tests/unicase/test-u16-casefold.c: New file.
14406
14407         Tests for module 'unicase/u8-casefold'.
14408         * modules/unicase/u8-casefold-tests: New file.
14409         * tests/unicase/test-u8-casefold.c: New file.
14410
14411         New module 'unicase/u32-casefold'.
14412         * lib/unicase/u32-casefold.c: New file.
14413         * modules/unicase/u32-casefold: New file.
14414
14415         New module 'unicase/u16-casefold'.
14416         * lib/unicase/u16-casefold.c: New file.
14417         * modules/unicase/u16-casefold: New file.
14418
14419         New module 'unicase/u8-casefold'.
14420         * lib/unicase/u8-casefold.c: New file.
14421         * lib/unicase/u-casefold.h: New file.
14422         * modules/unicase/u8-casefold: New file.
14423
14424         New module 'unicase/tocasefold'.
14425         * lib/unicase/casefold.h: New file.
14426         * lib/unicase/tocasefold.c: New file.
14427         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14428         * modules/unicase/tocasefold: New file.
14429
14430         Tests for module 'unicase/u32-totitle'.
14431         * modules/unicase/u32-totitle-tests: New file.
14432         * tests/unicase/test-u32-totitle.c: New file.
14433
14434         Tests for module 'unicase/u16-totitle'.
14435         * modules/unicase/u16-totitle-tests: New file.
14436         * tests/unicase/test-u16-totitle.c: New file.
14437
14438         Tests for module 'unicase/u8-totitle'.
14439         * modules/unicase/u8-totitle-tests: New file.
14440         * tests/unicase/test-u8-totitle.c: New file.
14441
14442         New module 'unicase/u32-totitle'.
14443         * lib/unicase/u32-totitle.c: New file.
14444         * modules/unicase/u32-totitle: New file.
14445
14446         New module 'unicase/u16-totitle'.
14447         * lib/unicase/u16-totitle.c: New file.
14448         * modules/unicase/u16-totitle: New file.
14449
14450         New module 'unicase/u8-totitle'.
14451         * lib/unicase/u8-totitle.c: New file.
14452         * lib/unicase/u-totitle.h: New file.
14453         * modules/unicase/u8-totitle: New file.
14454
14455         Tests for module 'unicase/u32-tolower'.
14456         * modules/unicase/u32-tolower-tests: New file.
14457         * tests/unicase/test-u32-tolower.c: New file.
14458
14459         Tests for module 'unicase/u16-tolower'.
14460         * modules/unicase/u16-tolower-tests: New file.
14461         * tests/unicase/test-u16-tolower.c: New file.
14462
14463         Tests for module 'unicase/u8-tolower'.
14464         * modules/unicase/u8-tolower-tests: New file.
14465         * tests/unicase/test-u8-tolower.c: New file.
14466
14467         New module 'unicase/u32-tolower'.
14468         * lib/unicase/u32-tolower.c: New file.
14469         * modules/unicase/u32-tolower: New file.
14470
14471         New module 'unicase/u16-tolower'.
14472         * lib/unicase/u16-tolower.c: New file.
14473         * modules/unicase/u16-tolower: New file.
14474
14475         New module 'unicase/u8-tolower'.
14476         * lib/unicase/u8-tolower.c: New file.
14477         * modules/unicase/u8-tolower: New file.
14478
14479         Tests for module 'unicase/u32-toupper'.
14480         * modules/unicase/u32-toupper-tests: New file.
14481         * tests/unicase/test-u32-toupper.c: New file.
14482
14483         Tests for module 'unicase/u16-toupper'.
14484         * modules/unicase/u16-toupper-tests: New file.
14485         * tests/unicase/test-u16-toupper.c: New file.
14486
14487         Tests for module 'unicase/u8-toupper'.
14488         * modules/unicase/u8-toupper-tests: New file.
14489         * tests/unicase/test-u8-toupper.c: New file.
14490
14491         New module 'unicase/u32-toupper'.
14492         * lib/unicase/u32-toupper.c: New file.
14493         * modules/unicase/u32-toupper: New file.
14494
14495         New module 'unicase/u16-toupper'.
14496         * lib/unicase/u16-toupper.c: New file.
14497         * modules/unicase/u16-toupper: New file.
14498
14499         New module 'unicase/u8-toupper'.
14500         * lib/unicase/u8-toupper.c: New file.
14501         * modules/unicase/u8-toupper: New file.
14502
14503         New module 'unicase/u32-casemap'.
14504         * lib/unicase/u32-casemap.c: New file.
14505         * modules/unicase/u32-casemap: New file.
14506
14507         New module 'unicase/u16-casemap'.
14508         * lib/unicase/u16-casemap.c: New file.
14509         * modules/unicase/u16-casemap: New file.
14510
14511         New module 'unicase/u8-casemap'.
14512         * lib/unicase/unicasemap.h: New file.
14513         * lib/unicase/u8-casemap.c: New file.
14514         * lib/unicase/u-casemap.h: New file.
14515         * modules/unicase/u8-casemap: New file.
14516
14517         New module 'unicase/special-casing'.
14518         * lib/unicase/special-casing.h: New file.
14519         * lib/unicase/special-casing.c: New file.
14520         * lib/unicase/special-casing-table.gperf: New file, generated by
14521         gen-uni-tables.c.
14522         * modules/unicase/special-casing: New file.
14523
14524         Tests for module 'unicase/locale-language'.
14525         * modules/unicase/locale-language-tests: New file.
14526         * tests/unicase/test-locale-language.sh: New file.
14527         * tests/unicase/test-locale-language.c: New file.
14528
14529         New module 'unicase/locale-language'.
14530         * lib/unicase/locale-language.c: New file.
14531         * lib/unicase/locale-languages.gperf: New file.
14532         * modules/unicase/locale-language: New file.
14533
14534         Generate more tables for case conversion and case folding.
14535         * lib/gen-uni-tables.c (SCC_*): New enum items.
14536         (struct special_casing_rule): New type.
14537         (casing_rules, num_casing_rules, allocated_casing_rules): New
14538         variables.
14539         (add_casing_rule, fill_casing_rules): New functions.
14540         (struct casefold_rule): New type.
14541         (casefolding_rules, num_casefolding_rules,
14542         allocated_casefolding_rules): New variables.
14543         (fill_casefolding_rules): New function.
14544         (unicode_casefold): New variable.
14545         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14546         sort_casing_rules, output_casing_rules): New functions.
14547         (main): Accept to more arguments: SpecialCasing.txt and
14548         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14549         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14550         Output mapping for casefolding.
14551
14552         * lib/unicase.h: Include stdbool.h, uninorm.h.
14553         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14554         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14555         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14556         arguments.
14557         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14558         resultp arguments.
14559         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14560         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14561         resultp arguments.
14562         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14563         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14564         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14565         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14566         declarations.
14567         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14568
14569 2009-03-08  Bruno Haible  <bruno@clisp.org>
14570
14571         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14572         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14573         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14574         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14575
14576 2009-03-07  Bruno Haible  <bruno@clisp.org>
14577
14578         Adjust u*_normcmp, u*_normcoll API.
14579         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14580         u16_normcoll, u32_normcoll): Change failure conventions.
14581         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14582         errno and return -1.
14583         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14584
14585 2009-03-07  Bruno Haible  <bruno@clisp.org>
14586
14587         Tests for module 'uninorm/u32-normcoll'.
14588         * modules/uninorm/u32-normcoll-tests: New file.
14589         * tests/uninorm/test-u32-normcoll.c: New file.
14590
14591         Tests for module 'uninorm/u16-normcoll'.
14592         * modules/uninorm/u16-normcoll-tests: New file.
14593         * tests/uninorm/test-u16-normcoll.c: New file.
14594
14595         Tests for module 'uninorm/u8-normcoll'.
14596         * modules/uninorm/u8-normcoll-tests: New file.
14597         * tests/uninorm/test-u8-normcoll.c: New file.
14598
14599 2009-03-07  Bruno Haible  <bruno@clisp.org>
14600
14601         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14602         tests/uninorm/test-u32-normcmp.c.
14603         * tests/uninorm/test-u32-normcmp.c: Include it.
14604         (test_nonascii): New function, extracted from main. Add some more
14605         tests.
14606         (main): Invoke test_ascii and test_nonascii.
14607         * modules/uninorm/u32-normcmp-tests (Files): Add
14608         tests/uninorm/test-u32-normcmp.h.
14609         (Depends-on): Remove uninorm/u32-normcmp.
14610
14611         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14612         tests/uninorm/test-u16-normcmp.c.
14613         * tests/uninorm/test-u16-normcmp.c: Include it.
14614         (test_nonascii): New function, extracted from main. Add some more
14615         tests.
14616         (main): Invoke test_ascii and test_nonascii.
14617         * modules/uninorm/u16-normcmp-tests (Files): Add
14618         tests/uninorm/test-u16-normcmp.h.
14619         (Depends-on): Remove uninorm/u16-normcmp.
14620
14621         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14622         tests/uninorm/test-u8-normcmp.c.
14623         * tests/uninorm/test-u8-normcmp.c: Include it.
14624         (test_nonascii): New function, extracted from main. Add some more
14625         tests.
14626         (main): Invoke test_ascii and test_nonascii.
14627         * modules/uninorm/u8-normcmp-tests (Files): Add
14628         tests/uninorm/test-u8-normcmp.h.
14629         (Depends-on): Remove uninorm/u8-normcmp.
14630
14631 2009-03-07  Bruno Haible  <bruno@clisp.org>
14632
14633         New module 'uninorm/u32-normcoll'.
14634         * lib/uninorm/u32-normcoll.c: New file.
14635         * modules/uninorm/u32-normcoll: New file.
14636
14637         New module 'uninorm/u16-normcoll'.
14638         * lib/uninorm/u16-normcoll.c: New file.
14639         * modules/uninorm/u16-normcoll: New file.
14640
14641         New module 'uninorm/u8-normcoll'.
14642         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14643         declarations.
14644         * lib/uninorm/u8-normcoll.c: New file.
14645         * lib/uninorm/u-normcoll.h: New file.
14646         * modules/uninorm/u8-normcoll: New file.
14647
14648         New module 'uninorm/u32-normxfrm'.
14649         * lib/uninorm/u32-normxfrm.c: New file.
14650         * modules/uninorm/u32-normxfrm: New file.
14651
14652         New module 'uninorm/u16-normxfrm'.
14653         * lib/uninorm/u16-normxfrm.c: New file.
14654         * modules/uninorm/u16-normxfrm: New file.
14655
14656         New module 'uninorm/u8-normxfrm'.
14657         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14658         declarations.
14659         * lib/uninorm/u8-normxfrm.c: New file.
14660         * lib/uninorm/u-normxfrm.h: New file.
14661         * modules/uninorm/u8-normxfrm: New file.
14662
14663 2009-03-07  Bruno Haible  <bruno@clisp.org>
14664
14665         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14666         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14667         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14668
14669 2009-03-07  Bruno Haible  <bruno@clisp.org>
14670
14671         New module 'memxfrm'.
14672         * lib/memxfrm.h: New file.
14673         * lib/memxfrm.c: New file.
14674         * modules/memxfrm: New file.
14675
14676 2009-03-07  Bruno Haible  <bruno@clisp.org>
14677
14678         New module 'memcmp2'.
14679         * lib/memcmp2.h: New file.
14680         * lib/memcmp2.c: New file.
14681         * modules/memcmp2: New file.
14682
14683 2009-03-07  Bruno Haible  <bruno@clisp.org>
14684
14685         Tests for module 'uninorm/decomposing-form'.
14686         * modules/uninorm/decomposing-form-tests: New file.
14687         * tests/uninorm/test-decomposing-form.c: New file.
14688
14689         New module 'uninorm/decomposing-form'.
14690         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14691         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14692         Add 'decomposing_variant' field.
14693         * lib/uninorm/decomposing-form.c: New file.
14694         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14695         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14696         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14697         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14698         * modules/uninorm/decomposing-form: New file.
14699         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14700         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14701
14702 2009-03-07  Bruno Haible  <bruno@clisp.org>
14703
14704         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14705         strings.
14706
14707 2009-03-06  Bruno Haible  <bruno@clisp.org>
14708
14709         Tests for module 'uninorm/u32-normcmp'.
14710         * tests/uninorm/test-u32-normcmp.c: New file.
14711         * modules/uninorm/u32-normcmp-tests: New file.
14712
14713         Tests for module 'uninorm/u16-normcmp'.
14714         * tests/uninorm/test-u16-normcmp.c: New file.
14715         * modules/uninorm/u16-normcmp-tests: New file.
14716
14717         Tests for module 'uninorm/u8-normcmp'.
14718         * tests/uninorm/test-u8-normcmp.c: New file.
14719         * modules/uninorm/u8-normcmp-tests: New file.
14720
14721         New module 'uninorm/u32-normcmp'.
14722         * lib/uninorm/u32-normcmp.c: New file.
14723         * modules/uninorm/u32-normcmp: New file.
14724
14725         New module 'uninorm/u16-normcmp'.
14726         * lib/uninorm/u16-normcmp.c: New file.
14727         * modules/uninorm/u16-normcmp: New file.
14728
14729         New module 'uninorm/u8-normcmp'.
14730         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14731         declarations.
14732         * lib/uninorm/u8-normcmp.c: New file.
14733         * lib/uninorm/u-normcmp.h: New file.
14734         * modules/uninorm/u8-normcmp: New file.
14735
14736 2009-03-06  Bruno Haible  <bruno@clisp.org>
14737
14738         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14739         Reported by Eric Blake.
14740
14741 2009-03-06  Eric Blake  <ebb9@byu.net>
14742             Bruno Haible  <bruno@clisp.org>
14743
14744         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14745         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14746         condition.
14747         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14748         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14749         condition.
14750         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14751
14752 2009-03-06  Eric Blake  <ebb9@byu.net>
14753
14754         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14755         to avoid compiler warnings.
14756         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14757
14758 2009-03-05  Bruno Haible  <bruno@clisp.org>
14759
14760         * tests/test-ftell.c (main): Disable test beyond end of file on
14761         FreeMiNT.
14762         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14763
14764 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14765
14766         * lib/filevercmp.c: Move hidden files up in ordering.
14767         * tests/test-filevercmp.c: Add tests for hidden files.
14768
14769 2009-03-04  Bruno Haible  <bruno@clisp.org>
14770
14771         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14772         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14773         AM_CFLAGS.
14774         Reported by Simon Josefsson.
14775
14776 2009-03-03  Bruno Haible  <bruno@clisp.org>
14777
14778         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14779         Reported by Simon Josefsson.
14780
14781         * doc/ld-version-script.texi: Update node reference.
14782
14783 2009-03-03  Bruno Haible  <bruno@clisp.org>
14784
14785         * modules/visibility (License): Change to 'unlimited'.
14786         Suggested by Simon Josefsson.
14787
14788 2009-03-03  Jim Meyering  <meyering@redhat.com>
14789
14790         unlinkdir: cannot_unlink_dir may modify process state
14791         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14792         it's neither thread-safe nor appropriate for use in a library.
14793
14794 2009-03-03  Eric Blake  <ebb9@byu.net>
14795
14796         test-closein: silence test under Darwin
14797         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14798         care if it dies from EPIPE or EBADF.
14799
14800 2009-03-03  Bruno Haible  <bruno@clisp.org>
14801
14802         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14803         earlier.
14804         * doc/visibility.texi: Fix @node and @section.
14805
14806 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14807
14808         * doc/gnulib.texi: Link to sections for ld version script and
14809         visibility.
14810         * doc/visibility.texi: Add @node and @section.
14811         * modules/ld-version-script: New module.
14812         * m4/ld-version-script.m4: New file.
14813         * doc/ld-version-script.texi: New file.
14814
14815 2009-03-02  David Lutterkort  <lutter@redhat.com>
14816
14817         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14819
14820 2009-03-02  Bruno Haible  <bruno@clisp.org>
14821
14822         * doc/visibility.texi: Mention libtool's -export-symbols option.
14823
14824 2009-03-02  Jim Meyering  <meyering@redhat.com>
14825
14826         announce-gen: new option: --no-print-checksums
14827         * build-aux/announce-gen (usage): Describe it.
14828         (print_checksums): Print a newline here, not in the [*] footnote.
14829         (main): Honor it.
14830
14831 2009-03-01  Bruno Haible  <bruno@clisp.org>
14832
14833         Use socklen_t in the native Windows replacements prototypes.
14834         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14835         instead of 'int'.
14836         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14837         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14838         * modules/getsockopt (Depends-on): Add socklen.
14839         * modules/setsockopt (Depends-on): Add socklen.
14840
14841 2009-03-01  Bruno Haible  <bruno@clisp.org>
14842
14843         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14844         least 4.2.
14845
14846 2009-03-01  Eric Blake  <ebb9@byu.net>
14847             Bruno Haible  <bruno@clisp.org>
14848
14849         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14850         error messages.
14851         * lib/wait-process.c (wait_subprocess): Omit error message about
14852         deadly signal sent to the child of termsigp != NULL.
14853
14854 2009-03-01  Eric Blake  <ebb9@byu.net>
14855
14856         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14857
14858 2009-03-01  Bruno Haible  <bruno@clisp.org>
14859
14860         Avoid a gcc warning.
14861         * tests/test-sched.c (b): Make global.
14862         Reported by Eric Blake.
14863
14864 2009-01-19  Martin Lambers  <marlam@marlam.de>
14865
14866         Provide POSIX semantics for socket timeout options on W32.
14867         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14868         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14869         * modules/setsockopt: Depend on sys_time module for struct timeval.
14870         * modules/getsockopt: Depend on sys_time module for struct timeval.
14871
14872 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14873
14874         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14875         __USE_GNU, for consistency with netdb.in.h.
14876         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14877
14878 2009-03-01  Bruno Haible  <bruno@clisp.org>
14879
14880         More support for FreeMiNT.
14881         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14882         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14883
14884 2009-03-01  Bruno Haible  <bruno@clisp.org>
14885
14886         More support for FreeMiNT.
14887         * lib/fpurge.c (fpurge): Correct last commit.
14888         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14889
14890 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14891
14892         Fix unportable awk script in vc-list-files.
14893         * build-aux/vc-list-files: In the replacement awk script, use
14894         substr with a second argument of 1, not zero.
14895         Report by Simon Josefsson.
14896
14897 2009-02-28  Bruno Haible  <bruno@clisp.org>
14898
14899         More support for FreeMiNT.
14900         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14901         to FreeMiNT today.
14902         * lib/fwriting.c (fwriting): Likewise.
14903         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14904
14905 2009-02-28  Bruno Haible  <bruno@clisp.org>
14906
14907         * tests/test-freadseek.c (main): Disable test beyond end of file on
14908         FreeMiNT.
14909         * tests/test-ftello.c (main): Likewise.
14910         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14911
14912 2009-02-28  Bruno Haible  <bruno@clisp.org>
14913
14914         Add tentative support for FreeMiNT.
14915         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14916         * lib/fpurge.c (fpurge): Likewise.
14917         * lib/freadable.c (freadable): Likewise.
14918         * lib/freading.c (freading): Likewise.
14919         * lib/freadptr.c (freadptr): Likewise.
14920         * lib/freadseek.c (freadptrinc): Likewise.
14921         * lib/fseeko.c (rpl_fseeko): Likewise.
14922         * lib/fseterr.c (fseterr): Likewise.
14923         * lib/fwritable.c (fwritable): Likewise.
14924         * lib/fwriting.c (fwriting): Likewise.
14925         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14926         Hourihane.
14927         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14928
14929 2009-02-28  Bruno Haible  <bruno@clisp.org>
14930
14931         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14932         SIGCHLD.
14933         Reported by Jim Meyering.
14934
14935 2009-02-28  Bruno Haible  <bruno@clisp.org>
14936
14937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14938         Mention the results of these tests on various platforms.
14939         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14940         order.
14941         * doc/posix-functions/printf.texi: Likewise.
14942         * doc/posix-functions/snprintf.texi: Likewise.
14943         * doc/posix-functions/sprintf.texi: Likewise.
14944         * doc/posix-functions/vfprintf.texi: Likewise.
14945         * doc/posix-functions/vprintf.texi: Likewise.
14946         * doc/posix-functions/vsnprintf.texi: Likewise.
14947         * doc/posix-functions/vsprintf.texi: Likewise.
14948         * doc/glibc-functions/obstack_printf.texi: Likewise.
14949         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14950
14951 2009-02-28  Bruno Haible  <bruno@clisp.org>
14952
14953         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14954         Reported by Loïc Minier <lool@dooz.org>.
14955
14956 2009-02-27  Bruno Haible  <bruno@clisp.org>
14957
14958         * gnulib-tool (func_import): Make the sed expression used to create the
14959         sed script for updating the .gitignore file POSIX compliant.
14960         Reported by Eric Blake.
14961
14962 2009-02-27  Bruno Haible  <bruno@clisp.org>
14963
14964         * gnulib-tool (sed): Don't alias as "sed --posix".
14965         Reported by Eric Blake.
14966
14967 2009-02-27  Bruno Haible  <bruno@clisp.org>
14968
14969         Avoid test link errors.
14970         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14971         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14972         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14973         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14975
14976 2009-02-27  Bruno Haible  <bruno@clisp.org>
14977
14978         Avoid spurious "(cached)" in configure output.
14979         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14980         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14981         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14982         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14983         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14984         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14986         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14987         Reported by Eric Blake.
14988
14989 2009-02-27  Eric Blake  <ebb9@byu.net>
14990
14991         printf: fix regression in previous patch
14992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14993
14994 2009-02-27  Bruno Haible  <bruno@clisp.org>
14995
14996         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14997         value.
14998         * lib/stdint.in.h: Likewise.
14999         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15000
15001 2009-02-27  Eric Blake  <ebb9@byu.net>
15002
15003         doc: mention more functions added in cygwin 1.7.0
15004         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15005         addition.
15006         * doc/posix-functions/open_wmemstream.texi: Likewise.
15007         * doc/posix-functions/wcsnlen.texi: Likewise.
15008         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15009         * doc/posix-functions/wcstod.texi: Likewise.
15010         * doc/posix-functions/wcstof.texi: Likewise.
15011         * doc/posix-functions/wcstoimax.texi: Likewise.
15012         * doc/posix-functions/wcstok.texi: Likewise.
15013         * doc/posix-functions/wcstoumax.texi: Likewise.
15014
15015         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15017         * doc/posix-functions/fprintf.texi: Update.
15018         * doc/posix-functions/printf.texi: Update.
15019         * doc/posix-functions/snprintf.texi: Update.
15020         * doc/posix-functions/sprintf.texi: Update.
15021         * doc/posix-functions/vfprintf.texi: Update.
15022         * doc/posix-functions/vprintf.texi: Update.
15023         * doc/posix-functions/vsnprintf.texi: Update.
15024         * doc/posix-functions/vsprintf.texi: Update.
15025         * doc/glibc-functions/obstack_printf.texi: Update.
15026         * doc/glibc-functions/obstack_vprintf.texi: Update.
15027
15028 2009-02-26  Eric Blake  <ebb9@byu.net>
15029
15030         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15031         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15032         compilation bug by using runtime conversion.
15033         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15034         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15035         * modules/ceill-tests (Files): Use nan.h.
15036         * modules/floorl-tests (Files): Likewise.
15037         * modules/frexpl-tests (Files): Likewise.
15038         * modules/isnanl-tests (Files): Likewise.
15039         * modules/ldexpl-tests (Files): Likewise.
15040         * modules/roundl-tests (Files): Likewise.
15041         * modules/truncl-tests (Files): Likewise.
15042         * tests/test-ceill.c (main): Use a working NaN.
15043         * tests/test-floorl.c (main): Likewise.
15044         * tests/test-frexpl.c (main): Likewise.
15045         * tests/test-isnan.c (test_long_double): Likewise.
15046         * tests/test-isnanl.h (main): Likewise.
15047         * tests/test-ldexpl.h (main): Likewise.
15048         * tests/test-roundl.h (main): Likewise.
15049         * tests/test-truncl.h (main): Likewise.
15050         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15051
15052 2009-02-26  Eric Blake  <ebb9@byu.net>
15053             Bruno Haible  <bruno@clisp.org>
15054
15055         Work around a *printf bug with %ls on Solaris.
15056         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15057         precision is specified, sprintf stops converting the wide string
15058         argument when the number of bytes that have been produced by this
15059         conversion equals or exceeds the precision.
15060         * doc/posix-functions/fprintf.texi: Update.
15061         * doc/posix-functions/printf.texi: Update.
15062         * doc/posix-functions/snprintf.texi: Update.
15063         * doc/posix-functions/sprintf.texi: Update.
15064         * doc/posix-functions/vfprintf.texi: Update.
15065         * doc/posix-functions/vprintf.texi: Update.
15066         * doc/posix-functions/vsnprintf.texi: Update.
15067         * doc/posix-functions/vsprintf.texi: Update.
15068         * doc/glibc-functions/obstack_printf.texi: Update.
15069         * doc/glibc-functions/obstack_vprintf.texi: Update.
15070
15071 2009-02-26  Eric Blake  <ebb9@byu.net>
15072
15073         stdlib: favor compiler check of random.h
15074         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15075         to avoid an ObjC random.h installed by Swarm.
15076
15077 2009-02-26  Bruno Haible  <bruno@clisp.org>
15078
15079         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15080         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15081         Reported by Gary V. Vaughan <gary@gnu.org>.
15082
15083 2009-02-26  Bruno Haible  <bruno@clisp.org>
15084
15085         Fix *printf behaviour regarding the %ls directive.
15086         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15087         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15088         NEED_PRINTF_DIRECTIVE_LS.
15089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15090         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15092         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15093         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15094         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15095         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15100         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15104         * doc/posix-functions/fprintf.texi: Update.
15105         * doc/posix-functions/printf.texi: Update.
15106         * doc/posix-functions/snprintf.texi: Update.
15107         * doc/posix-functions/sprintf.texi: Update.
15108         * doc/posix-functions/vfprintf.texi: Update.
15109         * doc/posix-functions/vprintf.texi: Update.
15110         * doc/posix-functions/vsnprintf.texi: Update.
15111         * doc/posix-functions/vsprintf.texi: Update.
15112         * doc/glibc-functions/obstack_printf.texi: Update.
15113         * doc/glibc-functions/obstack_vprintf.texi: Update.
15114         Reported by Eric Blake.
15115
15116 2009-02-25  Bruno Haible  <bruno@clisp.org>
15117
15118         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15119         with known value.
15120         Reported by Gary V. Vaughan <gary@gnu.org>.
15121
15122 2009-02-25  Bruno Haible  <bruno@clisp.org>
15123
15124         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15125         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15126         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15127         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15128         Reported by Gary V. Vaughan <gary@gnu.org>.
15129
15130 2009-02-25  Bruno Haible  <bruno@clisp.org>
15131
15132         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15133         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15134         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15135         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15136         Reported by Gary V. Vaughan <gary@gnu.org>.
15137
15138 2009-02-25  Eric Blake  <ebb9@byu.net>
15139
15140         tests: skip fseek/ftell tests if ungetc is broken
15141         * m4/ungetc.m4: New file.
15142         * modules/fseek-tests: Split test, so ungetc dependency is
15143         separate from rest of test.
15144         * modules/fseeko-tests: Likewise.
15145         * modules/ftell-tests: Likewise.
15146         * modules/ftello-tests: Likewise.
15147         * tests/test-fseek.c (main): Isolate ungetc dependency.
15148         * tests/test-fseeko.c (main): Likewise.
15149         * tests/test-ftell.c (main): Likewise.
15150         * tests/test-ftello.c (main): Likewise.
15151         * tests/test-fseek2.sh: New file.
15152         * tests/test-fseeko2.sh: Likewise.
15153         * tests/test-ftell2.sh: Likewise.
15154         * tests/test-ftello2.sh: Likewise.
15155
15156 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15157
15158         test-getaddrinfo: fix usage of skip return code 77
15159         * tests/test-gettaddrinfo.c: Return skip code 77 only
15160         for first occurance of skip (4x77 is not 77)
15161
15162 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15163
15164         strtod: avoid C99 decl-after-statement
15165         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15166
15167 2009-02-24  Eric Blake  <ebb9@byu.net>
15168
15169         strtod: detect HP-UX 11.31 bug
15170         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15171         Reported by Gary V. Vaughan.
15172
15173 2009-02-23  Bruno Haible  <bruno@clisp.org>
15174
15175         Fix invalid read past end of memory block.
15176         * lib/vasnprintf.c (DCHAR_SET): Define.
15177         (local_wcslen): Define only when needed.
15178         (local_strnlen, local_wcsnlen): New functions.
15179         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15180         directives that involve a conversion ourselves.
15181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15182         wcsnlen, mbrtowc, wcrtomb.
15183         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15184         * tests/test-vasprintf-posix.c (test_function): Likewise.
15185         * tests/test-snprintf-posix.h (test_function): Likewise.
15186         * tests/test-sprintf-posix.h (test_function): Likewise.
15187         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15188
15189 2009-02-22  Bruno Haible  <bruno@clisp.org>
15190
15191         Implement new clarified decomposition of Hangul syllables.
15192         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15193         of type LTV, return only a pairwise decomposition.
15194         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15195         Likewise.
15196         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15197         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15198         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15199
15200 2009-02-22  Bruno Haible  <bruno@clisp.org>
15201
15202         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15203         zero-length results and shrink excess allocated memory.
15204         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15205         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15206         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15207         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15208         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15209         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15210         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15211         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15212         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15213         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15214         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15215         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15216
15217 2009-02-21  Bruno Haible  <bruno@clisp.org>
15218
15219         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15220         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15221         spaces after a period. Put a space between a macro name and its
15222         argument list. Trivial rewordings.
15223         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15224         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15225         (main): Return 0 explicitly.
15226
15227 2009-02-21  Bruno Haible  <bruno@clisp.org>
15228
15229         Tests for module 'uninorm/filter'.
15230         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15231         * modules/uninorm/filter-tests: New file.
15232
15233         New module 'uninorm/filter'.
15234         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15235         uninorm_filter_flush, uninorm_filter_free): New declarations.
15236         * lib/uninorm/uninorm-filter.c: New file.
15237         * modules/uninorm/filter: New file.
15238
15239 2009-02-21  Bruno Haible  <bruno@clisp.org>
15240
15241         Tests for module 'uninorm/nfkc'.
15242         * tests/uninorm/test-nfkc.c: New file.
15243         * tests/uninorm/test-u8-nfkc.c: New file.
15244         * tests/uninorm/test-u16-nfkc.c: New file.
15245         * tests/uninorm/test-u32-nfkc.c: New file.
15246         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15247         * tests/uninorm/test-u32-nfkc-big.c: New file.
15248         * modules/uninorm/nfkc-tests: New file.
15249
15250         New module 'uninorm/nfkc'.
15251         * lib/uninorm/nfkc.c: New file.
15252         * modules/uninorm/nfkc: New file.
15253
15254         Tests for module 'uninorm/nfkd'.
15255         * tests/uninorm/test-nfkd.c: New file.
15256         * tests/uninorm/test-u8-nfkd.c: New file.
15257         * tests/uninorm/test-u16-nfkd.c: New file.
15258         * tests/uninorm/test-u32-nfkd.c: New file.
15259         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15260         * tests/uninorm/test-u32-nfkd-big.c: New file.
15261         * modules/uninorm/nfkd-tests: New file.
15262
15263         New module 'uninorm/nfkd'.
15264         * lib/uninorm/nfkd.c: New file.
15265         * modules/uninorm/nfkd: New file.
15266
15267         Tests for module 'uninorm/nfc'.
15268         * tests/uninorm/test-nfc.c: New file.
15269         * tests/uninorm/test-u8-nfc.c: New file.
15270         * tests/uninorm/test-u16-nfc.c: New file.
15271         * tests/uninorm/test-u32-nfc.c: New file.
15272         * tests/uninorm/test-u32-nfc-big.sh: New file.
15273         * tests/uninorm/test-u32-nfc-big.c: New file.
15274         * modules/uninorm/nfc-tests: New file.
15275
15276         New module 'uninorm/nfc'.
15277         * lib/uninorm/nfc.c: New file.
15278         * modules/uninorm/nfc: New file.
15279
15280         Tests for module 'uninorm/nfd'.
15281         * tests/uninorm/test-nfd.c: New file.
15282         * tests/uninorm/test-u8-nfd.c: New file.
15283         * tests/uninorm/test-u16-nfd.c: New file.
15284         * tests/uninorm/test-u32-nfd.c: New file.
15285         * tests/uninorm/test-u32-nfd-big.sh: New file.
15286         * tests/uninorm/test-u32-nfd-big.c: New file.
15287         * tests/uninorm/test-u32-normalize-big.h: New file.
15288         * tests/uninorm/test-u32-normalize-big.c: New file.
15289         * tests/uninorm/NormalizationTest.txt: New file, created from
15290         Unicode 5.1.0 NormalizationTest.txt.
15291         * modules/uninorm/nfd-tests: New file.
15292
15293         New module 'uninorm/nfd'.
15294         * lib/uninorm/nfd.c: New file.
15295         * modules/uninorm/nfd: New file.
15296
15297         New module 'uninorm/u32-normalize'.
15298         * lib/uninorm/u32-normalize.c: New file.
15299         * modules/uninorm/u32-normalize: New file.
15300
15301         New module 'uninorm/u16-normalize'.
15302         * lib/uninorm/u16-normalize.c: New file.
15303         * modules/uninorm/u16-normalize: New file.
15304
15305         New module 'uninorm/u8-normalize'.
15306         * lib/uninorm/u8-normalize.c: New file.
15307         * lib/uninorm/normalize-internal.h: New file.
15308         * lib/uninorm/u-normalize-internal.h: New file.
15309         * modules/uninorm/u8-normalize: New file.
15310
15311         New module 'uninorm/decompose-internal'.
15312         * lib/uninorm/decompose-internal.c: New file.
15313         * modules/uninorm/decompose-internal: New file.
15314
15315         Tests for module 'uninorm/composition'.
15316         * tests/uninorm/test-composition.c: New file.
15317         * modules/uninorm/composition-tests: New file.
15318
15319         New module 'uninorm/composition'.
15320         * lib/uninorm/composition.c: New file.
15321         * lib/uninorm/composition-table.gperf: New file, generated by
15322         gen-uni-tables.
15323         * modules/uninorm/composition: New file.
15324
15325         Tests for module 'uninorm/compat-decomposition'.
15326         * tests/uninorm/test-compat-decomposition.c: New file.
15327         * modules/uninorm/compat-decomposition-tests: New file.
15328
15329         New module 'uninorm/compat-decomposition'.
15330         * lib/uninorm/decompose-internal.h: New file.
15331         * lib/uninorm/compat-decomposition.c: New file.
15332         * modules/uninorm/compat-decomposition: New file.
15333
15334         Tests for module 'uninorm/canonical-decomposition'.
15335         * tests/uninorm/test-canonical-decomposition.c: New file.
15336         * modules/uninorm/canonical-decomposition-tests: New file.
15337
15338         New module 'uninorm/canonical-decomposition'.
15339         * lib/uninorm/canonical-decomposition.c: New file.
15340         * modules/uninorm/canonical-decomposition: New file.
15341
15342         Tests for module 'uninorm/decomposition'.
15343         * tests/uninorm/test-decomposition.c: New file.
15344         * modules/uninorm/decomposition-tests: New file.
15345
15346         New module 'uninorm/decomposition'.
15347         * lib/uninorm/decomposition.c: New file.
15348         * modules/uninorm/decomposition: New file.
15349
15350         New module 'uninorm/decomposition-table'.
15351         * lib/uninorm/decomposition-table.h: New file.
15352         * lib/uninorm/decomposition-table.c: New file.
15353         * lib/uninorm/decomposition-table1.h: New file, generated by
15354         gen-uni-tables.
15355         * lib/uninorm/decomposition-table2.h: New file, generated by
15356         gen-uni-tables.
15357         * modules/uninorm/decomposition-table: New file.
15358
15359         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15360         (UC_DECOMP_*): New enumeration items.
15361         (get_decomposition): New function.
15362         (struct decomp_table): New type.
15363         (output_decomposition, output_decomposition_tables): New functions.
15364         (unicode_composition_exclusions): New variable.
15365         (fill_composition_exclusions, debug_output_composition_tables): New
15366         functions.
15367         (main): Accept one more argument. Invoke fill_composition_exclusions.
15368         Output decomposition and composition tables.
15369
15370         New module 'uninorm/base'.
15371         * lib/uninorm.h: New file.
15372         * lib/unictype.h: Update comment.
15373         * modules/uninorm/base: New file.
15374
15375 2009-02-21  David Lutterkort  <lutter@redhat.com>
15376
15377         Tests for module 'safe-alloc'.
15378         * tests/test-safe-alloc.c: New file.
15379         * modules/safe-alloc-tests: New file.
15380
15381         New module 'safe-alloc'.
15382         * lib/safe-alloc.h: New file.
15383         * lib/safe-alloc.c: New file.
15384         * m4/safe-alloc.m4: New file.
15385         * modules/safe-alloc: New file.
15386         * doc/safe-alloc.texi: New file.
15387         * doc/gnulib.texi: Include it.
15388         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15389         safe-alloc.
15390
15391 2009-02-18  Bruno Haible  <bruno@clisp.org>
15392
15393         Fix link error on non-glibc systems.
15394         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15395         variable.
15396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15397
15398 2009-02-18  Jim Meyering  <meyering@redhat.com>
15399
15400         fts: avoid used-uninitialized error due to recent change
15401         * lib/fts.c (fts_read): Guard uses of the new member,
15402         parent->fts_n_dirs_remaining, since it's not relevant for
15403         the parent of a directory specified on the command-line.
15404
15405 2009-02-17  James Youngman  <jay@gnu.org>
15406             Bruno Haible  <bruno@clisp.org>
15407
15408         * m4/include_next.m4: Reformulate comment.
15409
15410 2009-02-16  Jim Meyering  <meyering@redhat.com>
15411
15412         fts: add #if guards so that the fts_lgpl module still builds
15413         * lib/fts.c: Guard just-added hash-table-using parts with
15414         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15415         Reported by Simon Josefsson.
15416
15417 2009-02-15  Bruno Haible  <bruno@clisp.org>
15418
15419         * modules/array-mergesort-tests: New file.
15420         * tests/test-array-mergesort.c: New file.
15421
15422         New module 'array-mergesort'.
15423         * modules/array-mergesort: New file.
15424         * lib/array-mergesort.h: New file.
15425
15426 2009-02-15  Bruno Haible  <bruno@clisp.org>
15427
15428         Fix 2009-02-07 commit.
15429         * lib/gen-uni-tables.c (output_predicate, output_category,
15430         output_combclass, output_bidi_category, output_decimal_digit,
15431         output_digit, output_numeric, output_mirror, output_scripts,
15432         output_ident_category, output_simple_mapping): Fix format directives.
15433         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15434
15435 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15436
15437         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15438         fixes are available from IBM.
15439
15440 2009-02-13  Jim Meyering  <meyering@redhat.com>
15441
15442         fts: arrange not to stat non-directories in more cases
15443         This makes GNU find (when it doesn't need to stat each file)
15444         *much* more efficient at traversing reiserfs file systems.
15445         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15446         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15447         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15448         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15449         (leaf_optimization_applies): New function.
15450         (LCO_hash, LCO_compare): New helper functions.
15451         (link_count_optimize_ok): New function.
15452         (fts_stat): Initialize new member (if dir).
15453         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15454         we've just stat'ed a directory.  Skip the stat call when possible.
15455         ---
15456         Note this AFS-related exchange:
15457         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15458         and note find's pioctl call in find/fstype.c.
15459         But that is necessary only if you want to enable the
15460         optimization for AFS, and for now, I don't.
15461
15462         fts: move a function definition "up" (no semantic change)
15463         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15464         "up" to precede upcoming use of a related function.
15465
15466 2009-02-11  Jim Meyering  <meyering@redhat.com>
15467
15468         fts: correct internal computation of nlinks (optimization-related)
15469         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15470         whether the current entry is a directory, so don't test it.
15471
15472 2009-02-10  Bruno Haible  <bruno@clisp.org>
15473
15474         Tests for module 'uniwbrk/ulc-wordbreaks'.
15475         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15476         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15477         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15478
15479         Tests for module 'uniwbrk/u32-wordbreaks'.
15480         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15481         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15482
15483         Tests for module 'uniwbrk/u16-wordbreaks'.
15484         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15485         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15486
15487         Tests for module 'uniwbrk/u8-wordbreaks'.
15488         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15489         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15490
15491 2009-02-10  Bruno Haible  <bruno@clisp.org>
15492
15493         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15494         property.
15495         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15496         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15497         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15498
15499 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15500
15501         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15502         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15503
15504 2009-02-10  Bruno Haible  <bruno@clisp.org>
15505
15506         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15507         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15508         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15509         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15510         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15511         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15512
15513 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15514
15515         * lib/sockets.h (gl_fd_to_handle): New function.
15516
15517         * tests/test-sockets.c: Call gl_fd_to_handle.
15518
15519 2009-02-09  Bruno Haible  <bruno@clisp.org>
15520
15521         * doc/havelib.texi: Document the conventions on bi-arch systems.
15522
15523 2009-02-08  Bruno Haible  <bruno@clisp.org>
15524
15525         Document the AC_LIB_LINKFLAGS macro.
15526         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15527         * doc/gnulib.texi: Include it.
15528
15529 2009-02-08  Bruno Haible  <bruno@clisp.org>
15530
15531         Fix wrong order of sections, compared to TOC.
15532         * doc/gnulib.texi: Include relocatable-maint.texi after the
15533         "Regular expressions" node, not before.
15534
15535 2009-02-08  Bruno Haible  <bruno@clisp.org>
15536
15537         Tests for module 'unicase/totitle'.
15538         * modules/unicase/totitle-tests: New file.
15539
15540         Tests for module 'unicase/tolower'.
15541         * modules/unicase/tolower-tests: New file.
15542
15543         Tests for module 'unicase/toupper'.
15544         * modules/unicase/toupper-tests: New file.
15545         * tests/unicase/test-mapping-part1.h: New file.
15546         * tests/unicase/test-mapping-part2.h: New file.
15547
15548         New module 'unicase/totitle'.
15549         * modules/unicase/totitle: New file.
15550         * lib/unicase/totitle.c: New file.
15551
15552         New module 'unicase/tolower'.
15553         * modules/unicase/tolower: New file.
15554         * lib/unicase/tolower.c: New file.
15555
15556         New module 'unicase/toupper'.
15557         * modules/unicase/toupper: New file.
15558         * lib/unicase/toupper.c: New file.
15559         * lib/unicase/simple-mapping.h: New file.
15560
15561         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15562         (mapping_table): New structure.
15563         (output_simple_mapping): New function.
15564         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15565         * modules/gen-uni-tables (Description): Update.
15566         * lib/unicase/toupper.h: New file, automatically generated by
15567         gen-uni-tables.
15568         * lib/unicase/tolower.h: New file, automatically generated by
15569         gen-uni-tables.
15570         * lib/unicase/totitle.h: New file, automatically generated by
15571         gen-uni-tables.
15572         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15573         gen-uni-tables.
15574         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15575         gen-uni-tables.
15576         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15577         gen-uni-tables.
15578
15579         New module 'unicase/base'.
15580         * modules/unicase/base: New file.
15581         * lib/unicase.h: New file.
15582
15583 2009-02-08  Bruno Haible  <bruno@clisp.org>
15584
15585         New module 'uniwbrk/ulc-wordbreaks'.
15586         * modules/uniwbrk/ulc-wordbreaks: New file.
15587         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15588
15589         New module 'uniwbrk/u32-wordbreaks'.
15590         * modules/uniwbrk/u32-wordbreaks: New file.
15591         * lib/uniwbrk/u32-wordbreaks.c: New file.
15592
15593         New module 'uniwbrk/u16-wordbreaks'.
15594         * modules/uniwbrk/u16-wordbreaks: New file.
15595         * lib/uniwbrk/u16-wordbreaks.c: New file.
15596
15597         New module 'uniwbrk/u8-wordbreaks'.
15598         * modules/uniwbrk/u8-wordbreaks: New file.
15599         * lib/uniwbrk/u8-wordbreaks.c: New file.
15600         * lib/uniwbrk/u-wordbreaks.h: New file.
15601
15602         New module 'uniwbrk/table'.
15603         * modules/uniwbrk/table: New file.
15604         * lib/uniwbrk/wbrktable.h: New file.
15605         * lib/uniwbrk/wbrktable.c: New file.
15606
15607         New module 'uniwbrk/wordbreak-property'.
15608         * modules/uniwbrk/wordbreak-property: New file.
15609         * lib/uniwbrk/wordbreak-property.c: New file.
15610
15611         * lib/gen-uni-tables.c (WBP_*): New enum items.
15612         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15613         (unicode_org_wbp): New variable.
15614         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15615         New functions.
15616         (wbp_table): New structure.
15617         (output_wbp, output_wbrk_tables): New functions.
15618         (main): Accept additional argument. Invoke fill_org_wbp,
15619         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15620         output_wbrk_tables.
15621         * modules/gen-uni-tables (Description): Update.
15622         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15623         gen-uni-tables.
15624
15625         New module 'uniwbrk/base'.
15626         * modules/uniwbrk/base: New file.
15627         * lib/uniwbrk.h: New file.
15628
15629 2009-02-08  Bruno Haible  <bruno@clisp.org>
15630
15631         Update to Unicode 5.1.0.
15632         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15633         U+2185..U+2188.
15634         (is_property_default_ignorable_code_point): Don't include characters
15635         of category Cc or Cs and not-a-characters.
15636         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15637         U+0D79, U+109E, U+109F, U+A60C.
15638         * lib/unictype/bidi_of.h: Regenerated.
15639         * lib/unictype/blocks.h: Regenerated.
15640         * lib/unictype/categ_C.h: Regenerated.
15641         * lib/unictype/categ_Cf.h: Regenerated.
15642         * lib/unictype/categ_Cn.h: Regenerated.
15643         * lib/unictype/categ_L.h: Regenerated.
15644         * lib/unictype/categ_Ll.h: Regenerated.
15645         * lib/unictype/categ_Lm.h: Regenerated.
15646         * lib/unictype/categ_Lo.h: Regenerated.
15647         * lib/unictype/categ_Lu.h: Regenerated.
15648         * lib/unictype/categ_M.h: Regenerated.
15649         * lib/unictype/categ_Mc.h: Regenerated.
15650         * lib/unictype/categ_Me.h: Regenerated.
15651         * lib/unictype/categ_Mn.h: Regenerated.
15652         * lib/unictype/categ_N.h: Regenerated.
15653         * lib/unictype/categ_Nd.h: Regenerated.
15654         * lib/unictype/categ_Nl.h: Regenerated.
15655         * lib/unictype/categ_No.h: Regenerated.
15656         * lib/unictype/categ_P.h: Regenerated.
15657         * lib/unictype/categ_Pd.h: Regenerated.
15658         * lib/unictype/categ_Pe.h: Regenerated.
15659         * lib/unictype/categ_Pf.h: Regenerated.
15660         * lib/unictype/categ_Pi.h: Regenerated.
15661         * lib/unictype/categ_Po.h: Regenerated.
15662         * lib/unictype/categ_Ps.h: Regenerated.
15663         * lib/unictype/categ_S.h: Regenerated.
15664         * lib/unictype/categ_Sk.h: Regenerated.
15665         * lib/unictype/categ_Sm.h: Regenerated.
15666         * lib/unictype/categ_So.h: Regenerated.
15667         * lib/unictype/categ_of.h: Regenerated.
15668         * lib/unictype/combining.h: Regenerated.
15669         * lib/unictype/ctype_alnum.h: Regenerated.
15670         * lib/unictype/ctype_alpha.h: Regenerated.
15671         * lib/unictype/ctype_graph.h: Regenerated.
15672         * lib/unictype/ctype_lower.h: Regenerated.
15673         * lib/unictype/ctype_print.h: Regenerated.
15674         * lib/unictype/ctype_punct.h: Regenerated.
15675         * lib/unictype/ctype_upper.h: Regenerated.
15676         * lib/unictype/decdigit.h: Regenerated.
15677         * lib/unictype/digit.h: Regenerated.
15678         * lib/unictype/mirror.h: Regenerated.
15679         * lib/unictype/numeric.h: Regenerated.
15680         * lib/unictype/pr_alphabetic.h: Regenerated.
15681         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15682         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15683         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15684         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15685         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15686         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15687         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15688         * lib/unictype/pr_combining.h: Regenerated.
15689         * lib/unictype/pr_dash.h: Regenerated.
15690         * lib/unictype/pr_decimal_digit.h: Regenerated.
15691         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15692         * lib/unictype/pr_deprecated.h: Regenerated.
15693         * lib/unictype/pr_diacritic.h: Regenerated.
15694         * lib/unictype/pr_extender.h: Regenerated.
15695         * lib/unictype/pr_format_control.h: Regenerated.
15696         * lib/unictype/pr_grapheme_base.h: Regenerated.
15697         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15698         * lib/unictype/pr_grapheme_link.h: Regenerated.
15699         * lib/unictype/pr_id_continue.h: Regenerated.
15700         * lib/unictype/pr_id_start.h: Regenerated.
15701         * lib/unictype/pr_ideographic.h: Regenerated.
15702         * lib/unictype/pr_ignorable_control.h: Regenerated.
15703         * lib/unictype/pr_lowercase.h: Regenerated.
15704         * lib/unictype/pr_math.h: Regenerated.
15705         * lib/unictype/pr_numeric.h: Regenerated.
15706         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15707         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15708         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15709         * lib/unictype/pr_other_id_continue.h: Regenerated.
15710         * lib/unictype/pr_other_lowercase.h: Regenerated.
15711         * lib/unictype/pr_other_math.h: Regenerated.
15712         * lib/unictype/pr_punctuation.h: Regenerated.
15713         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15714         * lib/unictype/pr_soft_dotted.h: Regenerated.
15715         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15716         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15717         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15718         * lib/unictype/pr_uppercase.h: Regenerated.
15719         * lib/unictype/pr_xid_continue.h: Regenerated.
15720         * lib/unictype/pr_xid_start.h: Regenerated.
15721         * lib/unictype/pr_zero_width.h: Regenerated.
15722         * lib/unictype/scripts.h: Regenerated.
15723         * lib/unictype/scripts_byname.gperf: Regenerated.
15724         * lib/unictype/sy_java_ident.h: Regenerated.
15725         * lib/unilbrk/lbrkprop1.h: Regenerated.
15726         * lib/unilbrk/lbrkprop2.h: Regenerated.
15727         * tests/unictype/test-categ_C.c: Regenerated.
15728         * tests/unictype/test-categ_Cf.c: Regenerated.
15729         * tests/unictype/test-categ_Cn.c: Regenerated.
15730         * tests/unictype/test-categ_L.c: Regenerated.
15731         * tests/unictype/test-categ_Ll.c: Regenerated.
15732         * tests/unictype/test-categ_Lm.c: Regenerated.
15733         * tests/unictype/test-categ_Lo.c: Regenerated.
15734         * tests/unictype/test-categ_Lu.c: Regenerated.
15735         * tests/unictype/test-categ_M.c: Regenerated.
15736         * tests/unictype/test-categ_Mc.c: Regenerated.
15737         * tests/unictype/test-categ_Me.c: Regenerated.
15738         * tests/unictype/test-categ_Mn.c: Regenerated.
15739         * tests/unictype/test-categ_N.c: Regenerated.
15740         * tests/unictype/test-categ_Nd.c: Regenerated.
15741         * tests/unictype/test-categ_Nl.c: Regenerated.
15742         * tests/unictype/test-categ_No.c: Regenerated.
15743         * tests/unictype/test-categ_P.c: Regenerated.
15744         * tests/unictype/test-categ_Pd.c: Regenerated.
15745         * tests/unictype/test-categ_Pe.c: Regenerated.
15746         * tests/unictype/test-categ_Pf.c: Regenerated.
15747         * tests/unictype/test-categ_Pi.c: Regenerated.
15748         * tests/unictype/test-categ_Po.c: Regenerated.
15749         * tests/unictype/test-categ_Ps.c: Regenerated.
15750         * tests/unictype/test-categ_S.c: Regenerated.
15751         * tests/unictype/test-categ_Sk.c: Regenerated.
15752         * tests/unictype/test-categ_Sm.c: Regenerated.
15753         * tests/unictype/test-categ_So.c: Regenerated.
15754         * tests/unictype/test-ctype_alnum.c: Regenerated.
15755         * tests/unictype/test-ctype_alpha.c: Regenerated.
15756         * tests/unictype/test-ctype_graph.c: Regenerated.
15757         * tests/unictype/test-ctype_lower.c: Regenerated.
15758         * tests/unictype/test-ctype_print.c: Regenerated.
15759         * tests/unictype/test-ctype_punct.c: Regenerated.
15760         * tests/unictype/test-ctype_upper.c: Regenerated.
15761         * tests/unictype/test-decdigit.h: Regenerated.
15762         * tests/unictype/test-digit.h: Regenerated.
15763         * tests/unictype/test-numeric.h: Regenerated.
15764         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15765         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15766         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15767         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15768         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15769         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15770         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15771         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15772         * tests/unictype/test-pr_combining.c: Regenerated.
15773         * tests/unictype/test-pr_dash.c: Regenerated.
15774         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15775         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15776         * tests/unictype/test-pr_deprecated.c: Regenerated.
15777         * tests/unictype/test-pr_diacritic.c: Regenerated.
15778         * tests/unictype/test-pr_extender.c: Regenerated.
15779         * tests/unictype/test-pr_format_control.c: Regenerated.
15780         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15781         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15782         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15783         * tests/unictype/test-pr_id_continue.c: Regenerated.
15784         * tests/unictype/test-pr_id_start.c: Regenerated.
15785         * tests/unictype/test-pr_ideographic.c: Regenerated.
15786         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15787         * tests/unictype/test-pr_lowercase.c: Regenerated.
15788         * tests/unictype/test-pr_math.c: Regenerated.
15789         * tests/unictype/test-pr_numeric.c: Regenerated.
15790         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15791         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15792         Regenerated.
15793         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15794         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15795         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15796         * tests/unictype/test-pr_other_math.c: Regenerated.
15797         * tests/unictype/test-pr_punctuation.c: Regenerated.
15798         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15799         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15800         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15801         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15802         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15803         * tests/unictype/test-pr_uppercase.c: Regenerated.
15804         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15805         * tests/unictype/test-pr_xid_start.c: Regenerated.
15806         * tests/unictype/test-pr_zero_width.c: Regenerated.
15807
15808         Update to Unicode 5.1.0.
15809         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15810         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15811         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15812         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15813         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15814         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15815         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15816         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15817         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15818         (nonspacing_table_ind): Update.
15819         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15820
15821         Update to Unicode 5.1.0.
15822         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15823         code transform.
15824         * lib/uniname/uniname.c (unicode_character_name,
15825         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15826         * lib/uniname/uninames.h: Regenerated.
15827         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15828
15829 2009-02-07  Bruno Haible  <bruno@clisp.org>
15830
15831         Merge gen-ctype and gen-lbrk into a single program.
15832         * lib/gen-uni-tables.c: New file, incorporating
15833         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15834         Add directory prefixes to the names of the generated files.
15835         * lib/unictype/gen-ctype.c: Remove file.
15836         * lib/unilbrk/gen-lbrk.c: Remove file.
15837         * modules/gen-uni-tables: New file.
15838         * modules/unictype/gen-ctype: Remove file.
15839         * modules/unilbrk/gen-lbrk: Remove file.
15840
15841 2009-02-07  Bruno Haible  <bruno@clisp.org>
15842
15843         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15844
15845         New module 'unistr/u32-strcoll'.
15846         * modules/unistr/u32-strcoll: New file.
15847         * lib/unistr/u32-strcoll.c: New file.
15848
15849         New module 'unistr/u16-strcoll'.
15850         * modules/unistr/u16-strcoll: New file.
15851         * lib/unistr/u16-strcoll.c: New file.
15852
15853         New module 'unistr/u8-strcoll'.
15854         * modules/unistr/u8-strcoll: New file.
15855         * lib/unistr/u8-strcoll.c: New file.
15856         * lib/unistr/u-strcoll.h: New file.
15857
15858 2009-02-07  Bruno Haible  <bruno@clisp.org>
15859
15860         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15861         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15862         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15863         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15864         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15865         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15866
15867 2009-02-07  Bruno Haible  <bruno@clisp.org>
15868
15869         Make 64-bit clean.
15870         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15871         output_combclass, output_bidi_category, output_decimal_digit,
15872         output_digit, output_numeric, output_mirror, output_scripts,
15873         output_ident_category): Use proper width specifier in format strings.
15874
15875 2009-02-07  Bruno Haible  <bruno@clisp.org>
15876
15877         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15878         failure behaviour.
15879
15880 2009-02-07  Jim Meyering  <meyering@redhat.com>
15881
15882         regex: avoid compilation failure with upcoming gcc-4.4
15883         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15884         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15885         "... error: integer overflow in preprocessor expression".
15886
15887 2009-02-05  Ben Pfaff  <blp@gnu.org>
15888
15889         Fix link errors on Windows when close module is used.
15890         * modules/close: Add $(LIB_CLOSE) to Link section.
15891         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15892         $(LIB_CLOSE) on Windows.
15893
15894 2009-02-05  Jim Meyering  <meyering@redhat.com>
15895
15896         still avoid unused-parameter warnings, but do it cleanly
15897         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15898         (get_fs_usage): Cast to void instead.
15899         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15900         (dev_from_mount_options, read_file_system_list): Cast to void.
15901         Prompted by Bruno Haible.
15902
15903 2009-02-04  Jim Meyering  <meyering@redhat.com>
15904
15905         fsusage.c: correct copyright year
15906         * lib/fsusage.c: Reflect year in which the change is pushed into
15907
15908         avoid misc. warnings
15909         * lib/fsusage.c (UNUSED_PARAM): Define.
15910         (get_fs_usage): Mark parameter "disk" as unused.
15911         * lib/getugroups.c (getgrent): Use "void" in prototype.
15912         * lib/mountlist.c: Mark unused parameters.
15913         (read_file_system_list): Declare a local with "const".
15914         * lib/nanosleep.c (getnow): Declare static.
15915         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15916
15917         dirfd: set errno upon failure
15918         * lib/dirfd.c: Include <errno.h>.
15919         Set errno to ENOTSUP when returning -1.
15920         * modules/dirfd (Depends-on): Add errno.
15921         Suggested by John Kodis <kodis@comcast.net>.
15922
15923 2009-02-01  Bruno Haible  <bruno@clisp.org>
15924
15925         Don't assume sizeof (long) >= sizeof (void *).
15926         * lib/memcmp.c: Include stdint.h.
15927         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15928         srcp2 to 'const byte *'.
15929         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15930         types to uintptr_t.
15931         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15932         * modules/memcmp (Depends-on): Add stdint.
15933         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15934
15935 2009-01-30  Eric Blake  <ebb9@byu.net>
15936
15937         fix more require-before-expand issues
15938         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15939         expand, AC_PROG_AWK.
15940         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15941
15942 2009-01-28  Eric Blake  <ebb9@byu.net>
15943
15944         version-etc: use consistent URL formatting
15945         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15946         Improve formatting.  Use fputs for string without %.
15947
15948 2009-01-28  Jim Meyering  <meyering@redhat.com>
15949
15950         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15951         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15952         "underquoted definition of NAME" from autoconf-2.59.
15953
15954 2009-01-28  Bruno Haible  <bruno@clisp.org>
15955
15956         * doc/gnulib.texi: Add "Obsolete modules" to index.
15957
15958 2009-01-28  Jim Meyering  <meyering@redhat.com>
15959
15960         useless-if-before-free: recognize more variants
15961         * build-aux/useless-if-before-free: Also recognize e.g.,
15962         if (NULL != p) free (p);
15963
15964 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15965
15966         test-getaddrinfo: skip (don't fail) this test when there's no network
15967         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15968         on the presumption that it means you lack network access.
15969
15970 2009-01-26  Jim Meyering  <meyering@redhat.com>
15971
15972         fflush: avoid warnings on modern systems
15973         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15974         pos and result, into scopes where they're used.
15975
15976 2009-01-26  Eric Blake  <ebb9@byu.net>
15977
15978         Silence warning reintroduced by recent extensions patch.
15979         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15980         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15981         autoconf.
15982
15983         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15984         * m4/00gnulib.m4: New file.
15985         * gnulib-tool (func_get_filelist): Always use it.
15986         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15987         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15988
15989 2009-01-25  Bruno Haible  <bruno@clisp.org>
15990
15991         Make test-quotearg work on MacOS X and AIX.
15992         * tests/test-quotearg.sh: New file.
15993         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15994         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15995         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15996         include <libintl.h>.
15997         (fake_locale): Remove variable.
15998         (gettext, dgettext, dcgettext): Remove functions.
15999         (main): Instead of setting a fake locale, set a real locale. Call
16000         textdomain and bindtextdomain.
16001         * modules/quotearg-tests (Files): Add the new files.
16002         (Depends-on): Add gettext, setenv, unsetenv.
16003         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16004         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16005         Augment TESTS_ENVIRONMENT.
16006
16007 2009-01-25  Bruno Haible  <bruno@clisp.org>
16008
16009         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16010         fr_FR.ISO8859-1 locale on MacOS X.
16011         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16012         ja_JP.eucJP locale on MacOS X.
16013         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16014         zh_CN.GB18030 locale on MacOS X.
16015
16016 2009-01-25  Bruno Haible  <bruno@clisp.org>
16017
16018         Avoid link errors on MacOS X 10.3.
16019         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16020         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16021
16022 2009-01-25  Bruno Haible  <bruno@clisp.org>
16023
16024         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16025         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16026         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16027         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16028         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16029         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16030         posix_spawnattr_init, posix_spawnattr_setsigmask,
16031         posix_spawnattr_setflags, posix_spawnattr_destroy.
16032
16033         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16034         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16035         * modules/execute (Files): Remove m4/posix_spawn.m4.
16036         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16037         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16038         posix_spawnattr_init, posix_spawnattr_setsigmask,
16039         posix_spawnattr_setflags, posix_spawnattr_destroy.
16040
16041 2009-01-25  Bruno Haible  <bruno@clisp.org>
16042
16043         * lib/glthread/threadlib.c: Include <stdlib.h>.
16044
16045 2009-01-25  Bruno Haible  <bruno@clisp.org>
16046
16047         * lib/glthread/threadlib.c (dummy): New declaration.
16048
16049 2009-01-25  Bruno Haible  <bruno@clisp.org>
16050
16051         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16052         multibyte characters also for the GB18030 encoding. Don't crash when
16053         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16054
16055 2009-01-25  Bruno Haible  <bruno@clisp.org>
16056
16057         Avoid redefining 'struct random_data' on OSF/1 5.1.
16058         * lib/stdlib.in.h: Include <random.h> if it exists.
16059         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16060         HAVE_RANDOM_H. Include <random.h> when testing whether
16061         'struct random_data' exists.
16062         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16063
16064 2009-01-25  Bruno Haible  <bruno@clisp.org>
16065
16066         Don't install charset.alias on MacOS X >= 10.3.
16067         * lib/localcharset.c (DARWIN7): New macro.
16068         (get_charset_aliases): Hardcode the result for Darwin7.
16069         * modules/localcharset (install-exec-local): Don't install
16070         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16071
16072 2009-01-25  Bruno Haible  <bruno@clisp.org>
16073
16074         Don't install charset.alias on mingw and Cygwin.
16075         * modules/localcharset (install-exec-local): Don't install
16076         charset.alias on mingw and Cygwin, if the file does not yet exist.
16077         The result for these platforms is hardcoded in localcharset.c.
16078
16079 2009-01-25  Bruno Haible  <bruno@clisp.org>
16080
16081         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16082         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16083         before requiring AC_USE_SYSTEM_EXTENSIONS.
16084
16085 2009-01-25  Jim Meyering  <meyering@redhat.com>
16086
16087         c-strtod: avoid warnings
16088         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16089         "assignment discards qualifiers from pointer target type" warnings.
16090
16091 2009-01-24  Bruno Haible  <bruno@clisp.org>
16092
16093         Add support for non-UTF-8 locales on MacOS X.
16094         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16095         canonical encodings. For Darwin 7 and newer, don't map traditional
16096         encodings to UTF-8.
16097         Reported by Vincent Lefevre <vincent@vinc17.org>
16098         at <http://savannah.gnu.org/bugs/?25235>.
16099
16100 2009-01-24  Bruno Haible  <bruno@clisp.org>
16101
16102         * doc/gnulib.texi (Obsolete modules): New section.
16103         Reported by Mike Frysinger <vapier@gentoo.org>.
16104
16105 2009-01-24  Bruno Haible  <bruno@clisp.org>
16106
16107         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16108         (%.dvi): New rule.
16109
16110 2009-01-24  Bruno Haible  <bruno@clisp.org>
16111
16112         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16113         Reported by Eric Blake.
16114
16115 2009-01-24  Bruno Haible  <bruno@clisp.org>
16116
16117         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16118         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16119         Reported by Gary V. Vaughan <gary@gnu.org>.
16120
16121 2009-01-24  Bruno Haible  <bruno@clisp.org>
16122
16123         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16124
16125 2009-01-23  Bruno Haible  <bruno@clisp.org>
16126
16127         Make c-strtod, c-strtold usable in libraries.
16128         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16129         (C_STRTOD): Call strdup instead of xstrdup.
16130         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16131         * modules/c-strtold (Depends-on): Likewise.
16132         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16133         * NEWS: Mention the change.
16134         Reported by Michael Gold <mgold@ncf.ca>.
16135
16136 2009-01-23  Jim Meyering  <meyering@redhat.com>
16137
16138         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16139         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16140         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16141
16142 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16143
16144         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16145         GNU CoreUtils.
16146         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16147         * modules/version-etc (Description): Update.
16148
16149 2009-01-22  Bruno Haible  <bruno@clisp.org>
16150
16151         Cache the C locale object.
16152         * lib/c-strtod.c (c_locale_cache): New variable.
16153         (c_locale): New function.
16154         (C_STRTOD): Use it, and don't call freelocale.
16155         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16156         Suggested by Paolo Bonzini.
16157
16158 2009-01-21  Bruno Haible  <bruno@clisp.org>
16159
16160         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16161         conditions other than overflow.
16162
16163 2009-01-21  Bruno Haible  <bruno@clisp.org>
16164
16165         * lib/c-strtod.c: Include errno.h.
16166         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16167         value from STRTOD_L and STRTOD.
16168
16169 2009-01-21  Bruno Haible  <bruno@clisp.org>
16170         and Jim Meyering  <meyering@redhat.com>
16171
16172         nanosleep: skip configure test (fail it) for apple universal builds
16173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16174         universal builds, assume that nanosleep does not work.
16175         * modules/nanosleep (Depends-on): Add multiarch.
16176
16177         mktime: skip configure test (fail it) for apple universal builds
16178         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16179         universal builds, assume that mktime does not work.
16180         * modules/mktime (Depends-on): Add multiarch.
16181
16182 2009-01-21  Eric Blake  <ebb9@byu.net>
16183
16184         multiarch: avoid expand-before-require warning
16185         * modules/multiarch (configure.ac): Require, rather than expand,
16186         gl_MULTIARCH.
16187         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16188         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16189         enforce that all clients require it.  Partial reversion of
16190         2008-12-29 patch.
16191
16192         error: avoid expand-before-require warning
16193         * modules/errno (configure.ac): Require, rather than expand,
16194         gl_HEADER_ERRNO_H.
16195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16196         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16197         enforce that all clients require it.
16198
16199         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16200         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16201         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16202         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16203
16204 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16205
16206         Revert:
16207         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16208
16209         regex: do not depend on obsolete modules.
16210         * modules/regex: Remove memcmp and memmove.
16211
16212 2009-01-20  Bruno Haible  <bruno@clisp.org>
16213
16214         Make the 'link' module link on Windows NT 4.
16215         * lib/link.c (_WIN32_WINNT): Don't define.
16216         (CreateHardLinkFuncType): New type.
16217         (CreateHardLinkFunc, initialized): New variables.
16218         (initialize): New function.
16219         (link): Invoke CreateHardLink indirectly through the function pointer.
16220
16221 2009-01-20  Bruno Haible  <bruno@clisp.org>
16222
16223         Fix compilation failure on mingw.
16224         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16225
16226 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16227
16228         * doc/c-strtod.texi: Mention a couple of restrictions.
16229
16230 2009-01-20  Jim Meyering  <meyering@redhat.com>
16231
16232         gettimeofday: move more declarations out of functions
16233         * lib/gettimeofday.c: Move extern declarations of tzset and
16234         gmtime out of containing functions.  Prompted by Bruno Haible.
16235
16236 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16237
16238         regex: do not depend on obsolete modules.
16239         * modules/regex: Remove memcmp and memmove.
16240
16241 2009-01-19  Bruno Haible  <bruno@clisp.org>
16242
16243         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16244         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16245         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16246         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16247         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16248
16249 2009-01-19  Bruno Haible  <bruno@clisp.org>
16250
16251         * tests/test-link.c: Include <errno.h>.
16252         (main): Exit with code 77 when a hard link cannot be created due to
16253         the file system.
16254         * tests/test-link.sh: Skip test when a hard link cannot be created due
16255         to the file system.
16256         Suggested by Eric Blake.
16257
16258 2009-01-19  Martin Lambers  <marlam@marlam.de>
16259
16260         * modules/link-tests: New file.
16261         * tests/test-link.sh: New file.
16262         * tests/test-link.c: New file.
16263
16264 2009-01-19  Eric Blake  <ebb9@byu.net>
16265
16266         doc: mention another function added in cygwin 1.7.0
16267         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16268         Another new function in cygwin 1.7.
16269
16270 2009-01-19  Bruno Haible  <bruno@clisp.org>
16271
16272         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16273         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16274         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16275         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16276         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16277         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16278         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16279         * m4/md4.m4 (gl_MD4): Likewise.
16280         * m4/md5.m4 (gl_MD5): Likewise.
16281         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16282         * m4/sha1.m4 (gl_SHA1): Likewise.
16283         * m4/sha256.m4 (gl_SHA256): Likewise.
16284         * m4/sha512.m4 (gl_SHA512): Likewise.
16285
16286 2009-01-19  Bruno Haible  <bruno@clisp.org>
16287
16288         * modules/uniname/uniname-tests (Depends-on): Add progname.
16289         * tests/uniname/test-uninames.c: Include progname.h.
16290         (main): Call set_program_name.
16291
16292         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16293         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16294         (main): Call set_program_name.
16295
16296         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16297         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16298         (main): Call set_program_name.
16299
16300         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16301         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16302         (main): Call set_program_name.
16303
16304         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16305         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16306         (main): Call set_program_name.
16307
16308         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16309         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16310         (main): Call set_program_name.
16311
16312         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16313         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16314         (main): Call set_program_name.
16315
16316         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16317         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16318         (main): Call set_program_name.
16319
16320         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16321         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16322         (main): Call set_program_name.
16323
16324 2009-01-19  Eric Blake  <ebb9@byu.net>
16325
16326         test-unistd: test previous patch
16327         * tests/test-unistd.c: Test *_FILENO macros.
16328
16329         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16330         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16331         Guarantee a definition.
16332         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16333         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16334         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16335         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16336         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16337         Likewise.
16338         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16339         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16340         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16341         Likewise.
16342         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16343         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16344         (STDERR_FILENO): Likewise.
16345         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16346         (STDERR_FILENO): Likewise.
16347         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16348         (STDERR_FILENO): Likewise.
16349         Reported by Elbert Pol.
16350
16351 2009-01-19  Eric Blake  <ebb9@byu.net>
16352
16353         doc: mention more functions added in cygwin 1.7.0
16354         * doc/posix-functions/abort.texi (abort): Update wording related
16355         to cygwin.
16356         * doc/posix-functions/daylight.texi (daylight): Likewise.
16357         * doc/posix-functions/optarg.texi (optarg): Likewise.
16358         * doc/posix-functions/optarg.texi (opterr): Likewise.
16359         * doc/posix-functions/optarg.texi (optind): Likewise.
16360         * doc/posix-functions/optarg.texi (optopt): Likewise.
16361         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16362         worked in 1.5.x, and was withdrawn in 1.7.
16363         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16364         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16365         cygwin versions.
16366         * doc/posix-functions/perror.texi (perror): Likewise.
16367         * doc/posix-functions/printf.texi (printf): Likewise.
16368         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16369         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16370         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16371         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16372         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16373         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16374         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16375         Likewise.
16376         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16377         Likewise.
16378         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16379         this function.
16380         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16381         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16382         Likewise.
16383         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16384         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16385         * doc/posix-functions/confstr.texi (confstr): Likewise.
16386         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16387         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16388         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16389         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16390         * doc/posix-functions/fputws.texi (fputws): Likewise.
16391         * doc/posix-functions/fwide.texi (fwide): Likewise.
16392         * doc/posix-functions/getwc.texi (getwc): Likewise.
16393         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16394         * doc/posix-functions/putwc.texi (putwc): Likewise.
16395         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16396         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16397         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16398         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16399         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16400         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16401         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16402         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16403         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16404         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16405         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16406
16407 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16408
16409         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16410         * lib/ioctl.c: Include <sys/ioctl.h>.
16411
16412 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16413
16414         * modules/getdate-tests (Depends-on): Add progname.
16415         * tests/test-getdate.c: Use progname module, to avoid link errors
16416         on non-glibc systems.
16417
16418 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16419
16420         * modules/filenamecat-tests (Depends-on): Add progname.
16421         * modules/fstrcmp-tests (Depends-on): Likewise.
16422
16423         * tests/test-filenamecat.c: Use progname module, to avoid link
16424         errors on non-glibc systems.
16425         * tests/test-fstrcmp.c: Likewise.
16426
16427 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16428
16429         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16430         * lib/gettimeofday.c: Move extern declaration out of function.
16431
16432 2009-01-18  Bruno Haible  <bruno@clisp.org>
16433
16434         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16435         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16436         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16437
16438 2009-01-18  Bruno Haible  <bruno@clisp.org>
16439
16440         * lib/strftime.c (MEMPCPY): Remove unused macro.
16441         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16442
16443 2009-01-18  Martin Lambers  <marlam@marlam.de>
16444
16445         New module 'link'.
16446         * lib/unistd.in.h (link): New declaration.
16447         * lib/link.c: New file.
16448         * m4/link.m4: New file.
16449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16450         HAVE_LINK.
16451         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16452         * modules/link: New file.
16453         * doc/posix-functions/link.texi: Mention the new module.
16454
16455 2009-01-18  Bruno Haible  <bruno@clisp.org>
16456
16457         * tests/test-avltree_list.c (main): Call set_program_name.
16458         * tests/test-avltree_oset.c (main): Likewise.
16459         * tests/test-obstack-printf.c: Include progname.h.
16460         (main): Call set_program_name.
16461         * tests/test-quotearg.c: Include progname.h.
16462         (main): Call set_program_name.
16463         * tests/test-xmemdup0.c: Include progname.h.
16464         (main): Call set_program_name.
16465
16466 2009-01-18  Bruno Haible  <bruno@clisp.org>
16467
16468         New module 'alphasort'.
16469         * lib/dirent.in.h (alphasort): New declaration.
16470         * lib/alphasort.c: New file, from glibc with modifications.
16471         * m4/alphasort.m4: New file.
16472         * modules/alphasort: New file.
16473         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16474         HAVE_ALPHASORT.
16475         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16476         HAVE_ALPHASORT.
16477         * doc/posix-functions/alphasort.texi: Mention the new module and the
16478         portability problems.
16479
16480 2009-01-18  Bruno Haible  <bruno@clisp.org>
16481
16482         New module 'scandir'.
16483         * lib/dirent.in.h (scandir): New declaration.
16484         * lib/scandir.c: New file, from glibc with modifications.
16485         * m4/scandir.m4: New file.
16486         * modules/scandir: New file.
16487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16488         HAVE_SCANDIR.
16489         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16490         HAVE_SCANDIR.
16491         * doc/posix-functions/scandir.texi: Mention the new module and the
16492         portability problems.
16493
16494 2009-01-17  Bruno Haible  <bruno@clisp.org>
16495
16496         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16497         Update documentation.
16498         (func_remove_suffix): Escape all dots in the suffix. Update
16499         documentation.
16500         (func_filter_filelist): Update documentation.
16501         Reported by Ralf Wildenhues.
16502
16503 2009-01-17  Bruno Haible  <bruno@clisp.org>
16504
16505         * modules/dprintf-posix-tests: New file.
16506         * tests/test-dprintf-posix.sh: New file.
16507         * tests/test-dprintf-posix.c: New file.
16508
16509         New modules 'dprintf', 'dprintf-posix'.
16510         * lib/stdio.in.h (dprintf): New declaration.
16511         * lib/dprintf.c: New file.
16512         * m4/dprintf.m4: New file.
16513         * m4/dprintf-posix.m4: New file.
16514         * modules/dprintf: New file.
16515         * modules/dprintf-posix: New file.
16516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16517         HAVE_DPRINTF, REPLACE_DPRINTF.
16518         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16519         HAVE_DPRINTF, REPLACE_DPRINTF.
16520         * doc/posix-functions/dprintf.texi: Mention the new modules.
16521
16522 2009-01-17  Bruno Haible  <bruno@clisp.org>
16523
16524         * modules/vdprintf-posix-tests: New file.
16525         * tests/test-vdprintf-posix.sh: New file.
16526         * tests/test-vdprintf-posix.c: New file.
16527
16528         New modules 'vdprintf', 'vdprintf-posix'.
16529         * lib/stdio.in.h (vdprintf): New declaration.
16530         * lib/vdprintf.c: New file.
16531         * m4/vdprintf.m4: New file.
16532         * m4/vdprintf-posix.m4: New file.
16533         * modules/vdprintf: New file.
16534         * modules/vdprintf-posix: New file.
16535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16536         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16537         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16538         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16539         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16540
16541 2009-01-17  Bruno Haible  <bruno@clisp.org>
16542
16543         Fix replacement of fopen on mingw.
16544         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16545         mingw.
16546
16547 2009-01-17  Bruno Haible  <bruno@clisp.org>
16548
16549         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16550         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16551
16552 2009-01-17  Bruno Haible  <bruno@clisp.org>
16553
16554         Avoid test-fflush2.sh failure on mingw.
16555         * tests/test-fflush2.c: Include binary-io.h.
16556         (main): Put standard input into binary mode.
16557         * modules/fflush-tests (Depends-on): Add binary-io.
16558
16559 2009-01-17  Bruno Haible  <bruno@clisp.org>
16560
16561         * lib/wchar.in.h: In another particular situation, include only the
16562         system's <wchar.h> file.
16563         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16564         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16565         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16566
16567 2009-01-17  Bruno Haible  <bruno@clisp.org>
16568
16569         Support for stripping executables in --enable-relocatable.
16570         * build-aux/install-reloc: Expect one more argument, or an environment
16571         variable RELOC_STRIP_PROG. If set, strip the destination program and
16572         its wrapper.
16573         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16574         RELOC_STRIP_PROG.
16575         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16576         to set RELOCATABLE_STRIP.
16577         * NEWS: Mention the new Makefile requirement.
16578
16579 2009-01-17  Bruno Haible  <bruno@clisp.org>
16580
16581         * build-aux/install-reloc: Remove debugging information left over by
16582         C compiler on MacOS X.
16583
16584 2009-01-17  Bruno Haible  <bruno@clisp.org>
16585
16586         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16587         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16588         _NSGetExecutablePath.
16589
16590 2009-01-16  Jim Meyering  <meyering@redhat.com>
16591
16592         strerror: avoid warnings about discarding "const"
16593         * lib/strerror.c (rpl_strerror): Instead of returning a const
16594         string from each and every "case", use a variable, and add a single
16595         cast after the switch.
16596
16597 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16598
16599         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16600
16601 2009-01-16  Bruno Haible  <bruno@clisp.org>
16602
16603         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16604         array initializer syntax that also works in C++ mode.
16605         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16606
16607 2009-01-16  Jim Meyering  <meyering@redhat.com>
16608
16609         poll: suppress a warning
16610         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16611         to ignore "...unsigned expression < 0 is always false" warnings.
16612
16613 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16614
16615         poll: remove declarations of unused variables
16616         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16617         sockbuf and optlen.
16618
16619 2009-01-15  Bruno Haible  <bruno@clisp.org>
16620
16621         Make fflush-after-ungetc POSIX compliant on BSD systems.
16622         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16623         (clear_ungetc_buffer): Implement also for other systems.
16624         (rpl_fflush): On glibc systems, invoke
16625         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16626         clear_ungetc_buffer after fetching the stream's position, not before.
16627
16628 2009-01-15  Bruno Haible  <bruno@clisp.org>
16629
16630         Make fflush-after-ungetc POSIX compliant on glibc systems.
16631         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16632         after ungetc.
16633         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16634         (rpl_fflush): On glibc systems, simply call the system's fflush
16635         function after clearing the ungetc buffer.
16636         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16637         Instead, lseek only to the end of file, then use the system's fseeko
16638         for the rest. On glibc systems, reset the EOF indicator bit.
16639
16640 2009-01-15  Jim Meyering  <meyering@redhat.com>
16641
16642         openmp.m4: revert quote-adding change, for portability to older autoconf
16643         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16644         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16645         Simon Josefsson noticed the problem when using autoconf-2.61.
16646
16647 2009-01-15  Bruno Haible  <bruno@clisp.org>
16648
16649         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16650         * tests/test-fflush2.c (ASSERT): Always fail.
16651         (main): Add two tests for fflush() after ungetc(), taking into account
16652         the Austin Group's clarification.
16653         Suggested by Eric Blake.
16654
16655 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16656
16657         mktime.m4: remove K&R-style function prototypes
16658         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16659         for the Sun C++ compiler.
16660
16661 2009-01-14  Bruno Haible  <bruno@clisp.org>
16662
16663         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16664         while including <wchar.h>.
16665         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16666         the system's <wchar.h> file.
16667         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16668
16669 2009-01-14  Bruno Haible  <bruno@clisp.org>
16670
16671         * m4/csharp.m4: Don't mention gettext on the serial number line.
16672         * m4/csharpexec.m4: Likewise.
16673         * m4/eaccess.m4: Likewise.
16674         * m4/javaexec.m4: Likewise.
16675         * m4/sig_atomic_t.m4: Likewise.
16676         * m4/tmpdir.m4: Likewise.
16677         * m4/intldir.m4: Bump gettext version.
16678         * m4/lib-ld.m4: Likewise.
16679
16680 2009-01-14  Bruno Haible  <bruno@clisp.org>
16681
16682         * lib/progname.c (set_program_name): Add more comments.
16683         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16684
16685 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16686
16687         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16688         were sys/stat.h does not define it.
16689
16690 2009-01-14  Jim Meyering  <meyering@redhat.com>
16691
16692         many *.m4 files: improve m4 quoting
16693         99% of this change was performed by running the following commands:
16694         git ls-files | grep '\.m4$' | xargs perl -pi \
16695           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16696           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16697           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16698           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16699         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16700         The remainder were to add Copyright dates, increment serial numbers,
16701         undo some changes in comments, exclude m4/intl.m4, and add quotes
16702         around the "1" in ",1" where the unusual spacing prohibited the
16703         above regexps from doing the job.  For more details, see
16704         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16705         * m4/acl.m4: Modified.
16706         * m4/afs.m4: Likewise.
16707         * m4/alloca.m4: Likewise.
16708         * m4/argp.m4: Likewise.
16709         * m4/argz.m4: Likewise.
16710         * m4/atexit.m4: Likewise.
16711         * m4/bison-i18n.m4: Likewise.
16712         * m4/bison.m4: Likewise.
16713         * m4/byteswap.m4: Likewise.
16714         * m4/c-stack.m4: Likewise.
16715         * m4/c-strtod.m4: Likewise.
16716         * m4/calloc.m4: Likewise.
16717         * m4/canonicalize-lgpl.m4: Likewise.
16718         * m4/chown.m4: Likewise.
16719         * m4/clock_time.m4: Likewise.
16720         * m4/codeset.m4: Likewise.
16721         * m4/copy-file.m4: Likewise.
16722         * m4/csharp.m4: Likewise.
16723         * m4/csharpcomp.m4: Likewise.
16724         * m4/csharpexec.m4: Likewise.
16725         * m4/d-ino.m4: Likewise.
16726         * m4/d-type.m4: Likewise.
16727         * m4/dirfd.m4: Likewise.
16728         * m4/double-slash-root.m4: Likewise.
16729         * m4/eaccess.m4: Likewise.
16730         * m4/eealloc.m4: Likewise.
16731         * m4/environ.m4: Likewise.
16732         * m4/errno_h.m4: Likewise.
16733         * m4/euidaccess.m4: Likewise.
16734         * m4/execute.m4: Likewise.
16735         * m4/fatal-signal.m4: Likewise.
16736         * m4/fchdir.m4: Likewise.
16737         * m4/fcntl_h.m4: Likewise.
16738         * m4/fileblocks.m4: Likewise.
16739         * m4/filenamecat.m4: Likewise.
16740         * m4/findprog.m4: Likewise.
16741         * m4/flexmember.m4: Likewise.
16742         * m4/fnmatch.m4: Likewise.
16743         * m4/fopen.m4: Likewise.
16744         * m4/fpending.m4: Likewise.
16745         * m4/fprintf-posix.m4: Likewise.
16746         * m4/free.m4: Likewise.
16747         * m4/frexp.m4: Likewise.
16748         * m4/frexpl.m4: Likewise.
16749         * m4/fsusage.m4: Likewise.
16750         * m4/ftruncate.m4: Likewise.
16751         * m4/gc-camellia.m4: Likewise.
16752         * m4/gc-random.m4: Likewise.
16753         * m4/gc.m4: Likewise.
16754         * m4/getaddrinfo.m4: Likewise.
16755         * m4/getcwd-abort-bug.m4: Likewise.
16756         * m4/getcwd-path-max.m4: Likewise.
16757         * m4/getdate.m4: Likewise.
16758         * m4/getdomainname.m4: Likewise.
16759         * m4/getgroups.m4: Likewise.
16760         * m4/gethostname.m4: Likewise.
16761         * m4/gethrxtime.m4: Likewise.
16762         * m4/getline.m4: Likewise.
16763         * m4/getloadavg.m4: Likewise.
16764         * m4/getndelim2.m4: Likewise.
16765         * m4/getpass.m4: Likewise.
16766         * m4/gettext.m4: Likewise.
16767         * m4/gettime.m4: Likewise.
16768         * m4/gettimeofday.m4: Likewise.
16769         * m4/gnulib-common.m4: Likewise.
16770         * m4/group-member.m4: Likewise.
16771         * m4/host-os.m4: Likewise.
16772         * m4/iconv.m4: Likewise.
16773         * m4/iconv_open.m4: Likewise.
16774         * m4/inet_ntop.m4: Likewise.
16775         * m4/inet_pton.m4: Likewise.
16776         * m4/inline.m4: Likewise.
16777         * m4/intldir.m4: Likewise.
16778         * m4/intlmacosx.m4: Likewise.
16779         * m4/intmax.m4: Likewise.
16780         * m4/intmax_t.m4: Likewise.
16781         * m4/inttypes.m4: Likewise.
16782         * m4/inttypes_h.m4: Likewise.
16783         * m4/inttypes-pri.m4: Likewise.
16784         * m4/isapipe.m4: Likewise.
16785         * m4/isnand.m4: Likewise.
16786         * m4/isnanf.m4: Likewise.
16787         * m4/isnanl.m4: Likewise.
16788         * m4/javacomp.m4: Likewise.
16789         * m4/javaexec.m4: Likewise.
16790         * m4/jm-winsz1.m4: Likewise.
16791         * m4/jm-winsz2.m4: Likewise.
16792         * m4/lchown.m4: Likewise.
16793         * m4/lcmessage.m4: Likewise.
16794         * m4/ldexpl.m4: Likewise.
16795         * m4/lib-ld.m4: Likewise.
16796         * m4/lib-link.m4: Likewise.
16797         * m4/libsigsegv.m4: Likewise.
16798         * m4/link-follow.m4: Likewise.
16799         * m4/localcharset.m4: Likewise.
16800         * m4/locale-fr.m4: Likewise.
16801         * m4/locale-ja.m4: Likewise.
16802         * m4/locale-tr.m4: Likewise.
16803         * m4/locale-zh.m4: Likewise.
16804         * m4/lock.m4: Likewise.
16805         * m4/longlong.m4: Likewise.
16806         * m4/ls-mntd-fs.m4: Likewise.
16807         * m4/lstat.m4: Likewise.
16808         * m4/malloc.m4: Likewise.
16809         * m4/mathl.m4: Likewise.
16810         * m4/mbrtowc.m4: Likewise.
16811         * m4/mbstate_t.m4: Likewise.
16812         * m4/mbswidth.m4: Likewise.
16813         * m4/memchr.m4: Likewise.
16814         * m4/memcmp.m4: Likewise.
16815         * m4/memcpy.m4: Likewise.
16816         * m4/memmem.m4: Likewise.
16817         * m4/memmove.m4: Likewise.
16818         * m4/mempcpy.m4: Likewise.
16819         * m4/memrchr.m4: Likewise.
16820         * m4/memset.m4: Likewise.
16821         * m4/minmax.m4: Likewise.
16822         * m4/mkdir-slash.m4: Likewise.
16823         * m4/mkdtemp.m4: Likewise.
16824         * m4/mktime.m4: Likewise.
16825         * m4/mmap-anon.m4: Likewise.
16826         * m4/mountlist.m4: Likewise.
16827         * m4/nanosleep.m4: Likewise.
16828         * m4/nls.m4: Likewise.
16829         * m4/nocrash.m4: Likewise.
16830         * m4/open.m4: Likewise.
16831         * m4/openat.m4: Likewise.
16832         * m4/openmp.m4: Likewise.
16833         * m4/pathmax.m4: Likewise.
16834         * m4/perl.m4: Likewise.
16835         * m4/physmem.m4: Likewise.
16836         * m4/pipe.m4: Likewise.
16837         * m4/po.m4: Likewise.
16838         * m4/poll.m4: Likewise.
16839         * m4/posixtm.m4: Likewise.
16840         * m4/posixver.m4: Likewise.
16841         * m4/printf-frexp.m4: Likewise.
16842         * m4/printf-frexpl.m4: Likewise.
16843         * m4/printf-posix.m4: Likewise.
16844         * m4/printf-posix-rpl.m4: Likewise.
16845         * m4/printf.m4: Likewise.
16846         * m4/progtest.m4: Likewise.
16847         * m4/putenv.m4: Likewise.
16848         * m4/readline.m4: Likewise.
16849         * m4/readlink.m4: Likewise.
16850         * m4/readutmp.m4: Likewise.
16851         * m4/realloc.m4: Likewise.
16852         * m4/regex.m4: Likewise.
16853         * m4/relocatable.m4: Likewise.
16854         * m4/relocatable-lib.m4: Likewise.
16855         * m4/rename-dest-slash.m4: Likewise.
16856         * m4/rename.m4: Likewise.
16857         * m4/rmdir-errno.m4: Likewise.
16858         * m4/rmdir.m4: Likewise.
16859         * m4/roundf.m4: Likewise.
16860         * m4/roundl.m4: Likewise.
16861         * m4/rpmatch.m4: Likewise.
16862         * m4/save-cwd.m4: Likewise.
16863         * m4/selinux-selinux-h.m4: Likewise.
16864         * m4/setenv.m4: Likewise.
16865         * m4/settime.m4: Likewise.
16866         * m4/sig2str.m4: Likewise.
16867         * m4/sig_atomic_t.m4: Likewise.
16868         * m4/signalblocking.m4: Likewise.
16869         * m4/signbit.m4: Likewise.
16870         * m4/sigpipe.m4: Likewise.
16871         * m4/sockets.m4: Likewise.
16872         * m4/sockpfaf.m4: Likewise.
16873         * m4/st_dm_mode.m4: Likewise.
16874         * m4/stat-time.m4: Likewise.
16875         * m4/stdbool.m4: Likewise.
16876         * m4/stdint.m4: Likewise.
16877         * m4/stdint_h.m4: Likewise.
16878         * m4/stpcpy.m4: Likewise.
16879         * m4/stpncpy.m4: Likewise.
16880         * m4/strcase.m4: Likewise.
16881         * m4/strchrnul.m4: Likewise.
16882         * m4/strcspn.m4: Likewise.
16883         * m4/strdup.m4: Likewise.
16884         * m4/strftime.m4: Likewise.
16885         * m4/strndup.m4: Likewise.
16886         * m4/strnlen.m4: Likewise.
16887         * m4/strpbrk.m4: Likewise.
16888         * m4/strptime.m4: Likewise.
16889         * m4/strsep.m4: Likewise.
16890         * m4/strtod.m4: Likewise.
16891         * m4/strtoimax.m4: Likewise.
16892         * m4/strtok_r.m4: Likewise.
16893         * m4/strtol.m4: Likewise.
16894         * m4/strtoll.m4: Likewise.
16895         * m4/strtoul.m4: Likewise.
16896         * m4/strtoull.m4: Likewise.
16897         * m4/strtoumax.m4: Likewise.
16898         * m4/strverscmp.m4: Likewise.
16899         * m4/threadlib.m4: Likewise.
16900         * m4/timegm.m4: Likewise.
16901         * m4/tm_gmtoff.m4: Likewise.
16902         * m4/tmpdir.m4: Likewise.
16903         * m4/tmpfile.m4: Likewise.
16904         * m4/tzset.m4: Likewise.
16905         * m4/uintmax_t.m4: Likewise.
16906         * m4/unlinkdir.m4: Likewise.
16907         * m4/unlocked-io.m4: Likewise.
16908         * m4/uptime.m4: Likewise.
16909         * m4/userspec.m4: Likewise.
16910         * m4/utimbuf.m4: Likewise.
16911         * m4/utime.m4: Likewise.
16912         * m4/utimes-null.m4: Likewise.
16913         * m4/utimes.m4: Likewise.
16914         * m4/vararrays.m4: Likewise.
16915         * m4/vasnprintf.m4: Likewise.
16916         * m4/vfprintf-posix.m4: Likewise.
16917         * m4/vprintf-posix.m4: Likewise.
16918         * m4/wait-process.m4: Likewise.
16919         * m4/wchar_t.m4: Likewise.
16920         * m4/wint_t.m4: Likewise.
16921         * m4/write-any-file.m4: Likewise.
16922         * m4/yield.m4: Likewise.
16923
16924 2009-01-13  Bruno Haible  <bruno@clisp.org>
16925
16926         Avoid test-copy-file.sh failures when ACL support insufficient.
16927         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16928         TESTS_ENVIRONMENT.
16929         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16930         Reported by Jim Meyering.
16931
16932 2009-01-13  Bruno Haible  <bruno@clisp.org>
16933
16934         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16935         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16936         * modules/unistdio/u8-printf-parse (Files): Likewise.
16937         * modules/unistdio/u32-printf-parse (Files): Likewise.
16938         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16939
16940 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16941
16942         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16943         and m4/inttypes_h.m4 too.
16944
16945 2009-01-12  Eric Blake  <ebb9@byu.net>
16946
16947         tests: IRIX 6.2 cc can't compile -0.0 into .data
16948         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16949         rather than at compile-time.
16950         * tests/test-floorl.c (minus_zero): Likewise.
16951         * tests/test-frexpl.c (minus_zero): Likewise.
16952         * tests/test-isnan.c (minus_zerol): Likewise.
16953         * tests/test-isnanl.h (minus_zero): Likewise.
16954         * tests/test-ldexpl.c (minus_zero): Likewise.
16955         * tests/test-roundl.c (minus_zero): Likewise.
16956         * tests/test-signbit.c (minus_zerol): Likewise.
16957         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16958         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16959         * tests/test-truncl.c (minus_zero): Likewise.
16960         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16961         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16962         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16963
16964 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16965
16966         regex: fix glibc bug 9697
16967         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16968         handling.
16969
16970 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16971
16972         regex: fix glibc bug 697
16973         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16974         being NULL also if there are no backreferences.
16975
16976 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16977
16978         regex: merge glibc changes
16979         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16980         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16981         re_string_skip_chars, re_string_reconstruct): Likewise.
16982         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16983
16984 2009-01-07  Jim Meyering  <meyering@redhat.com>
16985
16986         poll: filter through cppi
16987         * lib/poll.c: Indent cpp directives to reflect nesting.
16988
16989 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16990
16991         poll: don't return uninitialized
16992         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16993
16994 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16995
16996         avoid compile failure on AIX 6.1
16997         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16998         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16999
17000 2009-01-04  Jim Meyering  <meyering@redhat.com>
17001
17002         remove duplicate inclusion of <stdio.h>
17003         * tests/test-fprintf-posix.c: Likewise.
17004         * tests/test-printf-posix.c: Likewise.
17005         * tests/test-snprintf-posix.c: Likewise.
17006         * tests/test-sprintf-posix.c: Likewise.
17007         * tests/test-vasprintf-posix.c: Likewise.
17008         * tests/test-vfprintf-posix.c: Likewise.
17009         * tests/test-vprintf-posix.c: Likewise.
17010         * tests/test-vsnprintf-posix.c: Likewise.
17011         * tests/test-vsprintf-posix.c: Likewise.
17012
17013 2009-01-03  Jim Meyering  <meyering@redhat.com>
17014
17015         gnulib-tool: fix sed-based filtering
17016         * gnulib-tool (func_filter_filelist): Remove extra backslash
17017         in sed_fff_filter definition.
17018
17019 2009-01-02  Jim Meyering  <meyering@redhat.com>
17020
17021         strftime: avoid compilation failure on Solaris 2.6
17022         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17023         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17024         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17025         be available.  Reported by Tom G. Christensen.  Details in
17026         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17027
17028 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17029             Bruno Haible  <bruno@clisp.org>
17030
17031         Speed up gnulib-tool by doing more string processing through shell
17032         built-ins.
17033         * gnulib-tool (fast_func_append): New variable.
17034         (func_remove_prefix, func_remove_suffix): New functions.
17035         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17036         (func_filter_filelist): New function.
17037         (func_get_dependencies): Use func_remove_suffix instead of sed.
17038         (func_get_automake_snippet): Use func_filter_filelist instead of a
17039         subshell and sed invocation.
17040
17041 2009-01-01  Bruno Haible  <bruno@clisp.org>
17042
17043         Fix a security bug.
17044         * gnulib-tool (func_import, import, update): Don't allow the characters
17045         '"', '$', '`', '\' in macro arguments that become part of commands that
17046         are evaluated.
17047
17048 2009-01-01  Bruno Haible  <bruno@clisp.org>
17049
17050         * gnulib-tool (func_reset_sigpipe): Add more comments.
17051
17052 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17053
17054         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17055         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17056         already know the answer.
17057
17058 2009-01-01  Jim Meyering  <meyering@redhat.com>
17059
17060         * lib/version-etc.c (version_etc_va): Update copyright year.
17061
17062 2008-12-30  Bruno Haible  <bruno@clisp.org>
17063
17064         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17065         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17066         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17067
17068 2008-12-29  Eric Blake  <ebb9@byu.net>
17069
17070         multiarch: avoid autoconf AC_REQUIRE bug
17071         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17072         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17073         2.63 and older.
17074         Reported by Bruno Haible, and analyzed in
17075         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17076
17077 2008-12-29  Bruno Haible  <bruno@clisp.org>
17078
17079         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17080         files in subdirectories correctly.
17081         Reported by Ralf Wildenhues.
17082
17083 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17084
17085         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17086         rather than 'join FILE -', for Solaris join.
17087
17088 2008-12-29  Bruno Haible  <bruno@clisp.org>
17089
17090         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17091         quoting.
17092         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17093         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17094         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17095         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17096         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17097         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17098         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17099         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17100         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17101         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17102         * m4/nls.m4 (AM_NLS): Likewise.
17103         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17104         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17105         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17106         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17107         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17108         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17109         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17110         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17111         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17112         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17113         * m4/xsize.m4 (gl_XSIZE): Likewise.
17114         Suggested by Jim Meyering.
17115
17116 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17117
17118         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17119         * lib/parse-duration.c: use a switch instead of cascading if's.
17120
17121 2008-12-29  Eric Blake  <ebb9@byu.net>
17122
17123         wchar.h: supply WEOF on Irix 5.3
17124         * lib/wchar.in.h (wint_t): Also supply WEOF.
17125         * lib/wctype.in.h (wint_t): Likewise.
17126         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17127         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17128         Reported by Tom G. Christensen.
17129
17130 2008-12-26  Bruno Haible  <bruno@clisp.org>
17131
17132         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17133         i486, i586, i686.
17134
17135 2008-12-26  Bruno Haible  <bruno@clisp.org>
17136
17137         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17138
17139 2008-12-26  Bruno Haible  <bruno@clisp.org>
17140
17141         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17142         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17143         not __STDC_CONSTANT_MACROS.
17144         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17145
17146 2008-12-25  Bruno Haible  <bruno@clisp.org>
17147
17148         Add support for universal builds to vasnprintf.
17149         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17150         universal builds, guess no.
17151         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17152         * modules/vasprintf-posix (Depends-on): Likewise.
17153         * modules/fprintf-posix (Depends-on): Likewise.
17154         * modules/vfprintf-posix (Depends-on): Likewise.
17155         * modules/snprintf-posix (Depends-on): Likewise.
17156         * modules/vsnprintf-posix (Depends-on): Likewise.
17157         * modules/sprintf-posix (Depends-on): Likewise.
17158         * modules/vsprintf-posix (Depends-on): Likewise.
17159         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17160         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17161         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17162         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17163         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17164         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17165         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17166
17167         Add support for universal builds to <inttypes.h>.
17168         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17169         _SCNu64_PREFIX): In Apple
17170         universal builds, define directly, using _LP64.
17171         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17172         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17173         * modules/inttypes (Depends-on): Add multiarch.
17174         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17175
17176         Add support for universal builds to <stdint.h>.
17177         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17178         universal builds, define directly, using _LP64.
17179         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17180         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17181         and size_t.
17182         * modules/stdint (Depends-on): Add multiarch.
17183         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17184
17185         New module 'multiarch'.
17186         * modules/multiarch: New file.
17187         * m4/multiarch.m4: New file.
17188
17189 2008-12-25  Bruno Haible  <bruno@clisp.org>
17190
17191         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17192
17193 2008-12-25  Bruno Haible  <bruno@clisp.org>
17194
17195         * modules/btowc (License): Relicense under LGPLv2+.
17196         * modules/mbsinit (License): Likewise.
17197         * modules/mbrtowc (License): Likewise.
17198         * modules/wcrtomb (License): Likewise.
17199         * modules/streq (License): Likewise.
17200         Reported by David Lutterkort <lutter@redhat.com>.
17201
17202 2008-12-23  Bruno Haible  <bruno@clisp.org>
17203
17204         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17205
17206 2008-12-23  Bruno Haible  <bruno@clisp.org>
17207
17208         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17209         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17210         GETADDRINFO_LIB, not in LIBS.
17211         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17212         * modules/canon-host (Link): Likewise.
17213         * NEWS: Mention the change.
17214         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17215         GETADDRINFO_LIB.
17216
17217 2008-12-22  Bruno Haible  <bruno@clisp.org>
17218
17219         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17220         * doc/posix-functions/iswalpha_l.texi: Likewise.
17221         * doc/posix-functions/iswblank_l.texi: Likewise.
17222         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17223         * doc/posix-functions/iswctype_l.texi: Likewise.
17224         * doc/posix-functions/iswdigit_l.texi: Likewise.
17225         * doc/posix-functions/iswgraph_l.texi: Likewise.
17226         * doc/posix-functions/iswlower_l.texi: Likewise.
17227         * doc/posix-functions/iswprint_l.texi: Likewise.
17228         * doc/posix-functions/iswpunct_l.texi: Likewise.
17229         * doc/posix-functions/iswspace_l.texi: Likewise.
17230         * doc/posix-functions/iswupper_l.texi: Likewise.
17231         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17232         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17233         * doc/posix-functions/open_wmemstream.texi: Likewise.
17234         * doc/posix-functions/swscanf.texi: Likewise.
17235         * doc/posix-functions/towctrans_l.texi: Likewise.
17236         * doc/posix-functions/towlower.texi: Likewise.
17237         * doc/posix-functions/towlower_l.texi: Likewise.
17238         * doc/posix-functions/towupper.texi: Likewise.
17239         * doc/posix-functions/towupper_l.texi: Likewise.
17240         * doc/posix-functions/vfwprintf.texi: Likewise.
17241         * doc/posix-functions/vfwscanf.texi: Likewise.
17242         * doc/posix-functions/vswscanf.texi: Likewise.
17243         * doc/posix-functions/vwprintf.texi: Likewise.
17244         * doc/posix-functions/vwscanf.texi: Likewise.
17245         * doc/posix-functions/wcpcpy.texi: Likewise.
17246         * doc/posix-functions/wcpncpy.texi: Likewise.
17247         * doc/posix-functions/wcscasecmp.texi: Likewise.
17248         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17249         * doc/posix-functions/wcscoll_l.texi: Likewise.
17250         * doc/posix-functions/wcsdup.texi: Likewise.
17251         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17252         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17253         * doc/posix-functions/wcsnlen.texi: Likewise.
17254         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17255         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17256         * doc/posix-functions/wctrans_l.texi: Likewise.
17257         * doc/posix-functions/wctype_l.texi: Likewise.
17258         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17259         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17260         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17261         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17262         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17263         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17264         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17265         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17266         * doc/glibc-functions/wcschrnul.texi: Likewise.
17267         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17268         * doc/glibc-functions/wcstod_l.texi: Likewise.
17269         * doc/glibc-functions/wcstof_l.texi: Likewise.
17270         * doc/glibc-functions/wcstol_l.texi: Likewise.
17271         * doc/glibc-functions/wcstold_l.texi: Likewise.
17272         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17273         * doc/glibc-functions/wcstoq.texi: Likewise.
17274         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17275         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17276         * doc/glibc-functions/wcstouq.texi: Likewise.
17277         * doc/glibc-functions/wmempcpy.texi: Likewise.
17278
17279 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17280             Eric Blake  <ebb9@byu.net>
17281             Paolo Bonzini  <bonzini@gnu.org>
17282             Bruno Haible  <bruno@clisp.org>
17283
17284         Make c-stack work on Haiku.
17285         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17286         (c_stack_action): Use SA_ONSTACK flag.
17287
17288 2008-12-22  Bruno Haible  <bruno@clisp.org>
17289
17290         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17291
17292 2008-12-22  Bruno Haible  <bruno@clisp.org>
17293
17294         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17295         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17296         being overridden.
17297         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17298         New macros.
17299         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17301         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17302         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17303
17304 2008-12-22  Bruno Haible  <bruno@clisp.org>
17305
17306         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17307         from test code.
17308
17309 2008-12-22  Eric Blake  <ebb9@byu.net>
17310
17311         Avoid gcc warnings on cygwin.
17312         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17313         Avoid unused variable.
17314         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17315         Likewise.
17316
17317 2008-12-22  Bruno Haible  <bruno@clisp.org>
17318
17319         Remove HAVE_MBRTOWC conditionals.
17320         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17321         (mbscasecmp): Assume mbrtowc function.
17322         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17323         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17324         * lib/mbschr.c: Include mbuiter.h unconditionally.
17325         (mbschr): Assume mbrtowc function.
17326         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17327         (mbscspn): Assume mbrtowc function.
17328         * lib/mbslen.c: Include mbuiter.h unconditionally.
17329         (mbslen): Assume mbrtowc function.
17330         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17331         (mbsncasecmp): Assume mbrtowc function.
17332         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17333         (mbsnlen): Assume mbrtowc function.
17334         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17335         (mbspbrk): Assume mbrtowc function.
17336         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17337         (mbspcasecmp): Assume mbrtowc function.
17338         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17339         (mbsrchr): Assume mbrtowc function.
17340         * lib/mbssep.c: Include mbuiter.h unconditionally.
17341         (mbssep): Assume mbrtowc function.
17342         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17343         (mbsspn): Assume mbrtowc function.
17344         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17345         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17346         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17347         (mbstok_r): Assume mbrtowc function.
17348         * lib/propername.c: Include mbuiter.h unconditionally.
17349         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17350         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17351         (trim2): Assume mbrtowc function.
17352         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17353         (mbsnwidth): Assume mbrtowc function.
17354         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17355         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17356         fallback definitions.
17357         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17358
17359 2008-12-22  Bruno Haible  <bruno@clisp.org>
17360
17361         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17362
17363 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17364
17365         * modules/regex: Request emulations for the mb*/wc* functions we need.
17366         * m4/regex.m4: Don't look for those functions here.
17367         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17368
17369 2008-12-22  Bruno Haible  <bruno@clisp.org>
17370
17371         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17372
17373 2008-12-21  Bruno Haible  <bruno@clisp.org>
17374
17375         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17376         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17377         (Include): Remove conditionalization.
17378         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17379         (Include): Remove conditionalization.
17380         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17381         (Include): Remove conditionalization.
17382         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17383         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17384         * NEWS: Mention the change.
17385         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17386         via Sergey Poznyakoff <gray@gnu.org.ua>.
17387
17388 2008-12-21  Bruno Haible  <bruno@clisp.org>
17389
17390         * MODULES.html.sh (Extended multibyte and wide character utilities
17391         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17392         wcrtomb, wcsrtombs.
17393         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17394         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17395         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17396         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17397
17398 2008-12-21  Bruno Haible  <bruno@clisp.org>
17399
17400         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17401
17402 2008-12-21  Bruno Haible  <bruno@clisp.org>
17403
17404         * modules/wcsnrtombs-tests: New file.
17405         * tests/test-wcsnrtombs1.sh: New file.
17406         * tests/test-wcsnrtombs2.sh: New file.
17407         * tests/test-wcsnrtombs3.sh: New file.
17408         * tests/test-wcsnrtombs4.sh: New file.
17409         * tests/test-wcsnrtombs.c: New file.
17410
17411         New module 'wcsnrtombs'.
17412         * lib/wchar.in.h (wcsnrtombs): New declaration.
17413         * lib/wcsnrtombs.c: New file.
17414         * lib/wcsrtombs-state.c: New file.
17415         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17416         (internal_state): Remove variable.
17417         * m4/wcsnrtombs.m4: New file.
17418         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17419         compilation units.
17420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17421         HAVE_WCSNRTOMBS.
17422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17423         HAVE_WCSNRTOMBS.
17424         * modules/wcsnrtombs: New file.
17425         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17426         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17427
17428 2008-12-21  Bruno Haible  <bruno@clisp.org>
17429
17430         * modules/wcsrtombs-tests: New file.
17431         * tests/test-wcsrtombs1.sh: New file.
17432         * tests/test-wcsrtombs2.sh: New file.
17433         * tests/test-wcsrtombs3.sh: New file.
17434         * tests/test-wcsrtombs4.sh: New file.
17435         * tests/test-wcsrtombs.c: New file.
17436
17437         New module 'wcsrtombs'.
17438         * lib/wchar.in.h (wcsrtombs): New declaration.
17439         * lib/wcsrtombs.c: New file.
17440         * m4/wcsrtombs.m4: New file.
17441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17442         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17444         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17445         * modules/wcsrtombs: New file.
17446         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17447         bugs.
17448
17449 2008-12-21  Bruno Haible  <bruno@clisp.org>
17450
17451         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17452         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17453         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17454         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17455         if not correct.
17456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17457         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17458         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17459         m4/locale-zh.m4, m4/codeset.m4.
17460         * doc/posix-functions/wcrtomb.texi: Document the bug.
17461
17462 2008-12-21  Bruno Haible  <bruno@clisp.org>
17463
17464         Work around a btowc() bug on IRIX 6.5.
17465         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17466         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17467         REPLACE_WTOBC if not.
17468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17469         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17470         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17471
17472 2008-12-21  Bruno Haible  <bruno@clisp.org>
17473
17474         * modules/wcrtomb-tests: New file.
17475         * tests/test-wcrtomb.sh: New file.
17476         * tests/test-wcrtomb.c: New file.
17477
17478         New module 'wcrtomb'.
17479         * lib/wchar.in.h (wcrtomb): New declaration.
17480         * lib/wcrtomb.c: New file.
17481         * m4/wcrtomb.m4: New file.
17482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17483         HAVE_WCRTOMB.
17484         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17485         HAVE_WCRTOMB.
17486         * modules/wcrtomb: New file.
17487         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17488
17489 2008-12-21  Bruno Haible  <bruno@clisp.org>
17490
17491         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17492         * modules/mbsrtowcs (Files): Likewise.
17493         * modules/wctob (Files): Likewise.
17494         * modules/c-strcase-tests (Files): Likewise.
17495         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17496         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17497         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17498         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17499         * modules/vasnprintf-posix-tests (Files): Likewise.
17500
17501 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17502
17503         gitlog-to-changelog: pass all command-line arguments to git-log
17504         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17505         it is sometimes convenient to filter the commits in various ways.
17506         gitlog-to-changelog only allows --since to specify a start date,
17507         but git-log itself supports many other filtering mechanisms.
17508         At the moment, I want to filter by branch name.  Rather than
17509         adding a --branch option to gitlog-to-changelog, it seems more
17510         flexible to simply pass all options directly to git-log and let
17511         git do the work.  Notice that this effectively makes --since a
17512         redundant option for gitlog-to-changelog, but removing it would
17513         require current usage to change since calls would then require
17514         an additional '--'.
17515
17516 2008-12-21  Bruno Haible  <bruno@clisp.org>
17517
17518         * modules/mbsnrtowcs-tests: New file.
17519         * tests/test-mbsnrtowcs1.sh: New file.
17520         * tests/test-mbsnrtowcs2.sh: New file.
17521         * tests/test-mbsnrtowcs3.sh: New file.
17522         * tests/test-mbsnrtowcs4.sh: New file.
17523         * tests/test-mbsnrtowcs.c: New file.
17524
17525         New module 'mbsnrtowcs'.
17526         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17527         * lib/mbsnrtowcs.c: New file.
17528         * lib/mbsrtowcs-state.c: New file.
17529         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17530         (internal_state): Remove variable.
17531         * m4/mbsnrtowcs.m4: New file.
17532         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17533         compilation units.
17534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17535         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17536         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17537         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17538         * modules/mbsnrtowcs: New file.
17539         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17540         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17541         portability problem.
17542
17543 2008-12-21  Bruno Haible  <bruno@clisp.org>
17544
17545         Work around mbsrtowcs bug.
17546         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17547         (gl_FUNC_MBSRTOWCS): Invoke it.
17548         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17549         m4/locale-zh.m4.
17550         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17551
17552 2008-12-21  Bruno Haible  <bruno@clisp.org>
17553
17554         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17555
17556 2008-12-21  Bruno Haible  <bruno@clisp.org>
17557
17558         Update doc for AIX.
17559         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17560         16-bit wchar_t type.
17561         * doc/posix-functions/btowc.texi: Likewise.
17562         * doc/posix-functions/fgetwc.texi: Likewise.
17563         * doc/posix-functions/fgetws.texi: Likewise.
17564         * doc/posix-functions/fputwc.texi: Likewise.
17565         * doc/posix-functions/fputws.texi: Likewise.
17566         * doc/posix-functions/fwide.texi: Likewise.
17567         * doc/posix-functions/fwprintf.texi: Likewise.
17568         * doc/posix-functions/fwscanf.texi: Likewise.
17569         * doc/posix-functions/getwchar.texi: Likewise.
17570         * doc/posix-functions/getwc.texi: Likewise.
17571         * doc/posix-functions/iswalnum.texi: Likewise.
17572         * doc/posix-functions/iswalpha.texi: Likewise.
17573         * doc/posix-functions/iswblank.texi: Likewise.
17574         * doc/posix-functions/iswcntrl.texi: Likewise.
17575         * doc/posix-functions/iswctype.texi: Likewise.
17576         * doc/posix-functions/iswdigit.texi: Likewise.
17577         * doc/posix-functions/iswgraph.texi: Likewise.
17578         * doc/posix-functions/iswlower.texi: Likewise.
17579         * doc/posix-functions/iswprint.texi: Likewise.
17580         * doc/posix-functions/iswpunct.texi: Likewise.
17581         * doc/posix-functions/iswspace.texi: Likewise.
17582         * doc/posix-functions/iswupper.texi: Likewise.
17583         * doc/posix-functions/iswxdigit.texi: Likewise.
17584         * doc/posix-functions/mbrtowc.texi: Likewise.
17585         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17586         * doc/posix-functions/mbstowcs.texi: Likewise.
17587         * doc/posix-functions/mbtowc.texi: Likewise.
17588         * doc/posix-functions/putwchar.texi: Likewise.
17589         * doc/posix-functions/putwc.texi: Likewise.
17590         * doc/posix-functions/swprintf.texi: Likewise.
17591         * doc/posix-functions/tolower.texi: Likewise.
17592         * doc/posix-functions/toupper.texi: Likewise.
17593         * doc/posix-functions/towctrans.texi: Likewise.
17594         * doc/posix-functions/ungetwc.texi: Likewise.
17595         * doc/posix-functions/vswprintf.texi: Likewise.
17596         * doc/posix-functions/wcrtomb.texi: Likewise.
17597         * doc/posix-functions/wcscat.texi: Likewise.
17598         * doc/posix-functions/wcschr.texi: Likewise.
17599         * doc/posix-functions/wcscmp.texi: Likewise.
17600         * doc/posix-functions/wcscoll.texi: Likewise.
17601         * doc/posix-functions/wcscpy.texi: Likewise.
17602         * doc/posix-functions/wcscspn.texi: Likewise.
17603         * doc/posix-functions/wcsftime.texi: Likewise.
17604         * doc/posix-functions/wcslen.texi: Likewise.
17605         * doc/posix-functions/wcsncat.texi: Likewise.
17606         * doc/posix-functions/wcsncmp.texi: Likewise.
17607         * doc/posix-functions/wcsncpy.texi: Likewise.
17608         * doc/posix-functions/wcspbrk.texi: Likewise.
17609         * doc/posix-functions/wcsrchr.texi: Likewise.
17610         * doc/posix-functions/wcsrtombs.texi: Likewise.
17611         * doc/posix-functions/wcsspn.texi: Likewise.
17612         * doc/posix-functions/wcsstr.texi: Likewise.
17613         * doc/posix-functions/wcstod.texi: Likewise.
17614         * doc/posix-functions/wcstof.texi: Likewise.
17615         * doc/posix-functions/wcstoimax.texi: Likewise.
17616         * doc/posix-functions/wcstok.texi: Likewise.
17617         * doc/posix-functions/wcstold.texi: Likewise.
17618         * doc/posix-functions/wcstoll.texi: Likewise.
17619         * doc/posix-functions/wcstol.texi: Likewise.
17620         * doc/posix-functions/wcstombs.texi: Likewise.
17621         * doc/posix-functions/wcstoull.texi: Likewise.
17622         * doc/posix-functions/wcstoul.texi: Likewise.
17623         * doc/posix-functions/wcstoumax.texi: Likewise.
17624         * doc/posix-functions/wcswidth.texi: Likewise.
17625         * doc/posix-functions/wcsxfrm.texi: Likewise.
17626         * doc/posix-functions/wctob.texi: Likewise.
17627         * doc/posix-functions/wctomb.texi: Likewise.
17628         * doc/posix-functions/wctrans.texi: Likewise.
17629         * doc/posix-functions/wctype.texi: Likewise.
17630         * doc/posix-functions/wcwidth.texi: Likewise.
17631         * doc/posix-functions/wmemchr.texi: Likewise.
17632         * doc/posix-functions/wmemcmp.texi: Likewise.
17633         * doc/posix-functions/wmemcpy.texi: Likewise.
17634         * doc/posix-functions/wmemmove.texi: Likewise.
17635         * doc/posix-functions/wmemset.texi: Likewise.
17636         * doc/posix-functions/wprintf.texi: Likewise.
17637         * doc/posix-functions/wscanf.texi: Likewise.
17638
17639 2008-12-21  Bruno Haible  <bruno@clisp.org>
17640
17641         Update doc for HP-UX 11.11.
17642         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17643         in HP-UX version 11.00, not in all versions of HP-UX 11.
17644         * doc/posix-functions/fwide.texi: Likewise.
17645         * doc/posix-functions/fwprintf.texi: Likewise.
17646         * doc/posix-functions/fwscanf.texi: Likewise.
17647         * doc/posix-functions/inet_ntop.texi: Likewise.
17648         * doc/posix-functions/inet_pton.texi: Likewise.
17649         * doc/posix-functions/mbrlen.texi: Likewise.
17650         * doc/posix-functions/mbrtowc.texi: Likewise.
17651         * doc/posix-functions/mbsinit.texi: Likewise.
17652         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17653         * doc/posix-functions/swprintf.texi: Likewise.
17654         * doc/posix-functions/swscanf.texi: Likewise.
17655         * doc/posix-functions/towctrans.texi: Likewise.
17656         * doc/posix-functions/vfwprintf.texi: Likewise.
17657         * doc/posix-functions/vswprintf.texi: Likewise.
17658         * doc/posix-functions/vwprintf.texi: Likewise.
17659         * doc/posix-functions/wcrtomb.texi: Likewise.
17660         * doc/posix-functions/wcsrtombs.texi: Likewise.
17661         * doc/posix-functions/wcsstr.texi: Likewise.
17662         * doc/posix-functions/wctob.texi: Likewise.
17663         * doc/posix-functions/wctrans.texi: Likewise.
17664         * doc/posix-functions/wmemchr.texi: Likewise.
17665         * doc/posix-functions/wmemcmp.texi: Likewise.
17666         * doc/posix-functions/wmemcpy.texi: Likewise.
17667         * doc/posix-functions/wmemmove.texi: Likewise.
17668         * doc/posix-functions/wmemset.texi: Likewise.
17669         * doc/posix-functions/wprintf.texi: Likewise.
17670         * doc/posix-functions/wscanf.texi: Likewise.
17671
17672 2008-12-21  Bruno Haible  <bruno@clisp.org>
17673
17674         Work around a portability problem.
17675         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17676         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17677
17678 2008-12-20  Bruno Haible  <bruno@clisp.org>
17679
17680         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17681         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17682         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17684         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17685
17686         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17687         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17688         set.
17689         (GNULIB_defined_mbstate_t): New macro.
17690         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17691         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17692         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17693         reuses the system's mbrtowc function but works around the bugs.
17694         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17695         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17696         macros.
17697         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17698         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17699         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17700         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17701         REPLACE_MBSINIT if mbsinit needs to be overridden.
17702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17703         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17704         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17705         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17706         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17707         m4/locale-zh.m4.
17708         (Depends): Add mbsinit.
17709         * modules/mbsinit (Depends): Add mbrtowc.
17710         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17711
17712 2008-12-20  Bruno Haible  <bruno@clisp.org>
17713
17714         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17715         so that there are no conversion errors on AIX.
17716         * tests/test-mbsrtowcs.c (main): LIkewise.
17717
17718 2008-12-20  Bruno Haible  <bruno@clisp.org>
17719
17720         Work around wctob bug on Solaris <= 9.
17721         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17722         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17724         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17725         * modules/wctob (Files): Add m4/locale-fr.m4.
17726         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17727
17728 2008-12-20  Bruno Haible  <bruno@clisp.org>
17729
17730         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17731         /dev/null.
17732         * tests/test-select-in.sh: Likewise.
17733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17734
17735 2008-12-20  Bruno Haible  <bruno@clisp.org>
17736
17737         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17738         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17739         Cygwin 1.5.x.
17740
17741 2008-12-20  Bruno Haible  <bruno@clisp.org>
17742
17743         Ensure mbstate_t is defined on HP-UX 11.11.
17744         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17745         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17746         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17747         AC_USE_SYSTEM_EXTENSIONS.
17748         * modules/fnmatch (Depends-on): Add extensions.
17749         * modules/mbrlen (Depends-on): Likewise.
17750         * modules/mbrtowc (Depends-on): Likewise.
17751         * modules/mbsinit (Depends-on): Likewise.
17752         * modules/mbsrtowcs (Depends-on): Likewise.
17753         * modules/mbswidth (Depends-on): Likewise.
17754         * modules/quotearg (Depends-on): Likewise.
17755         * modules/strftime (Depends-on): Likewise.
17756
17757 2008-12-20  Bruno Haible  <bruno@clisp.org>
17758
17759         Ensure wctob is declared on IRIX 6.5.
17760         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17761         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17762         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17764         of HAVE_WCTOB.
17765         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17766         HAVE_WCTOB.
17767         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17768
17769 2008-12-19  Bruno Haible  <bruno@clisp.org>
17770
17771         * modules/mbsrtowcs-tests: New file.
17772         * tests/test-mbsrtowcs1.sh: New file.
17773         * tests/test-mbsrtowcs2.sh: New file.
17774         * tests/test-mbsrtowcs3.sh: New file.
17775         * tests/test-mbsrtowcs4.sh: New file.
17776         * tests/test-mbsrtowcs.c: New file.
17777
17778         New module 'mbsrtowcs'.
17779         * lib/wchar.in.h (mbsrtowcs): New declaration.
17780         * lib/mbsrtowcs.c: New file.
17781         * m4/mbsrtowcs.m4: New file.
17782         * modules/mbsrtowcs: New file.
17783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17784         HAVE_MBSRTOWCS.
17785         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17786         HAVE_MBSRTOWCS.
17787         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17788
17789 2008-12-19  Bruno Haible  <bruno@clisp.org>
17790
17791         New module 'mbrlen'.
17792         * lib/wchar.in.h (mbrlen): New declaration.
17793         * lib/mbrlen.c: New file.
17794         * m4/mbrlen.m4: New file.
17795         * modules/mbrlen: New file.
17796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17797         HAVE_MBRLEN.
17798         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17799         HAVE_MBRLEN.
17800         * doc/posix-functions/mbrlen.texi: Document the new module.
17801
17802 2008-12-19  Bruno Haible  <bruno@clisp.org>
17803
17804         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17805         * modules/mbrtowc (Depends-on): Add verify.
17806         Suggested by Paul Eggert.
17807
17808 2008-12-18  Bruno Haible  <bruno@clisp.org>
17809
17810         * modules/mbsinit-tests: New file.
17811         * tests/test-mbsinit.sh: New file.
17812         * tests/test-mbsinit.c: New file.
17813
17814 2008-12-18  Bruno Haible  <bruno@clisp.org>
17815
17816         * modules/mbrtowc-tests: New file.
17817         * tests/test-mbrtowc1.sh: New file.
17818         * tests/test-mbrtowc2.sh: New file.
17819         * tests/test-mbrtowc3.sh: New file.
17820         * tests/test-mbrtowc4.sh: New file.
17821         * tests/test-mbrtowc.c: New file.
17822
17823         New module 'mbrtowc'.
17824         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17825         mbsinit and mbrtowc.
17826         (mbrtowc): New declaration.
17827         * lib/mbrtowc.c: New file.
17828         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17829         * modules/mbrtowc: New file.
17830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17831         HAVE_MBRTOWC.
17832         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17833         HAVE_MBRTOWC.
17834         * doc/posix-functions/mbrtowc.texi: Document the new module.
17835
17836 2008-12-18  Bruno Haible  <bruno@clisp.org>
17837
17838         New module 'wctob'.
17839         * lib/wchar.in.h (wctob): New declaration.
17840         * lib/wctob.c: New file.
17841         * m4/wctob.m4: New file.
17842         * modules/wctob: New file.
17843         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17844         HAVE_WCTOB.
17845         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17846         * doc/posix-functions/wctob.texi: Document the new module.
17847
17848 2008-12-18  Bruno Haible  <bruno@clisp.org>
17849
17850         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17851         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17852
17853 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17854
17855         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17856         G. Christensen" <tgc@jupiterrise.com>.
17857
17858         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17859         G. Christensen" <tgc@jupiterrise.com>.
17860
17861         * lib/flock.c: Need to include string.h.  Reported by "Tom
17862         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17863         <ebb9@byu.net>.
17864
17865 2008-12-18  Bruno Haible  <bruno@clisp.org>
17866
17867         * m4/locale-ja.m4: New file, from GNU gettext.
17868
17869 2008-12-17  Bruno Haible  <bruno@clisp.org>
17870
17871         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17872         Suggested by Eric Blake.
17873
17874 2008-12-17  Bruno Haible  <bruno@clisp.org>
17875
17876         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17877
17878 2008-12-17  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17881         * modules/mbsinit (Depends-on): Add verify.
17882         Suggested by Paul Eggert.
17883
17884 2008-12-17  Bruno Haible  <bruno@clisp.org>
17885
17886         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17887         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17888         gl_FUNC_MBRTOWC.
17889         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17890         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17891         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17892         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17893         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17894         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17895         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17896         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17897         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17898         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17899         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17900         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17901         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17902         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17903         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17904         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17905         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17906         * modules/trim (configure.ac): Likewise.
17907
17908 2008-12-17  Bruno Haible  <bruno@clisp.org>
17909
17910         * modules/btowc-tests: New file.
17911         * tests/test-btowc1.sh: New file.
17912         * tests/test-btowc2.sh: New file.
17913         * tests/test-btowc.c: New file.
17914
17915         New module 'btowc'.
17916         * lib/wchar.in.h (btowc): New declaration.
17917         * lib/btowc.c: New file.
17918         * m4/btowc.m4: New file.
17919         * modules/btowc: New file.
17920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17921         HAVE_BTOWC.
17922         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17923         * doc/posix-functions/btowc.texi: Document the new module.
17924
17925 2008-12-17  Bruno Haible  <bruno@clisp.org>
17926
17927         New module 'mbsinit'.
17928         * lib/wchar.in.h (mbsinit): New declaration.
17929         * lib/mbsinit.c: New file.
17930         * m4/mbsinit.m4: New file.
17931         * modules/mbsinit: New file.
17932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17933         HAVE_MBSINIT.
17934         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17935         HAVE_MBSINIT.
17936         * doc/posix-functions/mbsinit.texi: Document the new module.
17937
17938 2008-12-16  Bruno Haible  <bruno@clisp.org>
17939
17940         * lib/unistd.in.h: Add comment.
17941         * tests/test-environ.c: Don't include <stdlib.h>.
17942
17943 2008-12-16  Bruno Haible  <bruno@clisp.org>
17944
17945         * lib/parse-duration.h (parse_duration): Document return value
17946         convention.
17947         * lib/parse-duration.c: Include specification header first. Add
17948         comments.
17949         (_): Remove macro.
17950         (parse_year_month_day, parse_hour_minute_second): Move side effects
17951         outside of strchr call.
17952         (parse_non_iso8601): Move side effects outside of isspace call.
17953         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17954         call.
17955
17956 2008-12-16  Bruno Haible  <bruno@clisp.org>
17957
17958         * tests/test-parse-duration.sh: Produce no output when the test
17959         succeeds.
17960
17961 2008-12-16  Bruno Haible  <bruno@clisp.org>
17962
17963         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17964         expressions.
17965
17966 2008-12-15  Bruno Haible  <bruno@clisp.org>
17967
17968         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17969         * doc/glibc-functions/flistxattr.texi: Likewise.
17970         * doc/glibc-functions/fopencookie.texi: Likewise.
17971         * doc/glibc-functions/fremovexattr.texi: Likewise.
17972         * doc/glibc-functions/fsetxattr.texi: Likewise.
17973         * doc/glibc-functions/getxattr.texi: Likewise.
17974         * doc/glibc-functions/lgetxattr.texi: Likewise.
17975         * doc/glibc-functions/listxattr.texi: Likewise.
17976         * doc/glibc-functions/llistxattr.texi: Likewise.
17977         * doc/glibc-functions/lremovexattr.texi: Likewise.
17978         * doc/glibc-functions/lsetxattr.texi: Likewise.
17979         * doc/glibc-functions/removexattr.texi: Likewise.
17980         * doc/glibc-functions/setxattr.texi: Likewise.
17981         * doc/posix-functions/open_memstream.texi: Likewise.
17982
17983 2008-12-15  Eric Blake  <ebb9@byu.net>
17984
17985         Update doc for cygwin 1.7.
17986         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17987         functions.
17988         * doc/posix-functions/fchmodat.texi: Likewise.
17989         * doc/posix-functions/fchownat.texi: Likewise.
17990         * doc/posix-functions/fdopendir.texi: Likewise.
17991         * doc/posix-functions/fmemopen.texi: Likewise.
17992         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17993         * doc/posix-functions/fstatat.texi: Likewise.
17994         * doc/posix-functions/futimens.texi: Likewise.
17995         * doc/posix-functions/gai_strerror.texi: Likewise.
17996         * doc/posix-functions/getaddrinfo.texi: Likewise.
17997         * doc/posix-functions/getnameinfo.texi: Likewise.
17998         * doc/posix-functions/if_freenameindex.texi: Likewise.
17999         * doc/posix-functions/if_indextoname.texi: Likewise.
18000         * doc/posix-functions/if_nameindex.texi: Likewise.
18001         * doc/posix-functions/if_nametoindex.texi: Likewise.
18002         * doc/posix-functions/insque.texi: Likewise.
18003         * doc/posix-functions/linkat.texi: Likewise.
18004         * doc/posix-functions/llrint.texi: Likewise.
18005         * doc/posix-functions/llrintf.texi: Likewise.
18006         * doc/posix-functions/llrintl.texi: Likewise.
18007         * doc/posix-functions/lockf.texi: Likewise.
18008         * doc/posix-functions/lrintl.texi: Likewise.
18009         * doc/posix-functions/mkdirat.texi: Likewise.
18010         * doc/posix-functions/mkfifoat.texi: Likewise.
18011         * doc/posix-functions/mknodat.texi: Likewise.
18012         * doc/posix-functions/mq_close.texi: Likewise.
18013         * doc/posix-functions/mq_getattr.texi: Likewise.
18014         * doc/posix-functions/mq_notify.texi: Likewise.
18015         * doc/posix-functions/mq_open.texi: Likewise.
18016         * doc/posix-functions/mq_receive.texi: Likewise.
18017         * doc/posix-functions/mq_send.texi: Likewise.
18018         * doc/posix-functions/mq_setattr.texi: Likewise.
18019         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18020         * doc/posix-functions/mq_timedsend.texi: Likewise.
18021         * doc/posix-functions/mq_unlink.texi: Likewise.
18022         * doc/posix-functions/open_memstream.texi: Likewise.
18023         * doc/posix-functions/openat.texi: Likewise.
18024         * doc/posix-functions/posix_fadvise.texi: Likewise.
18025         * doc/posix-functions/posix_fallocate.texi: Likewise.
18026         * doc/posix-functions/posix_madvise.texi: Likewise.
18027         * doc/posix-functions/posix_memalign.texi: Likewise.
18028         * doc/posix-functions/posix_openpt.texi: Likewise.
18029         * doc/posix-functions/readlinkat.texi: Likewise.
18030         * doc/posix-functions/remque.texi: Likewise.
18031         * doc/posix-functions/renameat.texi: Likewise.
18032         * doc/posix-functions/rintl.texi: Likewise.
18033         * doc/posix-functions/sem_unlink.texi: Likewise.
18034         * doc/posix-functions/shm_open.texi: Likewise.
18035         * doc/posix-functions/shm_unlink.texi: Likewise.
18036         * doc/posix-functions/signgam.texi: Likewise.
18037         * doc/posix-functions/sigset.texi: Likewise.
18038         * doc/posix-functions/stpcpy.texi: Likewise.
18039         * doc/posix-functions/stpncpy.texi: Likewise.
18040         * doc/posix-functions/strerror.texi: Likewise.
18041         * doc/posix-functions/strtod.texi: Likewise.
18042         * doc/posix-functions/symlinkat.texi: Likewise.
18043         * doc/posix-functions/unlinkat.texi: Likewise.
18044         * doc/posix-functions/utimensat.texi: Likewise.
18045         * doc/glibc-functions/bindresvport.texi: Likewise.
18046         * doc/glibc-functions/dn_expand.texi: Likewise.
18047         * doc/glibc-functions/exp10.texi: Likewise.
18048         * doc/glibc-functions/exp10f.texi: Likewise.
18049         * doc/glibc-functions/fgetxattr.texi: Likewise.
18050         * doc/glibc-functions/flistxattr.texi: Likewise.
18051         * doc/glibc-functions/fopencookie.texi: Likewise.
18052         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18053         * doc/glibc-functions/fremovexattr.texi: Likewise.
18054         * doc/glibc-functions/fsetxattr.texi: Likewise.
18055         * doc/glibc-functions/getifaddrs.texi: Likewise.
18056         * doc/glibc-functions/getxattr.texi: Likewise.
18057         * doc/glibc-functions/lgetxattr.texi: Likewise.
18058         * doc/glibc-functions/listxattr.texi: Likewise.
18059         * doc/glibc-functions/llistxattr.texi: Likewise.
18060         * doc/glibc-functions/lremovexattr.texi: Likewise.
18061         * doc/glibc-functions/lsetxattr.texi: Likewise.
18062         * doc/glibc-functions/pow10.texi: Likewise.
18063         * doc/glibc-functions/pow10f.texi: Likewise.
18064         * doc/glibc-functions/rcmd_af.texi: Likewise.
18065         * doc/glibc-functions/removexattr.texi: Likewise.
18066         * doc/glibc-functions/res_init.texi: Likewise.
18067         * doc/glibc-functions/res_mkquery.texi: Likewise.
18068         * doc/glibc-functions/res_query.texi: Likewise.
18069         * doc/glibc-functions/res_querydomain.texi: Likewise.
18070         * doc/glibc-functions/res_send.texi: Likewise.
18071         * doc/glibc-functions/rresvport_af.texi: Likewise.
18072         * doc/glibc-functions/setxattr.texi: Likewise.
18073         * doc/glibc-functions/strcasestr.texi: Likewise.
18074
18075 2008-12-15  Bruno Haible  <bruno@clisp.org>
18076
18077         Fix compilation error on OSF/1 4.0.
18078         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18079         <sys/time.h>, simply delegate to the system header.
18080         Reported by Daniel Richard G. <oss@teragram.com>.
18081
18082 2008-12-15  Bruno Haible  <bruno@clisp.org>
18083
18084         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18085         * doc/posix-functions/fchmodat.texi: Likewise.
18086         * doc/posix-functions/fchownat.texi: Likewise.
18087         * doc/posix-functions/fdopendir.texi: Likewise.
18088         * doc/posix-functions/fstatat.texi: Likewise.
18089         * doc/posix-functions/mkdirat.texi: Likewise.
18090         * doc/posix-functions/unlinkat.texi: Likewise.
18091
18092 2008-12-14  Bruno Haible  <bruno@clisp.org>
18093
18094         Update doc for POSIX:2008.
18095         * doc/posix-functions/faccessat.texi: New file.
18096         * doc/posix-functions/fchmodat.texi: New file.
18097         * doc/posix-functions/fchownat.texi: New file.
18098         * doc/posix-functions/fdopendir.texi: New file.
18099         * doc/posix-functions/fstatat.texi: New file.
18100         * doc/posix-functions/futimens.texi: New file.
18101         * doc/posix-functions/linkat.texi: New file.
18102         * doc/posix-functions/mkdirat.texi: New file.
18103         * doc/posix-functions/mkfifoat.texi: New file.
18104         * doc/posix-functions/mknodat.texi: New file.
18105         * doc/posix-functions/open_wmemstream.texi: New file.
18106         * doc/posix-functions/openat.texi: New file.
18107         * doc/posix-functions/psiginfo.texi: New file.
18108         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18109         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18110         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18111         * doc/posix-functions/readlinkat.texi: New file.
18112         * doc/posix-functions/renameat.texi: New file.
18113         * doc/posix-functions/strerror_l.texi: New file.
18114         * doc/posix-functions/symlinkat.texi: New file.
18115         * doc/posix-functions/unlinkat.texi: New file.
18116         * doc/posix-functions/utimensat.texi: New file.
18117         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18118
18119 2008-12-14  Bruno Haible  <bruno@clisp.org>
18120
18121         Update doc for POSIX:2008.
18122         * doc/posix-functions/alphasort.texi: Renamed from
18123         doc/glibc-functions/alphasort.texi.
18124         * doc/posix-functions/dirfd.texi: Renamed from
18125         doc/glibc-functions/dirfd.texi.
18126         * doc/posix-functions/dprintf.texi: Renamed from
18127         doc/glibc-functions/dprintf.texi.
18128         * doc/posix-functions/duplocale.texi: Renamed from
18129         doc/glibc-functions/duplocale.texi.
18130         * doc/posix-functions/fexecve.texi: Renamed from
18131         doc/glibc-functions/fexecve.texi.
18132         * doc/posix-functions/fmemopen.texi: Renamed from
18133         doc/glibc-functions/fmemopen.texi.
18134         * doc/posix-functions/freelocale.texi: Renamed from
18135         doc/glibc-functions/freelocale.texi.
18136         * doc/posix-functions/getdate_err.texi: Renamed from
18137         doc/glibc-functions/getdate_err.texi.
18138         * doc/posix-functions/isalnum_l.texi: Renamed from
18139         doc/glibc-functions/isalnum_l.texi.
18140         * doc/posix-functions/isalpha_l.texi: Renamed from
18141         doc/glibc-functions/isalpha_l.texi.
18142         * doc/posix-functions/isblank_l.texi: Renamed from
18143         doc/glibc-functions/isblank_l.texi.
18144         * doc/posix-functions/iscntrl_l.texi: Renamed from
18145         doc/glibc-functions/iscntrl_l.texi.
18146         * doc/posix-functions/isdigit_l.texi: Renamed from
18147         doc/glibc-functions/isdigit_l.texi.
18148         * doc/posix-functions/isgraph_l.texi: Renamed from
18149         doc/glibc-functions/isgraph_l.texi.
18150         * doc/posix-functions/islower_l.texi: Renamed from
18151         doc/glibc-functions/islower_l.texi.
18152         * doc/posix-functions/isprint_l.texi: Renamed from
18153         doc/glibc-functions/isprint_l.texi.
18154         * doc/posix-functions/ispunct_l.texi: Renamed from
18155         doc/glibc-functions/ispunct_l.texi.
18156         * doc/posix-functions/isspace_l.texi: Renamed from
18157         doc/glibc-functions/isspace_l.texi.
18158         * doc/posix-functions/isupper_l.texi: Renamed from
18159         doc/glibc-functions/isupper_l.texi.
18160         * doc/posix-functions/iswalnum_l.texi: Renamed from
18161         doc/glibc-functions/iswalnum_l.texi.
18162         * doc/posix-functions/iswalpha_l.texi: Renamed from
18163         doc/glibc-functions/iswalpha_l.texi.
18164         * doc/posix-functions/iswblank_l.texi: Renamed from
18165         doc/glibc-functions/iswblank_l.texi.
18166         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18167         doc/glibc-functions/iswcntrl_l.texi.
18168         * doc/posix-functions/iswctype_l.texi: Renamed from
18169         doc/glibc-functions/iswctype_l.texi.
18170         * doc/posix-functions/iswdigit_l.texi: Renamed from
18171         doc/glibc-functions/iswdigit_l.texi.
18172         * doc/posix-functions/iswgraph_l.texi: Renamed from
18173         doc/glibc-functions/iswgraph_l.texi.
18174         * doc/posix-functions/iswlower_l.texi: Renamed from
18175         doc/glibc-functions/iswlower_l.texi.
18176         * doc/posix-functions/iswprint_l.texi: Renamed from
18177         doc/glibc-functions/iswprint_l.texi.
18178         * doc/posix-functions/iswpunct_l.texi: Renamed from
18179         doc/glibc-functions/iswpunct_l.texi.
18180         * doc/posix-functions/iswspace_l.texi: Renamed from
18181         doc/glibc-functions/iswspace_l.texi.
18182         * doc/posix-functions/iswupper_l.texi: Renamed from
18183         doc/glibc-functions/iswupper_l.texi.
18184         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18185         doc/glibc-functions/iswxdigit_l.texi.
18186         * doc/posix-functions/isxdigit_l.texi: Renamed from
18187         doc/glibc-functions/isxdigit_l.texi.
18188         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18189         doc/glibc-functions/mbsnrtowcs.texi.
18190         * doc/posix-functions/mkdtemp.texi: Renamed from
18191         doc/glibc-functions/mkdtemp.texi.
18192         * doc/posix-functions/newlocale.texi: Renamed from
18193         doc/glibc-functions/newlocale.texi.
18194         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18195         doc/glibc-functions/nl_langinfo_l.texi.
18196         * doc/posix-functions/open_memstream.texi: Renamed from
18197         doc/glibc-functions/open_memstream.texi.
18198         * doc/posix-functions/opterr.texi: Renamed from
18199         doc/glibc-functions/opterr.texi.
18200         * doc/posix-functions/optind.texi: Renamed from
18201         doc/glibc-functions/optind.texi.
18202         * doc/posix-functions/optopt.texi: Renamed from
18203         doc/glibc-functions/optopt.texi.
18204         * doc/posix-functions/psignal.texi: Renamed from
18205         doc/glibc-functions/psignal.texi.
18206         * doc/posix-functions/scandir.texi: Renamed from
18207         doc/glibc-functions/scandir.texi.
18208         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18209         doc/glibc-functions/sched_get_priority_min.texi.
18210         * doc/posix-functions/signgam.texi: Renamed from
18211         doc/glibc-functions/signgam.texi.
18212         * doc/posix-functions/stpcpy.texi: Renamed from
18213         doc/glibc-functions/stpcpy.texi.
18214         * doc/posix-functions/stpncpy.texi: Renamed from
18215         doc/glibc-functions/stpncpy.texi.
18216         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18217         doc/glibc-functions/strcasecmp_l.texi.
18218         * doc/posix-functions/strcoll_l.texi: Renamed from
18219         doc/glibc-functions/strcoll_l.texi.
18220         * doc/posix-functions/strfmon_l.texi: Renamed from
18221         doc/glibc-functions/strfmon_l.texi.
18222         * doc/posix-functions/strftime_l.texi: Renamed from
18223         doc/glibc-functions/strftime_l.texi.
18224         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18225         doc/glibc-functions/strncasecmp_l.texi.
18226         * doc/posix-functions/strndup.texi: Renamed from
18227         doc/glibc-functions/strndup.texi.
18228         * doc/posix-functions/strnlen.texi: Renamed from
18229         doc/glibc-functions/strnlen.texi.
18230         * doc/posix-functions/strsignal.texi: Renamed from
18231         doc/glibc-functions/strsignal.texi.
18232         * doc/posix-functions/strxfrm_l.texi: Renamed from
18233         doc/glibc-functions/strxfrm_l.texi.
18234         * doc/posix-functions/timer_gettime.texi: Renamed from
18235         doc/glibc-functions/timer_gettime.texi.
18236         * doc/posix-functions/tolower_l.texi: Renamed from
18237         doc/glibc-functions/tolower_l.texi.
18238         * doc/posix-functions/toupper_l.texi: Renamed from
18239         doc/glibc-functions/toupper_l.texi.
18240         * doc/posix-functions/towctrans_l.texi: Renamed from
18241         doc/glibc-functions/towctrans_l.texi.
18242         * doc/posix-functions/towlower_l.texi: Renamed from
18243         doc/glibc-functions/towlower_l.texi.
18244         * doc/posix-functions/towupper_l.texi: Renamed from
18245         doc/glibc-functions/towupper_l.texi.
18246         * doc/posix-functions/uselocale.texi: Renamed from
18247         doc/glibc-functions/uselocale.texi.
18248         * doc/posix-functions/vdprintf.texi: Renamed from
18249         doc/glibc-functions/vdprintf.texi.
18250         * doc/posix-functions/wcpcpy.texi:
18251         Renamed from doc/glibc-functions/wcpcpy.texi.
18252         * doc/posix-functions/wcpncpy.texi: Renamed from
18253         doc/glibc-functions/wcpncpy.texi.
18254         * doc/posix-functions/wcscasecmp.texi: Renamed from
18255         doc/glibc-functions/wcscasecmp.texi.
18256         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18257         doc/glibc-functions/wcscasecmp_l.texi.
18258         * doc/posix-functions/wcscoll_l.texi: Renamed from
18259         doc/glibc-functions/wcscoll_l.texi.
18260         * doc/posix-functions/wcsdup.texi: Renamed from
18261         doc/glibc-functions/wcsdup.texi.
18262         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18263         doc/glibc-functions/wcsncasecmp.texi.
18264         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18265         doc/glibc-functions/wcsncasecmp_l.texi.
18266         * doc/posix-functions/wcsnlen.texi: Renamed from
18267         doc/glibc-functions/wcsnlen.texi.
18268         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18269         doc/glibc-functions/wcsnrtombs.texi.
18270         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18271         doc/glibc-functions/wcsxfrm_l.texi.
18272         * doc/posix-functions/wctrans_l.texi: Renamed from
18273         doc/glibc-functions/wctrans_l.texi.
18274         * doc/posix-functions/wctype_l.texi: Renamed from
18275         doc/glibc-functions/wctype_l.texi.
18276         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18277         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18278         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18279         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18280         these subsections.
18281         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18282         Remove sections.
18283
18284 2008-12-14  Bruno Haible  <bruno@clisp.org>
18285
18286         Update doc for POSIX:2008.
18287         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18288
18289 2008-12-14  Bruno Haible  <bruno@clisp.org>
18290
18291         Update doc for POSIX:2008.
18292         * doc/pastposix-functions/bcmp.texi: Renamed from
18293         doc/posix-functions/bcmp.texi.
18294         * doc/pastposix-functions/bcopy.texi: Renamed from
18295         doc/posix-functions/bcopy.texi.
18296         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18297         doc/posix-functions/bsd_signal.texi.
18298         * doc/pastposix-functions/bzero.texi: Renamed from
18299         doc/posix-functions/bzero.texi.
18300         * doc/pastposix-functions/ecvt.texi: Renamed from
18301         doc/posix-functions/ecvt.texi.
18302         * doc/pastposix-functions/fcvt.texi: Renamed from
18303         doc/posix-functions/fcvt.texi.
18304         * doc/pastposix-functions/ftime.texi: Renamed from
18305         doc/posix-functions/ftime.texi.
18306         * doc/pastposix-functions/gcvt.texi: Renamed from
18307         doc/posix-functions/gcvt.texi.
18308         * doc/pastposix-functions/getcontext.texi: Renamed from
18309         doc/posix-functions/getcontext.texi.
18310         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18311         doc/posix-functions/gethostbyaddr.texi.
18312         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18313         doc/posix-functions/gethostbyname.texi.
18314         * doc/pastposix-functions/getwd.texi: Renamed from
18315         doc/posix-functions/getwd.texi.
18316         * doc/pastposix-functions/h_errno.texi: Renamed from
18317         doc/posix-functions/h_errno.texi.
18318         * doc/pastposix-functions/index.texi: Renamed from
18319         doc/posix-functions/index.texi.
18320         * doc/pastposix-functions/makecontext.texi: Renamed from
18321         doc/posix-functions/makecontext.texi.
18322         * doc/pastposix-functions/mktemp.texi: Renamed from
18323         doc/posix-functions/mktemp.texi.
18324         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18325         doc/posix-functions/pthread_attr_getstackaddr.texi.
18326         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18327         doc/posix-functions/pthread_attr_setstackaddr.texi.
18328         * doc/pastposix-functions/rindex.texi: Renamed from
18329         doc/posix-functions/rindex.texi.
18330         * doc/pastposix-functions/scalb.texi: Renamed from
18331         doc/posix-functions/scalb.texi.
18332         * doc/pastposix-functions/setcontext.texi: Renamed from
18333         doc/posix-functions/setcontext.texi.
18334         * doc/pastposix-functions/swapcontext.texi: Renamed from
18335         doc/posix-functions/swapcontext.texi.
18336         * doc/pastposix-functions/ualarm.texi: Renamed from
18337         doc/posix-functions/ualarm.texi.
18338         * doc/pastposix-functions/usleep.texi: Renamed from
18339         doc/posix-functions/usleep.texi.
18340         * doc/pastposix-functions/vfork.texi: Renamed from
18341         doc/posix-functions/vfork.texi.
18342         * doc/pastposix-functions/wcswcs.texi: Renamed from
18343         doc/posix-functions/wcswcs.texi.
18344         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18345         (Function Substitutes): Update.
18346
18347 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18348
18349         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18350         m4/strerror.m4.
18351
18352 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18353             Bruno Haible  <bruno@clisp.org>
18354
18355         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18356
18357 2008-12-13  Bruno Haible  <bruno@clisp.org>
18358
18359         * modules/strtoull (Depends-on): Remove unistd.
18360
18361 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18362
18363         * modules/strtoull (Depends-on): Add stdlib.
18364
18365 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18366
18367         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18368
18369 2008-12-10  Jim Meyering  <meyering@redhat.com>
18370
18371         gl_ASSERT: don't say assertions are disabled when they're not
18372         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18373         "checking whether to enable assertions... no", when they are in
18374         fact enabled.  This is solely a bug in the output of configure.
18375         In spite of saying "no", NDEBUG was not defined in that case.
18376         Also, as noted by Eric Blake, leave assertions enabled upon
18377         --enable-assert=INVALID.
18378
18379 2008-12-10  Bruno Haible  <bruno@clisp.org>
18380
18381         Change MODULES.html to refer to POSIX:2008 where possible.
18382         * MODULES.html.sh (POSIX2008_URL): New variable.
18383         (posix_headers): Remove sys/timeb, ucontext.
18384         (posix2001_headers): New variable.
18385         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18386         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18387         index, makecontext, mktemp, pthread_attr_getstackaddr,
18388         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18389         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18390         (posix2001_functions): New variable.
18391         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18392         otherwise.
18393
18394 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18395
18396         add missing include to parse-duration.c
18397         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18398         * modules/parse-duration (Depends-on): Add xalloc.
18399
18400         fix sed script reading maint.mk
18401         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18402         (syntax-check-rules): Use it.
18403
18404 2008-12-09  Bruno Haible  <bruno@clisp.org>
18405
18406         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18407         MacOS X 10.4/PowerPC.
18408         Reported by Simon Josefsson.
18409
18410 2008-12-08  Jim Meyering  <meyering@redhat.com>
18411
18412         work around mingw's lack of some S_IF definitions
18413         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18414         Reported by Simon Josefsson.
18415
18416 2008-12-08  Bruno Haible  <bruno@clisp.org>
18417
18418         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18419         applied to variables. Needed on MacOS X 10.4/PowerPC.
18420         Reported by Simon Josefsson.
18421
18422 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18423         and Eric Blake  <ebb9@byu.net>
18424
18425         assert: honor --enable-assert
18426         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18427         order to honor --enable-assert, rather than treating it as a
18428         synonym for --disable-assert.
18429
18430 2008-12-08  Jim Meyering  <meyering@redhat.com>
18431
18432         * lib/posixtm.c: Remove now-useless declaration of mktime.
18433
18434         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18435
18436 2008-12-07  Bruno Haible  <bruno@clisp.org>
18437
18438         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18439         test_once): Mark functions as static.
18440         * tests/test-tls.c (test_tls): Likewise.
18441
18442 2008-12-07  Bruno Haible  <bruno@clisp.org>
18443
18444         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18445         iconv_register_autodetect.
18446
18447 2008-12-07  Jim Meyering  <meyering@redhat.com>
18448
18449         posixtm.c: avoid a warning
18450         * lib/posixtm.c (posixtime): Don't initialize tm0.
18451         It's no longer needed to placate gcc4's -Wuninitialized,
18452         and the attempt to placate would elicit a new warning.
18453
18454         unicodeio.c: mark unused parameters
18455         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18456         (fallback_failure_callback): Likewise.
18457
18458 2008-12-07  Bruno Haible  <bruno@clisp.org>
18459
18460         * gnulib-tool (func_create_testdir): When building the tests
18461         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18462         Reported by Simon Josefsson.
18463
18464 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18465
18466         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18467
18468 2008-12-06  Bruno Haible  <bruno@clisp.org>
18469
18470         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18471         Suggested by Eric Blake.
18472
18473 2008-12-06  Bruno Haible  <bruno@clisp.org>
18474
18475         Fix a c-stack test failure on MacOS X.
18476         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18477         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18478         handler for SIGBUS as well.
18479         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18480         install a signal handler for SIGBUS as well.
18481         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18482
18483 2008-12-06  Bruno Haible  <bruno@clisp.org>
18484
18485         Advocacy documentation.
18486         * doc/gnulib-intro.texi (Benefits): New section.
18487         * doc/gnulib.texi: Update.
18488
18489 2008-12-06  Bruno Haible  <bruno@clisp.org>
18490
18491         Document the 'manywarnings' module.
18492         * doc/manywarnings.texi: New file.
18493         * doc/gnulib.texi: Include it.
18494
18495 2008-12-05  Eric Blake  <ebb9@byu.net>
18496
18497         tests: silence some gcc warnings
18498         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18499         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18500         type mismatches.
18501
18502 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18503             Bruno Haible  <bruno@clisp.org>
18504
18505         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18506
18507 2008-11-29  Jim Meyering  <meyering@redhat.com>
18508
18509         unicodeio.c: mark unused parameters
18510         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18511         (fallback_failure_callback): Likewise.
18512
18513         fts: fix a thinko
18514         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18515         (set_stat_type): Return S_IF*-valued "type" directly.
18516         Prompted by James Youngman's spotting a related bug.
18517         Confirmed by further testing through find.
18518
18519         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18520         * lib/fts.c (D_TYPE): Define.
18521         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18522         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18523         (s_ifmt_shift_bits): New function.
18524         (set_stat_type): New function.
18525         (fts_build): When not calling fts_stat, call set_stat_type
18526         to propagate dirent.d_type info to fts_read caller.
18527         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18528         fts_statp->st_mode type information may be valid.
18529
18530 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18531
18532         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18533         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18534         <sds@gnu.org>.
18535
18536 2008-11-20  Bruno Haible  <bruno@clisp.org>
18537
18538         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18539         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18540         INCLUDE_NEXT.
18541         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18542         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18543         * modules/math (Makefile.am): Substitute
18544         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18545         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18546
18547 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18548             Bruno Haible  <bruno@clisp.org>
18549
18550         * lib/stdint.in.h: Define all type macros so that their expansion is
18551         a single typedef'ed token. Fixes a compilation failure in Boost which
18552         does "using ::int8_t;".
18553
18554 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18555
18556         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18557         gl_MANYWARN_ALL_GCC.
18558         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18559         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18560         * modules/manywarnings: New file.
18561         * MODULES.html.sh: Mention manywarnings module.
18562
18563 2008-11-18  Bruno Haible  <bruno@clisp.org>
18564
18565         * doc/gnulib-tool.texi (Unit tests): New section.
18566
18567 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18568
18569         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18570         paths like 'lib/po/foo.po'.
18571
18572 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18573
18574         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18575         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18576
18577 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18578
18579         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18580         parameter works.
18581
18582 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18583
18584         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18585
18586 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18587
18588         * modules/parse-duration-tests: New file.
18589         * tests/test-parse-duration.sh: New file.
18590         * tests/test-parse-duration.c: New file.
18591
18592         New module 'parse-duration'.
18593         * lib/parse-duration.h: New file.
18594         * lib/parse-duration.c: New file.
18595         * modules/parse-duration: New file.
18596
18597 2008-11-17  Bruno Haible  <bruno@clisp.org>
18598
18599         * tests/test-select-out.sh: Comment out the first pipe test.
18600         Reported by Simon Josefsson.
18601
18602 2008-11-17  Bruno Haible  <bruno@clisp.org>
18603
18604         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18606         gl_HOSTENT.
18607
18608 2008-11-17  Bruno Haible  <bruno@clisp.org>
18609
18610         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18611         -lnetwork and -lnet. Needed for Haiku and BeOS.
18612
18613 2008-11-16  Bruno Haible  <bruno@clisp.org>
18614
18615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18616
18617 2008-11-16  Bruno Haible  <bruno@clisp.org>
18618
18619         Avoid test failure on Haiku.
18620         * tests/test-fsync.c: Include <errno.h>.
18621         (main): Don't require that fsync (0) fails.
18622
18623 2008-11-15  Bruno Haible  <bruno@clisp.org>
18624
18625         New module 'hostent'.
18626         * modules/hostent: New file.
18627         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18628
18629 2008-11-15  Bruno Haible  <bruno@clisp.org>
18630
18631         New module 'servent'.
18632         * modules/servent: New file.
18633         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18634
18635 2008-11-15  Bruno Haible  <bruno@clisp.org>
18636
18637         Avoid generating same test program with two different rules.
18638         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18639         test-frexp to test-frexp-nolibm.
18640         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18641         test-frexpl to test-frexpl-nolibm.
18642
18643 2008-11-15  Bruno Haible  <bruno@clisp.org>
18644
18645         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18646         $(FREXPL_LIBM).
18647
18648 2008-11-15  Bruno Haible  <bruno@clisp.org>
18649
18650         * lib/netdb.in.h: Activate the definitions also when the system's
18651         <netdb.h> has 'struct addrinfo'.
18652         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18653         EAI_OVERFLOW or AI_NUMERICSERV.
18654         * doc/posix-headers/netdb.texi: Document the problem.
18655
18656 2008-11-15  Bruno Haible  <bruno@clisp.org>
18657
18658         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18659
18660         Make the 'sched' module work on platforms where <sched.h> exists but
18661         is incomplete (such as Haiku).
18662         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18663         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18664         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18665         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18666         HAVE_STRUCT_SCHED_PARAM.
18667         * modules/sched (Depends-on): Add include_next.
18668         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18669         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18670         * doc/posix-headers/sched.texi: Document the issue.
18671
18672 2008-11-13  Jim Meyering  <meyering@redhat.com>
18673
18674         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18675         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18676         test would fail due to the difference in the Report bugs to ...
18677         line.  The expected address is empty, "<>", while the actual
18678         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18679
18680 2008-11-12  Bruno Haible  <bruno@clisp.org>
18681
18682         lstat: don't compile lstat.c on systems lacking lstat
18683         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18684         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18685         Reported by Daniel P. Berrange via Jim Meyering.
18686
18687 2008-11-12  Jim Meyering  <meyering@redhat.com>
18688
18689         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18690
18691 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18692
18693         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18694         instead.
18695
18696 2008-11-12  Bruno Haible  <bruno@clisp.org>
18697
18698         * lib/unicodeio.c: Include unistr.h.
18699         (utf8_wctomb): Remove function.
18700         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18701
18702 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18703
18704         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18705         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18706         <bruno@clisp.org>.
18707         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18708
18709 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18710
18711         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18712         * doc/gnulib.texi: Add section for warnings.
18713
18714 2008-11-11  Bruno Haible  <bruno@clisp.org>
18715
18716         * lib/sockets.h: Add a comment.
18717
18718 2008-11-11  Karl Berry  <karl@gnu.org>
18719
18720         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18721
18722 2008-11-11  Eric Blake  <ebb9@byu.net>
18723
18724         fdl.texi: avoid git symlinks
18725         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18726
18727 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18728
18729         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18730
18731 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18732
18733         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18734         (gl_WARN_ADD): Substitute $2 if literal.
18735
18736 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18737
18738         * m4/warning.m4: Remove.
18739
18740 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18741
18742         * m4/warnings.m4: Almost complete rewrite. :-)
18743
18744 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18745
18746         * modules/warnings: New module.
18747         * m4/warnings.m4: New file.
18748         * MODULES.html.sh: Mention warnings module.
18749         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18750         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18751
18752 2008-11-10  Eric Blake  <ebb9@byu.net>
18753
18754         fdl.texi: make a symlink to the latest version
18755         * doc/standards.texi: Revert today's earlier change.
18756         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18757         * doc/fdl.texi: ...and replace this with a symlink to the newer
18758         fdl-1.3.texi.
18759
18760 2008-11-10  Bruno Haible  <bruno@clisp.org>
18761
18762         * tests/test-select-fd.c (main): Accept the result file name as fourth
18763         argument.
18764         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18765         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18766
18767 2008-11-10  Bruno Haible  <bruno@clisp.org>
18768
18769         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18770         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18771         as autoconf-substituted macros.
18772         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18773         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18774         gl_NETDB_H_DEFAULTS. Set these variables.
18775         * modules/netdb (Makefile.am): Substitute these variables.
18776
18777 2008-11-10  Eric Blake  <ebb9@byu.net>
18778
18779         standards.texi: include correct file for FDL 1.3
18780         * doc/standards.texi (GNU Free Documentation License): Change
18781         include file to pull in FDL 1.3, not 1.2.
18782
18783         fdl.texi: revert accidental change to license
18784         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18785
18786 2008-11-10  Bruno Haible  <bruno@clisp.org>
18787
18788         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18789         cross-compiling guesses also when the native compile gives no result.
18790
18791 2008-11-10  Bruno Haible  <bruno@clisp.org>
18792
18793         * lib/spawni.c (__spawni): Force variable into the stack.
18794
18795 2008-11-10  Bruno Haible  <bruno@clisp.org>
18796
18797         Add support for Haiku.
18798         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18799         glibc and BeOS, but also on Haiku.
18800         * lib/fpurge.c (fpurge): Likewise.
18801         * lib/freadable.c (freadable): Likewise.
18802         * lib/freadahead.c (freadahead): Likewise.
18803         * lib/freading.c (freading): Likewise.
18804         * lib/freadptr.c (freadptr): Likewise.
18805         * lib/freadseek.c (freadptrinc): Likewise.
18806         * lib/fseeko.c (rpl_fseeko): Likewise.
18807         * lib/fseterr.c (fseterr): Likewise.
18808         * lib/fwritable.c (fwritable): Likewise.
18809         * lib/fwriting.c (fwriting): Likewise.
18810         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18811
18812 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18813
18814         * lib/config.charset: Treat Haiku like BeOS.
18815
18816 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18817
18818         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18819         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18820
18821 2008-11-08  Bruno Haible  <bruno@clisp.org>
18822
18823         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18824         AC_CACHE_CHECK.
18825
18826 2008-11-08  Bruno Haible  <bruno@clisp.org>
18827
18828         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18829
18830 2008-11-08  Bruno Haible  <bruno@clisp.org>
18831
18832         * tests/test-select-fd.c: New file.
18833         * tests/test-select-in.sh: New file.
18834         * tests/test-select-out.sh: New file.
18835         * tests/test-select-stdin.c: New file.
18836         * modules/select-tests (Files): Add the new files.
18837         (Depends-on): Add gettimeofday.
18838         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18839         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18840         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18841
18842 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18843             Bruno Haible  <bruno@clisp.org>
18844
18845         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18846
18847 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18848
18849         * build-aux/pmccabe2html: Added support for C++ source files.
18850
18851 2008-11-05  Ben Pfaff  <blp@gnu.org>
18852
18853         Fix lib/close.c build on Windows.
18854         * modules/close (Files): Add lib/w32sock.h.
18855
18856 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18857
18858         Accept Bison's NEWS format.
18859         * build-aux/announce-gen (print_news_deltas): Tweak
18860         $re_prefix.
18861
18862 2008-11-04  Bruno Haible  <bruno@clisp.org>
18863
18864         * modules/random_r (Maintainer): Add glibc.
18865
18866 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18867
18868         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18869         by karl@freefriends.org (Karl Berry).
18870         * doc/alloca.texi: Likewise.
18871         * doc/c-ctype.texi: Likewise.
18872         * doc/c-strcase.texi: Likewise.
18873         * doc/c-strcaseeq.texi: Likewise.
18874         * doc/c-strcasestr.texi: Likewise.
18875         * doc/c-strstr.texi: Likewise.
18876         * doc/c-strtod.texi: Likewise.
18877         * doc/c-strtold.texi: Likewise.
18878         * doc/ctime.texi: Likewise.
18879         * doc/error.texi: Likewise.
18880         * doc/fdl.texi: Likewise.
18881         * doc/gcd.texi: Likewise.
18882         * doc/getdate.texi: Likewise.
18883         * doc/gnulib-intro.texi: Likewise.
18884         * doc/gnulib-tool.texi: Likewise.
18885         * doc/gnulib.texi: Likewise.
18886         * doc/inet_ntoa.texi: Likewise.
18887         * doc/maintain.texi: Likewise.
18888         * doc/make-stds.texi: Likewise.
18889         * doc/quote.texi: Likewise.
18890         * doc/regexprops-generic.texi: Likewise.
18891         * doc/standards.texi: Likewise.
18892         * doc/verify.texi: Likewise.
18893         * doc/visibility.texi: Likewise.
18894         * doc/gnulib.texi (GNU Free Documentation License): Include
18895         fdl-1.3.texi instead of fdl.texi.
18896
18897 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18898
18899         * doc/fdl-1.3.texi: New file, from
18900         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18901         * modules/fdl-1.3: Add.
18902         * MODULES.html.sh: Add fdl-1.3.
18903
18904 2008-11-03  Bruno Haible  <bruno@clisp.org>
18905
18906         Make determination of absolute name of header file work with AIX xlc.
18907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18908         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18909         preprocessing.
18910         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18911         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18912
18913 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18914
18915         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18916         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18917         <ludo@gnu.org>.
18918
18919 2008-11-02  Bruno Haible  <bruno@clisp.org>
18920
18921         Mark 'strpbrk' obsolete.
18922         * modules/strpbrk (Status, Notice): New sections.
18923         * modules/strtok_r (Depends-on): Add strpbrk.
18924
18925 2008-11-02  Bruno Haible  <bruno@clisp.org>
18926
18927         Mark 'strdup' obsolete.
18928         * modules/strdup (Status, Notice): New sections.
18929         * modules/findprog (Depends-on): Add strdup.
18930         * modules/getaddrinfo (Depends-on): Likewise.
18931         * modules/localename (Depends-on): Likewise.
18932         * modules/relocatable-lib (Depends-on): Likewise.
18933         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18934         * modules/relocatable-prog (Depends-on): Likewise.
18935         * modules/trim (Depends-on): Likewise.
18936         * modules/unictype/gen-ctype (Depends-on): Likewise.
18937         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18938
18939 2008-11-02  Bruno Haible  <bruno@clisp.org>
18940
18941         Mark 'strcspn' obsolete.
18942         * modules/strcspn (Status, Notice): New sections.
18943
18944 2008-11-02  Bruno Haible  <bruno@clisp.org>
18945
18946         Mark 'rmdir' obsolete.
18947         * modules/rmdir (Status, Notice): New sections.
18948         * modules/clean-temp (Depends-on): Add rmdir.
18949         * modules/openat (Depends-on): Likewise.
18950
18951 2008-11-02  Bruno Haible  <bruno@clisp.org>
18952
18953         Mark 'raise' obsolete.
18954         * modules/raise (Status, Notice): New sections.
18955         (Include): Specify <signal.h>.
18956         * modules/stdio (Depends-on): Add raise.
18957         * modules/write (Depends-on): Likewise.
18958
18959 2008-11-02  Bruno Haible  <bruno@clisp.org>
18960
18961         Mark 'memset' obsolete.
18962         * modules/memset (Status, Notice): New sections.
18963
18964 2008-11-02  Bruno Haible  <bruno@clisp.org>
18965
18966         Mark 'memmove' obsolete.
18967         * modules/memmove (Status, Notice): New sections.
18968         * modules/argp (Depends-on): Add memmove.
18969         * modules/argz (Depends-on): Likewise.
18970         * modules/canonicalize (Depends-on): Likewise.
18971         * modules/canonicalize-lgpl (Depends-on): Likewise.
18972         * modules/fts (Depends-on): Likewise.
18973         * modules/getcwd (Depends-on): Likewise.
18974         * modules/human (Depends-on): Likewise.
18975         * modules/regex (Depends-on): Likewise.
18976         * modules/striconveh (Depends-on): Likewise.
18977         * modules/trim (Depends-on): Likewise.
18978         * modules/unistr/u8-move (Depends-on): Likewise.
18979         * modules/unistr/u16-move (Depends-on): Likewise.
18980         * modules/unistr/u32-move (Depends-on): Likewise.
18981
18982 2008-11-02  Bruno Haible  <bruno@clisp.org>
18983
18984         Mark 'memcpy' obsolete.
18985         * modules/memcpy (Status, Notice): New sections.
18986
18987 2008-11-02  Bruno Haible  <bruno@clisp.org>
18988
18989         Mark 'memcmp' obsolete.
18990         * modules/memcmp (Status, Notice): New sections.
18991         * modules/argmatch (Depends-on): Add memchr.
18992         * modules/backupfile (Depends-on): Likewise.
18993         * modules/c-strcasestr (Depends-on): Likewise.
18994         * modules/crypto/des (Depends-on): Likewise.
18995         * modules/csharpcomp (Depends-on): Likewise.
18996         * modules/fnmatch (Depends-on): Likewise.
18997         * modules/git-merge-changelog (Depends-on): Likewise.
18998         * modules/isnand (Depends-on): Likewise.
18999         * modules/isnand-nolibm (Depends-on): Likewise.
19000         * modules/isnanf (Depends-on): Likewise.
19001         * modules/isnanf-nolibm (Depends-on): Likewise.
19002         * modules/isnanl (Depends-on): Likewise.
19003         * modules/isnanl-nolibm (Depends-on): Likewise.
19004         * modules/mbchar (Depends-on): Likewise.
19005         * modules/memcoll (Depends-on): Likewise.
19006         * modules/quotearg (Depends-on): Likewise.
19007         * modules/regex (Depends-on): Likewise.
19008         * modules/relocatable-prog (Depends-on): Likewise.
19009         * modules/same (Depends-on): Likewise.
19010         * modules/signbit (Depends-on): Likewise.
19011         * modules/strcasestr-simple (Depends-on): Likewise.
19012         * modules/unictype/gen-ctype (Depends-on): Likewise.
19013         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19014         * modules/uniname/uniname (Depends-on): Likewise.
19015         * modules/unistr/u8-cmp (Depends-on): Likewise.
19016
19017 2008-11-02  Bruno Haible  <bruno@clisp.org>
19018
19019         Mark 'memchr' obsolete.
19020         * modules/memchr (Status, Notice): New sections.
19021         * modules/argp (Depends-on): Add memchr.
19022         * modules/base64 (Depends-on): Likewise.
19023         * modules/c-strcasestr (Depends-on): Likewise.
19024         * modules/chdir-long (Depends-on): Likewise.
19025         * modules/fnmatch (Depends-on): Likewise.
19026         * modules/getsubopt (Depends-on): Likewise.
19027         * modules/git-merge-changelog (Depends-on): Likewise.
19028         * modules/glob (Depends-on): Likewise.
19029         * modules/strcasestr-simple (Depends-on): Likewise.
19030         * modules/strnlen (Depends-on): Likewise.
19031
19032 2008-11-02  Bruno Haible  <bruno@clisp.org>
19033
19034         Mark 'atexit' obsolete.
19035         * modules/atexit (Status, Notice): New sections.
19036         * modules/chdir-long (Depends-on): Add atexit.
19037         * modules/wait-process (Depends-on): Likewise.
19038
19039 2008-11-02  Bruno Haible  <bruno@clisp.org>
19040
19041         * gnulib-tool: New option --with-obsolete.
19042         (func_usage): Document it.
19043         (func_modules_transitive_closure): Drop obsolete dependencies if
19044         incobsolete is not true.
19045         (func_import): Read and save the incobsolete variable to the cache.
19046
19047 2008-11-02  Bruno Haible  <bruno@clisp.org>
19048
19049         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19050         * gnulib-tool: New option --extract-status.
19051         (func_usage): Document it.
19052         (sed_extract_prog): Recognize it.
19053         (func_get_status): New function.
19054
19055 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19056
19057         * modules/sockets (License): Change from LGPL to LGPLv2+.
19058
19059 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19060
19061         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19062
19063 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19064
19065         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19066         Mention times and sys_times.
19067         * modules/sys_times, modules/sys_times-tests: New modules.
19068         * modules/times, modules/times-tests: Likewise
19069         * m4/sys_times_h.m4: New file.
19070         * lib/sys_times.in.h: Likewise
19071         * lib/times.c: Likewise.
19072         * tests/test-sys_times.c: Likewise.
19073         * tests/test-times.c: Likewise.
19074         * doc/posix-headers/sys_times.texi: Update.
19075         * doc/posix-functions/times.texi: Update.
19076
19077 2008-10-28  Jim Meyering  <meyering@redhat.com>
19078
19079         * modules/tempname (Depends-on): Add lstat.
19080
19081         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19082
19083 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19084
19085         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19086         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19087         using idiom used elsewhere in gnulib.
19088
19089 2008-10-27  Jim Meyering  <meyering@redhat.com>
19090
19091         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19092
19093 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19094
19095         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19096         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19097         programs.
19098         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19099
19100 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19101
19102         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19103
19104 2008-10-27  Bruno Haible  <bruno@clisp.org>
19105
19106         * tests/test-lstat.c: Include <stdio.h>.
19107
19108 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19109
19110         * modules/lstat-tests: New module.
19111         * tests/test-lstat.c: New file.
19112
19113 2008-10-26  Jim Meyering  <meyering@redhat.com>
19114
19115         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19116
19117 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19118             Bruno Haible  <bruno@clisp.org>
19119
19120         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19121         * modules/configmake (Include): Add a note that the include must come
19122         after all system headers.
19123         * lib/javaversion.c: Include configmake.h after all other includes.
19124
19125 2008-10-26  Bruno Haible  <bruno@clisp.org>
19126
19127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19128         HAVE_STRUCT_RANDOM_DATA to 1.
19129         (gl_STDLIB_H): Simplify.
19130
19131 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19132
19133         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19134         substitute HAVE_STRUCT_RANDOM_DATA.
19135         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19136         random_data.
19137         * modules/stdlib (Makefile.am): Substitute
19138         HAVE_STRUCT_RANDOM_DATA.
19139
19140 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19141
19142         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19143         * doc/gnulib-intro.texi (Copyright): Likewise.
19144
19145 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19146
19147         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19148         findings.
19149
19150 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19151             Bruno Haible  <bruno@clisp.org>
19152
19153         * lib/unistd.in.h: Include <winsock2.h>.
19154         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19155         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19156         Provide dummy declarations.
19157         (gethostname): Override.
19158         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19160         gl_PREREQ_SYS_H_WINSOCK2.
19161         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19162         * doc/posix-functions/gethostname.texi: More details.
19163
19164 2008-10-25  Bruno Haible  <bruno@clisp.org>
19165
19166         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19167         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19168         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19169
19170         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19171         here ...
19172         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19173         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19174         gl_UNISTD_H_DEFAULTS.
19175
19176 2008-10-25  Eric Blake  <ebb9@byu.net>
19177
19178         signbit: avoid spurious compiler failure
19179         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19180         declarations inside function.
19181
19182 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19183             Bruno Haible  <bruno@clisp.org>
19184
19185         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19186         * modules/random_r (Depends-on): Add stdint.
19187
19188 2008-10-24  Bruno Haible  <bruno@clisp.org>
19189
19190         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19191         Eggert.
19192         * modules/strerror (License): Likewise.
19193
19194 2008-10-24  Jim Meyering  <meyering@redhat.com>
19195
19196         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19197         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19198
19199 2008-10-24  Eric Blake  <ebb9@byu.net>
19200
19201         getgroups: fix compilation when getgroups is available
19202         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19203         but with <config.h> override of getgroups disabled.
19204
19205 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19206
19207         * doc/gnulib.texi (Header files): Add note about C++ problems.
19208         Explained by Bruno Haible <bruno@clisp.org>.
19209
19210 2008-10-23  Bruno Haible  <bruno@clisp.org>
19211
19212         Define a dummy SA_NODEFER macro on Interix.
19213         * lib/signal.in.h (SA_NODEFER): Define fallback.
19214         Reported by Aleksey Cheusov <cheusov@tut.by> via
19215         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19216
19217 2008-10-23  Bruno Haible  <bruno@clisp.org>
19218
19219         * modules/freadahead (License): Change to LGPLv2+.
19220         Suggested by Simon Josefsson.
19221
19222 2008-10-23  Jim Meyering  <meyering@redhat.com>
19223
19224         random_r: new module
19225         * modules/random_r: New file.
19226         * m4/random_r.m4: New file.
19227         * lib/random_r.c: New file, from glibc.
19228         * modules/random_r-tests: New file.
19229         * tests/test-random_r.c: New file.
19230         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19231          Declare.
19232         (RAND_MAX): Define.
19233         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19234         * modules/stdlib: Substitute them, too.
19235         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19236         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19237         * doc/glibc-functions/random_r.texi: Likewise.
19238         * doc/glibc-functions/setstate_r.texi: Likewise.
19239         * doc/glibc-functions/srandom_r.texi: Likewise.
19240         * config/srclist.txt: Mention it.
19241
19242 2008-10-23  David Lutterkort  <lutter@redhat.com>
19243
19244         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19245         link requirement
19246
19247 2008-10-23  Jim Meyering  <meyering@redhat.com>
19248
19249         selinux-h: mark parameters of stub functions as intentionally unused
19250         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19251         * lib/se-context.in.h: Likewise.
19252
19253 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19254
19255         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19256
19257 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19258
19259         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19260
19261 2008-10-22  Eric Blake  <ebb9@byu.net>
19262
19263         glthread/thread: avoid compiler warning
19264         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19265         Add unreachable abort to silence compiler.
19266
19267 2008-10-22  Eric Blake  <ebb9@byu.net>
19268
19269         netdb: also supply struct addrinfo for cygwin 1.5.x
19270         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19271         older cygwin.
19272         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19273         cygwin.
19274         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19275
19276 2008-10-22  Bruno Haible  <bruno@clisp.org>
19277
19278         * users.txt: Update entry about pspp.
19279
19280 2008-10-21  Bruno Haible  <bruno@clisp.org>
19281
19282         Simplification.
19283         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19284         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19285
19286         Simplification.
19287         * lib/ioctl.c (ioctl): Don't undefine.
19288         * lib/socket.c (socket): Don't undefine.
19289
19290         Remove unused module indicator macros.
19291         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19292         GNULIB_$1 as a C macro.
19293
19294         * doc/posix-functions/close.texi: Undo last change.
19295         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19296         Windows platforms.
19297
19298 2008-10-21  Bruno Haible  <bruno@clisp.org>
19299
19300         Add gethostname() declaration to <unistd.h>.
19301         * lib/unistd.in.h (gethostname): New declaration.
19302         * lib/gethostname.c: Include <unistd.h>.
19303         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19304         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19306         and HAVE_GETHOSTNAME.
19307         * modules/gethostname (Depends-on): Add unistd.
19308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19309         (Include): Specify <unistd.h>.
19310         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19311         HAVE_GETHOSTNAME.
19312         * tests/test-gethostname.c: Include <unistd.h> first.
19313
19314 2008-10-21  Bruno Haible  <bruno@clisp.org>
19315
19316         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19317         * modules/select-tests (Depends-on): Likewise.
19318         Reported by Simon Josefsson.
19319
19320 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19321
19322         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19323         * lib/accept.c: New file, based on winsock.c.
19324         * lib/bind.c: New file, based on winsock.c.
19325         * lib/connect.c: New file, based on winsock.c.
19326         * lib/getpeername.c: New file, based on winsock.c.
19327         * lib/getsockname.c: New file, based on winsock.c.
19328         * lib/getsockopt.c: New file, based on winsock.c.
19329         * lib/ioctl.c: New file, based on winsock.c.
19330         * lib/listen.c: New file, based on winsock.c.
19331         * lib/recv.c: New file, based on winsock.c.
19332         * lib/recvfrom.c: New file, based on winsock.c.
19333         * lib/send.c: New file, based on winsock.c.
19334         * lib/sendto.c: New file, based on winsock.c.
19335         * lib/setsockopt.c: New file, based on winsock.c.
19336         * lib/shutdown.c: New file, based on winsock.c.
19337         * lib/socket.c: New file, based on winsock.c.
19338         * lib/w32sock.h: New file, based on winsock.c.
19339         * lib/winsock.c: Remove file.
19340         * modules/accept: Likewise.
19341         * modules/bind: Likewise.
19342         * modules/connect: Likewise.
19343         * modules/getpeername: Likewise.
19344         * modules/getsockname: Likewise.
19345         * modules/getsockopt: Likewise.
19346         * modules/ioctl: Likewise.
19347         * modules/listen: Likewise.
19348         * modules/recv: Likewise.
19349         * modules/recvfrom: Likewise.
19350         * modules/send: Likewise.
19351         * modules/sendto: Likewise.
19352         * modules/setsockopt: Likewise.
19353         * modules/shutdown: Likewise.
19354         * modules/socket: Use socket.c instead of winsock.c.
19355         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19356         * doc/posix-functions/accept.texi: Doc fix.
19357         * doc/posix-functions/bind.texi: Doc fix.
19358         * doc/posix-functions/close.texi: Doc fix.
19359         * doc/posix-functions/connect.texi: Doc fix.
19360         * doc/posix-functions/getpeername.texi: Doc fix.
19361         * doc/posix-functions/getsockname.texi: Doc fix.
19362         * doc/posix-functions/getsockopt.texi: Doc fix.
19363         * doc/posix-functions/ioctl.texi: Doc fix.
19364         * doc/posix-functions/listen.texi: Doc fix.
19365         * doc/posix-functions/recv.texi: Doc fix.
19366         * doc/posix-functions/recvfrom.texi: Doc fix.
19367         * doc/posix-functions/send.texi: Doc fix.
19368         * doc/posix-functions/sendto.texi: Doc fix.
19369         * doc/posix-functions/setsockopt.texi: Doc fix.
19370         * doc/posix-functions/shutdown.texi: Doc fix.
19371         * doc/posix-functions/socket.texi: Doc fix.
19372
19373 2008-10-20  Bruno Haible  <bruno@clisp.org>
19374
19375         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19376         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19377         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19378         as an alias for SIGABRT.
19379         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19380         (sigaction): Map it to SIGABRT.
19381         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19382
19383 2008-10-20  Bruno Haible  <bruno@clisp.org>
19384
19385         * lib/fts.c: Don't include lstat.h.
19386         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19387
19388         Move the lstat() declaration to <sys/stat.h>.
19389         * lib/lstat.h: Remove file.
19390         * lib/sys_stat.in.h: Add special invocation convention.
19391         (lstat): New declaration.
19392         * lib/lstat.c (orig_lstat): New function.
19393         (rpl_lstat): Use orig_lstat instead of lstat.
19394         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19395         AC_C_INLINE. Set REPLACE_LSTAT.
19396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19397         and REPLACE_LSTAT.
19398         * modules/lstat (Files): Remove lib/lstat.h.
19399         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19400         (Include): Specify <sys/stat.h> instead of lstat.h.
19401         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19402         REPLACE_LSTAT.
19403         * NEWS: Mention the change.
19404
19405 2008-10-20  Bruno Haible  <bruno@clisp.org>
19406
19407         * modules/posix_spawn-tests: New file.
19408         * tests/test-posix_spawn3.c: New file.
19409
19410 2008-10-20  Bruno Haible  <bruno@clisp.org>
19411
19412         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19413         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19414         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19415         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19416         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19417
19418 2008-10-20  Bruno Haible  <bruno@clisp.org>
19419
19420         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19421         of posix_spawn on AIX 5.3.
19422
19423 2008-10-20  Bruno Haible  <bruno@clisp.org>
19424
19425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19426
19427 2008-10-20  Bruno Haible  <bruno@clisp.org>
19428
19429         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19430         of AC_LANG_PROGRAM.
19431
19432 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19433
19434         * lib/netdb.in.h: Don't define GNU specific constants until they
19435         are supported or needed.  Reported by Bruno Haible
19436         <bruno@clisp.org>.
19437
19438 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19439
19440         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19441
19442 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19443
19444         * lib/getaddrinfo.h: Remove file.
19445         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19446         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19447         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19448         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19449         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19450         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19451         * tests/test-getaddrinfo.c: Likewise.
19452         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19453         * NEWS: Mention change.
19454
19455 2008-10-19  Bruno Haible  <bruno@clisp.org>
19456
19457         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19458
19459 2008-10-19  Bruno Haible  <bruno@clisp.org>
19460
19461         * lib/wait-process.c: Include simply <sys/wait.h>.
19462         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19463         WIFSTOPPED): Remove fallback definitions.
19464         * modules/wait-process (Depends-on): Add sys_wait.
19465
19466         New module 'sys_wait'.
19467         * modules/sys_wait: New file.
19468         * lib/sys_wait.in.h: New file, partially copied from
19469         lib/wait-process.c.
19470         * m4/sys_wait_h.m4: New file.
19471         * doc/posix-headers/sys_wait.texi: Mention the new module.
19472
19473 2008-10-19  Bruno Haible  <bruno@clisp.org>
19474
19475         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19476
19477 2008-10-19  Bruno Haible  <bruno@clisp.org>
19478
19479         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19480         * lib/wait-process.c (WAIT_T): Remove type.
19481         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19482         (wait_subprocess): Update.
19483
19484 2008-10-19  Bruno Haible  <bruno@clisp.org>
19485
19486         New module 'atoll'.
19487         * modules/atoll: New file.
19488         * lib/stdlib.in.h (atoll): New declaration.
19489         * lib/atoll.c: New file, from glibc with modifications.
19490         * m4/atoll.m4: New file.
19491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19492         HAVE_ATOLL.
19493         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19494         * doc/posix-functions/atoll.texi: Mention the new module.
19495
19496 2008-10-19  Bruno Haible  <bruno@clisp.org>
19497
19498         Add strtoull() declaration to <stdlib.h>.
19499         * lib/stdlib.in.h (strtoull): New declaration.
19500         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19501         Set HAVE_STRTOULL.
19502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19503         HAVE_STRTOULL.
19504         * modules/strtoull (Depends-on): Add stdlib.
19505         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19506         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19507         HAVE_STRTOULL.
19508
19509 2008-10-19  Bruno Haible  <bruno@clisp.org>
19510
19511         Add strtoll() declaration to <stdlib.h>.
19512         * lib/stdlib.in.h (strtoll): New declaration.
19513         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19514         Set HAVE_STRTOLL.
19515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19516         HAVE_STRTOLL.
19517         * modules/strtoll (Depends-on): Add stdlib.
19518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19519         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19520
19521 2008-10-19  Bruno Haible  <bruno@clisp.org>
19522
19523         * modules/bcopy (Depends-on): Add strings.
19524         (Include): Specify <strings.h>.
19525
19526 2008-10-19  Bruno Haible  <bruno@clisp.org>
19527
19528         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19529
19530 2008-10-19  Bruno Haible  <bruno@clisp.org>
19531
19532         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19533         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19534         mingw.
19535
19536 2008-10-19  Bruno Haible  <bruno@clisp.org>
19537
19538         * lib/atanl.c: Don't include isnanl.h.
19539         * lib/cosl.c: Likewise.
19540         * lib/ldexpl.c: Likewise.
19541         * lib/logl.c: Likewise.
19542         * lib/sinl.c: Likewise.
19543         * lib/sqrtl.c: Likewise.
19544         * lib/tanl.c: Likewise.
19545
19546         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19547         * lib/isnanf.h: Remove file.
19548         * lib/isnand.h: Remove file.
19549         * lib/isnanl.h: Remove file.
19550         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19551         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19552         macros.
19553         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19554         HAVE_ISNANF, don't define it as a C macro.
19555         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19556         HAVE_ISNAND, don't define it as a C macro.
19557         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19558         HAVE_ISNANL, don't define it as a C macro.
19559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19560         HAVE_ISNAN[FDL].
19561         * modules/isnanf (Files): Remove lib/isnanf.h.
19562         (Depends-on): Add math.
19563         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19564         (Include): Specify <math.h> instead of isnanf.h.
19565         * modules/isnand (Files): Remove lib/isnand.h.
19566         (Depends-on): Add math.
19567         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19568         (Include): Specify <math.h> instead of isnand.h.
19569         * modules/isnanl (Files): Remove lib/isnanl.h.
19570         (Depends-on): Add math.
19571         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19572         (Include): Specify <math.h> instead of isnanl.h.
19573         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19574         HAVE_ISNAN[FDL].
19575         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19576         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19577         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19578         * NEWS: Mention the change.
19579
19580 2008-10-18  Bruno Haible  <bruno@clisp.org>
19581
19582         Add getusershell(), setusershell(), endusershell() declarations to
19583         <unistd.h>.
19584         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19585         declarations.
19586         * lib/getusershell.c: Include unistd.h.
19587         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19588         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19589         HAVE_GETUSERSHELL.
19590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19591         and HAVE_GETUSERSHELL.
19592         * modules/getusershell (Depends-on): Add unistd, extensions.
19593         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19594         (Include): Specify <unistd.h>.
19595         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19596         HAVE_GETUSERSHELL.
19597
19598 2008-10-18  Bruno Haible  <bruno@clisp.org>
19599
19600         Add a getloadavg() declaration to <stdlib.h>.
19601         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19602         getloadavg declaration.
19603         (getloadavg): New declaration.
19604         * lib/getloadavg.c: Include <stdlib.h> first.
19605         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19606         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19607         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19609         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19610         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19611         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19612         (Include): Specify <stdlib.h>.
19613         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19614         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19615
19616 2008-10-18  Bruno Haible  <bruno@clisp.org>
19617
19618         * lib/dirchownmod.c: Don't include lchmod.h.
19619
19620         Move the lchmod() declaration to <sys/stat.h>.
19621         * lib/lchmod.h: Remove file.
19622         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19623         (lchmod): New declaration, moved here from lib/lchown.h.
19624         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19625         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19627         and HAVE_LCHMOD.
19628         * modules/lchmod (Files): Remove lib/lchmod.h.
19629         (Depends-on): Add sys_stat, extensions.
19630         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19631         (Include): Specify <sys/stat.h> instead of lchmod.h.
19632         * modules/sys_stat (Depends-on): Add link-warning.
19633         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19634         definition of GL_LINK_WARNING.
19635         * NEWS: Mention the change.
19636
19637 2008-10-18  Bruno Haible  <bruno@clisp.org>
19638
19639         * lib/fchdir.c: Don't include dirfd.h.
19640         * lib/fts.c: Likewise.
19641         * lib/getcwd.c: Likewise.
19642         * lib/glob.c: Likewise.
19643
19644         Move the dirfd() declaration to <dirent.h>.
19645         * lib/dirfd.h: Remove file.
19646         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19647         (dirfd): New declaration.
19648         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19649         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19650         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19651         HAVE_DECL_DIRFD.
19652         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19653         HAVE_DECL_DIRFD.
19654         * modules/dirfd (Files): Remove lib/dirfd.h.
19655         (Depends-on): Add dirent, extensions.
19656         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19657         (Include): Specify <dirent.h> instead of dirfd.h.
19658         * modules/dirent (Depends-on): Add link-warning.
19659         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19660         definition of GL_LINK_WARNING.
19661         * NEWS: Mention the change.
19662
19663 2008-10-18  Bruno Haible  <bruno@clisp.org>
19664
19665         Move the euidaccess() declaration to <unistd.h>.
19666         * lib/euidaccess.h: Remove file.
19667         * lib/unistd.in.h (euidaccess): New declaration.
19668         * lib/euidaccess.c: Don't include euidaccess.h.
19669         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19670         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19672         and HAVE_EUIDACCESS.
19673         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19674         (Depends-on): Add unistd.
19675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19676         (Include): Specify <unistd.h> instead of euidaccess.h.
19677         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19678         HAVE_EUIDACCESS.
19679         * NEWS: Mention the change.
19680
19681 2008-10-18  Bruno Haible  <bruno@clisp.org>
19682
19683         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19684
19685         Move the getdomainname() declaration to <unistd.h>.
19686         * lib/getdomainname.h: Remove file.
19687         * lib/unistd.in.h (getdomainname): New declaration.
19688         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19689         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19690         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19691         HAVE_GETDOMAINNAME.
19692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19693         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19694         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19695         (Depends-on): Add unistd, extensions.
19696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19697         (Includes): Specify <unistd.h> instead of getdomainname.h.
19698         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19699         HAVE_GETDOMAINNAME.
19700         * NEWS: Mention the change.
19701
19702 2008-10-18  Bruno Haible  <bruno@clisp.org>
19703
19704         * modules/dirent: New file.
19705         * m4/dirent_h.m4: New file.
19706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19707         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19708         * modules/fchdir (Files): Remove lib/dirent.in.h.
19709         (Depends-on): Add dirent.
19710         (Makefile.am): Move rules to modules/dirent.
19711         * doc/posix-headers/dirent.texi: Mention the new module.
19712
19713 2008-10-18  Bruno Haible  <bruno@clisp.org>
19714
19715         Avoid -Wunused-parameter warnings in public gnulib header files.
19716         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19717         macro.
19718         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19719
19720 2008-10-18  Bruno Haible  <bruno@clisp.org>
19721
19722         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19723         * doc/glibc-functions/error.texi: Mention the module 'error'.
19724         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19725         * doc/glibc-functions/getdomainname.texi: Mention the module
19726         'getdomainname'.
19727         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19728         * doc/glibc-functions/getpagesize.texi: Mention the module
19729         'getpagesize'.
19730         * doc/glibc-functions/getusershell.texi: Mention the module
19731         'getusershell'.
19732         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19733         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19734         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19735         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19736         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19737         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19738         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19739         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19740         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19741         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19742         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19743         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19744         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19745         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19746
19747 2008-10-17  Bruno Haible  <bruno@clisp.org>
19748
19749         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19750         HP-UX and IRIX, use -0.0L.
19751         * tests/test-ceill.c (minus_zero): Likewise.
19752         * tests/test-floorl.c (minus_zero): Likewise.
19753         * tests/test-frexpl.c (minus_zero): Likewise.
19754         * tests/test-isnan.c (minus_zerol): Likewise.
19755         * tests/test-isnanl.h (minus_zero): Likewise.
19756         * tests/test-ldexpl.c (minus_zero): Likewise.
19757         * tests/test-roundl.c (minus_zero): Likewise.
19758         * tests/test-signbit.c (minus_zerol): Likewise.
19759         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19760         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19761         * tests/test-truncl.c (minus_zero): Likewise.
19762         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19763         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19764         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19765         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19766
19767 2008-10-17  Bruno Haible  <bruno@clisp.org>
19768
19769         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19770         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19771         that it gets activated only for gcc >= 3.0.
19772         * lib/dirent.in.h: Likewise.
19773         * lib/errno.in.h: Likewise.
19774         * lib/fcntl.in.h: Likewise.
19775         * lib/float.in.h: Likewise.
19776         * lib/iconv.in.h: Likewise.
19777         * lib/inttypes.in.h: Likewise.
19778         * lib/locale.in.h: Likewise.
19779         * lib/math.in.h: Likewise.
19780         * lib/netdb.in.h: Likewise.
19781         * lib/netinet_in.in.h: Likewise.
19782         * lib/search.in.h: Likewise.
19783         * lib/signal.in.h: Likewise.
19784         * lib/spawn.in.h: Likewise.
19785         * lib/stdarg.in.h: Likewise.
19786         * lib/stdint.in.h: Likewise.
19787         * lib/stdio.in.h: Likewise.
19788         * lib/stdlib.in.h: Likewise.
19789         * lib/string.in.h: Likewise.
19790         * lib/strings.in.h: Likewise.
19791         * lib/sys_file.in.h: Likewise.
19792         * lib/sys_ioctl.in.h: Likewise.
19793         * lib/sys_select.in.h: Likewise.
19794         * lib/sys_socket.in.h: Likewise.
19795         * lib/sys_stat.in.h: Likewise.
19796         * lib/sys_time.in.h: Likewise.
19797         * lib/sysexits.in.h: Likewise.
19798         * lib/time.in.h: Likewise.
19799         * lib/unistd.in.h: Likewise.
19800         * lib/wchar.in.h: Likewise.
19801         * lib/wctype.in.h: Likewise.
19802         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19803
19804 2008-10-17  Jim Meyering  <meyering@redhat.com>
19805
19806         ignore-value: don't depend on inline module
19807         * modules/ignore-value (Depends-on): Remove 'inline'.
19808         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19809         Suggestion from Bruno Haible.
19810
19811 2008-10-17  Bruno Haible  <bruno@clisp.org>
19812
19813         New implementation of condition variables for Win32.
19814         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19815         (gl_linked_waitqueue_t): New type.
19816         (gl_cond_t): Use it.
19817         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19818         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19819         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19820         (glthread_cond_init_func, glthread_cond_wait_func,
19821         glthread_cond_timedwait_func, glthread_cond_signal_func,
19822         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19823         Reimplemented on the basis of gl_linked_waitqueue_t.
19824         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19825         gl_waitqueue_t.
19826         (gl_rwlock_t): Update.
19827         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19828
19829 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19830
19831         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19832         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19833
19834 2008-10-17  Jim Meyering  <meyering@redhat.com>
19835
19836         ignore-value: new module
19837         * modules/ignore-value: New file.
19838         * lib/ignore-value.h: New file.
19839         * MODULES.html.sh (Compiler warning management): New section,
19840         just for this module.  More to come.
19841
19842 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19843
19844         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19845         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19846         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19847
19848 2008-10-16  Jim Meyering  <meyering@redhat.com>
19849
19850         openat-die.c: avoid 'no previous prototype' warning
19851         * lib/openat-die.c: Include "openat.h".
19852         Reported by Reuben Thomas <rrt@sc3d.org>.
19853
19854 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19855
19856         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19857         * lib/netdb.in.h: Fix typo.
19858         Reported by Bruno Haible  <bruno@clisp.org>
19859
19860         * lib/netdb.in.h: Include sys/socket.h for platforms without
19861         netdb.h, to get structures like hostent on MinGW.
19862         * modules/netdb (Depends-on): Add sys_socket.
19863
19864 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19865
19866         * modules/netdb, modules/netdb-tests: New file.
19867         * m4/netdb_h.m4: New file.
19868         * lib/netdb.in.h: Add, currently just an empty file pending
19869         definitions.
19870         * tests/test-netdb.c: New file.
19871         * doc/posix-headers/netdb.texi: Mention that we replace it if
19872         needed.
19873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19874         netdb.
19875
19876 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19877
19878         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19879         with code.
19880
19881 2008-10-13  Bruno Haible  <bruno@clisp.org>
19882
19883         * lib/glthread/cond.c (glthread_cond_wait_func,
19884         glthread_cond_timedwait_func): Add a comment.
19885
19886 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19887
19888         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19889         * tests/test-select.c: Likewise,
19890
19891 2008-10-13  Bruno Haible  <bruno@clisp.org>
19892
19893         * lib/glthread/cond.c (glthread_cond_wait_func,
19894         glthread_cond_timedwait_func): Fix variable name.
19895         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19896
19897 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19898
19899         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19901         struct sockaddr.sa_len.
19902         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19903
19904 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19905
19906         * build-aux/pmccabe2html: Add css and css_url parameters.
19907
19908 2008-10-12  Bruno Haible  <bruno@clisp.org>
19909
19910         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19911         calling aclx_get.
19912         Reported by Rainer Tammer <tammer@tammer.net>.
19913
19914 2008-10-12  Bruno Haible  <bruno@clisp.org>
19915
19916         Use msvcrt aware primitives for creation/termination of Win32 threads.
19917         * lib/glthread/thread.c: Include <process.h>.
19918         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19919         (wrapper_func): Update signature.
19920         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19921
19922 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19923             Bruno Haible  <bruno@clisp.org>
19924
19925         Provide a Win32 implementation of the 'cond' module.
19926         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19927         * lib/glthread/cond.c (glthread_cond_init_func,
19928         glthread_cond_wait_func, glthread_cond_timedwait_func,
19929         glthread_cond_signal_func, glthread_cond_broadcast_func,
19930         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19931         * modules/cond (Dependencies): Add gettimeofday.
19932
19933 2008-10-11  Bruno Haible  <bruno@clisp.org>
19934
19935         Make sleep work on older versions of mingw.
19936         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19937         only whether it exists.
19938         * doc/posix-functions/sleep.texi: Mention the problem with older
19939         versions of mingw.
19940
19941 2008-10-11  Bruno Haible  <bruno@clisp.org>
19942
19943         New module 'shutdown'.
19944         * modules/shutdown: New file.
19945         * lib/sys_socket.in.h (shutdown): New declaration.
19946         * lib/winsock.c (shutdown): New function.
19947         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19948         GNULIB_SHUTDOWN.
19949         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19950         * doc/posix-functions/shutdown.texi: Document the new module.
19951
19952 2008-10-11  Jim Meyering  <meyering@redhat.com>
19953
19954         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19955
19956 2008-10-11  Bruno Haible  <bruno@clisp.org>
19957
19958         New module 'fclose'.
19959         * modules/fclose: New file.
19960         * lib/stdio.in.h (fclose): New declaration.
19961         * lib/fclose.c: New file.
19962         * m4/fclose.m4: New file.
19963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19964         REPLACE_FCLOSE.
19965         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19966         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19967         REPLACE_FCLOSE.
19968         * modules/close (Depends-on): fclose.
19969         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19970
19971 2008-10-11  Bruno Haible  <bruno@clisp.org>
19972
19973         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19974         set errno and don't call _close.
19975
19976 2008-10-10  Bruno Haible  <bruno@clisp.org>
19977
19978         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19979         ACL, not afterwards. Fixes test failure on Cygwin.
19980
19981 2008-10-09  Ben Pfaff  <blp@gnu.org>
19982
19983         * build-aux/announce-gen: Fix gnulib version related part of usage
19984         message.  Die with a useful error message if no tarballs are
19985         found.
19986
19987 2008-10-10  Jim Meyering  <meyering@redhat.com>
19988
19989         bootstrap: use git's --depth=N option only if it's supported
19990         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19991         recognize the --depth option.  Reported by Pádraig Brady.
19992
19993 2008-10-09  Bruno Haible  <bruno@clisp.org>
19994
19995         New module 'ioctl'.
19996         * modules/ioctl: New file.
19997         * lib/sys_socket.in.h (ioctl): Remove declaration.
19998         * lib/winsock.c: Include <sys/ioctl.h>.
19999         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20000         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20001         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20002         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20003         * doc/posix-functions/ioctl.texi: Mention the new module.
20004
20005 2008-10-09  Bruno Haible  <bruno@clisp.org>
20006
20007         New module 'sys_ioctl'.
20008         * lib/sys_ioctl.in.h: New file.
20009         * m4/sys_ioctl_h.m4: New file.
20010         * modules/sys_ioctl: New file.
20011         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20012
20013 2008-10-09  Bruno Haible  <bruno@clisp.org>
20014
20015         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20016         * lib/winsock.c: Include <stdarg.h>.
20017         (rpl_ioctl): Change to second argument 'int' and then varargs.
20018
20019 2008-10-09  Bruno Haible  <bruno@clisp.org>
20020
20021         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20022         when the sys_socket module is present and the system has <winsock2.h>.
20023
20024 2008-10-09  Bruno Haible  <bruno@clisp.org>
20025
20026         * doc/posix-functions/close.texi: Mention module 'close' instead of
20027         module 'sys_socket'.
20028
20029 2008-10-09  Bruno Haible  <bruno@clisp.org>
20030
20031         * doc/glibc-headers/sys_ioctl.texi: New file.
20032         * doc/gnulib.texi: Include it.
20033
20034 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20035             Bruno Haible  <bruno@clisp.org>
20036
20037         Combine the two replacements of 'close'.
20038         * lib/sys_socket.in.h (close): Define to a reminder to include
20039         <unistd.h>.
20040         (_gl_close_fd_maybe_socket): New declaration.
20041         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20042         * lib/winsock.c (close): Remove undefinition.
20043         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20044         needed for the gnulib module 'close'.
20045         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20046         define to an error symbol or to a warning, if suitable.
20047         * lib/close.c: Include <sys/socket.h>.
20048         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20049         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20050         UNISTD_H_HAVE_WINSOCK2_H.
20051         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20053         UNISTD_H_HAVE_WINSOCK2_H.
20054         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20055         (configure.ac): Set a module indicator.
20056         (Makefile.am): Substitute GNULIB_CLOSE.
20057         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20058         * modules/poll-tests (Depends-on): Add close.
20059         * modules/select-tests (Depends-on): Likewise.
20060
20061 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20062             Bruno Haible  <bruno@clisp.org>
20063
20064         New module 'close'.
20065         * modules/close: New file.
20066         * lib/unistd.in.h (close): Move declaration out of the
20067         FCHDIR_REPLACEMENT scope.
20068         (_gl_unregister_fd): New declaration.
20069         * lib/close.c: New file.
20070         * lib/fchdir.c (rpl_close): Remove function.
20071         * m4/close.m4: New file.
20072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20073         close.
20074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20075         REPLACE_CLOSE.
20076         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20077         REPLACE_CLOSE.
20078         * modules/fchdir (Depends-on): Add close.
20079
20080 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20081             Bruno Haible  <bruno@clisp.org>
20082
20083         * lib/fcntl.in.h (open): Simplify conditionals.
20084         (_gl_register_fd): New declaration.
20085         * lib/fchdir.c (rpl_open): Remove function.
20086         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20087         also.
20088         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20090         open.
20091
20092 2008-10-09  Jim Meyering  <meyering@redhat.com>
20093
20094         GNUmakefile: use the more name-space-friendly "_version"
20095         * top/GNUmakefile (_dummy): Update.
20096         (_version): Rename from "version".
20097
20098 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20099             Bruno Haible  <bruno@clisp.org>
20100
20101         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20102         rpl_close.
20103         (_gl_register_fd): New function, extracted from rpl_open.
20104         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20105         (rpl_open, rpl_opendir): Use _gl_register_fd.
20106
20107 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20108
20109         Fix organization of 'open' replacement.
20110         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20111         (gl_FUNC_OPEN): Use it.
20112         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20113
20114 2008-10-08  Bruno Haible  <bruno@clisp.org>
20115
20116         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20117
20118 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20119
20120         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20121         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20122         listen).
20123
20124 2008-10-08  Eric Blake  <ebb9@byu.net>
20125
20126         GNUmakefile: add 'make version' target
20127         * top/GNUmakefile (_curr-ver): Split version update rules...
20128         (version): ...into a target.
20129
20130 2008-10-07  Bruno Haible  <bruno@clisp.org>
20131
20132         Use a more portable replacement expression for -0.0L.
20133         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20134         instead of -0.0L. Fix m4 quotation.
20135
20136         * tests/test-signbit.c: Include <float.h>.
20137         (minus_zero): New variable.
20138         (test_signbitl): Use minus_zero instead of -zero.
20139         * modules/signbit-tests (Depends-on): Add float.
20140
20141         * tests/test-ceill.c: Include <float.h>.
20142         (zero): Remove variable.
20143         (minus_zero): New variable.
20144         (main): Use minus_zero instead of -zero.
20145         * modules/ceill-tests (Depends-on): Add float.
20146
20147         * tests/test-floorl.c: Include <float.h>.
20148         (zero): Remove variable.
20149         (minus_zero): New variable.
20150         (main): Use minus_zero instead of -zero.
20151         * modules/floorl-tests (Depends-on): Add float.
20152
20153         * tests/test-roundl.c: Include <float.h>.
20154         (zero): Remove variable.
20155         (minus_zero): New variable.
20156         (main): Use minus_zero instead of -zero.
20157         * modules/roundl-tests (Depends-on): Add float.
20158
20159         * tests/test-truncl.c: Include <float.h>.
20160         (zero): Remove variable.
20161         (minus_zero): New variable.
20162         (main): Use minus_zero instead of -zero.
20163         * modules/truncl-tests (Depends-on): Add float.
20164
20165         * tests/test-frexpl.c (zero): Remove variable.
20166         (minus_zero): New variable.
20167         (main): Use minus_zero instead of -zero.
20168         * modules/frexpl-tests (Depends-on): Add float.
20169
20170         * tests/test-isnan.c (zerol): Remove variable.
20171         (minus_zerol): New variable.
20172         (test_long_double): Use minus_zerol instead of -zerol.
20173         * modules/isnan-tests (Depends-on): Add float.
20174
20175         * tests/test-isnanl.h (zero): Remove variable.
20176         (minus_zero): New variable.
20177         (main): Use minus_zero instead of -zero.
20178         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20179         * modules/isnanl-tests (Depends-on): Add float.
20180
20181         * tests/test-ldexpl.c (zero): Remove variable.
20182         (minus_zero): New variable.
20183         (main): Use minus_zero instead of -zero.
20184         * modules/ldexpl-tests (Depends-on): Add float.
20185
20186         * tests/test-snprintf-posix.h (zerol): Remove variable.
20187         (minus_zerol): New variable.
20188         (test_function): Use minus_zerol instead of -zerol.
20189         * modules/snprintf-posix-tests (Depends-on): Add float.
20190         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20191
20192         * tests/test-sprintf-posix.h (zerol): Remove variable.
20193         (minus_zerol): New variable.
20194         (test_function): Use minus_zerol instead of -zerol.
20195         * modules/sprintf-posix-tests (Depends-on): Add float.
20196         * modules/vsprintf-posix-tests (Depends-on): Add float.
20197
20198         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20199         (minus_zerol): New variable.
20200         (test_function): Use minus_zerol instead of -zerol.
20201         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20202
20203         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20204         (minus_zerol): New variable.
20205         (test_function): Use minus_zerol instead of -zerol.
20206         * modules/vasprintf-posix-tests (Depends-on): Add float.
20207
20208 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20209
20210         * MODULES.html.sh (Support for building documentation): Mention
20211         pmccabe2html.  Sort entries.
20212
20213         Add pmccabe2html module, from gnupdf.
20214         * build-aux/pmccabe.css: New file.
20215         * build-aux/pmccabe2html: New file.
20216         * m4/pmccabe2html.m4: New file.
20217         * modules/pmccabe2html: New file.
20218
20219 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20220
20221         flock: new module
20222         * MODULES.html.sh: Add to list of modules.
20223         * lib/flock.c: flock implementation for Windows and Unix systems
20224         which have fcntl.
20225         * doc/glibc-functions/flock.texi: Update documentation.
20226         * lib/sys_file.in.h: <sys/file.h> header file.
20227         * m4/flock.m4: M4 macros.
20228         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20229         * modules/flock: flock module.
20230         * modules/flock-tests: flock tests module.
20231         * modules/sys_file: sys/file.h module.
20232         * tests/test-flock.c: test suite for flock.
20233
20234 2008-10-06  Jim Meyering  <meyering@redhat.com>
20235
20236         bootstrap: check for LT_INIT more portably still ;-)
20237         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20238         Spotted by Bruno Haible.
20239
20240 2008-10-06  Eric Blake  <ebb9@byu.net>
20241
20242         test-signbit: avoid tripping Irix cc bug on -0.0L
20243         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20244         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20245         entire testsuite consistent and avoids an Irix 6.2 bug.
20246
20247 2008-10-05  Bruno Haible  <bruno@clisp.org>
20248             Jim Meyering  <jim@meyering.net>
20249
20250         Add an option for ignoring EPIPE during close_stdout.
20251         * lib/closeout.h: Include <stdbool.h>.
20252         (close_stdout_set_ignore_EPIPE): New declaration.
20253         * lib/closeout.c: Include <stdbool.h>.
20254         (ignore_EPIPE): New variable.
20255         (close_stdout_set_ignore_EPIPE): New function.
20256         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20257         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20258         failure.
20259         * modules/closeout (Depends-on): Add stdbool.
20260
20261 2008-10-05  Bruno Haible  <bruno@clisp.org>
20262
20263         * modules/accept: New file.
20264         * modules/bind: New file.
20265         * modules/connect: New file.
20266         * modules/getpeername: New file.
20267         * modules/getsockname: New file.
20268         * modules/getsockopt: New file.
20269         * modules/listen: New file.
20270         * modules/recv: New file.
20271         * modules/recvfrom: New file.
20272         * modules/send: New file.
20273         * modules/sendto: New file.
20274         * modules/setsockopt: New file.
20275         * modules/socket: New file.
20276         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20277         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20278         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20279         the particular module is requested. Add a link warning when the
20280         particular module is not requested.
20281         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20282         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20283         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20284         the particular module is requested.
20285         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20286         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20287         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20288         * modules/sys_socket (Depends-on): Add link-warning.
20289         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20290         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20291         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20292         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20293         GL_LINK_WARNING.
20294         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20295         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20296         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20297         * doc/posix-functions/getpeername.texi: Mention the new module
20298         'getpeername'.
20299         * doc/posix-functions/getsockname.texi: Mention the new module
20300         'getsockname'.
20301         * doc/posix-functions/getsockopt.texi: Mention the new module
20302         'getsockopt'.
20303         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20304         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20305         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20306         * doc/posix-functions/send.texi: Mention the new module 'send'.
20307         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20308         * doc/posix-functions/setsockopt.texi: Mention the new module
20309         'setsockopt'.
20310         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20311         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20312         listen, connect, accept.
20313         * modules/select-tests (Depends-on): Likewise.
20314
20315 2008-10-05  Bruno Haible  <bruno@clisp.org>
20316
20317         * lib/winsock.c (strerror): Remove unused #undef.
20318         (rpl_close): Remove unused local variable.
20319
20320         * modules/sys_socket (Depends-on); Add errno.
20321
20322 2008-10-05  Bruno Haible  <bruno@clisp.org>
20323
20324         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20325         (select): Add a link warning when the 'select' module is not used.
20326         * modules/sys_select (Depends-on): Add link-warning.
20327         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20328         Suggested by Paolo Bonzini.
20329
20330 2008-10-05  Jim Meyering  <meyering@redhat.com>
20331
20332         bootstrap: check for LT_INIT more portably
20333         * build-aux/bootstrap: Avoid using grep -E, since it's not
20334         portable enough.  Suggestion from Bruno Haible.
20335
20336 2008-10-05  Bruno Haible  <bruno@clisp.org>
20337
20338         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20339         as being fixed by gnulib.
20340
20341 2008-10-05  Bruno Haible  <bruno@clisp.org>
20342
20343         * modules/select-tests: New file, mostly copied from
20344         modules/sys_select-tests.
20345         * tests/test-select.c: New file, mostly copied from
20346         tests/test-sys_select.c.
20347         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20348         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20349         (Makefile.am): Remove test_sys_select_LDADD.
20350
20351         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20352         to an undefined symbol, for an error message.
20353         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20354         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20355         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20356         winsock-select.c here.
20357         * modules/sys_select (Files): Remove lib/winsock-select.c.
20358         (Depends-on): Remove alloca.
20359         (Makefile.am): Substitute GNULIB_SELECT.
20360         * modules/select: New file.
20361         * doc/posix-functions/select.texi: Update.
20362
20363 2008-10-05  Bruno Haible  <bruno@clisp.org>
20364
20365         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20366         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20367         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20368         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20369         getdtablesize.
20370         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20371         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20372
20373 2008-10-05  Bruno Haible  <bruno@clisp.org>
20374
20375         * modules/getdtablesize-tests: New file.
20376         * tests/test-getdtablesize.c: New file.
20377
20378         New module 'getdtablesize'.
20379         * lib/unistd.in.h (getdtablesize): New declaration.
20380         * lib/getdtablesize.c: New file.
20381         * m4/getdtablesize.m4: New file.
20382         * modules/getdtablesize: New file.
20383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20384         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20385         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20386         HAVE_GETDTABLESIZE.
20387         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20388
20389 2008-10-05  Bruno Haible  <bruno@clisp.org>
20390
20391         * modules/sched (Makefile.am): Fix typo.
20392         Reported by Simon Josefsson.
20393
20394 2008-10-05  Jim Meyering  <meyering@redhat.com>
20395
20396         bootstrap: check for LT_INIT, too
20397         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20398         are deprecated.  Suggestion from Ralf Wildenhues.
20399
20400 2008-10-05  Bruno Haible  <bruno@clisp.org>
20401
20402         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20403         overriding them by ours.
20404         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20405
20406 2008-10-05  Jim Meyering  <meyering@redhat.com>
20407
20408         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20409         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20410         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20411
20412 2008-10-04  Bruno Haible  <bruno@clisp.org>
20413
20414         * modules/dup2 (License): Change to LGPLv2+.
20415         * modules/sleep (License): Likewise.
20416         * modules/perror (License): Likewise.
20417         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20418         Blake.
20419         * modules/signal (License): Likewise.
20420         * modules/sigprocmask (License): Likewise.
20421         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20422         Meyering.
20423
20424 2008-10-04  Bruno Haible  <bruno@clisp.org>
20425
20426         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20427         Reported by Rainer Tammer <tammer@tammer.net>.
20428
20429 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20430             Bruno Haible  <bruno@clisp.org>
20431
20432         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20433         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20434         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20435
20436 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20437
20438         filevercmp: new module
20439         * lib/filevercmp.h: New function filevercmp comparing version strings.
20440         * lib/filevercmp.c: Implementation of filevercmp function.
20441         * modules/filevercmp: Module metadata.
20442         * tests/test-filevercmp.c: Unit test for new module.
20443         * modules/filevercmp-tests: Unit test metadata.
20444         * MODULES.html.sh: Add filevercmp module.
20445
20446 2008-10-03  Bruno Haible  <bruno@clisp.org>
20447
20448         * lib/c-ctype.h: Add comment.
20449         Reported by Jim Meyering.
20450
20451 2008-10-02  Bruno Haible  <bruno@clisp.org>
20452
20453         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20454
20455 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20456
20457         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20458         name of bootstrap.conf accordingly.
20459
20460 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20461
20462         * build-aux/bootstrap: Install git-merge-changelog configuration
20463         items into .gitconfig if needed.
20464
20465 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20466
20467         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20468         git repository, and initialize/update it accordingly.
20469
20470 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20471
20472         * modules/fsync-tests: New file.
20473         * tests/test-fsync.c: New file.
20474
20475         New module 'fsync'.
20476         * lib/fsync.c: New file.
20477         * m4/fsync.m4: New file.
20478         * modules/fsync: New file.
20479         * lib/unistd.in.h (fsync): New declaration.
20480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20481         GNULIB_FSYNC and HAVE_FSYNC.
20482         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20483         * MODULES.html.sh (posix_functions): Add fsync.
20484         * doc/posix-functions/fsync.texi: Mention the new module.
20485
20486 2008-10-02  Jim Meyering  <meyering@redhat.com>
20487
20488         fts.c: sync with similar code from coreutils' remove.c
20489         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20490         Guard also with "#if defined __linux__", since for now at least,
20491         this code is Linux-kernel-specific.
20492
20493 2008-10-02  Jim Meyering  <meyering@redhat.com>
20494
20495         fts: bug fixes
20496         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20497         Include <sys/vfs.h>, not <sys/statfs.h>.
20498
20499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20500         Include <sys/vfs.h>, not <sys/statfs.h>.
20501
20502 2008-10-01  Bruno Haible  <bruno@clisp.org>
20503
20504         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20505         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20506         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20507         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20508         * doc/posix-functions/posix_spawnp.texi: Likewise.
20509         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20510         whether posix_spawn actually works.
20511         * m4/pipe.m4 (gl_PIPE): Likewise.
20512         * modules/execute (Files): Add m4/posix_spawn.m4.
20513         * modules/pipe (Files): Add m4/posix_spawn.m4.
20514         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20515
20516 2008-10-01  Jim Meyering  <meyering@redhat.com>
20517
20518         remove trailing spaces
20519         * NEWS: Likewise.
20520         * lib/poll.c (poll): Likewise.
20521         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20522         * lib/winsock.c (rpl_close): Likewise.
20523         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20524         * modules/yield: Likewise.
20525         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20526         * tests/test-sys_select.c (connect_to_socket): Likewise.
20527
20528         fts.c: adjust a new interface to be more generally useful
20529         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20530         (fts_build): Adjust caller.
20531
20532 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20533
20534         * modules/cond-tests: New file.
20535         * tests/test-cond.c: New file.
20536
20537 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20538             Bruno Haible  <bruno@clisp.org>
20539
20540         * modules/cond (Dependencies): Add errno, time.
20541         * lib/glthread/cond.h: Include <time.h>.
20542         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20543         across platforms.
20544
20545 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20546             Bruno Haible  <bruno@clisp.org>
20547
20548         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20549
20550 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20551             Bruno Haible  <bruno@clisp.org>
20552
20553         * modules/tls-tests (Depends-on): Add thread, yield.
20554         (configure.ac): Remove all checks.
20555         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20556         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20557         gl_thread_self): Remove definitions. Include glthread/thread.h and
20558         glthread/yield.h instead.
20559         (test_tls): Pass an additional NULL argument to gl_thread_join.
20560
20561 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20562             Bruno Haible  <bruno@clisp.org>
20563
20564         * modules/lock-tests (Depends-on): Add thread, yield.
20565         (configure.ac): Remove all checks.
20566         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20567         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20568         gl_thread_self): Remove definitions. Include glthread/thread.h and
20569         glthread/yield.h instead.
20570         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20571         additional NULL argument to gl_thread_join.
20572
20573 2008-09-30  Bruno Haible  <bruno@clisp.org>
20574
20575         Fix the Win32 implementation of the 'thread' module.
20576         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20577         pointer type.
20578         (gl_thread_self): Invoke gl_thread_self_func.
20579         (gl_thread_self_func): New declaration.
20580         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20581         (do_init_self_key, init_self_key): New functions.
20582         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20583         Remove some fields.
20584         (running_threads, running_lock): Remove variables.
20585         (get_current_thread_handle): New function.
20586         (gl_thread_self_func, wrapper_func, glthread_create_func,
20587         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20588         simplified.
20589
20590 2008-09-30  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20593         files.
20594
20595 2008-09-30  Jim Meyering  <meyering@redhat.com>
20596
20597         fts.m4: correct the test for statfs.f_type
20598         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20599         when checking for statfs.f_type.
20600
20601 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20602
20603         tests: avoid some compiler warnings
20604         * tests/test-memchr.c (main): Pass NULL indirectly.
20605         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20606
20607 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
20608
20609         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20610         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20611         exactly specified dayshifts.
20612         (dayshift): New rule.
20613         (rel): Add dayshift.
20614         (relative_time_table) [tomorrow, yesterday, today, now]:
20615         Use tDAY_SHIFT in place of tDAY_UNIT.
20616         * tests/test-getdate.c: Add tests for now-disallowed countable
20617         dayshifts, e.g., "4 yesterday ago".
20618
20619 2008-09-29  Bruno Haible  <bruno@clisp.org>
20620
20621         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20622         * tests/test-posix_spawn1.in.sh: Renamed from
20623         tests/test-posix_spawn.in.sh.
20624         * tests/test-posix_spawn2.c: New file.
20625         * tests/test-posix_spawn2.in.sh: New file.
20626         * modules/posix_spawnp-tests (Files): Update.
20627         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20628
20629 2008-09-29  Bruno Haible  <bruno@clisp.org>
20630
20631         Propagate effects of putenv/setenv/unsetenv to child processes.
20632         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20633         * lib/pipe.c (create_pipe): Likewise.
20634
20635 2008-09-29  Bruno Haible  <bruno@clisp.org>
20636
20637         Enable use of shell scripts as executables in mingw.
20638         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20639         run the program as a shell script.
20640         * lib/pipe.c (create_pipe): Likewise.
20641         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20642         resulting array.
20643
20644 2008-09-29  Eric Blake  <ebb9@byu.net>
20645
20646         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20647
20648 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20649
20650         * doc/posix-functions/accept.texi: Update mingw problems.
20651         * doc/posix-functions/bind.texi: Update mingw problems.
20652         * doc/posix-functions/close.texi: Update mingw problems.
20653         * doc/posix-functions/connect.texi: Update mingw problems.
20654         * doc/posix-functions/getpeername.texi: Update mingw problems.
20655         * doc/posix-functions/getsockname.texi: Update mingw problems.
20656         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20657         * doc/posix-functions/ioctl.texi: Update mingw problems.
20658         * doc/posix-functions/listen.texi: Update mingw problems.
20659         * doc/posix-functions/recv.texi: Update mingw problems.
20660         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20661         * doc/posix-functions/select.texi: Update mingw problems.
20662         * doc/posix-functions/send.texi: Update mingw problems.
20663         * doc/posix-functions/sendto.texi: Update mingw problems.
20664         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20665         * doc/posix-functions/socket.texi: Update mingw problems.
20666
20667 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20668             Bruno Haible  <bruno@clisp.org>
20669
20670         * lib/sys_select.in.h: Include sys/time.h.
20671         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20672         * modules/sys_select: Depend on sys_time.
20673         * tests/test-sys_select.c: Test that sys/select.h defines struct
20674         timeval fully.
20675
20676 2008-09-29  Bruno Haible  <bruno@clisp.org>
20677
20678         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20679         * lib/sys_select.in.h: Likewise.
20680
20681 2008-09-29  Bruno Haible  <bruno@clisp.org>
20682
20683         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20684
20685 2008-09-29  Bruno Haible  <bruno@clisp.org>
20686
20687         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20688         Set LIBSOCKET instead of augmenting LIBS.
20689         * modules/sockets (Link): New section.
20690         * modules/sockets-tests (test_sockets_LDADD): New variable.
20691         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20692         * modules/poll-tests (test_poll_LDADD): New variable.
20693         * NEWS: Document the change.
20694
20695 2008-09-29  Bruno Haible  <bruno@clisp.org>
20696
20697         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20698         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20699         ARPA_INET_H directly.
20700         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20701
20702 2008-09-28  Bruno Haible  <bruno@clisp.org>
20703
20704         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20705         from gl_HEADER_SYS_SOCKET.
20706         (gl_HEADER_SYS_SOCKET): Invoke it.
20707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20708
20709 2008-09-28  Bruno Haible  <bruno@clisp.org>
20710
20711         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20712         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20713         Needed on OSF/1 4.0.
20714
20715 2008-09-28  Bruno Haible  <bruno@clisp.org>
20716
20717         Override open more carefully.
20718         * lib/open.c (orig_open): New function.
20719         (rpl_open): Use orig_open instead of open.
20720         * lib/fcntl.in.h: Add special invocation convention.
20721         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20722         (gl_FUNC_OPEN): Invoke it.
20723
20724         Override freopen more carefully.
20725         * lib/freopen.c (orig_freopen): New function.
20726         (rpl_freopen): Use orig_freopen instead of freopen.
20727         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20728         (gl_FUNC_FREOPEN): Invoke it.
20729
20730         Override fopen more carefully.
20731         * lib/fopen.c (orig_fopen): New function.
20732         (rpl_fopen): Use orig_fopen instead of fopen.
20733         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20734         (gl_FUNC_FOPEN): Invoke it.
20735         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20736
20737 2008-09-28  Bruno Haible  <bruno@clisp.org>
20738
20739         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20740         SIGPIPE.
20741
20742 2008-09-28  Bruno Haible  <bruno@clisp.org>
20743
20744         * tests/test-sigaction.c (handler, main): Disable the check whether
20745         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20746         glibc systems with LinuxThreads.
20747
20748 2008-09-28  Bruno Haible  <bruno@clisp.org>
20749
20750         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20751
20752         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20753         with AIX xlc.
20754         * lib/fcntl.in.h (open): Likewise.
20755         Reported by Rainer Tammer <tammer@tammer.net>.
20756
20757 2008-09-28  Bruno Haible  <bruno@clisp.org>
20758
20759         * modules/posix_spawnp-tests: New file.
20760         * tests/test-posix_spawn.c: New file.
20761         * tests/test-posix_spawn.in.sh: New file.
20762
20763         New module 'posix_spawnp'.
20764         * modules/posix_spawnp: New file.
20765         * lib/spawnp.c: New file, from GNU libc with modifications.
20766         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20767
20768         New module 'posix_spawn'.
20769         * modules/posix_spawn: New file.
20770         * lib/spawn.c: New file, from GNU libc with modifications.
20771         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20772
20773         New module 'posix_spawnattr_destroy'.
20774         * modules/posix_spawnattr_destroy: New file.
20775         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20776         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20777         module.
20778
20779         New module 'posix_spawnattr_setsigmask'.
20780         * modules/posix_spawnattr_setsigmask: New file.
20781         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20782         modifications.
20783         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20784         new module.
20785
20786         New module 'posix_spawnattr_getsigmask'.
20787         * modules/posix_spawnattr_getsigmask: New file.
20788         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20789         modifications.
20790         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20791         new module.
20792
20793         New module 'posix_spawnattr_setsigdefault'.
20794         * modules/posix_spawnattr_setsigdefault: New file.
20795         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20796         modifications.
20797         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20798         new module.
20799
20800         New module 'posix_spawnattr_getsigdefault'.
20801         * modules/posix_spawnattr_getsigdefault: New file.
20802         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20803         modifications.
20804         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20805         new module.
20806
20807         New module 'posix_spawnattr_setschedpolicy'.
20808         * modules/posix_spawnattr_setschedpolicy: New file.
20809         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20810         modifications.
20811         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20812         new module.
20813
20814         New module 'posix_spawnattr_getschedpolicy'.
20815         * modules/posix_spawnattr_getschedpolicy: New file.
20816         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20817         modifications.
20818         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20819         new module.
20820
20821         New module 'posix_spawnattr_setschedparam'.
20822         * modules/posix_spawnattr_setschedparam: New file.
20823         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20824         modifications.
20825         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20826         new module.
20827
20828         New module 'posix_spawnattr_getschedparam'.
20829         * modules/posix_spawnattr_getschedparam: New file.
20830         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20831         modifications.
20832         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20833         new module.
20834
20835         New module 'posix_spawnattr_setpgroup'.
20836         * modules/posix_spawnattr_setpgroup: New file.
20837         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20838         modifications.
20839         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20840         module.
20841
20842         New module 'posix_spawnattr_getpgroup'.
20843         * modules/posix_spawnattr_getpgroup: New file.
20844         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20845         modifications.
20846         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20847         module.
20848
20849         New module 'posix_spawnattr_setflags'.
20850         * modules/posix_spawnattr_setflags: New file.
20851         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20852         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20853         module.
20854
20855         New module 'posix_spawnattr_getflags'.
20856         * modules/posix_spawnattr_getflags: New file.
20857         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20858         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20859         module.
20860
20861         New module 'posix_spawnattr_init'.
20862         * modules/posix_spawnattr_init: New file.
20863         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20864         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20865         module.
20866
20867         New module 'posix_spawn_file_actions_destroy'.
20868         * modules/posix_spawn_file_actions_destroy: New file.
20869         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20870         modifications.
20871         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20872         the new module.
20873
20874         New module 'posix_spawn_file_actions_addopen'.
20875         * modules/posix_spawn_file_actions_addopen: New file.
20876         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20877         modifications.
20878         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20879         the new module.
20880
20881         New module 'posix_spawn_file_actions_adddup2'.
20882         * modules/posix_spawn_file_actions_adddup2: New file.
20883         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20884         modifications.
20885         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20886         the new module.
20887
20888         New module 'posix_spawn_file_actions_addclose'.
20889         * modules/posix_spawn_file_actions_addclose: New file.
20890         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20891         modifications.
20892         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20893         the new module.
20894
20895         New module 'posix_spawn_file_actions_init'.
20896         * modules/posix_spawn_file_actions_init: New file.
20897         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20898         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20899         new module.
20900
20901         New module 'posix_spawn-internal'.
20902         * modules/posix_spawn-internal: New file.
20903         * lib/spawn_int.h: New file, from GNU libc with modifications.
20904         * lib/spawni.c: New file, from GNU libc with modifications.
20905         * m4/posix_spawn.m4: New file.
20906
20907         New module 'spawn'.
20908         * modules/spawn: New file.
20909         * lib/spawn.in.h: New file, from GNU libc with modifications.
20910         * m4/spawn_h.m4: New file.
20911         * doc/posix-headers/spawn.texi: Mention the new module.
20912
20913 2008-09-28  Bruno Haible  <bruno@clisp.org>
20914
20915         * modules/sched-tests: New file.
20916         * tests/test-sched.c: New file.
20917
20918         New module 'sched'.
20919         * modules/sched: New file.
20920         * lib/sched.in.h: New file.
20921         * m4/sched_h.m4: New file.
20922         * doc/posix-headers/sched.texi: Mention the new module.
20923
20924 2008-09-27  Eric Blake  <ebb9@byu.net>
20925
20926         Fix previous patch, and tweak references to $0.
20927         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20928         (func_version, func_gnulib_dir): Don't call this program
20929         gnulib-tool.
20930         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20931         with using $0 in function.
20932         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20933         (func_fatal_error): Reuse the name the user invoked us with.
20934
20935 2008-09-27  Bruno Haible  <bruno@clisp.org>
20936
20937         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20938         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20939         (gl_ICONV_H): Not here.
20940         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20941         instead of assigning ICONV_H directly.
20942
20943         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20945         WCHAR_H directly.
20946
20947 2008-09-27  Bruno Haible  <bruno@clisp.org>
20948
20949         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20950         * modules/arpa_inet (Depends-on): Add link-warning.
20951         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20952         * modules/unistd (Makefile.am): Likewise.
20953
20954 2008-09-26  Bruno Haible  <bruno@clisp.org>
20955
20956         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20957         variables.
20958         (func_version): Essentially copied from gnulib-tool.
20959         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20960         func_readlink): Copied from gnulib-tool.
20961
20962 2008-09-26  Bruno Haible  <bruno@clisp.org>
20963
20964         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20965         invoking git-version-gen.
20966
20967 2008-09-26  Bruno Haible  <bruno@clisp.org>
20968
20969         * posix-modules: Update to directory names changed on 2008-01-19.
20970         Remove commas in output before splitting into words. No more need to
20971         avoid 'ftruncate' since 2007-02-19.
20972
20973 2008-09-26  Bruno Haible  <bruno@clisp.org>
20974
20975         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20976
20977 2008-09-26  Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20980         * modules/fwriteerror (Depends-on): Add errno.
20981
20982 2008-09-26  Bruno Haible  <bruno@clisp.org>
20983
20984         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20985         * tests/test-vc-list-files-cvs.sh: Likewise.
20986
20987 2008-09-26  Bruno Haible  <bruno@clisp.org>
20988
20989         * doc/posix-headers/sys_resource.texi: Reorder items.
20990
20991 2008-09-26  Jim Meyering  <meyering@redhat.com>
20992
20993         fts: tweak inode comparison function
20994         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20995         inode numbers, as documented.
20996
20997         fts: sort dirent entries on inode number before traversing
20998         This avoids a quadratic, seek-related performance penalty when
20999         operating on a directory containing many entries (measurable at 10k;
21000         3.5 hours at 2 million entries with a cold cache) on certain types
21001         of file systems, including ext3 and ext4, but not tmpfs.
21002         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21003         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21004         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21005         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21006         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21007         (fts_build): Set the stat.st_ino member from D_INO.
21008         If it is likely to be useful, sort dirent entries on inode number.
21009
21010         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21011         and the struct statfs.f_type member.
21012         * modules/fts (Depends-on): Add d-ino.
21013
21014 2008-09-26  Bruno Haible  <bruno@clisp.org>
21015
21016         * modules/sigpipe-die (Depends-on): Add sigpipe.
21017
21018         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21019         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21020         and GNULIB_STDIO_H_SIGPIPE are set.
21021         * lib/stdio-write.c: New file.
21022         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21023         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21024         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21025         REPLACE_STDIO_WRITE_FUNCS.
21026         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21027         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21028         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21029         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21030         * modules/stdio (Files): Add lib/stdio-write.c.
21031         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21032         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21033         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21034         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21035         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21036         REPLACE_FPRINTF_POSIX.
21037         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21038         REPLACE_PRINTF_POSIX.
21039         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21040         REPLACE_VFPRINTF_POSIX.
21041         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21042         REPLACE_VPRINTF_POSIX.
21043         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21044         SIGPIPE issue.
21045         * doc/posix-functions/fputc.texi: Likewise.
21046         * doc/posix-functions/fputs.texi: Likewise.
21047         * doc/posix-functions/fwrite.texi: Likewise.
21048         * doc/posix-functions/printf.texi: Likewise.
21049         * doc/posix-functions/putc.texi: Likewise.
21050         * doc/posix-functions/putchar.texi: Likewise.
21051         * doc/posix-functions/puts.texi: Likewise.
21052         * doc/posix-functions/vfprintf.texi: Likewise.
21053         * doc/posix-functions/vprintf.texi: Likewise.
21054
21055         * modules/safe-write (Depends-on): Add write.
21056
21057         * modules/sigpipe-tests: New file.
21058         * tests/test-sigpipe.c: New file.
21059         * tests/test-sigpipe.sh: New file.
21060
21061         * modules/write: New file.
21062         * lib/unistd.in.h: Include <sys/types.h>.
21063         (write): New declaration.
21064         * lib/write.c: New file.
21065         * m4/write.m4: New file.
21066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21067         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21068         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21069         GNULIB_WRITE, REPLACE_WRITE.
21070         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21071         and the SIGPIPE issue.
21072
21073         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21074         (raise): New declaration.
21075         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21076         (ext_signal): New function.
21077         (rpl_raise): New function.
21078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21079         GNULIB_SIGNAL_H_SIGPIPE.
21080         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21081         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21082
21083         * modules/sigpipe: New file.
21084         * m4/sigpipe.m4: New file.
21085
21086 2008-09-25  Derek Price  <derek@ximbiot.com>
21087             Bruno Haible  <bruno@clisp.org>
21088
21089         * gnulib-tool (func_import): Report all license incompatibilities, not
21090         just the first one.
21091
21092 2008-09-25  Bruno Haible  <bruno@clisp.org>
21093
21094         * gnulib-tool (func_import): When computing the edits, consider not
21095         only the Makefile.ams that exist but also those that will be generated.
21096
21097 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21098
21099         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21100         fixes gnulib-tool --test warning about duplicate dependency.
21101
21102 2008-09-25  Bruno Haible  <bruno@clisp.org>
21103
21104         * gnulib-tool: Don't ask the user to perform edits in the generated
21105         Makefile.ams.
21106         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21107         apply to the Makefile.am being generated.
21108         (func_emit_tests_Makefile_am): Execute edits that apply to the
21109         Makefile.am being generated.
21110         (func_import): Setup list of Makefile.am edits before emitting the
21111         Makefile.ams, not at the end.
21112         (func_create_testdir): Update.
21113         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21114
21115 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21116
21117         * gnulib-tool (func_import): Store the --tests-base option in the
21118         comment in gnulib-cache.m4.
21119
21120 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21121
21122         * NEWS: Document increased portability that sys_select now provides.
21123
21124         * lib/sys_select.in.h: Install select wrapper.
21125         * lib/sys_socket.in.h: Use more descriptive name when there is no
21126         select wrapper.
21127         * lib/winsock-select.c: New.
21128         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21129         Require gl_HEADER_SYS_SOCKET.
21130         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21131         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21132         * tests/test-sys_select.c: Add functional tests.
21133
21134 2008-09-24  Eric Blake  <ebb9@byu.net>
21135
21136         open, fopen: close fd leak in last patch
21137         * lib/open.c (rpl_open): Close fd before returning error.
21138         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21139         * doc/posix-functions/open.texi (open): Document that Irix also
21140         has the bug.
21141         * doc/posix-functions/fopen.texi (fopen): Likewise.
21142         Reported by Paolo Bonzini.
21143
21144 2008-09-24  Bruno Haible  <bruno@clisp.org>
21145
21146         Ensure that a filename ending in a slash cannot be used to access a
21147         non-directory.
21148         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21149         to check whether it's really a directory.
21150         * lib/fopen.c: Include fcntl.h, unistd.h.
21151         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21152         and fdopen().
21153         * modules/fopen (Depends-on): Add unistd.
21154         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21155         * tests/test-fopen.c (main): Likewise.
21156         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21157         * doc/posix-functions/fopen.texi: Likewise.
21158         Reported by Eric Blake.
21159
21160 2008-09-23  Eric Blake  <ebb9@byu.net>
21161
21162         c-stack: avoid compiler optimizations when provoking overflow
21163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21164         recursion harder to optimize, to ensure a stack overflow occurs.
21165         * tests/test-c-stack.c (recurse): Likewise.
21166         Borrowed from libsigsegv.
21167
21168         c-stack: work around Irix sigaltstack bug
21169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21170         whether sigaltstack uses wrong end of stack_t (copied in part from
21171         libsigsegv).
21172         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21173         Irix bug, without requiring an over-allocation.
21174         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21175         bug.
21176
21177         fopen: document mingw bug on directories
21178         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21179         not allowing a stream visiting a directory, even though reading
21180         from such a stream is not portable.
21181
21182 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21183
21184         * lib/poll.c: Rewrite.
21185         * modules/poll: Depend on alloca.
21186
21187 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21188
21189         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21190         instead define prototypes for a full set of wrappers.  Ensure
21191         that Cygwin does not use the compatibility code, which is only
21192         for MinGW.
21193         * lib/winsock.c: New.
21194         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21195         * modules/sys_socket: Add lib/winsock.c.
21196
21197         * modules/poll-tests: Add errno and perror.
21198         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21199
21200 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21201
21202         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21203
21204 2008-09-23  Bruno Haible  <bruno@clisp.org>
21205
21206         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21207         * doc/glibc-functions/*: Likewise.
21208
21209 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21210
21211         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21212         success.
21213
21214 2008-09-22  Eric Blake  <ebb9@byu.net>
21215             Bruno Haible  <bruno@clisp.org>
21216
21217         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21218         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21219         supply %A but mishandle pseudo-NaN.
21220         Reported by Simon Josefsson.
21221
21222 2008-09-21  Bruno Haible  <bruno@clisp.org>
21223
21224         * tests/test-lock.c (main): Tweak skip message.
21225         * tests/test-tls.c (main): Likewise.
21226
21227 2008-09-21  Bruno Haible  <bruno@clisp.org>
21228
21229         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21230         whether 'struct sigaction' has sa_sigaction here...
21231         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21232         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21233
21234 2008-09-21  Bruno Haible  <bruno@clisp.org>
21235
21236         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21237         section.
21238         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21239         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21240         the new section.
21241         (Support for obsolete systems lacking POSIX:2001): New section.
21242         (String handling <string.h>): Move strdup to the new section.
21243         Suggested by Simon Josefsson and Paolo Bonzini.
21244
21245 2008-09-21  Bruno Haible  <bruno@clisp.org>
21246
21247         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21248         exponents in %e and %g results on 'long double'. Needed for mingw's
21249         improved *printf functions.
21250         * tests/test-vasprintf-posix.c (test_function): Likewise.
21251         * tests/test-snprintf-posix.h (test_function): Likewise.
21252         * tests/test-sprintf-posix.h (test_function): Likewise.
21253         Reported by Eric Blake.
21254
21255 2008-09-21  Bruno Haible  <bruno@clisp.org>
21256
21257         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21258         * tests/test-sprintf-posix.h (test_function): Likewise.
21259
21260 2008-09-21  Bruno Haible  <bruno@clisp.org>
21261
21262         * modules/getpass (Depends-on): Add strdup-posix.
21263
21264         New module 'strdup-posix'.
21265         * modules/strdup-posix: New file.
21266         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21267         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21269         REPLACE_STRDUP.
21270         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21271         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21273         strdup-posix.
21274
21275         * modules/strdup (Depends-on): Remove malloc-posix.
21276
21277 2008-09-20  Bruno Haible  <bruno@clisp.org>
21278
21279         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21280         Wildenhues.
21281
21282 2008-09-20  Bruno Haible  <bruno@clisp.org>
21283
21284         Ensure that wint_t gets defined on IRIX 5.3.
21285         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21286         * lib/wctype.in.h (wint_t): Likewise.
21287         (__wctype_wint_t): Remove type.
21288         (isw*): Use wint_t instead of __wctype_wint_t.
21289         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21290         * modules/wchar (Files): Add m4/wint_t.m4.
21291         (Makefile.am): Substitute HAVE_WINT_T.
21292         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21293         * tests/test-wctype.c: Check that wint_t is defined.
21294         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21295         * doc/posix-headers/wctype.texi: Likewise.
21296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21297
21298 2008-09-18  Bruno Haible  <bruno@clisp.org>
21299
21300         * gnulib-tool (func_exit): Update comment.
21301
21302 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21303
21304         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21305         assumes strdup exists and does not depend on strdup to return
21306         ENOMEM on out of memory conditions.
21307
21308 2008-09-18  Bruno Haible  <bruno@clisp.org>
21309
21310         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21311         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21312         digits for the exponent.
21313
21314 2008-09-18  Jim Meyering  <meyering@redhat.com>
21315             Bruno Haible  <bruno@clisp.org>
21316
21317         * lib/vasnprintf.c (decimal_point_char): Define also if
21318         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21319
21320 2008-09-16  Bruno Haible  <bruno@clisp.org>
21321         and Eric Blake  <ebb9@byu.net>
21322
21323         vasnprintf: support Irix 5.3
21324         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21325         that mishandle long double infinity.
21326         Reported by Tom G. Christensen.
21327
21328 2008-09-16  Bruno Haible  <bruno@clisp.org>
21329
21330         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21331         Solaris 9.
21332         * doc/glibc-functions/alphasort.texi: Likewise.
21333         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21334
21335 2008-09-16  Jim Meyering  <meyering@redhat.com>
21336
21337         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21338         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21339         a umask modification leak out of a subshell.  Otherwise, the
21340         opensolaris /bin/sh would be accepted and thus cause unwarranted
21341         failures in the coreutils test suite.
21342
21343 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21344
21345         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21346         to succeed.
21347
21348 2008-09-16  Jim Meyering  <meyering@redhat.com>
21349
21350         avoid spurious test failure when library is built without ACL support
21351         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21352         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21353         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21354         * tests/test-copy-acl.sh: Likewise.
21355
21356 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21357
21358         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21359         based on character occurrence counts.
21360
21361 2008-09-15  Eric Blake  <ebb9@byu.net>
21362
21363         tests: avoid some compiler warnings
21364         * tests/test-memchr.c (main): Pass NULL indirectly.
21365         * tests/test-closein.c (main): Avoid unused variable.
21366
21367 2008-09-15  Bruno Haible  <bruno@clisp.org>
21368
21369         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21370         are missing on OpenBSD 4.0 individually.
21371         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21372
21373 2008-09-15  Bruno Haible  <bruno@clisp.org>
21374
21375         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21376         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21377         * doc/posix-functions/perror.texi: Likewise.
21378         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21379         is missing.
21380         Reported by Eric Blake.
21381
21382         * lib/errno.in.h: Use replacement values >= 2000.
21383         Reported by Eric Blake.
21384
21385 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21386
21387         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21388         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21389         limit.
21390         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21391         compareseq was aborted.
21392
21393 2008-09-14  Bruno Haible  <bruno@clisp.org>
21394
21395         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21396         yvec_edit_count.
21397         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21398         (fstrcmp_bounded): Simplify result computation accordingly.
21399
21400 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21401
21402         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21403         (fstrcmp): Define in terms of fstrcmp_bounded.
21404         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21405         lower_bound argument.
21406         Return quickly if the result is certainly < lower_bound.
21407         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21408
21409 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21410
21411         * lib/diffseq.h (EARLY_ABORT): New macro.
21412         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21413         evaluates to true.
21414
21415 2008-09-14  Bruno Haible  <bruno@clisp.org>
21416
21417         * modules/perror-tests: New file.
21418         * tests/test-perror.sh: New file.
21419         * tests/test-perror.c: New file.
21420
21421         New module 'perror'.
21422         * lib/stdio.in.h (perror): New declaration.
21423         * lib/perror.c: New file.
21424         * m4/perror.m4: New file.
21425         * modules/perror: New file.
21426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21427         * doc/posix-functions/perror.texi: Mention the perror module.
21428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21429         REPLACE_PERROR.
21430         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21431         REPLACE_PERROR.
21432
21433 2008-09-14  Bruno Haible  <bruno@clisp.org>
21434
21435         * modules/stdio (Makefile.am): Reorder to match the order in
21436         lib/stdio.in.h.
21437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21438
21439 2008-09-13  Bruno Haible  <bruno@clisp.org>
21440
21441         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21442
21443 2008-09-13  Bruno Haible  <bruno@clisp.org>
21444
21445         Extend strerror to cover the added errno values.
21446         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21447         (rpl_strerror): Provide error messages for the added errno values and
21448         for the WSA* values.
21449         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21450         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21451         strerror.
21452         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21453         * modules/strerror (Depends-on): Add errno.
21454         * doc/posix-functions/strerror.texi: Document the change.
21455         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21456         and EOVERFLOW.
21457
21458 2008-09-13  Bruno Haible  <bruno@clisp.org>
21459
21460         * modules/EOVERFLOW: Remove file.
21461         * m4/eoverflow.m4: Remove file.
21462         * modules/EOVERFLOW-tests: Remove file.
21463         * tests/test-EOVERFLOW.c: Remove file.
21464         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21465         * modules/ftell (Depends-on): Likewise.
21466         * modules/getdelim (Depends-on): Likewise.
21467         * modules/getugroups (Depends-on): Likewise.
21468         * modules/poll (Depends-on): Likewise.
21469         * modules/snprintf (Depends-on): Likewise.
21470         * modules/sprintf-posix (Depends-on): Likewise.
21471         * modules/vasnprintf (Depends-on): Likewise.
21472         * modules/vasprintf (Depends-on): Likewise.
21473         * modules/vfprintf-posix (Depends-on): Likewise.
21474         * modules/vsnprintf (Depends-on): Likewise.
21475         * modules/vsprintf-posix (Depends-on): Likewise.
21476         * modules/xvasprintf (Depends-on): Likewise.
21477         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21478         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21479         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21480         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21481         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21482         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21483         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21484         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21485         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21486         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21487         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21488         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21490         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21491         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21492         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21493         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21494         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21495         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21496         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21497         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21498         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21499         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21500         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21501         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21502         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21503         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21504         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21505         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21506         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21507         * MODULES.html.sh: Remove EOVERFLOW.
21508         * NEWS: Mention the change.
21509
21510 2008-09-13  Bruno Haible  <bruno@clisp.org>
21511
21512         * modules/errno-tests: New file.
21513         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21514
21515         * lib/errno.in.h: New file.
21516         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21517         * modules/errno: New file.
21518         * doc/posix-headers/errno.texi: Update documentation.
21519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21520
21521 2008-09-13  Bruno Haible  <bruno@clisp.org>
21522
21523         * tests/test-poll.c: Use #if for native Windows, rather than testing
21524         __MSVCRT__.
21525
21526 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21527             Bruno Haible  <bruno@clisp.org>
21528
21529         * lib/glob.c: Don't include <pwd.h> on native Windows.
21530         (WINDOWS32): New macro.
21531         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21532
21533 2008-09-13  Bruno Haible  <bruno@clisp.org>
21534
21535         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21536         (ETIMEDOUT): Remove macro.
21537         (glthread_cond_timedwait_multithreaded): New declaration.
21538         (glthread_cond_timedwait): Use it.
21539         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21540         (glthread_cond_timedwait_multithreaded): New function.
21541
21542 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21543
21544         * modules/poll-tests: Do not check for io.h.
21545         * tests/test-poll.c: Check for __MSVCRT__ instead.
21546
21547 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21548
21549         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21550         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21551         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21552
21553 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21554
21555         * modules/poll-tests: New.
21556         * tests/test-poll.c: New.
21557
21558 2008-09-12  Eric Blake  <ebb9@byu.net>
21559
21560         frexp: test for NetBSD failure on -0.0
21561         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21562         not all, bugs from NetBSD 3.0 have been fixed.
21563         * doc/posix-functions/frexp.texi (frexp): Document bug.
21564         Reported by Thomas Klausner.
21565
21566         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21567         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21568         literal -0.0.
21569         Reported by Jonathan C. Patschke <jp@centtech.com>.
21570
21571 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21572
21573         * lib/glthread/cond.h: Use dummy implementation also if
21574         USE_WIN32_THREADS.
21575
21576 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21577
21578         * modules/fnmatch-posix (License): Change to LGPLv2+.
21579         * modules/fnmatch-gnu (License): Likewise.
21580
21581 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21582
21583         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21584
21585 2008-09-11  Jim Meyering  <meyering@redhat.com>
21586
21587         * users.txt: Add gtk-vnc.
21588
21589 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21590
21591         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21592         rotate amounts.
21593
21594         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21595         required for 16-bit and 8-bit rotates.
21596         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21597         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21598         UINT8_MAX instead of hard-coded constants.
21599         Suggested by Paul Eggert.
21600
21601 2008-09-07  Bruno Haible  <bruno@clisp.org>
21602
21603         * tests/test-striconveh.c (main): Check behaviour when converting from
21604         UTF-7.
21605
21606         Make striconveh work better with stateful encodings.
21607         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21608         that iconv does not increment the inptr when returning -1/EINVAL.
21609
21610 2008-09-07  Bruno Haible  <bruno@clisp.org>
21611
21612         * build-aux/config.rpath: Update according to libtool-2.2.6.
21613         * build-aux/config.libpath: Likewise.
21614
21615 2008-09-06  Bruno Haible  <bruno@clisp.org>
21616
21617         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21618         * lib/freadptr.c (freadptr): Likewise.
21619         * lib/freadseek.c (freadptrinc): Likewise.
21620         Reported by Simon Josefsson.
21621
21622 2008-09-06  Bruno Haible  <bruno@clisp.org>
21623
21624         * modules/freadptr (License): Change to LGPLv2+.
21625         * modules/freadseek (License): Likewise.
21626         Suggested by Eric Blake.
21627
21628         * modules/memchr2 (License): Change to LGPLv2+.
21629         Approved by Eric Blake.
21630
21631 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21632             Bruno Haible  <bruno@clisp.org>
21633
21634         Make gnulib-tool work with native 'sed' on AIX.
21635         * gnulib-tool (sed_noop): New variable.
21636         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21637         func_add_or_update, func_create_testdir): Use it to initialize sed
21638         script variables.
21639         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21640
21641 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21642             Bruno Haible  <bruno@clisp.org>
21643
21644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21645         also works after #include directives.
21646
21647 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
21648
21649         getdate.y: reject an out-of-range timezone value
21650         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21651         the range [-24...+24].  When specified with only one or two digits,
21652         * tests/test-getdate.c: Tests for the fix.
21653         * doc/getdate.texi: Document this change.
21654
21655 2008-09-03  Bruno Haible  <bruno@clisp.org>
21656
21657         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21658
21659 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21660
21661         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21662         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21663         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21664         Blake <ebb9@byu.net>.
21665
21666         * tests/test-bitrotate.c: Add more test vectors.
21667
21668 2008-09-02  Eric Blake  <ebb9@byu.net>
21669
21670         vasnprintf-posix: handle large precision via %.*d
21671         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21672         when handling it ourselves.
21673         * tests/test-vasnprintf-posix.c (test_function): Add test.
21674         * tests/test-snprintf-posix.h (test_function): Likewise.
21675         * tests/test-sprintf-posix.h (test_function): Likewise.
21676         * tests/test-vasprintf-posix.c (test_function): Likewise.
21677         Reported by Alain Guibert.
21678
21679 2008-09-01  Eric Blake  <ebb9@byu.net>
21680
21681         c-stack: make configure-time check more robust
21682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21683         successful sigaction call.
21684         Reported by Tom G. Christensen.
21685
21686 2008-09-01  Bruno Haible  <bruno@clisp.org>
21687
21688         New module 'findprog-lgpl'.
21689         * modules/findprog-lgpl: New file.
21690         * lib/findprog-lgpl.c: New file.
21691         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21692         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21693         to decide whether to use strdup or xstrdup, concatenated_filename or
21694         xconcatenated_filename.
21695
21696 2008-09-01  Bruno Haible  <bruno@clisp.org>
21697
21698         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21699         'xconcat-filename' (GPL).
21700         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21701         (License): Change to LGPLv2+.
21702         * modules/xconcat-filename: New file.
21703         * lib/concat-filename.h (concatenated_filename): Change specification.
21704         (xconcatenated_filename): New declaration.
21705         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21706         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21707         memory situations.
21708         * lib/xconcat-filename.c: New file.
21709         * NEWS: Mention the change.
21710         * lib/findprog.c: Include concat-filename.h, not filename.h.
21711         (find_in_path): Use xconcatenated_filename instead of
21712         concatenated_filename.
21713         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21714         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21715         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21716         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21717         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21718         instead of concatenated_filename.
21719         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21720         (execute_java_class): Use xconcatenated_filename instead of
21721         concatenated_filename.
21722         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21723         * modules/javacomp (Depends-on): Likewise.
21724         * modules/javaexec (Depends-on): Likewise.
21725
21726 2008-09-01  Bruno Haible  <bruno@clisp.org>
21727
21728         Split module 'filename' into 'filename' and 'concat-filename'.
21729         * modules/filename: Keep only lib/filename.h.
21730         (License): Change to LGPLv2+.
21731         * modules/concat-filename: New file, extracted from modules/filename.
21732         * lib/filename.h (concatenated_filename): Remove declaration.
21733         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21734         * lib/concat-filename.c: Include concat-filename.h.
21735         * NEWS: Mention the change.
21736
21737 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21738
21739         * lib/bitrotate.h (rotl8, rotr8): Add.
21740
21741         * modules/bitrotate (configure.ac): Need
21742         AC_REQUIRE([AC_C_INLINE]).
21743         (Description): Mention stdint.h.  Reported by Bruno Haible
21744         <bruno@clisp.org>.
21745
21746         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21747         Paolo Bonzini <bonzini@gnu.org>.
21748
21749 2008-08-31  Bruno Haible  <bruno@clisp.org>
21750
21751         Assume Solaris specific bi-arch conventions on Solaris systems.
21752         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21753         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21754         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21755         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21756         like acl_libdirstem.
21757         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21758         acl_libdirstem.
21759         * NEWS: Mention the change.
21760         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21761
21762 2008-08-31  Jim Meyering  <meyering@redhat.com>
21763
21764         * lib/strftime.h: Add comments describing the two added arguments.
21765
21766         remove duplicate #include directives
21767         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21768         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21769
21770 2008-08-31  Bruno Haible  <bruno@clisp.org>
21771
21772         New module 'sigpipe-die'.
21773         * modules/sigpipe-die: New file.
21774         * lib/sigpipe-die.h: New file.
21775         * lib/sigpipe-die.c: New file.
21776         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21777
21778 2008-08-31  Bruno Haible  <bruno@clisp.org>
21779
21780         Don't override previously installed signal handlers.
21781         * lib/fatal-signal.c (saved_sigactions): New variable.
21782         (uninstall_handlers): Reset the signal to the saved handler, not
21783         to SIG_DFL (except when ignored).
21784         (install_handlers): Save the previous handlers.
21785
21786 2008-08-30  Bruno Haible  <bruno@clisp.org>
21787
21788         * gnulib-tool (func_reset_sigpipe): New function.
21789         (func_get_automake_snippet, func_modules_transitive_closure,
21790         func_import): Invoke it before a join command that reads from stdin,
21791         to avoid "echo: write error: Broken pipe" error messages on stderr.
21792         Reported by Sam Steingold <sds@gnu.org>.
21793
21794 2008-08-30  Bruno Haible  <bruno@clisp.org>
21795
21796         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21797         Code copied from m4/open.m4.
21798         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21799         access and the filename ends in a slash. Code copied from lib/open.c.
21800         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21801         * tests/test-fopen.c (main): Check against bug with trailing slash.
21802
21803 2008-08-29  Bruno Haible  <bruno@clisp.org>
21804
21805         Avoid some "gcc -pedantic" warnings.
21806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21807         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21808         * lib/dirent.in.h: Likewise.
21809         * lib/fcntl.in.h: Likewise.
21810         * lib/float.in.h: Likewise.
21811         * lib/iconv.in.h: Likewise.
21812         * lib/inttypes.in.h: Likewise.
21813         * lib/locale.in.h: Likewise.
21814         * lib/math.in.h: Likewise.
21815         * lib/netinet_in.in.h: Likewise.
21816         * lib/search.in.h: Likewise.
21817         * lib/signal.in.h: Likewise.
21818         * lib/stdarg.in.h: Likewise.
21819         * lib/stdint.in.h: Likewise.
21820         * lib/stdio.in.h: Likewise.
21821         * lib/stdlib.in.h: Likewise.
21822         * lib/string.in.h: Likewise.
21823         * lib/strings.in.h: Likewise.
21824         * lib/sys_select.in.h: Likewise.
21825         * lib/sys_socket.in.h: Likewise.
21826         * lib/sys_stat.in.h: Likewise.
21827         * lib/sys_time.in.h: Likewise.
21828         * lib/sysexits.in.h: Likewise.
21829         * lib/time.in.h: Likewise.
21830         * lib/unistd.in.h: Likewise.
21831         * lib/wchar.in.h: Likewise.
21832         * lib/wctype.in.h: Likewise.
21833         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21834         * modules/fchdir (Makefile.am): Likewise.
21835         * modules/fcntl (Makefile.am): Likewise.
21836         * modules/float (Makefile.am): Likewise.
21837         * modules/iconv_open (Makefile.am): Likewise.
21838         * modules/inttypes (Makefile.am): Likewise.
21839         * modules/locale (Makefile.am): Likewise.
21840         * modules/math (Makefile.am): Likewise.
21841         * modules/netinet_in (Makefile.am): Likewise.
21842         * modules/search (Makefile.am): Likewise.
21843         * modules/signal (Makefile.am): Likewise.
21844         * modules/stdarg (Makefile.am): Likewise.
21845         * modules/stdint (Makefile.am): Likewise.
21846         * modules/stdio (Makefile.am): Likewise.
21847         * modules/stdlib (Makefile.am): Likewise.
21848         * modules/string (Makefile.am): Likewise.
21849         * modules/strings (Makefile.am): Likewise.
21850         * modules/sys_select (Makefile.am): Likewise.
21851         * modules/sys_socket (Makefile.am): Likewise.
21852         * modules/sys_stat (Makefile.am): Likewise.
21853         * modules/sys_time (Makefile.am): Likewise.
21854         * modules/sysexits (Makefile.am): Likewise.
21855         * modules/time (Makefile.am): Likewise.
21856         * modules/unistd (Makefile.am): Likewise.
21857         * modules/wchar (Makefile.am): Likewise.
21858         * modules/wctype (Makefile.am): Likewise.
21859         Reported by Reuben Thomas <rrt@sc3d.org>.
21860
21861 2008-08-29  Bruno Haible  <bruno@clisp.org>
21862
21863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21864         any more.
21865
21866 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21867
21868         * MODULES.html.sh (Misc): Add bitrotate.
21869
21870         * modules/bitrotate: New file.
21871
21872         * lib/bitrotate.h: New file.
21873
21874         * modules/bitrotate-tests: New file.
21875
21876         * tests/test-bitrotate.c: New file.
21877
21878         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21879         on the bitrotate module.
21880
21881         * lib/arctwo.c: Use new bitrotate module.
21882
21883 2008-08-29  Jim Meyering  <meyering@redhat.com>
21884
21885         bootstrap: merge changes from coreutils
21886         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21887         of copied files.  Remove a kludge, now that this is fixed.
21888         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21889         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21890         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21891
21892 2008-08-29  Bruno Haible  <bruno@clisp.org>
21893
21894         * MODULES.html.sh: Remove --cvs-urls option.
21895
21896 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21897
21898         maint.mk: adjust to file name change
21899         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21900
21901 2008-08-28  Jim Meyering  <meyering@redhat.com>
21902
21903         * modules/getndelim2 (License): Relicense to LGPLv2+.
21904         Approved by Richard Stallman for the version of 1995, and by
21905         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21906
21907 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21908
21909         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21910         dummy if one is not available.  Do not touch them if
21911         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21912         (getc_maybe_unlocked): New.
21913         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21914
21915 2008-08-26  Eric Blake  <ebb9@byu.net>
21916
21917         doc/INSTALL: resync from autoconf
21918         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21919         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21920         moving...
21921         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21922         * INSTALL: Regenerate.
21923         * INSTALL.ISO: New file.
21924         * INSTALL.UTF-8: Likewise.
21925
21926 2008-08-26  Jim Meyering  <meyering@redhat.com>
21927
21928         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21929         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21930         these definitions conditional, so that they may be overridden, too.
21931
21932 2008-08-26  Bruno Haible  <bruno@clisp.org>
21933
21934         Generate INSTALL file variants with prettier quotes.
21935         * doc/Makefile (INSTALL_PRELUDE): New macro.
21936         (INSTALL): Use it.
21937         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21938
21939 2008-08-26  Bruno Haible  <bruno@clisp.org>
21940
21941         Run makeinfo in an English locale.
21942         * doc/Makefile (MAKEINFO): New variable.
21943
21944 2008-08-26  Bruno Haible  <bruno@clisp.org>
21945
21946         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21947         Suggested by Eric Blake.
21948
21949 2008-08-25  Bruno Haible  <bruno@clisp.org>
21950
21951         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21952
21953 2008-08-25  Eric Blake  <ebb9@byu.net>
21954
21955         c-stack: test that stack overflow can be caught
21956         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21957         that platform allows handling stack overflow; at least OS/2 EMX
21958         has sigaltstack, but crashes before transferring control to
21959         handler on stack overflow.
21960         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21961         check for HAVE_STACK_OVERFLOW_HANDLING.
21962         Reported by Elbert Pol.
21963
21964 2008-08-25  Bruno Haible  <bruno@clisp.org>
21965
21966         * doc/posix-functions/strftime.texi: Fix description of strftime
21967         module.
21968
21969 2008-08-24  Bruno Haible  <bruno@clisp.org>
21970
21971         * tests/uniwidth/test-uc_width2.c: New file.
21972         * tests/uniwidth/test-uc_width2.sh: New file.
21973         * modules/uniwidth/width-tests (Files): Add the new files.
21974         (TESTS): Add uniwidth/test-uc_width2.sh.
21975         (TESTS_ENVIRONMENT): New variable.
21976         (check_PROGRAMS): Add test-uc_width2.
21977         (test_uc_width2_SOURCES): New variable.
21978
21979         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21980         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21981         not 0x00AB.
21982         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21983
21984 2008-08-22  Eric Blake  <ebb9@byu.net>
21985
21986         test-lock, test-tls: mention why a test is skipped
21987         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21988         skipped.
21989         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21990
21991         count-one-bits: relax license
21992         * modules/count-one-bits (License): Relicense to LGPLv2+.
21993         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21994
21995 2008-08-22  Andreas Schwab  <schwab@suse.de>
21996
21997         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21998         Remove spurious space in assignment.
21999
22000 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22001
22002         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22003         Paul Eggert <eggert@CS.UCLA.EDU>.
22004
22005 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22006
22007         * modules/gettext: Add m4/threadlib.m4.
22008
22009 2008-08-19  Eric Blake  <ebb9@byu.net>
22010
22011         test-c-stack: fix compilation failure on FreeBSD 5.0
22012         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22013         headers before <sys/resource.h>.
22014         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22015         the bug.
22016         Reported by Nelson H. F. Beebe.
22017
22018         strverscmp: migrate from "strverscmp.h" to <string.h>
22019         * modules/string (Makefile.am): Add new hooks.
22020         * modules/strverscmp (Files): Remove strverscmp.h.
22021         (Depends-on): Add string.
22022         (configure.ac): Add indicator.
22023         (Include): Mention new header.
22024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22025         defaults.
22026         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22027         results.
22028         * lib/strverscmp.h: Delete.
22029         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22030         * tests/test-strverscmp.c (includes): Adjust client.
22031         * lib/check-version.c (includes): Likewise.
22032         * NEWS: Document the change.
22033
22034         strverscmp: add unit test
22035         * modules/strverscmp-tests: New file.
22036         * tests/test-strverscmp.c: Likewise.
22037
22038 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22039
22040         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22041         regarding Windows crypto stuff, from Mono.
22042
22043 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22044
22045         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22046         if present, for intel RND.  Return error on failures.
22047
22048 2008-08-18  Ben Pfaff  <blp@gnu.org>
22049
22050         gitlog-to-changelog: give better diagnostic for failed pipe-open
22051         * build-aux/gitlog-to-changelog: Improve error message: suggest
22052         that the version of Git may be too old.
22053
22054 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22055
22056         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22057         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22058
22059 2008-08-18  Bruno Haible  <bruno@clisp.org>
22060
22061         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22062         pthread_in_use().
22063
22064 2008-08-18  Bruno Haible  <bruno@clisp.org>
22065
22066         * lib/glthread/threadlib.c: Include <pthread.h>.
22067
22068 2008-08-18  Bruno Haible  <bruno@clisp.org>
22069
22070         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22071         glthread_recursive_lock_* macros.
22072         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22073         Fix syntax error.
22074
22075 2008-08-18  Bruno Haible  <bruno@clisp.org>
22076
22077         * lib/glthread/thread.c: Avoid forcing a context switch right after
22078         thread creation.
22079
22080 2008-08-17  Bruno Haible  <bruno@clisp.org>
22081
22082         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22083         * lib/glthread/thread.h: Provide Win32 specific implementation.
22084         * modules/thread (Files): Add lib/glthread/thread.c.
22085         (Depends-on): Add lock.
22086         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22087
22088 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22089
22090         New module 'yield'.
22091         * modules/yield: New file.
22092         * lib/glthread/yield.h: New file.
22093         * m4/yield.m4: New file.
22094         * MODULES.html.sh (Multithreading): Add yield.
22095
22096 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22097
22098         New module 'thread'.
22099         * modules/thread: New file.
22100         * lib/glthread/thread.h: New file.
22101         * m4/thread.m4: New file.
22102         * MODULES.html.sh (Multithreading): Add thread.
22103
22104 2008-08-17  Bruno Haible  <bruno@clisp.org>
22105
22106         * lib/glthread/lock.h: Include <stdlib.h> always.
22107         * lib/glthread/tls.h: Likewise.
22108         * lib/glthread/cond.h: Likewise.
22109
22110 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22111
22112         New module 'cond'.
22113         * modules/cond: New file.
22114         * lib/glthread/cond.h: New file.
22115         * lib/glthread/cond.c: New file.
22116         * m4/cond.m4: New file.
22117         * MODULES.html.sh (Multithreading): Add cond.
22118
22119 2008-08-16  Eric Blake  <ebb9@byu.net>
22120
22121         c-stack: fix regression on Irix 5.3 from 2008-06-21
22122         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22123         sa_sigaction...
22124         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22125         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22126         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22127         * modules/signal (Makefile.am): Use the value.
22128         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22129         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22130         * doc/posix-headers/signal.texi (signal.h): Document this
22131         portability issue.
22132         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22133         Reported by Tom G. Christensen.
22134
22135 2008-08-17  Bruno Haible  <bruno@clisp.org>
22136
22137         New module 'threadlib'.
22138         * modules/threadlib: New file.
22139         * lib/glthread/threadlib.c: New file, extracted from
22140         lib/glthread/lock.c.
22141         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22142         functions.
22143         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22144         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22145         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22146         macros.
22147         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22148         (gl_DISABLE_THREADS): Remove macro.
22149         * modules/lock (Files): Remove build-aux/config.rpath.
22150         (Depends-on): Remove havelib. Add threadlib.
22151         (configure.ac-early): Remove section.
22152         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22153         * modules/tls (Depends-on): Remove lock. Add threadlib.
22154         (Link): New section, copied from threadlib.
22155         * MODULES.html.sh (Multithreading): Add threadlib.
22156
22157 2008-08-14  Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22160         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22161         glthread_rwlock_unlock, glthread_rwlock_destroy,
22162         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22163         glthread_recursive_lock_destroy): Define as macros always.
22164         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22165         glthread_lock_lock.
22166         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22167         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22168         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22169         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22170         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22171         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22172         (glthread_recursive_lock_lock_func): Renamed from
22173         glthread_recursive_lock_lock.
22174         (glthread_recursive_lock_unlock_func): Renamed from
22175         glthread_recursive_lock_unlock.
22176         (glthread_recursive_lock_destroy_func): Renamed from
22177         glthread_recursive_lock_destroy.
22178
22179 2008-08-14  Bruno Haible  <bruno@clisp.org>
22180
22181         * lib/glthread/lock.h: Renamed from lib/lock.h.
22182         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22183         * lib/glthread/tls.h: Renamed from lib/tls.h.
22184         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22185         * lib/fstrcmp.c: Update includes.
22186         * lib/strsignal.c: Update includes.
22187         * modules/lock (Files, Makefile.am): Update.
22188         (Include): Change to "glthread/lock.h".
22189         * modules/tls (Files, Makefile.am): Update.
22190         (Include): Change to "glthread/tls.h".
22191         * tests/test-lock.c: Update includes.
22192         * tests/test-tls.c: Update includes.
22193         * NEWS: Mention the renamed header files.
22194
22195 2008-08-11  Jim Meyering  <meyering@redhat.com>
22196
22197         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22198
22199 2008-08-11  Eric Blake  <ebb9@byu.net>
22200
22201         test-c-stack: avoid C99-ism
22202         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22203         before statement.
22204         Reported by Alain Guibert.
22205
22206 2008-08-10  Jim Meyering  <meyering@redhat.com>
22207
22208         ensure that return value of uinttostr et al are not ignored
22209         * lib/inttostr.h (__GNUC_PREREQ): Define.
22210         (__attribute_warn_unused_result__): Define.
22211         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22212
22213 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22214
22215         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22216         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22217
22218 2008-08-07  Jim Meyering  <meyering@redhat.com>
22219
22220         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22221
22222         * modules/mkstemp (License): Relicense under LGPLv2+.
22223         * modules/tempname (License): Likewise.
22224
22225 2008-08-06  Bruno Haible  <bruno@clisp.org>
22226
22227         * lib/poll.c (poll): Further micro-optimization.
22228
22229 2008-08-06  Jim Meyering  <meyering@redhat.com>
22230
22231         inet_pton.c: use locale-independent tolower
22232         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22233         (inet_pton6): Use c_tolower rather than tolower.
22234         * modules/inet_pton (Depends-on): Add c-ctype.
22235
22236 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22237
22238         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22239         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22240
22241 2008-08-06  Jim Meyering  <meyering@redhat.com>
22242
22243         * modules/inet_pton (License): Relicense under LGPLv2+.
22244
22245 2008-08-03  Bruno Haible  <bruno@clisp.org>
22246
22247         Additional non-aborting API for lock and tls.
22248         * lib/lock.h: Include <errno.h>.
22249         (glthread_lock_init): New macro/function.
22250         (gl_lock_init): Define as wrapper around glthread_lock_init.
22251         (glthread_lock_lock): New macro/function.
22252         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22253         (glthread_lock_unlock): New macro/function.
22254         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22255         (glthread_lock_destroy): New macro/function.
22256         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22257         (glthread_rwlock_init): New macro/function.
22258         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22259         (glthread_rwlock_rdlock): New macro/function.
22260         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22261         (glthread_rwlock_wrlock): New macro/function.
22262         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22263         (glthread_rwlock_unlock): New macro/function.
22264         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22265         (glthread_rwlock_destroy): New macro/function.
22266         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22267         (glthread_recursive_lock_init): New macro/function.
22268         (gl_recursive_lock_init): Define as wrapper around
22269         glthread_recursive_lock_init.
22270         (glthread_recursive_lock_lock): New macro/function.
22271         (gl_recursive_lock_lock): Define as wrapper around
22272         glthread_recursive_lock_lock.
22273         (glthread_recursive_lock_unlock): New macro/function.
22274         (gl_recursive_lock_unlock): Define as wrapper around
22275         glthread_recursive_lock_unlock.
22276         (glthread_recursive_lock_destroy): New macro/function.
22277         (gl_recursive_lock_destroy): Define as wrapper around
22278         glthread_recursive_lock_destroy.
22279         (glthread_once): New macro/function.
22280         (gl_once): Define as wrapper around glthread_once.
22281         Update function declarations.
22282         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22283         glthread_rwlock_init. Return error code.
22284         (glthread_rwlock_rdlock_multithreaded): Renamed from
22285         glthread_rwlock_rdlock. Return error code.
22286         (glthread_rwlock_wrlock_multithreaded): Renamed from
22287         glthread_rwlock_wrlock. Return error code.
22288         (glthread_rwlock_unlock_multithreaded): Renamed from
22289         glthread_rwlock_unlock. Return error code.
22290         (glthread_rwlock_destroy_multithreaded): Renamed from
22291         glthread_rwlock_destroy. Return error code.
22292         (glthread_recursive_lock_init_multithreaded): Renamed from
22293         glthread_recursive_lock_init. Return error code.
22294         (glthread_recursive_lock_lock_multithreaded): Renamed from
22295         glthread_recursive_lock_lock. Return error code.
22296         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22297         glthread_recursive_lock_unlock. Return error code.
22298         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22299         glthread_recursive_lock_destroy. Return error code.
22300         (glthread_once_call): Make static.
22301         (glthread_once_multithreaded): Renamed from glthread_once.
22302         * lib/tls.h: Include <errno.h>.
22303         (glthread_tls_key_init): New macro/function.
22304         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22305         (glthread_tls_set): New macro/function.
22306         (gl_tls_set): Define as wrapper around glthread_tls_set.
22307         (glthread_tls_key_destroy): New macro/function.
22308         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22309         Update function declarations.
22310         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22311         glthread_tls_get.
22312         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22313
22314 2008-08-04  Eric Blake  <ebb9@byu.net>
22315
22316         gnumakefile: use space, not TAB, outside of targets
22317         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22318
22319 2008-08-02  Jim Meyering  <meyering@redhat.com>
22320
22321         getdate.y: avoid locale-dependent date parsing failure
22322         In Turkish locales, getdate would fail to recognize keywords
22323         containing a lowercase "i".  The solution is not to rely on
22324         locale-sensitive case-conversion.
22325         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22326         (lookup_word): Use c_toupper in place of toupper.
22327         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22328         Reported by Vefa Bicakci <bicave@superonline.com> in
22329         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22330         * modules/getdate (Depends-on): Add c-ctype.
22331
22332 2008-08-02  Bruno Haible  <bruno@clisp.org>
22333
22334         * gnulib-tool (func_import): When updating or creating a .gitignore
22335         file, prepend each added line with a slash, and ignore leading slashes
22336         from the existing lines.
22337         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22338
22339 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22340
22341         Portability fix for GNU make 3.79.1.
22342         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22343         versions do not understand.
22344
22345 2008-08-01  Bruno Haible  <bruno@clisp.org>
22346
22347         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22348         * tests/test-isnanf.h (zero): New variable.
22349         (main): Avoid literal -0.0f.
22350         * tests/test-isnand.h (zero): New variable.
22351         (main): Avoid literal -0.0.
22352         * tests/test-isnanl.h (zero): New variable.
22353         (main): Avoid literal -0.0L.
22354         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22355         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22356         -0.0, -0.0L.
22357         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22358         (test_signbitd): Avoid literal -0.0.
22359         (test_signbitl): Avoid literal -0.0L.
22360         * tests/test-ceilf1.c (zero): New variable.
22361         (main): Avoid literal -0.0f.
22362         * tests/test-ceill.c (zero): New variable.
22363         (main): Avoid literal -0.0L.
22364         * tests/test-floorf1.c (zero): New variable.
22365         (main): Avoid literal -0.0f.
22366         * tests/test-floorl.c (zero): New variable.
22367         (main): Avoid literal -0.0L.
22368         * tests/test-roundf1.c (zero): New variable.
22369         (main): Avoid literal -0.0f.
22370         * tests/test-round1.c (zero): New variable.
22371         (main): Avoid literal -0.0.
22372         * tests/test-roundl.c (zero): New variable.
22373         (main): Avoid literal -0.0L.
22374         * tests/test-truncf1.c (zero): New variable.
22375         (main): Avoid literal -0.0f.
22376         * tests/test-trunc1.c (zero): New variable.
22377         (main): Avoid literal -0.0.
22378         * tests/test-truncl.c (zero): New variable.
22379         (main): Avoid literal -0.0L.
22380         * tests/test-frexp.c (zero): New variable.
22381         (main): Avoid literal -0.0.
22382         * tests/test-frexpl.c (zero): New variable.
22383         (main): Avoid literal -0.0L.
22384         * tests/test-ldexpl.c (zero): New variable.
22385         (main): Avoid literal -0.0L.
22386         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22387         (zerod, zerol): New variables.
22388         (test_function): Avoid literals -0.0, -0.0L.
22389         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22390         (zerod, zerol): New variables.
22391         (test_function): Avoid literals -0.0, -0.0L.
22392         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22393         (zerod, zerol): New variables.
22394         (test_function): Avoid literals -0.0, -0.0L.
22395         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22396         (zerod, zerol): New variables.
22397         (test_function): Avoid literals -0.0, -0.0L.
22398         * tests/test-strtod.c (zero): New variable.
22399         (main): Avoid literal -0.0.
22400         Reported by Jonathan C. Patschke <jp@centtech.com>.
22401
22402 2008-07-31  Jim Meyering  <meyering@redhat.com>
22403
22404         sha256.h: correct definition of SHA224_DIGEST_SIZE
22405         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22406         Reported by Paulie Pena IV <paulie4@gmail.com>.
22407         Define as 224 / 8, rather than as a literal.
22408         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22409         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22410         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22411
22412 2008-07-31  Bruno Haible  <bruno@clisp.org>
22413
22414         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22415         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22416         Reported by Jonathan Patschke <jp@centtech.com>.
22417
22418 2008-07-31  Bruno Haible  <bruno@clisp.org>
22419
22420         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22421         Reported by Paolo Bonzini <bonzini@gnu.org>.
22422
22423 2008-07-30  Eric Blake  <ebb9@byu.net>
22424
22425         test-strtod: allow compilation without -lm
22426         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22427         Reported by Dennis Clarke <blastwave@gmail.com>.
22428
22429 2008-07-28  Jim Meyering  <meyering@redhat.com>
22430
22431         bootstrap: work also when there are no .po files in po/
22432         * build-aux/bootstrap (update_po_files): Complete the change
22433         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22434
22435 2008-07-27  Jim Meyering  <meyering@redhat.com>
22436
22437         * users.txt: Add zile.
22438
22439 2008-07-26  Ben Pfaff  <blp@gnu.org>
22440
22441         Add missing dependencies on new m4/exponent[fdl].m4 files.
22442         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22443         * modules/isnand-nolibm: Add m4/exponentd.m4.
22444         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22445         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22446         m4/isnan[fdl].m4, because the macros actually used moved.
22447         Reported by Jim Meyering.
22448
22449 2008-07-14  Ben Pfaff  <blp@gnu.org>
22450
22451         Add isinf module.
22452         * lib/isinf.c: New file.
22453         * lib/math.in.h: Define isinf macro if we have decided to replace
22454         it.
22455         * m4/isinf.m4: New file.
22456         * m4/math_h.m4: Initialize and substitute variables for isinf
22457         module.
22458         * modules/isinf: New file.
22459         * modules/isinf-tests: New file.
22460         * modules/math: Add substitutions for new module.
22461         * tests/test-isinf.c: New file.
22462         * doc/posix-functions/isinf.texi: Mention new module.
22463         * MODULES.html.sh: Mention new module.
22464
22465 2008-07-14  Ben Pfaff  <blp@gnu.org>
22466
22467         Factor out some macros for use by additional modules.
22468         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22469         exponentf.m4.
22470         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22471         exponentd.m4.
22472         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22473         file exponentl.m4.
22474         * m4/exponentf.m4: New file.
22475         * m4/exponentd.m4: New file.
22476         * m4/exponentl.m4: New file.
22477         * modules/isnanf: Use new file m4/exponentf.m4.
22478         * modules/isnand: Use new file m4/exponentd.m4.
22479         * modules/isnanl: Use new file m4/exponentl.m4.
22480
22481 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22482
22483         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22484         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22485         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22486         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22487
22488         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22489         readlink on platforms without PATH_MAX.
22490
22491 2008-07-21  Eric Blake  <ebb9@byu.net>
22492
22493         Warn, not fail, on stale version.
22494         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22495
22496         Don't allow installation with stale devel version number.
22497         * top/GNUmakefile (_is-install-target): New macro.
22498         (_curr-ver): Forbid installation with stale version number.
22499
22500 2008-07-20  Bruno Haible  <bruno@clisp.org>
22501
22502         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22503         TESTS_ENVIRONMENT.
22504         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22505
22506 2008-07-20  Bruno Haible  <bruno@clisp.org>
22507
22508         * lib/c-stack.h (c_stack_action): Add documentation.
22509         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22510
22511 2008-07-20  Bruno Haible  <bruno@clisp.org>
22512
22513         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22514         * modules/readlink (License): Likewise.
22515
22516 2008-07-17  Eric Blake  <ebb9@byu.net>
22517
22518         * modules/c-stack (Link): Fix typo.
22519
22520         Make c-stack use libsigsegv, when available.
22521         * modules/c-stack (Depends-on): Add libsigsegv.
22522         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22523         needed.
22524         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22525         (segv_handler, overflow_handler, c_stack_action)
22526         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22527         implementation when libsigsegv is available, but only when using
22528         the library is necessary.
22529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22530         comment, explaining why XSI check fails on Linux.
22531         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22532         * tests/test-c-stack2.sh: Tweak skip message.
22533         * NEWS: Document new link-time requirements.
22534
22535 2008-07-16  Eric Blake  <ebb9@byu.net>
22536
22537         c-stack: Expose false positives when not using libsigsegv.
22538         * modules/c-stack-tests (Files): Expand test.
22539         * tests/test-c-stack.c (main): Add means to conditionally trigger
22540         non-overflow SIGSEGV.
22541         * tests/test-c-stack2.sh: New file.
22542
22543 2008-07-14  Bruno Haible  <bruno@clisp.org>
22544
22545         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22546         Reported by Eric Blake.
22547
22548 2008-07-14  Sam Steingold  <sds@gnu.org>
22549             Bruno Haible  <bruno@clisp.org>
22550
22551         New module libsigsegv.
22552         * modules/libsigsegv: New file.
22553         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22554         modifications.
22555         * MODULES.html.sh (Signal handling): New section.
22556
22557 2008-07-14  Bruno Haible  <bruno@clisp.org>
22558
22559         * modules/unictype/ctype-* (Description): Add the word "function".
22560         Improves the resulting doc in MODULES.html.
22561
22562 2008-07-12  Ben Pfaff  <blp@gnu.org>
22563
22564         Add longlong module.
22565         * modules/longlong: New file.
22566
22567 2008-07-12  Bruno Haible  <bruno@clisp.org>
22568
22569         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22570         to empty.
22571
22572 2008-07-10  Ben Pfaff  <blp@gnu.org>
22573
22574         Add isnan module.
22575         * doc/posix-functions/isnan.texi: Mention new module.
22576         * lib/math.in.h: Define isnan macro if we have decided to replace
22577         it.
22578         * m4/isnan.m4: New file.
22579         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22580         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22581         also.
22582         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22583         redundancy.
22584         * m4/math_h.m4: Initialize and substitute variables for isnan
22585         module.
22586         * modules/isnan: New file.
22587         * modules/isnan-tests: New file.
22588         * modules/math: Add substitutions for new module.
22589         * tests/test-isnan.c: New file.
22590         * MODULES.html.sh: Mention new module.
22591
22592 2008-07-10  Ben Pfaff  <blp@gnu.org>
22593
22594         Add isnanf module.
22595         * lib/isnanf.m4: New file.
22596         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22597         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22598         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22599         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22600         * modules/isnanf: New file.
22601         * modules/isnanf-tests: New file.
22602         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22603         files.
22604         * tests/test-isnanf-nolibm.c: factored most of its contents into
22605         new file tests/test-isnanf.h.
22606         * tests/test-isnanf.h: New file.
22607         * tests/test-isnanf.c: New file.
22608         * MODULES.html.sh: Mention new module.
22609         * doc/glibc-functions/isnanf.texi: Mention new module.
22610
22611 2008-07-10  Ben Pfaff  <blp@gnu.org>
22612
22613         Add isnand module.
22614         * lib/isnand.h: New file.
22615         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22616         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22617         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22618         functionality also.
22619         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22620         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22621         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22622         * modules/isnand: New file.
22623         * modules/isnand-tests: New file.
22624         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22625         files.
22626         * tests/test-isnand-nolibm.c: factored most of its contents into
22627         new file tests/test-isnand.h.
22628         * tests/test-isnand.h: New file.
22629         * tests/test-isnand.c: New file.
22630         * MODULES.html.sh: Mention new module.
22631
22632 2008-07-10  Ben Pfaff  <blp@gnu.org>
22633
22634         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22635         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22636         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22637         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22638         * modules/isnanf-nolibm: Update references to renamed files.
22639         * modules/isnand-nolibm: Likewise.
22640         * modules/isnanf-nolibm-tests: Likewise.
22641         * modules/isnand-nolibm-tests: Likewise.
22642         * lib/frexp.c: Likewise.
22643         * lib/isfinite.c: Likewise.
22644         * lib/signbitd.c: Likewise.
22645         * lib/signbitf.c: Likewise.
22646         * lib/vasnprintf.c: Likewise.
22647         * tests/test-ceilf1.c: Likewise.
22648         * tests/test-ceilf2.c: Likewise.
22649         * tests/test-floorf1.c: Likewise.
22650         * tests/test-floorf2.c: Likewise.
22651         * tests/test-frexp.c: Likewise.
22652         * tests/test-round1.c: Likewise.
22653         * tests/test-round2.c: Likewise.
22654         * tests/test-roundf1.c: Likewise.
22655         * tests/test-strtod.c: Likewise.
22656         * tests/test-trunc1.c: Likewise.
22657         * tests/test-trunc2.c: Likewise.
22658         * tests/test-truncf1.c: Likewise.
22659         * tests/test-truncf2.c: Likewise.
22660         * NEWS: Mention the renamed header files.
22661
22662 2008-07-11  Jim Meyering  <meyering@redhat.com>
22663
22664         vc-list-files: make the last-resort awk code more portable
22665         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22666         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22667         does not support it.
22668
22669 2008-07-10  Eric Blake  <ebb9@byu.net>
22670
22671         Work with tar's bootstrap.
22672         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22673         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22674         an m4 comment.
22675
22676 2008-07-09  Jim Meyering  <meyering@redhat.com>
22677
22678         posix-shell.m4: fix typo that made this test malfunction
22679         * m4/posix-shell.m4: Remove capitalization in variable name.
22680
22681 2008-07-08  Bruno Haible  <bruno@clisp.org>
22682
22683         * m4/onceonly.m4: Update comments.
22684         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22685
22686 2008-07-04  Jim Meyering  <meyering@redhat.com>
22687
22688         * users.txt: Add vc-dwim.
22689         (bison, coreutils): Use the gitweb URL.
22690
22691 2008-07-03  Jim Meyering  <meyering@redhat.com>
22692
22693         * users.txt: Add libffcall.  From Sam Steingold.
22694
22695 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
22696
22697         getdate.y: do not ignore TZ with relative day, month or year offset
22698         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22699         relative-date-handling, since otherwise, the latter would clobber the
22700         sole output (an updated Start value) of the tz-handling block.
22701         * tests/test-getdate.c: Tests for the fix
22702
22703 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22704
22705         Recognize 'foo_LIBRARIES += libgnu.a'.
22706         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22707         makefile snippet has already specified an installation location,
22708         also using '+='.
22709
22710 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
22711
22712         getdate.y: factor out common actions
22713         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22714         Use them in place of open-coded actions.
22715
22716 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22717
22718         Add self-test for getdate module.
22719         * modules/getdate-tests: New file.
22720         * tests/test-getdate.c: New file.
22721
22722 2008-06-29  Bruno Haible  <bruno@clisp.org>
22723
22724         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22725         .gitignore.
22726         Reported by Sylvain Beucler <beuc@beuc.net>.
22727
22728 2008-06-29  Bruno Haible  <bruno@clisp.org>
22729
22730         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22731         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22732
22733 2008-06-29  Bruno Haible  <bruno@clisp.org>
22734
22735         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22736         EXTRA_DIST.
22737         Reported by Sylvain Beucler <beuc@beuc.net>.
22738
22739 2008-06-26  Jim Meyering  <meyering@redhat.com>
22740
22741         make several modules depend on the "open" module
22742         This provides slightly increased consistency when opening-for-write
22743         the name of a non-directory spelled with a trailing slash.
22744         * modules/chdir-safer: Likewise.
22745         * modules/chown: Likewise.
22746         * modules/clean-temp: Likewise.
22747         * modules/copy-file: Likewise.
22748         * modules/fchdir: Likewise.
22749         * modules/fcntl-safer: Likewise.
22750         * modules/pipe: Likewise.
22751         * modules/utime: Likewise.
22752         Prompted by Eric Blake and Bruno Haible.
22753
22754 2008-06-24  Andreas Schwab  <schwab@suse.de>
22755
22756         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22757         literals can be used as initializers for global variables.
22758
22759 2008-06-23  Eric Blake  <ebb9@byu.net>
22760
22761         Make gnulib-cache.m4 easier to diff.
22762         * gnulib-tool (func_import): Allow newlines when reading cached
22763         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22764
22765 2008-06-23  Bruno Haible  <bruno@clisp.org>
22766
22767         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22768         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22769         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22770         m4/signalblocking.m4.
22771         (gl_PREREQ_SIGACTION): Don't invoke it.
22772         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22773         gl_PREREQ_SIG_HANDLER_H.
22774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22775         Don't check for sigaction here.
22776
22777 2008-06-23  Bruno Haible  <bruno@clisp.org>
22778
22779         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22780         (install_handlers): Don't set the SA_RESETHAND flag.
22781
22782 2008-06-23  Bruno Haible  <bruno@clisp.org>
22783
22784         * m4/sigaction.m4: Comment fixes.
22785         * lib/signal.in.h: Likewise.
22786
22787 2008-06-23  Eric Blake  <ebb9@byu.net>
22788
22789         Fix typo.
22790         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22791
22792         Avoid SA_ namespace.
22793         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22794         Reported by Ralf Wildenhues.
22795
22796         Avoid test failure due to SA_RESTORER.
22797         * tests/test-sigaction.c (SA_MASK): New macro.
22798         (main): Avoid failing due to extension flags being set.
22799         Reported by Jim Meyering.
22800
22801         Revert use of sig-handler.h in sigprocmask.c.
22802         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22803         it requires the existence of struct sigaction.
22804         * lib/sigprocmask.c (handler_t): Restore typedef.
22805         (rpl_signal, old_handlers): Use local type.
22806
22807 2008-06-22  Bruno Haible  <bruno@clisp.org>
22808
22809         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22810         conditionally.
22811         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22812
22813 2008-06-22  Bruno Haible  <bruno@clisp.org>
22814
22815         * doc/posix-functions/siginterrupt.texi: Move note.
22816
22817         * lib/signal.in.h (SA_RESTART): New macro.
22818         * lib/sigaction.c: Update comment.
22819
22820         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22821
22822         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22823         (gl_PREREQ_SIGPROCMASK): Invoke it.
22824         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22825
22826         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22827
22828         * lib/sigprocmask.c: Update a comment.
22829
22830 2008-06-21  Eric Blake  <ebb9@byu.net>
22831
22832         Use sigaction module rather than signal().
22833         * modules/c-stack (Depends-on): Add sigaction.
22834         * modules/fatal-signal (Depends-on): Likewise.
22835         * modules/nanosleep (Depends-on): Likewise.
22836         * modules/sigprocmask (Files): Add sig-handler.h.
22837         * modules/sigaction (Files): Likewise.
22838         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22839         Eggert.
22840         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22841         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22842         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22843         (init_fatal_signals): Likewise.
22844         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22845         (siginterrupt): Delete fallback.
22846         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22847         instead.
22848         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22849         siginterrupt.
22850
22851         New module sigaction, for mingw.
22852         * modules/sigaction: New module...
22853         * modules/sigaction-tests: ...and its test.
22854         * m4/sigaction.m4: New file.
22855         * lib/sigaction.c: Likewise.
22856         * tests/test-sigaction.c: Likewise.
22857         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22858         * modules/signal (Makefile.am): Likewise.
22859         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22860         needed.
22861         * doc/posix-headers/signal.texi (signal.h): Mention provided
22862         types.
22863         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22864         that sigaction is preferable.
22865         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22866         module.
22867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22868         sigaction.
22869
22870         Improve robustness of sigprocmask by overriding signal.
22871         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22872         is in use.
22873         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22874         (SIGKILL, SIGSTOP): Provide fallbacks.
22875         (rpl_signal): Implement.
22876         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22877         signal can be called inside handlers.
22878
22879         Fix nanosleep module on mingw.
22880         * modules/nanosleep (Depends-on): Add sys_select.
22881         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22882
22883         Fix licensing of sigprocmask.
22884         * modules/raise (License): Relicense as LGPL.
22885
22886 2008-06-21  Bruno Haible  <bruno@clisp.org>
22887
22888         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22889         result if it contains question marks.
22890         Reported by Michael Geng <linux@michaelgeng.de>.
22891
22892 2008-06-19  Bruno Haible  <bruno@clisp.org>
22893
22894         Fix CVS-ism.
22895         * doc/gnulib.texi: Include updated-stamp.texi.
22896         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22897         (updated-stamp.texi): New rule.
22898         (gnulib.info): Depend on it.
22899         * doc/.gitignore: Add updated-stamp.texi.
22900         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22901
22902 2008-06-19  Bruno Haible  <bruno@clisp.org>
22903
22904         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22905         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22906
22907 2008-06-19  Eric Blake  <ebb9@byu.net>
22908
22909         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22910         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22911         Reported by Stepan Kasal.
22912
22913 2008-06-18  Bruno Haible  <bruno@clisp.org>
22914
22915         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22916         Reported by Eric Blake.
22917
22918 2008-06-18  Eric Blake  <ebb9@byu.net>
22919
22920         Work around cygwin 1.5.25 strsignal bug.
22921         * tests/test-strsignal.c: Allow for const char *.
22922         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22923
22924 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22925
22926         * users.txt: Update URL to article and add author/date
22927         information.
22928
22929 2008-06-17  Bruno Haible  <bruno@clisp.org>
22930
22931         New macro gl_DISABLE_THREADS.
22932         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22933         if the user did not pass --enable-threads or --disable-threads option.
22934         (gl_DISABLE_THREADS): New macro.
22935         Reported by Eric Blake <ebb9@byu.net>.
22936
22937 2008-06-17  Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22940         when the macro ignores it.
22941         Based on a patch by Eric Blake <ebb9@byu.net>.
22942
22943 2008-06-17  Bruno Haible  <bruno@clisp.org>
22944
22945         * modules/tls (License): Change to LGPLv2+.
22946         Reported by Eric Blake.
22947
22948 2008-06-17  Eric Blake  <ebb9@byu.net>
22949
22950         Simplify c-stack prerequisites.
22951         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22953         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22954         check.
22955         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22956         <sys/resource.h>.
22957
22958         Move c-stack test into testsuite.
22959         * modules/c-stack-tests: New file.
22960         * lib/c-stack.c [DEBUG]: Move test program...
22961         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22962         fail test if sigaltstack is lacking.
22963         * tests/test-c-stack.sh: New driver file.
22964
22965 2008-06-16  Eric Blake  <ebb9@byu.net>
22966
22967         Use raise module consistently.
22968         * modules/fatal-signal (Depends-on): Add raise.
22969         * modules/sigprocmask (Depends-on): Likewise.
22970         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22971         * lib/sigprocmask.c (sigprocmask): Likewise.
22972         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22973         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22974
22975         Fix compliance bug in sigpending.
22976         * lib/sigprocmask.c (sigpending): Return pending array via
22977         parameter, not return value.
22978
22979 2008-06-14  Eric Blake  <ebb9@byu.net>
22980
22981         Improve obstack-printf test code.
22982         * tests/test-obstack-printf.c (test_function): Fix comment, and
22983         simplify usage of obstack_* in macros.  Add a test for coverage.
22984         Reported by Bruno Haible.
22985
22986 2008-06-14  Bruno Haible  <bruno@clisp.org>
22987
22988         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22989         array size as a constant, not as a const variable.
22990         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22991         AC_USE_SYSTEM_EXTENSIONS.
22992         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22993         Test whether the obstack_printf function actually exists.
22994         * modules/obstack-printf (Depends-on): Add extensions.
22995         (Include): Remove obstack.h.
22996         * modules/obstack-printf-posix (Depends-on): Add extensions.
22997         (Include): Remove obstack.h.
22998
22999 2008-06-13  Eric Blake  <ebb9@byu.net>
23000
23001         Add obstack-printf and obstack-printf-posix modules.
23002         * modules/obstack-printf: New file.
23003         * modules/obstack-printf-posix: Likewise.
23004         * MODULES.html.sh (Misc): Mention them.
23005         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23006         Likewise.
23007         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23008         Likewise.
23009         * modules/stdio (Makefile.am): Accomodate new modules.
23010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23011         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23012         Declare.
23013         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23014         functions.
23015         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23016         (gl_REPLACE_OBSTACK_PRINTF): New macros
23017         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23018         * tests/test-obstack-printf.c: New file.
23019         * modules/obstack-printf-tests: Likewise.
23020         * modules/obstack-printf-posix-tests: Likewise.
23021
23022 2008-06-11  Bruno Haible  <bruno@clisp.org>
23023
23024         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23025         * lib/open.c: Include errno.h.
23026         (open): Fail when attempting to write to a file that has a trailing
23027         slash.
23028         * tests/test-open.c (main): Test against trailing slash bug.
23029         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23030
23031 2008-06-10  Bruno Haible  <bruno@clisp.org>
23032
23033         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23034         for $? to work inside the trap command, with various /bin/sh-s.
23035         * tests/test-vc-list-files-cvs.sh: Likewise.
23036
23037 2008-06-10  Bruno Haible  <bruno@clisp.org>
23038
23039         * lib/acl-internal.h: Don't include gettext.h here.
23040         * lib/set-mode-acl.c: Include gettext.h here.
23041         * lib/copy-acl.c: Likewise.
23042
23043 2008-06-10  Bruno Haible  <bruno@clisp.org>
23044
23045         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23046         * lib/wait-process.c (wait_subprocess): Likewise.
23047         * lib/execute.h (execute): Add termsigp argument.
23048         * lib/execute.c (execute): Likewise.
23049         * lib/csharpcomp.c (compile_csharp_using_pnet,
23050         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23051         * lib/csharpexec.c (execute_csharp_using_pnet,
23052         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23053         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23054         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23055         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23056         is_jikes_present): Update.
23057         * lib/javaexec.c (execute_java_class): Update.
23058         * lib/javaversion.c (execute_and_read_line): Update.
23059         * NEWS: Document the changes.
23060         Reported by Eric Blake.
23061
23062 2008-06-10  Eric Blake  <ebb9@byu.net>
23063
23064         Add missing include.
23065         * tests/test-strstr.c (includes): Add <signal.h>.
23066         * tests/test-strcasestr.c (includes): Likewise.
23067         * tests/test-memmem.c (includes): Likewise.
23068
23069 2008-06-10  Bruno Haible  <bruno@clisp.org>
23070
23071         * lib/wait-process.c (wait_subprocess): Add an assertion.
23072
23073 2008-06-10  Bruno Haible  <bruno@clisp.org>
23074
23075         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23076
23077 2008-06-10  Bruno Haible  <bruno@clisp.org>
23078
23079         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23080         using alarm().
23081         * tests/test-strcasestr.c (main): Likewise.
23082         * tests/test-strstr.c (main): Likewise.
23083
23084 2008-06-09  Bruno Haible  <bruno@clisp.org>
23085
23086         Work around the Solaris 10 ACE ACLs ABI change.
23087         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23088         declare if ACL_NO_TRIVIAL is present.
23089         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23090         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23091         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23092         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23093         define if ACL_NO_TRIVIAL is present.
23094         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23095         and use the current ABI.
23096         (file_has_acl): Use same #if condition as elsewhere.
23097         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23098         in use, and use the current ABI.
23099         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23100         Reported by Jim Meyering.
23101
23102 2008-06-09  Eric Blake  <ebb9@byu.net>
23103
23104         Work around environments that (stupidly) ignore SIGALRM.
23105         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23106         before using alarm().
23107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23109         Reported by Ian Beckwith <ianb@erislabs.net>.
23110
23111         Produce autobuild blurb earlier in log.
23112         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23113
23114 2008-06-09  Jim Meyering  <meyering@redhat.com>
23115         and Ondřej Vašík  <ovasik@redhat.com>
23116
23117         utimens.c: correct kernel bug work-around
23118         Ondřej Vašík found that the invalid return value of 280 indicates
23119         failure, not success, and the kernel bug we're trying to work
23120         around affects not just the utimensat call, but also the fallback
23121         futimens call.
23122         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23123         not success.
23124         [HAVE_FUTIMENS]: Use the same work-around, here.
23125
23126 2008-06-09  Jim Meyering  <meyering@redhat.com>
23127
23128         add more guards around definition of ACE_-related code
23129         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23130         ALLOW and ACE_OWNER are also defined.
23131
23132 2008-06-08  Bruno Haible  <bruno@clisp.org>
23133
23134         * lib/acl-internal.h: Add me as co-author.
23135         * lib/file-has-acl.c: Likewise.
23136         * lib/set-mode-acl.c: Likewise.
23137         * lib/copy-acl.c: Likewise.
23138
23139 2008-06-08  Bruno Haible  <bruno@clisp.org>
23140
23141         Add support for AIX ACLs.
23142         * lib/acl-internal.h (acl_nontrivial): New declaration.
23143         * lib/file-has-acl.c (acl_nontrivial): New function.
23144         (file_has_acl): Add implementation using AIX 4 ACL API.
23145         * lib/set-mode-acl.c (qset_acl): Likewise.
23146         * lib/copy-acl.c (qcopy_acl): Likewise.
23147
23148 2008-06-08  Bruno Haible  <bruno@clisp.org>
23149
23150         Add support for HP-UX ACLs.
23151         * lib/acl-internal.h (acl_nontrivial): New declaration.
23152         * lib/file-has-acl.c (acl_nontrivial): New function.
23153         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23154         * lib/set-mode-acl.c (qset_acl): Likewise.
23155         * lib/copy-acl.c (qcopy_acl): Likewise.
23156
23157 2008-06-08  Bruno Haible  <bruno@clisp.org>
23158
23159         Add support for Cygwin ACLs.
23160         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23161         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23162         the chmod_or_fchmod call.
23163         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23164
23165 2008-06-08  Bruno Haible  <bruno@clisp.org>
23166
23167         Fix bug with setuid modes in Solaris 10+ code.
23168         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23169         succeeded, when the mode contains some special bits.
23170
23171 2008-06-08  Bruno Haible  <bruno@clisp.org>
23172
23173         Add support for Solaris 7..10 ACLs.
23174         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23175         declarations.
23176         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23177         functions.
23178         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23179         * lib/set-mode-acl.c (qset_acl): Likewise.
23180         * lib/copy-acl.c (qcopy_acl): Likewise.
23181
23182 2008-06-08  Bruno Haible  <bruno@clisp.org>
23183
23184         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23185         declaration.
23186         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23187         (acl_access_nontrivial): Remove MacOS X case.
23188         (file_has_acl): Use acl_extended_nontrivial.
23189         * lib/copy-acl.c (qcopy_acl): Likewise.
23190
23191 2008-06-08  Bruno Haible  <bruno@clisp.org>
23192
23193         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23194
23195 2008-06-08  Jim Meyering  <meyering@redhat.com>
23196
23197         * modules/acl (Maintainer): Add Bruno Haible.
23198
23199 2008-06-07  Bruno Haible  <bruno@clisp.org>
23200
23201         Improve support for Tru64 ACLs.
23202         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23203         ACL on OSF/1.
23204
23205 2008-06-07  Bruno Haible  <bruno@clisp.org>
23206
23207         Add support for MacOS X ACLs.
23208         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23209         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23210         * lib/set-mode-acl.c (qset_acl): Likewise.
23211         * lib/copy-acl.c (qcopy_acl): Likewise.
23212
23213 2008-06-07  Bruno Haible  <bruno@clisp.org>
23214
23215         Fix memory leak introduced on 2008-05-22.
23216         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23217         use.
23218
23219 2008-06-07  Bruno Haible  <bruno@clisp.org>
23220
23221         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23222         to construct an empty ACL.
23223
23224 2008-06-07  Bruno Haible  <bruno@clisp.org>
23225
23226         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23227         precisely.
23228         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23229
23230 2008-06-07  Bruno Haible  <bruno@clisp.org>
23231
23232         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23233         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23234
23235 2008-06-07  Bruno Haible  <bruno@clisp.org>
23236
23237         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23238         regardless of POSIX.
23239         * doc/posix-functions/_longjmp.texi: Likewise.
23240         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23241         SystemV platform in this case.
23242
23243 2008-06-06  Eric Blake  <ebb9@byu.net>
23244
23245         Document abort() bugs.
23246         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23247
23248         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23249         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23250         sigsetjmp.
23251         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23252         siglongjmp, but only as a macro.
23253         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23254         is obsolete.
23255         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23256
23257         Tweak documentation to cover cygwin argz bugs.
23258         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23259         argz bug fix; no code change needed since no cygwin releases
23260         occurred between the last fix and the bug being tested.
23261         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23262         module and recently fixed cygwin bugs.
23263         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23264         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23265         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23266         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23267         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23268         Likewise.
23269         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23270         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23271         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23272         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23273         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23274         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23275         Likewise.
23276
23277         Avoid gcc warning on cygwin.
23278         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23279         !ACL_NO_TRIVIAL]: Avoid unused variable.
23280
23281 2008-06-05  Eric Blake  <ebb9@byu.net>
23282
23283         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23284         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23285         git-version-gen fails to come up with a version.
23286         Reported by Simon Josefsson.
23287
23288 2008-06-05  Jim Meyering  <meyering@redhat.com>
23289             Paul Eggert  <eggert@cs.ucla.edu>
23290
23291         utimens.c: work around a probable Linux kernel bug
23292         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23293         appears to be a kernel bug that causes utimensat to return 280
23294         instead of 0, indicating success.
23295
23296 2008-06-04  Bruno Haible  <bruno@clisp.org>
23297
23298         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23299         2008-06-01 commit.
23300
23301 2008-06-04  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23304         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23305         (file_has_acl): Use it. Save errno afterwards.
23306         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23307
23308 2008-06-03  Bruno Haible  <bruno@clisp.org>
23309
23310         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23311         draft code. Simplify #ifs.
23312         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23313         Put Solaris code after POSIX-draft code. Fix comments regarding
23314         Solaris 10, HP-UX. Mention Cygwin.
23315         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23316
23317 2008-06-03  Eric Blake  <ebb9@byu.net>
23318
23319         Provide fallback for older kernels.
23320         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23321         Provide runtime fallback if kernel lacks support.
23322         Reported by Mike Frysinger.
23323
23324 2008-06-02  Bruno Haible  <bruno@clisp.org>
23325
23326         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23327         it exists.
23328
23329 2008-06-02  Bruno Haible  <bruno@clisp.org>
23330
23331         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23332         * lib/copy-acl.c (qcopy_acl): Update comment.
23333
23334 2008-06-02  Bruno Haible  <bruno@clisp.org>
23335
23336         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23337         like ACL APIs.
23338
23339 2008-06-02  Bruno Haible  <bruno@clisp.org>
23340
23341         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23342         * tests/test-set-mode-acl.sh: Likewise.
23343         * tests/test-copy-acl.sh: Likewise.
23344         * tests/test-copy-file.sh: Likewise.
23345
23346 2008-06-02  Bruno Haible  <bruno@clisp.org>
23347
23348         * tests/test-file-has-acl.sh: Remove unused code.
23349
23350 2008-06-01  Bruno Haible  <bruno@clisp.org>
23351
23352         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23353         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23354         messages.
23355         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23356
23357 2008-06-01  Bruno Haible  <bruno@clisp.org>
23358
23359         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23360         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23361         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23362         APIs.
23363         * modules/acl-tests (configure.ac): Remove tests now contained in
23364         m4/acl.m4.
23365
23366 2008-06-02  Jim Meyering  <meyering@redhat.com>
23367
23368         announce-gen: use a better key-server host name
23369         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23370         it may be more consistently reliable.  Suggested by Werner Koch
23371         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23372
23373 2008-06-01  Bruno Haible  <bruno@clisp.org>
23374
23375         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23376         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23377
23378 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23379
23380         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23381
23382 2008-06-01  Bruno Haible  <bruno@clisp.org>
23383
23384         New ACL tests.
23385         * tests/test-file-has-acl.sh: New file.
23386         * tests/test-file-has-acl.c: New file.
23387         * tests/test-set-mode-acl.sh: New file.
23388         * tests/test-set-mode-acl.c: New file.
23389         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23390         * tests/test-copy-acl.c: New file.
23391         * modules/acl-tests: New file, based on modules/copy-file-tests.
23392         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23393         (Depends-on): Add acl-tests.
23394         (configure.ac): Remove checks.
23395         (Makefile.am): Don't create test-sameacls program here any more.
23396
23397 2008-06-01  Bruno Haible  <bruno@clisp.org>
23398
23399         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23400         * tests/test-sameacls.c: Include progname.h.
23401         (main): Invoke set_program_name. Portability fixes for MacOS X,
23402         Solaris, HP-UX.
23403
23404 2008-06-01  Bruno Haible  <bruno@clisp.org>
23405
23406         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23407         function.
23408         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23409
23410 2008-06-01  Bruno Haible  <bruno@clisp.org>
23411
23412         * modules/rpmatch (Depends-on): Add strdup.
23413
23414 2008-06-01  Bruno Haible  <bruno@clisp.org>
23415
23416         * lib/pipe.c: Include unistd-safer.h.
23417         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23418         * modules/pipe (Depends-on): Add unistd-safer.
23419
23420 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23421
23422         * modules/autobuild (configure.ac): Call AB_INIT.
23423
23424 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23425
23426         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23427         Suggested by Bruno Haible <bruno@clisp.org>.
23428
23429 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23430
23431         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23432         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23433         <bruno@clisp.org>.
23434
23435 2008-05-29  Eric Blake  <ebb9@byu.net>
23436
23437         Prefer new POSIX 200x interfaces over futimesat.
23438         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23439         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23440         when available.
23441         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23442
23443 2008-05-28  Bruno Haible  <bruno@clisp.org>
23444
23445         * modules/stpcpy (License): Change to LGPLv2+.
23446         Requested by David Lutterkort <dlutter@redhat.com>.
23447
23448 2008-05-27  Bruno Haible  <bruno@clisp.org>
23449
23450         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23451         current mingw.
23452         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23453
23454 2008-05-27  Bruno Haible  <bruno@clisp.org>
23455
23456         * modules/iconv_open (Link): New section, from module 'iconv'.
23457         * modules/striconv (Link): Likewise.
23458         * modules/striconveh (Link): Likewise.
23459         * modules/xstriconv (Link): Likewise.
23460         * modules/unicodeio (Link): Likewise.
23461         * modules/propername (Link): Likewise.
23462         Reported by Jim Meyering.
23463
23464 2008-05-26  Jim Meyering  <meyering@redhat.com>
23465
23466         sha256: do not artificially restrict buffer length to be < 2^32
23467         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23468         uint32_t to size_t.
23469         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23470         to match.
23471
23472         avoid unaligned access errors, e.g., on sparc
23473         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23474         direct access through a possibly-unaligned uint64* pointer.
23475         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23476         direct access through a possibly-unaligned uint32* pointer.
23477         Prompted by this patch from Tom "spot" Callaway:
23478         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23479
23480         sha512.c: fix typo in comment
23481         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23482
23483 2008-05-25  Bruno Haible  <bruno@clisp.org>
23484
23485         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23486         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23487         (Makefile.am): Update lib_SOURCES.
23488
23489 2008-05-25  Bruno Haible  <bruno@clisp.org>
23490
23491         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23492
23493 2008-05-25  Jim Meyering  <meyering@redhat.com>
23494
23495         useless-if-before-free: freed expr may have white-space differences
23496         * build-aux/useless-if-before-free: Recognize cases in which the
23497         freed expression differs from the tested one in embedded white
23498         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23499         $1 was used, so we can't make any regexp shy.  Improved tests now
23500         detect this.
23501
23502         useless-if-before-free: accept white space in the expression.
23503         * build-aux/useless-if-before-free: For now, any white space
23504         in the expression must be identical in the free argument.
23505
23506         useless-if-before-free: efficiency tweak
23507         * build-aux/useless-if-before-free: Make the expression-matching
23508         regexp "shy".
23509         Make the *outer* regexp shy, not the expr-matching one.
23510
23511         update code-in-comment to accept cast of free arg
23512         * build-aux/useless-if-before-free: Update regexp.
23513
23514 2008-05-25  Bruno Haible  <bruno@clisp.org>
23515
23516         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23517         * modules/copy-file-tests (Files, Makefile.am): Update.
23518         * tests/test-copy-file.c (func_test_copy): Update.
23519
23520 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23521
23522         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23523
23524 2008-05-23  Bruno Haible  <bruno@clisp.org>
23525
23526         Improve support for ACLs on OSF/1.
23527         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23528         Remove fallback for unknown flavors of ACLs.
23529
23530 2008-05-22  Bruno Haible  <bruno@clisp.org>
23531
23532         Add support for ACLs on OSF/1.
23533         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23534         replacements.
23535         (acl_free_text): New macro fallback.
23536         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23537         acl_free.
23538         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23539         acl_free_text function. Require AC_C_INLINE.
23540
23541 2008-05-22  Bruno Haible  <bruno@clisp.org>
23542
23543         Make copy_acl work on MacOS X 10.5.
23544         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23545         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23546         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23547         If MODE_INSIDE_ACL, don't assume that every system has the same text
23548         representation for ACLs as FreeBSD.
23549         * lib/copy-acl.c (copy_acl): Add support for platforms with
23550         !MODE_INSIDE_ACL.
23551         * lib/file-has-acl.c (file_has_acl): Likewise.
23552         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23553         FreeBSD, MacOS X, or IRIX, respectively.
23554
23555 2008-05-22  Bruno Haible  <bruno@clisp.org>
23556
23557         * lib/acl.h: Don't include <sys/acl.h>.
23558         (GETACLCNT): Move fallback to lib/acl-internal.h.
23559         * lib/acl-internal.h: Include <sys/acl.h> here.
23560         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23561
23562 2008-05-22  Bruno Haible  <bruno@clisp.org>
23563
23564         Split off copy_acl function to separate file.
23565         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23566         * lib/acl.c (copy_acl): Moved function to separate file.
23567         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23568         * modules/acl (Files): Add lib/copy-acl.c.
23569         (Makefiles.am): Augment lib_SOURCES.
23570
23571 2008-05-22  Bruno Haible  <bruno@clisp.org>
23572
23573         * modules/copy-file-tests: New file.
23574         * tests/test-copy-file.sh: New file.
23575         * tests/test-copy-file.c: New file.
23576         * tests/test-copy-file-sameacls.c: New file.
23577
23578 2008-05-22  Eric Blake  <ebb9@byu.net>
23579
23580         Avoid gcc warning.
23581         * tests/test-memcmp.c (main): Pass NULL indirectly.
23582
23583 2008-05-21  Bruno Haible  <bruno@clisp.org>
23584
23585         Add reference doc about ACLs.
23586         * doc/acl-resources.txt: New file.
23587         * doc/acl-cygwin.txt: New file.
23588
23589 2008-05-21  Bruno Haible  <bruno@clisp.org>
23590
23591         Avoid one more warning from gcc.
23592         * lib/vasnprintf.c (IF_LINT): Update comments.
23593         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23594
23595 2008-05-21  Jim Meyering  <meyering@redhat.com>
23596
23597         avoid a warning from gcc
23598         * lib/vasnprintf.c (IF_LINT): Define.
23599         (scale10_round_decimal_long_double):
23600         Use it to avoid a "may be used uninitialized" warning.
23601         (scale10_round_decimal_double): Likewise.
23602
23603 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23604
23605         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23606         declared.
23607
23608 2008-05-20  Bruno Haible  <bruno@clisp.org>
23609
23610         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23611         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23612
23613 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23614
23615         * modules/memcmp-tests: New file.
23616         * tests/test-memcmp.c: New file.
23617
23618 2008-05-19  Bruno Haible  <bruno@clisp.org>
23619
23620         * modules/propername (Notice, configure.ac): Put quoted "..." into
23621         --keyword option.
23622         * lib/propername.h: Update comments accordingly.
23623         Reported by Eric Blake.
23624
23625 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23626
23627         * modules/getpass-gnu (Depends-on): Add fseeko.
23628
23629 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23630
23631         * modules/base64-tests: New file.
23632
23633 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23634
23635         * lib/base64.c (base64_decode_ctx): If a decode context structure
23636         was passed in use it to ignore newlines.  If a context structure
23637         was _not_ passed in, continue to treat newlines as garbage (this
23638         is the historical behavior).  Formerly base64_decode.
23639         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23640         takes a decode context structure.
23641         * lib/base64.h (base64_decode): Macro for four-argument calls.
23642         (base64_decode_alloc): Likewise.
23643         * lib/base64.c (base64_decode_ctx): If a decode context structure
23644         was passed in use it to ignore newlines.  If a context structure
23645         was _not_ passed in, continue to treat newlines as garbage (this
23646         is the historical behavior).  Formerly base64_decode.
23647         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23648         takes a decode context structure.
23649         * lib/base64.h (base64_decode): Macro for four-argument calls.
23650         (base64_decode_alloc): Likewise.
23651
23652 2008-05-19  Jim Meyering  <meyering@redhat.com>
23653
23654         avoid a warning from gcc
23655         * lib/trim.c (IF_LINT): Define.
23656         (trim2): Use it to avoid a "may be used uninitialized" warning.
23657
23658         Fix doc typo.
23659         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23660
23661 2008-05-19  Bruno Haible  <bruno@clisp.org>
23662
23663         * doc/glibc-functions/getpass.texi: Document limits of other
23664         implementations.
23665
23666 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23667             Bruno Haible <bruno@clisp.org>
23668
23669         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23670
23671 2008-05-18  Bruno Haible  <bruno@clisp.org>
23672
23673         * modules/propername: New file, from GNU gettext.
23674         * lib/propername.h: New file, from GNU gettext.
23675         * lib/propername.c: New file, from GNU gettext.
23676         * MODULES.html.sh (Internationalization functions): Add propername.
23677
23678 2008-05-16  Jim Meyering  <meyering@redhat.com>
23679             Bruno Haible  <bruno@clisp.org>
23680
23681         Avoid some warnings from "gcc -Wshadow".
23682         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23683
23684 2008-05-15  Eric Blake  <ebb9@byu.net>
23685
23686         Extend previous patch to cygwin 1.7.0.
23687         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23688         fast implementation in cygwin >= 1.7.0.
23689         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23691
23692 2008-05-15  Bruno Haible  <bruno@clisp.org>
23693
23694         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23695         implementation in glibc >= 2.9.
23696         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23698
23699 2008-05-15  Bruno Haible  <bruno@clisp.org>
23700
23701         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23702         (Unicode string functions): Add unilbrk/*.
23703         Reported by Karl Berry.
23704
23705 2008-05-15  Eric Blake  <ebb9@byu.net>
23706
23707         Fix violation of <stdbool.h> replacement in regex.
23708         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23709         * lib/regexec.c (re_search_internal): Likewise.
23710         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23711
23712 2008-05-15  Jim Meyering  <meyering@redhat.com>
23713
23714         avoid distracting test output when git or cvs is not found
23715         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23716         * tests/test-vc-list-files-git.sh: Likewise.
23717
23718 2008-05-15  Eric Blake  <ebb9@byu.net>
23719
23720         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23721         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23722         glibc version.
23723         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23724         * doc/posix-functions/strstr.texi (strstr): Likewise.
23725         * lib/str-two-way.h (MAX): Sychronize with glibc.
23726
23727 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23728
23729         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23730         opr.ctx_type.
23731         (calc_first): Initialize constraint field.
23732         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23733         Fix grammar.
23734         (duplicate_node): Merge constraint field for all node types.
23735         (calc_eclosure_iter): Look at constraint field for all node types.
23736         * lib/regex_internal.c (create_cd_newstate): Don't look at
23737         opr.ctx_type.
23738
23739 2008-05-14  Bruno Haible  <bruno@clisp.org>
23740
23741         Help GCC to do better code generation.
23742         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23743         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23744         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23745         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23746         Declare with attribute 'malloc' if supported.
23747
23748 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23749
23750         use "echo STR|wc -c" rather than unportable "expr length STR"
23751         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23752         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23753
23754 2008-05-14  Jim Meyering  <meyering@redhat.com>
23755
23756         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23757         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23758         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23759         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23760         via Collin Lasse.
23761
23762 2008-05-14  Eric Blake  <ebb9@byu.net>
23763
23764         Avoid quadratic growth in gl_LIBSOURCES.
23765         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23766         Suggested by Bruno Haible.
23767
23768         Test xmemdup0.
23769         * modules/xmemdup0-tests: New file.
23770         * tests/test-xmemdup0.c: Likewise.
23771
23772 2008-05-13  Eric Blake  <ebb9@byu.net>
23773
23774         Split xmemdup0 into its own module.
23775         * modules/xmemdup0: New file.
23776         * lib/xmemdup0.h: Likewise.
23777         * lib/xmemdup0.c: Likewise.
23778         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23779         * lib/xalloc.h (xmemdup0): Remove.
23780         * lib/xmalloc.c (xmemdup0): Likewise.
23781
23782 2008-05-13  Eric Blake  <ebb9@byu.net>
23783             Bruno Haible  <bruno@clisp.org>
23784
23785         Reduce number of forks required during autoconf.
23786         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23787         and gl_LIBSOURCES_DIR.
23788         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23789         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23790         m4_syscmd per file.
23791         <m4_foreach_w>: Move...
23792         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23793
23794 2008-05-13  Eric Blake  <ebb9@byu.net>
23795
23796         * gnulib-tool: Fix various comment typos.
23797
23798 2008-05-12  Bruno Haible  <bruno@clisp.org>
23799
23800         Tailor the linebreaking algorithm.
23801         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23802
23803 2008-05-12  Bruno Haible  <bruno@clisp.org>
23804
23805         Update to Unicode 5.0.0.
23806         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23807         LBP_JV, LBP_JT. Redistribute values.
23808         (unilbrk_table): Change size.
23809         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23810         Unicode TR#14 rev. 22.
23811         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23812         LBP_JV, LBP_JT. Redistribute values.
23813         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23814         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23815         Update.
23816         * lib/unilbrk/lbrkprop1.h: Regenerated.
23817         * lib/unilbrk/lbrkprop2.h: Regenerated.
23818         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23819         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23820         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23821         Likewise.
23822         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23823         Likewise.
23824         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23825         result.
23826         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23827         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23828         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23829         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23830         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23831         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23832
23833 2008-05-11  Bruno Haible  <bruno@clisp.org>
23834
23835         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23836
23837 2008-05-11  Bruno Haible  <bruno@clisp.org>
23838
23839         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23840         * modules/unilbrk/gen-lbrk: New file.
23841
23842 2008-05-11  Bruno Haible  <bruno@clisp.org>
23843
23844         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23845         * m4/sha512.m4 (gl_SHA512): Likewise.
23846
23847 2008-05-11  Jim Meyering  <meyering@redhat.com>
23848
23849         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23850         * modules/crypto/sha256: New file.
23851         * modules/crypto/sha512: Likewise.
23852         * lib/sha256.c: Likewise.
23853         * lib/sha256.h: Likewise.
23854         * lib/sha512.c: Likewise.
23855         * lib/sha512.h: Likewise.
23856         * lib/u64.h: Likewise.
23857         * m4/sha256.m4: Likewise.
23858         * m4/sha512.m4: Likewise.
23859         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23860
23861 2008-05-10  Bruno Haible  <bruno@clisp.org>
23862
23863         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23864         (Input/Output <stdio.h>): Add xprintf.
23865         (Signal handling <signal.h>): Add strsignal.
23866         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23867         (Core language properties): Add func.
23868         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23869         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23870         strings.
23871         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23872         (Input/output): New section.
23873         (File system functions): Add openat-die, stat-macros.
23874         (Networking functions): Add sockets.
23875         (Unicode string functions): Add unictype/*.
23876         (Support for building libraries and executables): Add gperf.
23877         (Support for building documentation): Add agpl-3.0.
23878         (Misc): Add nocrash.
23879
23880 2008-05-10  Bruno Haible  <bruno@clisp.org>
23881
23882         * modules/unictype/gen-ctype: New file.
23883
23884 2008-05-10  Jim Meyering  <meyering@redhat.com>
23885
23886         Make chdir-safer.c more efficient on a system with no symlinks.
23887         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23888         also if ELOOP is zero.  Suggested by Bruno Haible.
23889
23890         Make chdir-safer.c slightly safer.
23891         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23892         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23893
23894         Avoid compile failure on systems without ELOOP (like mingw).
23895         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23896         Reported by Bruno Haible.
23897
23898 2008-05-10  Bruno Haible  <bruno@clisp.org>
23899
23900         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23901         (is_utf8_encoding): Use a case-insensitive comparison.
23902         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23903         streq.
23904
23905 2008-05-10  Bruno Haible  <bruno@clisp.org>
23906
23907         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23908         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23909         * lib/unilbrk/ulc-common.h (iconv_string_length,
23910         iconv_string_keeping_offsets): Remove declarations.
23911         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23912         Don't include <iconv.h>, streq.h, xsize.h.
23913         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23914         conversion.
23915         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23916         <iconv.h>, streq.h, xsize.h.
23917         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23918         conversion.
23919         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23920         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23921         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23922         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23923
23924 2008-05-10  Bruno Haible  <bruno@clisp.org>
23925
23926         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23927         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23928
23929         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23930         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23931
23932         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23933         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23934
23935         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23936         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23937
23938         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23939         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23940
23941         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23942         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23943
23944         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23945         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23946
23947         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23948         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23949
23950 2008-05-10  Bruno Haible  <bruno@clisp.org>
23951
23952         Split up 'linebreak' module.
23953         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23954         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23955         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23956         modifications.
23957         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23958         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23959         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23960         lib/linebreak.c.
23961         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23962         lib/linebreak.c.
23963         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23964         lib/linebreak.c.
23965         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23966         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23967         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23968         lib/linebreak.c.
23969         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23970         lib/linebreak.c.
23971         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23972         lib/linebreak.c.
23973         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23974         lib/linebreak.c.
23975         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23976         lib/linebreak.c.
23977         * modules/unilbrk/base: New file.
23978         * modules/unilbrk/tables: New file.
23979         * modules/unilbrk/u8-possible-linebreaks: New file.
23980         * modules/unilbrk/u16-possible-linebreaks: New file.
23981         * modules/unilbrk/u32-possible-linebreaks: New file.
23982         * modules/unilbrk/ulc-common: New file.
23983         * modules/unilbrk/ulc-possible-linebreaks: New file.
23984         * modules/unilbrk/u8-width-linebreaks: New file.
23985         * modules/unilbrk/u16-width-linebreaks: New file.
23986         * modules/unilbrk/u32-width-linebreaks: New file.
23987         * modules/unilbrk/ulc-width-linebreaks: New file.
23988         * lib/linebreak.h: Remove file.
23989         * lib/linebreak.c: Remove file.
23990         * m4/linebreak.m4: Remove file.
23991         * modules/linebreak: Remove file.
23992         * NEWS: Mention the changes.
23993
23994 2008-05-09  Eric Blake  <ebb9@byu.net>
23995
23996         Add xmemdup0.
23997         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23998         implementation.
23999         * lib/xmalloc.c (xmemdup0): New C implementation.
24000
24001 2008-05-08  Bruno Haible  <bruno@clisp.org>
24002
24003         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24004
24005 2008-05-07  Eric Blake  <ebb9@byu.net>
24006
24007         Support cross-compilation of <wctype.h>.
24008         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24009         AC_CACHE_CHECK.
24010
24011 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24012
24013         * build-aux/vc-list-files: Add support for bzr.
24014
24015 2008-05-03  Jim Meyering  <meyering@redhat.com>
24016
24017         avoid failed assertion with tight malloc
24018         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24019
24020 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24021
24022         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24023         are needed from arpa/inet.h.
24024         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24025         Reported by Bruno Haible.
24026
24027 2008-05-02  Jim Meyering  <meyering@redhat.com>
24028
24029         avoid compilation error on FreeBSD 6
24030         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24031
24032 2008-05-01  Jim Meyering  <meyering@redhat.com>
24033
24034         useless-if-before-free: correct --help's exit status description
24035         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24036         for one or more matches, etc.  Reported by Bruno Haible.
24037
24038         vc-list-files: make the stand-alone gnulib test work
24039         * modules/vc-list-files-tests (configure.ac):
24040         Define and AC_SUBST abs_aux_dir.
24041         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24042         $(abs_top_srcdir) to each script and having each of them
24043         duplicate the work of setting PATH, set PATH here, using
24044         the new variable, abs_aux_dir instead.
24045         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24046         * tests/test-vc-list-files-git.sh: Likewise.
24047         Reported by Bruno Haible.
24048
24049 2008-05-01  Bruno Haible  <bruno@clisp.org>
24050
24051         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24052         reallocation. Rename 'done' to 'found_delimiter'.
24053
24054 2008-05-01  Jim Meyering  <meyering@redhat.com>
24055
24056         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24057         * build-aux/vc-list-files: Use `...`, not $(...).
24058
24059 2008-04-30  Jim Meyering  <meyering@redhat.com>
24060
24061         add tests for vc-list-files
24062         * modules/vc-list-files-tests: New module.
24063         * tests/test-vc-list-files-cvs.sh: New file.
24064         * tests/test-vc-list-files-git.sh: New file.
24065
24066         avoid a warning from gcc
24067         * lib/getndelim2.c (IF_LINT): Define.
24068         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24069
24070         vc-list-files: work properly with build-aux/cvsu, too
24071         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24072         to all cvs-based clauses.
24073
24074         vc-list-files: work properly in the CVS+awk case, too
24075         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24076
24077         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24078         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24079         take more than one file argument, so .  Add quotes, just in case $dir
24080         ever contains a shell meta-character.  Prompted by Soren Hansen in
24081         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24082
24083 2008-04-29  Eric Blake  <ebb9@byu.net>
24084
24085         Optimize getndelim2 to use block operations when possible.
24086         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24087         freadseek, and memchr2.
24088         * lib/getndelim2.c (getndelim2): Use them for block reads.
24089
24090 2008-04-29  Bruno Haible  <bruno@clisp.org>
24091
24092         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24093         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24094         * modules/inet_ntop (Depends-on): Add extensions.
24095         * modules/inet_pton (Depends-on): Likewise.
24096         Reported by Simon Josefsson.
24097
24098 2008-04-29  Jim Meyering  <meyering@redhat.com>
24099
24100         When the is more than one match in a block, match all of them.
24101         * build-aux/useless-if-before-free: Iterate through each block
24102         until there are no more matches.
24103
24104         Fix broken useless-if-before-free script.
24105         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24106         the expression to match cast of argument to free-like function.
24107
24108 2008-04-29  Eric Blake  <ebb9@byu.net>
24109
24110         Use new header.
24111         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24112
24113 2008-04-29  Jim Meyering  <meyering@redhat.com>
24114
24115         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24116         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24117         by gnulib to exist and to declare e.g., inet_ntop.
24118         Don't include "inet_ntop.h", now removed.
24119
24120         * m4/arpa_inet_h.m4: Remove trailing blanks.
24121
24122 2008-04-29  Eric Blake  <ebb9@byu.net>
24123
24124         Silence valgrind on safe reads beyond potential array bounds.
24125         * lib/rawmemchr.valgrind: New file.
24126         * lib/strchrnul.valgrind: Likewise.
24127         * modules/rawmemchr (Files): Distribute new file.
24128         * modules/strchrnul (Files): Likewise.
24129         Suggested by Bruno Haible.
24130
24131 2008-04-29  Bruno Haible  <bruno@clisp.org>
24132
24133         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24134         (inet_ntop, inet_pton): Change portability warning's wording.
24135         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24136         Invoke gl_CHECK_NEXT_HEADERS.
24137         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24138         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24139         set ARPA_INET_H.
24140         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24141         * modules/arpa_inet (Description): No longer only for systems that
24142         lack it.
24143         (Depends-on): Add include_next.
24144         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24145         HAVE_ARPA_INET_H.
24146
24147 2008-04-29  Jim Meyering  <meyering@redhat.com>
24148
24149         * modules/mkdir (License): Re-license as LGPLv2+.
24150
24151 2008-04-29  Bruno Haible  <bruno@clisp.org>
24152
24153         * modules/rawmemchr (Maintainer): Set to Eric.
24154         * modules/strchrnul (Maintainer): Likewise.
24155
24156 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24157
24158         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24159         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24160
24161         * modules/arpa_inet (arpa/inet.h): Use them.
24162
24163 2008-04-28  Eric Blake  <ebb9@byu.net>
24164
24165         Test getndelim2.
24166         * modules/getndelim2-tests: New file.
24167         * tests/test-getndelim2.c: Likewise.
24168         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24169         stream.
24170         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24171
24172         * MODULES.html.sh: Document new module.
24173
24174 2008-04-20  Bruno Haible  <bruno@clisp.org>
24175
24176         * lib/c-stack.c (die): Use raise.
24177         * modules/c-stack (Depends-on): Add raise.
24178
24179 2008-04-28  Bruno Haible  <bruno@clisp.org>
24180
24181         Expect rpmatch to be declared.
24182         * lib/yesno.c (rpmatch): Remove declaration.
24183
24184         Declare rpmatch.
24185         * lib/stdlib.in.h (rpmatch): New declaration.
24186         * lib/rpmatch.c: Include <stdlib.h> first.
24187         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24188         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24190         HAVE_RPMATCH.
24191         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24192         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24193         (Include): Set to <stdlib.h>.
24194         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24195         HAVE_RPMATCH.
24196         * NEWS: Document the change.
24197
24198 2008-04-28  Bruno Haible  <bruno@clisp.org>
24199
24200         Change rpmatch to use nl_langinfo when appropriate.
24201         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24202         (N_): New macro.
24203         (localized_pattern): New function/macro.
24204         (try): Remove match, nomatch arguments. Copy the pattern into safe
24205         memory before caching it.
24206         (rpmatch): Use localized_pattern. Add translator comments.
24207         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24208         Suggested by Eric Blake.
24209         * modules/rpmatch (Depends-on): Add stdbool.
24210
24211 2008-04-28  Eric Blake  <ebb9@byu.net>
24212
24213         Add rawmemchr module, matching glibc.
24214         * modules/string (Makefile.am): New indicator.
24215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24216         * lib/string.in.h (rawmemchr): Declare when appropriate.
24217         * modules/rawmemchr: New file.
24218         * m4/rawmemchr.m4: Likewise.
24219         * lib/rawmemchr.c: Likewise.
24220         * modules/rawmemchr-tests: Likewise.
24221         * tests/test-rawmemchr.c: Likewise.
24222         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24223         module.
24224         * modules/strchrnul (Depends-on): Add rawmemchr.
24225         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24226
24227         Whitespace cleanup.
24228         * tests/test-strchrnul.c: Reindent.
24229         * lib/strchrnul.c: Likewise.
24230
24231         Optimize and test strchrnul.
24232         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24233         * modules/strchrnul-tests: New file.
24234         * tests/test-strchrnul.c: Likewise.
24235
24236         Remove intprops dependency.
24237         * modules/memchr (Depends-on): Remove intprops.
24238         * modules/memrchr (Depends-on): Likewise.
24239         * modules/memchr2 (Depends-on): Likewise.
24240         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24241         * lib/memrchr.c (__memrchr): Likewise.
24242         * lib/memrchr2.c (memchr2): Likewise.
24243         Reported by Simon Josefsson.
24244
24245 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24246
24247         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24248         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24249
24250 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24251
24252         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24253
24254         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24255
24256         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24257
24258         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24259         declarations.
24260         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24261
24262         * m4/inet_pton.m4: Don't check for header files.
24263
24264         * m4/inet_ntop.m4: Don't check for header files.
24265
24266 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24267
24268         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24269         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24270         trigger for cygwin).
24271         Reported by Bruno Haible  <bruno@clisp.org>.
24272
24273 2008-04-28  Bruno Haible  <bruno@clisp.org>
24274
24275         * doc/posix-functions/strdup.texi: Mention mingw problem.
24276
24277 2008-04-27  Bruno Haible  <bruno@clisp.org>
24278
24279         * modules/stat-time-tests (Depends-on): Add sleep.
24280         * tests/test-stat-time.c (force_unlink): New function.
24281         (cleanup): Use it.
24282         (test_mtime): Remove the ctime related tests.
24283         (test_ctime): New function, containing the ctime related tests.
24284         (main): Call test_ctime, except on native Windows platforms.
24285
24286 2008-04-27  Bruno Haible  <bruno@clisp.org>
24287
24288         * lib/rpmatch.c (rpmatch): Add some comments.
24289         Reported by James Youngman <jay@gnu.org>.
24290
24291 2008-04-27  Bruno Haible  <bruno@clisp.org>
24292
24293         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24294         quiet NaNs.
24295
24296 2008-04-27  Bruno Haible  <bruno@clisp.org>
24297
24298         Make test-yesno.sh work on mingw.
24299         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24300         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24301         (main): Set stdin to binary mode.
24302         * modules/yesno-tests (Depends-on): Add binary-io.
24303
24304 2008-04-27  Bruno Haible  <bruno@clisp.org>
24305
24306         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24307         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24308         argument that lie outside the IEEE 854 domain.
24309         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24310         (gl_ISFINITE): Use it.
24311         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24312
24313 2008-04-27  Bruno Haible  <bruno@clisp.org>
24314
24315         Allow local renaming in config.h.
24316         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24317
24318 2008-04-27  Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/memchr.c (__memchr): Change type of 'i'.
24321         * lib/memchr2.c (memchr2): Likewise.
24322
24323 2008-04-26  Eric Blake  <ebb9@byu.net>
24324         and Bruno Haible  <bruno@clisp.org>
24325
24326         Optimize and test memrchr.
24327         * modules/memrchr (Depends-on): Add intprops.
24328         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24329         * modules/memrchr-tests: New file.
24330         * tests/test-memrchr.c: New file.
24331
24332 2008-04-26  Bruno Haible  <bruno@clisp.org>
24333
24334         Add tentative support for DragonFly BSD.
24335         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24336         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24337         fp.
24338         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24339         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24340         * lib/fpurge.c (fpurge): Likewise.
24341         * lib/freadable.c (freaadable): Likewise.
24342         * lib/freadahead.c (freadahead): Likewise.
24343         * lib/freading.c (freading): Likewise.
24344         * lib/freadptr.c (freadptr): Likewise.
24345         * lib/freadseek.c (freadptrinc): Likewise.
24346         * lib/fseeko.c (fseeko): Likewise.
24347         * lib/fseterr.c (fseterr): Likewise.
24348         * lib/fwritable.c (fwritable): Likewise.
24349         * lib/fwriting.c (fwriting): Likewise.
24350
24351 2008-04-26  Bruno Haible  <bruno@clisp.org>
24352
24353         * lib/stdio-impl.h: New file.
24354         * lib/fbufmode.c: Include stdio-impl.h.
24355         (fbufmode): Use fp_, remove redundant #defines.
24356         * lib/fflush.c: Include stdio-impl.h.
24357         (clear_ungetc_buffer): Remove redundant #defines.
24358         * lib/fpurge.c: Include stdio-impl.h.
24359         (fpurge): Remove redundant #defines.
24360         * lib/freadable.c: Include stdio-impl.h.
24361         (freadable): Remove redundant #defines.
24362         * lib/freadahead.c: Include stdio-impl.h.
24363         (freadahead): Remove redundant #defines.
24364         * lib/freading.c: Include stdio-impl.h.
24365         (freading): Remove redundant #defines.
24366         * lib/freadptr.c: Include stdio-impl.h.
24367         (freadptr): Remove redundant #defines.
24368         * lib/freadseek.c: Include stdio-impl.h.
24369         (freadptrinc): Remove redundant #defines.
24370         * lib/fseeko.c: Include stdio-impl.h.
24371         (rpl_fseeko): Remove redundant #defines.
24372         * lib/fseterr.c: Include stdio-impl.h.
24373         (fseterr): Remove redundant #defines.
24374         * lib/fwritable.c: Include stdio-impl.h.
24375         (fwritable: Remove redundant #defines.
24376         * lib/fwriting.c: Include stdio-impl.h.
24377         (fwriting): Remove redundant #defines.
24378         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24379         * modules/fflush (Files): Likewise.
24380         * modules/fpurge (Files): Likewise.
24381         * modules/freadable (Files): Likewise.
24382         * modules/freadahead (Files): Likewise.
24383         * modules/freading (Files): Likewise.
24384         * modules/freadptr (Files): Likewise.
24385         * modules/freadseek (Files): Likewise.
24386         * modules/fseeko (Files): Likewise.
24387         * modules/fseterr (Files): Likewise.
24388         * modules/fwritable (Files): Likewise.
24389         * modules/fwriting (Files): Likewise.
24390
24391 2008-04-26  Bruno Haible  <bruno@clisp.org>
24392
24393         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24394         restore_seek_optimization, update_fpos_cache): New functions, extracted
24395         from rpl_fflush.
24396         (rpl_fflush): Use them.
24397         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24398         (gl_REPLACE_FFLUSH): Use it.
24399
24400 2008-04-26  Bruno Haible  <bruno@clisp.org>
24401
24402         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24403         on Solaris.
24404         * tests/test-xstrtoimax.sh: Likewise.
24405         * tests/test-xstrtoumax.sh: Likewise.
24406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24407
24408 2008-04-26  Bruno Haible  <bruno@clisp.org>
24409
24410         * modules/memchr-tests: New file.
24411         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24412
24413 2008-04-26  Eric Blake  <ebb9@byu.net>
24414             Bruno Haible  <bruno@clisp.org>
24415
24416         * lib/memchr.c: Include intprops.h.
24417         (__memchr): Optimize parallel detection of matching bytes. Rename local
24418         variables. Add explanatory comments.
24419
24420 2008-04-26  Bruno Haible  <bruno@clisp.org>
24421
24422         Fix module 'memchr', broken since 2000-10-28.
24423         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24424
24425 2008-04-26  Bruno Haible  <bruno@clisp.org>
24426
24427         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24428         comments.
24429
24430 2008-04-25  Eric Blake  <ebb9@byu.net>
24431
24432         Use native fstatat on cygwin 1.7.0.
24433         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24434         first.
24435
24436 2008-04-23  Eric Blake  <ebb9@byu.net>
24437
24438         Improve memchr2 performance.
24439         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24440         NUL bytes.
24441         * modules/memchr2 (Depends-on): Use intprops.h.
24442
24443 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24444
24445         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24446         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24447         <blp@cs.stanford.edu>.
24448
24449 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24450
24451         * lib/arpa_inet.in.h: New file.
24452
24453         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24454         (Makefile.am): Sed in substitute header file.
24455
24456         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24457         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24458
24459         * modules/inet_ntop (configure.ac): Use
24460         gl_ARPA_INET_MODULE_INDICATOR.
24461
24462         * modules/inet_pton (configure.ac): Use
24463         gl_ARPA_INET_MODULE_INDICATOR.
24464
24465 2008-04-22  Jim Meyering  <meyering@redhat.com>
24466
24467         * modules/verify (License): Re-license as LGPLv2+.
24468
24469 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24470
24471         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24472         parameter to void* as per POSIX standard (MinGW uses char*).
24473
24474 2008-04-21  Bruno Haible  <bruno@clisp.org>
24475
24476         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24477         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24478         Define to replacements if REPLACE_ISWCNTRL is 1.
24479         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24480         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24481         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24482         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24483         what it fixes.
24484         * doc/posix-functions/iswalpha.texi: Likewise.
24485         * doc/posix-functions/iswblank.texi: Likewise.
24486         * doc/posix-functions/iswcntrl.texi: Likewise.
24487         * doc/posix-functions/iswdigit.texi: Likewise.
24488         * doc/posix-functions/iswgraph.texi: Likewise.
24489         * doc/posix-functions/iswlower.texi: Likewise.
24490         * doc/posix-functions/iswprint.texi: Likewise.
24491         * doc/posix-functions/iswpunct.texi: Likewise.
24492         * doc/posix-functions/iswspace.texi: Likewise.
24493         * doc/posix-functions/iswupper.texi: Likewise.
24494         * doc/posix-functions/iswxdigit.texi: Likewise.
24495         Reported by Alain Guibert.
24496
24497 2008-04-21  Bruno Haible  <bruno@clisp.org>
24498
24499         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24500         Patch by Alain Guibert.
24501
24502 2008-04-21  Bruno Haible  <bruno@clisp.org>
24503
24504         Fix test failures on mingw.
24505         * tests/test-xstrtol.c (print_no_progname): New function.
24506         (main): Install it in error_print_progname hook.
24507         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24508         * tests/test-xstrtoimax.sh: Likewise.
24509         * tests/test-xstrtoumax.sh: Likewise.
24510
24511 2008-04-21  Bruno Haible  <bruno@clisp.org>
24512
24513         Fix test failure on mingw.
24514         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24515
24516 2008-04-21  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24519         Actually assign a value.
24520
24521 2008-04-20  Bruno Haible  <bruno@clisp.org>
24522
24523         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24524         take 2.
24525         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24526         'canonicalize-lgpl' module is also used.
24527         * lib/canonicalize-lgpl.c: Undo last change.
24528         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24529
24530 2008-04-20  Bruno Haible  <bruno@clisp.org>
24531
24532         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24533         config.h. Provide _mkdir based fallback for mingw.
24534         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24535         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24537         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24538         rather than defining mkdir in config.h.
24539         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24540         (gl_SYS_STAT_H_DEFAULTS): New macro.
24541         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24542         HAVE_IO_H any more.
24543         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24544         HAVE_DECL_MKDIR and HAVE_IO_H.
24545
24546 2008-04-20  Bruno Haible  <bruno@clisp.org>
24547
24548         * lib/isapipe.c: Port to native Windows platforms.
24549
24550 2008-04-20  Bruno Haible  <bruno@clisp.org>
24551
24552         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24553
24554 2008-04-21  Eric Blake  <ebb9@byu.net>
24555
24556         Work around preprocessors that don't handle UINTMAX_MAX.
24557         * lib/memchr2.c (memchr2): Avoid embedded #if.
24558         Reported by Alain Guibert, fix suggested by Bruno Haible.
24559
24560 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24561
24562         * doc/posix-functions/strftime.texi (strftime): Explain better
24563         Windows incompatibility.  Suggested by Micah Cowan
24564         <micah@cowan.name>.
24565
24566 2008-04-20  Bruno Haible  <bruno@clisp.org>
24567
24568         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24569         unistr/u8-mblen.
24570
24571 2008-04-20  Bruno Haible  <bruno@clisp.org>
24572
24573         Fix test failure on platforms with non-GNU iconv.
24574         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24575         (U_TO_U8): Use it, rather than u16_to_u8.
24576         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24577         units at the end of the input string.
24578         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24579
24580 2008-04-20  Bruno Haible  <bruno@clisp.org>
24581
24582         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24583         when the resulting length is 0.
24584         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24585
24586 2008-04-20  Bruno Haible  <bruno@clisp.org>
24587
24588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24589         works.
24590         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24591
24592 2008-04-20  Bruno Haible  <bruno@clisp.org>
24593
24594         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24595         * modules/tsearch-tests (configure.ac): Test for initstate function.
24596
24597 2008-04-20  Bruno Haible  <bruno@clisp.org>
24598
24599         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24600         for nlink_t if missing.
24601         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24602
24603 2008-04-19  Bruno Haible  <bruno@clisp.org>
24604
24605         Work around snprintf bug on Linux libc5.
24606         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24608         gl_SNPRINTF_SIZE1.
24609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24610         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24611         that test failed.
24612         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24613         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24614         * modules/snprintf (Files): Add m4/printf.m4.
24615         * modules/vsnprintf (Files): Likewise.
24616         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24617         * doc/posix-functions/vsnprintf.texi: Likewise.
24618
24619 2008-04-19  Bruno Haible  <bruno@clisp.org>
24620
24621         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24622         from 0.0058 to less than 10^-7.
24623
24624 2008-04-19  Bruno Haible  <bruno@clisp.org>
24625
24626         Fix rounding when a precision is given.
24627         * lib/vasnprintf.c (is_borderline): New function.
24628         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24629         9...9x.
24630         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24631         %e, %g.
24632         * tests/test-vasprintf-posix.c (test_function): Likewise.
24633         * tests/test-snprintf-posix.h (test_function): Likewise.
24634         * tests/test-sprintf-posix.h (test_function): Likewise.
24635         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24636         * tests/test-printf-posix.h (test_function): Likewise.
24637         * tests/test-printf-posix.output: Update.
24638         Reported by John Darrington <john@darrington.wattle.id.au> via
24639         Ben Pfaff <blp@cs.stanford.edu>.
24640
24641 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24642
24643         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24644         Suggested by Bruno Haible <bruno@clisp.org>.
24645
24646 2008-04-17  Bruno Haible  <bruno@clisp.org>
24647
24648         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24649         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24650         implementation.
24651         Patch by Bruce Merry <bmerry@gmail.com>.
24652
24653 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24654
24655         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24656         doesn't work under Windows.
24657
24658 2008-04-16  Bruno Haible  <bruno@clisp.org>
24659
24660         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24661         New macros.
24662         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24663         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24664         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24665         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24666         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24667         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24668         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24669         macros.
24670         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24671         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24672         Northern Sotho, Uighur.
24673
24674 2008-04-16  Bruno Haible  <bruno@clisp.org>
24675
24676         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24677         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24678         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24679         Reported by Daniel Bergström <daniel@octocode.com>.
24680
24681 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24682             Bruno Haible  <bruno@clisp.org>
24683
24684         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24685         function.
24686         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24687         New functions, mostly extracted from gl_locale_name_default.
24688         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24689
24690 2008-04-16  Eric Blake  <ebb9@byu.net>
24691
24692         Adjust strtod detection to catch glibc 2.7 bug.
24693         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24694         Reported by John Gatewood Ham.
24695
24696 2008-04-16  Bruno Haible  <bruno@clisp.org>
24697
24698         Add tentative support for Linux libc5.
24699         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24700         * lib/fpurge.c (fpurge): Likewise.
24701         * lib/freadable.c (freadable): Likewise.
24702         * lib/freadahead.c (freadahead): Likewise.
24703         * lib/freading.c (freading): Likewise.
24704         * lib/freadptr.c (freadptr): Likewise.
24705         * lib/freadseek.c (freadptrinc): Likewise.
24706         * lib/fseeko.c (rpl_fseeko): Likewise.
24707         * lib/fseterr.c (fseterr): Likewise.
24708         * lib/fwritable.c (fwritable): Likewise.
24709         * lib/fwriting.c (fwriting): Likewise.
24710         Reported by Alain Guibert <alguibert+bts@free.fr>.
24711
24712 2008-04-15  Bruno Haible  <bruno@clisp.org>
24713
24714         * modules/mathl (configure.ac): Define module indicator.
24715
24716 2008-04-15  Bruno Haible  <bruno@clisp.org>
24717
24718         * lib/logl.c (logl): Remove unused variables.
24719
24720 2008-04-15  Bruno Haible  <bruno@clisp.org>
24721
24722         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24723         fails.
24724
24725 2008-04-15  Bruno Haible  <bruno@clisp.org>
24726
24727         * lib/trim.c (trim2): Fix argument of isspace() macro.
24728
24729 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24730
24731         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24732         to 0.
24733         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24734
24735 2008-04-14  Bruno Haible  <bruno@clisp.org>
24736
24737         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24738         AC_LANG_PROGRAM argument.
24739         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24740         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24742         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24743         * m4/math_h.m4 (gl_MATH_H): Likewise.
24744         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24746         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24747         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24748         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24749         * m4/regex.m4 (gl_REGEX): Likewise.
24750         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24751         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24753         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24754         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24755         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24758
24759 2008-04-14  Jim Meyering  <meyering@redhat.com>
24760
24761         test-strtod: fix typos: s/abs/fabs/
24762         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24763
24764 2008-04-13  Bruno Haible  <bruno@clisp.org>
24765
24766         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24767         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24768         module is also used and while not building the reloc-wrapper.
24769
24770 2008-04-13  Bruno Haible  <bruno@clisp.org>
24771
24772         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24773
24774 2008-04-13  Bruno Haible  <bruno@clisp.org>
24775
24776         Fix AIX compilation failure introduced on 2008-04-02.
24777         * tests/test-frexp.c (exp): Undefine before redefining.
24778         * tests/test-frexpl.c (exp): Likewise.
24779
24780 2008-04-13  Bruno Haible  <bruno@clisp.org>
24781
24782         Work around a HP-UX stdio bug.
24783         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24784         * tests/test-ftello.c (main): Likewise.
24785         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24786         * doc/posix-functions/ftello.texi: Likewise.
24787
24788 2008-04-13  Bruno Haible  <bruno@clisp.org>
24789
24790         Make test-signbit pass on HP-UX/hppa.
24791         * tests/test-signbit.c (minus_zerol): New variable.
24792         (test_signbitl): Use it.
24793
24794 2008-04-13  Bruno Haible  <bruno@clisp.org>
24795
24796         Make truncl work on OSF/1 4.0.
24797         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24798         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24799         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24801         HAVE_DECL_TRUNCL.
24802         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24803         HAVE_DECL_TRUNCL.
24804         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24805
24806 2008-04-13  Bruno Haible  <bruno@clisp.org>
24807
24808         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24809
24810 2008-04-13  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24813         expression, so as to avoid HP-UX 11 cc compiler bug.
24814
24815 2008-04-13  Bruno Haible  <bruno@clisp.org>
24816
24817         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24818
24819 2008-04-13  Bruno Haible  <bruno@clisp.org>
24820
24821         * lib/git-merge-changelog.c: Remove empty declaration outside of
24822         functions.
24823
24824 2008-04-13  Bruno Haible  <bruno@clisp.org>
24825
24826         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24827
24828 2008-04-13  Bruno Haible  <bruno@clisp.org>
24829
24830         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24831         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24832         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24833         also if it exists but lacks definitions of the SHUT_* macros.
24834         * modules/sys_socket (Description): Update.
24835         Reported by Elbert Pol <e.pol@chello.nl>.
24836
24837 2008-04-13  Bruno Haible  <bruno@clisp.org>
24838
24839         * lib/localcharset.c (OS2): Don't redefine if already defined.
24840         Reported by Elbert Pol <e.pol@chello.nl>.
24841
24842 2008-04-13  Bruno Haible  <bruno@clisp.org>
24843
24844         * lib/binary-io.h [__EMX__]: Include <io.h>.
24845         Reported by Elbert Pol <e.pol@chello.nl>.
24846
24847 2008-04-12  Bruno Haible  <bruno@clisp.org>
24848
24849         * lib/fpucw.h: Enable the definitions also for x86_64.
24850         Needed for NetBSD/x86_64.
24851         Reported by Thomas Klausner <tk@giga.or.at>.
24852
24853 2008-04-12  Bruno Haible  <bruno@clisp.org>
24854
24855         * tests/test-strtod.c: Include isnand.h.
24856         (main): Use isnand instead of isnan.
24857         Reported by Jim Meyering.
24858
24859 2008-04-12  Bruno Haible  <bruno@clisp.org>
24860
24861         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24862         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24863
24864 2008-04-12  Jim Meyering  <meyering@redhat.com>
24865
24866         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24867
24868 2008-04-12  Bruno Haible  <bruno@clisp.org>
24869
24870         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24871         Reported by Elbert Pol <e.pol@chello.nl>.
24872
24873 2008-04-12  Eric Blake  <ebb9@byu.net>
24874
24875         Work around Solaris 10 math.h bug.
24876         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24877         (gl_MATH_H_DEFAULTS): Set up default.
24878         * modules/math (Makefile.am): Replace new indicators.
24879         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24880         * tests/test-math.c (main): Test this.
24881         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24882         * doc/posix-headers/math.texi (math.h): Mention bug.
24883         Reported by Nelson H. F. Beebe and Jim Meyering.
24884
24885 2008-04-11  Bruno Haible  <bruno@clisp.org>
24886
24887         Adapt to future versions of Apple GCC.
24888         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24889         Reported by Peter O'Gorman <peter@pogma.com>.
24890
24891 2008-04-11  Bruno Haible  <bruno@clisp.org>
24892
24893         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24894
24895 2008-04-11  Bruno Haible  <bruno@clisp.org>
24896
24897         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24898
24899         * modules/getaddrinfo-tests (Makefile.am): Define
24900         test_getaddrinfo_LDADD.
24901
24902 2008-04-11  Bruno Haible  <bruno@clisp.org>
24903
24904         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24905         (init): Fix syntax error.
24906         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24907         is declared.
24908
24909 2008-04-11  Bruno Haible  <bruno@clisp.org>
24910
24911         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24912         * modules/glob (Depends-on): Add stdbool.
24913
24914 2008-04-11  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/trim.c: Include <string.h>.
24917
24918 2008-04-11  Eric Blake  <ebb9@byu.net>
24919
24920         Avoid compile failure on OS/2.
24921         * lib/regex_internal.h (internal_function): Disable optimization
24922         on OS/2 (__EMX__), where it caused compiler error.
24923         Reported by Elbert Pol.
24924
24925 2008-04-11  Bruno Haible  <bruno@clisp.org>
24926
24927         Flush the standard error stream before aborting. Needed on mingw.
24928         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24929         * tests/test-array_list.c (ASSERT): Likewise.
24930         * tests/test-array_oset.c (ASSERT): Likewise.
24931         * tests/test-avltree_list.c (ASSERT): Likewise.
24932         * tests/test-avltree_oset.c (ASSERT): Likewise.
24933         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24934         * tests/test-binary-io.c (ASSERT): Likewise.
24935         * tests/test-byteswap.c (ASSERT): Likewise.
24936         * tests/test-c-ctype.c (ASSERT): Likewise.
24937         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24938         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24939         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24940         * tests/test-c-strstr.c (ASSERT): Likewise.
24941         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24942         * tests/test-canonicalize.c (ASSERT): Likewise.
24943         * tests/test-carray_list.c (ASSERT): Likewise.
24944         * tests/test-ceilf1.c (ASSERT): Likewise.
24945         * tests/test-ceilf2.c (ASSERT): Likewise.
24946         * tests/test-ceill.c (ASSERT): Likewise.
24947         * tests/test-count-one-bits.c (ASSERT): Likewise.
24948         * tests/test-fbufmode.c (ASSERT): Likewise.
24949         * tests/test-fflush2.c (ASSERT): Likewise.
24950         * tests/test-floorf1.c (ASSERT): Likewise.
24951         * tests/test-floorf2.c (ASSERT): Likewise.
24952         * tests/test-floorl.c (ASSERT): Likewise.
24953         * tests/test-fopen.c (ASSERT): Likewise.
24954         * tests/test-fpending.c (ASSERT): Likewise.
24955         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24956         * tests/test-fpurge.c (ASSERT): Likewise.
24957         * tests/test-freadable.c (ASSERT): Likewise.
24958         * tests/test-freadahead.c (ASSERT): Likewise.
24959         * tests/test-freading.c (ASSERT): Likewise.
24960         * tests/test-freadptr.c (ASSERT): Likewise.
24961         * tests/test-freadptr2.c (ASSERT): Likewise.
24962         * tests/test-freadseek.c (ASSERT): Likewise.
24963         * tests/test-freopen.c (ASSERT): Likewise.
24964         * tests/test-frexp.c (ASSERT): Likewise.
24965         * tests/test-frexpl.c (ASSERT): Likewise.
24966         * tests/test-fseek.c (ASSERT): Likewise.
24967         * tests/test-fseeko.c (ASSERT): Likewise.
24968         * tests/test-fstrcmp.c (ASSERT): Likewise.
24969         * tests/test-ftell.c (ASSERT): Likewise.
24970         * tests/test-ftello.c (ASSERT): Likewise.
24971         * tests/test-func.c (ASSERT): Likewise.
24972         * tests/test-fwritable.c (ASSERT): Likewise.
24973         * tests/test-fwriting.c (ASSERT): Likewise.
24974         * tests/test-getdelim.c (ASSERT): Likewise.
24975         * tests/test-getline.c (ASSERT): Likewise.
24976         * tests/test-i-ring.c (ASSERT): Likewise.
24977         * tests/test-iconv-utf.c (ASSERT): Likewise.
24978         * tests/test-iconv.c (ASSERT): Likewise.
24979         * tests/test-isfinite.c (ASSERT): Likewise.
24980         * tests/test-isnand.c (ASSERT): Likewise.
24981         * tests/test-isnanf.c (ASSERT): Likewise.
24982         * tests/test-isnanl.h (ASSERT): Likewise.
24983         * tests/test-ldexpl.c (ASSERT): Likewise.
24984         * tests/test-linked_list.c (ASSERT): Likewise.
24985         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24986         * tests/test-localename.c (ASSERT): Likewise.
24987         * tests/test-lseek.c (ASSERT): Likewise.
24988         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24989         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24990         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24991         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24992         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24993         * tests/test-mbschr.c (ASSERT): Likewise.
24994         * tests/test-mbscspn.c (ASSERT): Likewise.
24995         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24996         * tests/test-mbspbrk.c (ASSERT): Likewise.
24997         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24998         * tests/test-mbsrchr.c (ASSERT): Likewise.
24999         * tests/test-mbsspn.c (ASSERT): Likewise.
25000         * tests/test-mbsstr1.c (ASSERT): Likewise.
25001         * tests/test-mbsstr2.c (ASSERT): Likewise.
25002         * tests/test-mbsstr3.c (ASSERT): Likewise.
25003         * tests/test-memchr2.c (ASSERT): Likewise.
25004         * tests/test-memmem.c (ASSERT): Likewise.
25005         * tests/test-open.c (ASSERT): Likewise.
25006         * tests/test-printf-frexp.c (ASSERT): Likewise.
25007         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25008         * tests/test-printf-posix.c (ASSERT): Likewise.
25009         * tests/test-quotearg.c (ASSERT): Likewise.
25010         * tests/test-rbtree_list.c (ASSERT): Likewise.
25011         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25012         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25013         * tests/test-round1.c (ASSERT): Likewise.
25014         * tests/test-roundf1.c (ASSERT): Likewise.
25015         * tests/test-roundl.c (ASSERT): Likewise.
25016         * tests/test-signbit.c (ASSERT): Likewise.
25017         * tests/test-sleep.c (ASSERT): Likewise.
25018         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25019         * tests/test-snprintf.c (ASSERT): Likewise.
25020         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25021         * tests/test-stat-time.c (ASSERT): Likewise.
25022         * tests/test-strcasestr.c (ASSERT): Likewise.
25023         * tests/test-strerror.c (ASSERT): Likewise.
25024         * tests/test-striconv.c (ASSERT): Likewise.
25025         * tests/test-striconveh.c (ASSERT): Likewise.
25026         * tests/test-striconveha.c (ASSERT): Likewise.
25027         * tests/test-strsignal.c (ASSERT): Likewise.
25028         * tests/test-strstr.c (ASSERT): Likewise.
25029         * tests/test-strtod.c (ASSERT): Likewise.
25030         * tests/test-trunc1.c (ASSERT): Likewise.
25031         * tests/test-trunc2.c (ASSERT): Likewise.
25032         * tests/test-truncf1.c (ASSERT): Likewise.
25033         * tests/test-truncf2.c (ASSERT): Likewise.
25034         * tests/test-truncl.c (ASSERT): Likewise.
25035         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25036         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25037         * tests/test-vasnprintf.c (ASSERT): Likewise.
25038         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25039         * tests/test-vasprintf.c (ASSERT): Likewise.
25040         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25041         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25042         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25043         * tests/test-vsnprintf.c (ASSERT): Likewise.
25044         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25045         * tests/test-wcwidth.c (ASSERT): Likewise.
25046         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25047         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25048         * tests/test-xvasprintf.c (ASSERT): Likewise.
25049         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25050         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25051         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25052         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25053         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25054         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25055         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25056         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25057         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25058         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25059         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25060         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25061         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25062         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25063         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25064         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25065         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25066         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25067         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25068         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25069         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25070         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25071         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25072         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25073         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25074         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25075         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25076         * tests/unictype/test-combining.c (ASSERT): Likewise.
25077         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25078         * tests/unictype/test-digit.c (ASSERT): Likewise.
25079         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25080         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25081         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25082         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25083         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25084         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25085         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25086         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25087         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25088         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25089         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25090         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25091         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25092         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25093         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25094         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25095         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25096         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25097         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25098         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25099         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25100         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25101         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25102         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25103         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25104         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25105         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25106         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25107         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25108         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25109         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25110         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25111         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25112         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25113         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25114         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25115         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25116         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25117         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25118         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25119         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25120         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25121         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25122         Reported by Eric Blake.
25123
25124 2008-04-11  Bruno Haible  <bruno@clisp.org>
25125
25126         * lib/wchar.in.h: Tweak comment.
25127
25128 2008-04-11  Bruno Haible  <bruno@clisp.org>
25129
25130         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25131         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25132         gl_COMMON.
25133         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25134
25135 2008-04-11  Bruno Haible  <bruno@clisp.org>
25136
25137         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25138
25139 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25140
25141         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25142         of attempting to use non-existing /dev/*random.  Based on patch
25143         from Adam Strzelecki <ono@java.pl> in
25144         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25145
25146 2008-04-08  Bruno Haible  <bruno@clisp.org>
25147
25148         Add tentative support for emx+gcc.
25149         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25150         * lib/fpurge.c (fpurge): Likewise.
25151         * lib/freadable.c (freadable): Likewise.
25152         * lib/freadahead.c (freadahead): Likewise.
25153         * lib/freading.c (freading): Likewise.
25154         * lib/freadptr.c (freadptr): Likewise.
25155         * lib/freadseek.c (freadptrinc): Likewise.
25156         * lib/fseeko.c (rpl_fseeko): Likewise.
25157         * lib/fseterr.c (fseterr): Likewise.
25158         * lib/fwritable.c (fwritable): Likewise.
25159         * lib/fwriting.c (fwriting): Likewise.
25160         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25161
25162 2008-04-09  Eric Blake  <ebb9@byu.net>
25163
25164         Avoid some autoconf warnings.
25165         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25166         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25167         * m4/afs.m4 (gl_AFS): Likewise.
25168         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25169         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25170         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25171         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25172         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25173         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25174         (AC_CHECK_DECLS_ONCE): Likewise.
25175         Rename file...
25176         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25177         gnulib-tool requires autoconf 2.59 or better.
25178         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25179
25180 2008-04-08  Eric Blake  <ebb9@byu.net>
25181
25182         Use 'git describe --match' if present (added in git 1.5.5).
25183         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25184         if possible.
25185
25186 2008-04-08  Bruno Haible  <bruno@clisp.org>
25187
25188         Add tentative support for OpenServer.
25189         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25190         _ptr, _cnt.
25191         * lib/fpurge.c (fpurge): Likewise.
25192         * lib/freadable.c (freadable): Likewise.
25193         * lib/freadahead.c (freadahead): Likewise.
25194         * lib/freading.c (freading): Likewise.
25195         * lib/freadptr.c (freadptr): Likewise.
25196         * lib/freadseek.c (freadptrinc): Likewise.
25197         * lib/fseeko.c (rpl_fseeko): Likewise.
25198         * lib/fseterr.c (fseterr): Likewise.
25199         * lib/fwritable.c (fwritable): Likewise.
25200         * lib/fwriting.c (fwriting): Likewise.
25201         Reported by Roger Cornelius <rac@tenzing.org> and
25202         Brian K. White <brian@aljex.com>.
25203
25204 2008-04-06  Jim Meyering  <meyering@redhat.com>
25205
25206         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25207
25208 2008-04-06  Bruno Haible  <bruno@clisp.org>
25209
25210         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25211         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25212         * tests/test-printf-posix.sh: Likewise.
25213         * tests/test-vfprintf-posix.sh: Likewise.
25214         * tests/test-vprintf-posix.sh: Likewise.
25215         * tests/test-xprintf-posix.sh: Likewise.
25216
25217 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25218
25219         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25220         hide error from 'ls', needed on OS/2.
25221         Report by Elbert Pol <elbert.pol@gmail.com>.
25222
25223 2008-04-04  Eric Blake  <ebb9@byu.net>
25224
25225         Make test-fseeko.c failures meaningful.
25226         * tests/test-fseeko.c: Print line number on failure.
25227         * tests/test-fseek.c: Likewise.
25228         Reported by Nelson H. F. Beebe.
25229
25230         Improve strtod bug detection check.
25231         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25232         required for Solaris 10.
25233         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25234
25235 2008-04-04  Bruno Haible  <bruno@clisp.org>
25236
25237         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25238         by m4/setenv.m4.
25239
25240 2008-04-03  Eric Blake  <ebb9@byu.net>
25241
25242         Ensure sane .version contents.
25243         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25244         version string.
25245         * build-aux/git-version-gen: Improve documentation.
25246
25247         Make GNU make output nicer.
25248         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25249         MAKECMDGOALS to enforce message for all command line targets.  Set
25250         srcdir for use in maint.mk.
25251
25252         Another maintainer tweak.
25253         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25254         a target that regenerates version.
25255
25256 2008-04-03  Jim Meyering  <meyering@redhat.com>
25257
25258         vc-list-files: don't cause coreutils "make po-check" failure
25259         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25260
25261 2008-04-03  Eric Blake  <ebb9@byu.net>
25262
25263         Allow VPATH usage of vc-list-files.
25264         * build-aux/vc-list-files (scriptversion): Add timestamp.
25265         (options): Add --help, --version, -C.
25266         (CVS): Support installed cvsu.
25267
25268 2008-04-02  Bruno Haible  <bruno@clisp.org>
25269
25270         Avoid some "statement with no effect" warnings from gcc.
25271         * tests/test-wctype.c (main): Explicitly ignore unused values.
25272         Reported by Jim Meyering.
25273
25274 2008-04-02  Jim Meyering  <meyering@redhat.com>
25275
25276         Avoid some warnings from "gcc -Wshadow".
25277         * tests/test-frexp.c (exp): Define to a different identifier.
25278         * tests/test-frexpl.c (exp): Likewise.
25279
25280 2008-04-03  Jim Meyering  <meyering@redhat.com>
25281
25282         bootstrap: remove dangling *.[ch] symlinks from lib
25283         * build-aux/bootstrap [dangling symlink removal]: Move find's
25284         -depth option to precede all others, to avoid a warning.
25285         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25286
25287 2008-04-02  Bruno Haible  <bruno@clisp.org>
25288
25289         Avoid some warnings from "gcc -Wshadow".
25290         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25291         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25292         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25293         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25294         Reported by Jim Meyering.
25295
25296 2008-04-01  Bruno Haible  <bruno@clisp.org>
25297
25298         Fix test to work on IRIX 6.5 with cc.
25299         * tests/test-math.c (numeric_equal): New function.
25300         (main): Use it.
25301
25302 2008-04-01  Bruno Haible  <bruno@clisp.org>
25303
25304         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25305
25306 2008-04-01  Bruno Haible  <bruno@clisp.org>
25307
25308         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25309         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25310         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25311         (Depends-on): Remove math.
25312
25313         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25314         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25315         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25316         (Depends-on): Remove math.
25317
25318         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25319         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25320         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25321         (Depends-on): Remove math.
25322         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25323         (Depends-on): Remove math.
25324
25325         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25326         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25327         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25328         (Depends-on): Remove math.
25329         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25330         (Depends-on): Remove math.
25331
25332         * tests/test-round1.c: Include nan.h.
25333         (main): Use NaNd instead of NAN.
25334         * modules/round-tests (Files): Add tests/nan.h.
25335
25336         * tests/test-trunc1.c: Include nan.h.
25337         (main): Use NaNd instead of NAN.
25338         * modules/trunc-tests (Files): Add tests/nan.h.
25339
25340         * tests/test-roundf1.c: Include nan.h.
25341         (main): Use NaNf instead of NAN.
25342         * modules/roundf-tests (Files): Add tests/nan.h.
25343
25344         * tests/test-truncf1.c: Include nan.h.
25345         (main): Use NaNf instead of NAN.
25346         * modules/truncf-tests (Files): Add tests/nan.h.
25347
25348         * tests/test-ceilf1.c: Include nan.h.
25349         (main): Use NaNf instead of NAN.
25350         * modules/ceilf-tests (Files): Add tests/nan.h.
25351
25352         * tests/test-floorf1.c: Include nan.h.
25353         (main): Use NaNf instead of NAN.
25354         * modules/floorf-tests (Files): Add tests/nan.h.
25355
25356         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25357         (main): Use NaNf instead of NAN.
25358         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25359
25360         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25361         (main): Use NaNd instead of NAN.
25362         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25363
25364         * tests/test-frexp.c: Include nan.h.
25365         (main): Use NaNd instead of NAN.
25366         * modules/frexp-tests (Files): Add tests/nan.h.
25367
25368         * lib/isnan.c: Don't include <math.h>.
25369         (FUNC): Don't use NAN macro.
25370         * modules/isnand-nolibm (Depends-on): Remove math.
25371         * modules/isnanf-nolibm (Depends-on): Remove math.
25372         * modules/isnanl (Depends-on): Remove math.
25373         * modules/isnanl-nolibm (Depends-on): Remove math.
25374
25375         * tests/nan.h: New file.
25376
25377 2008-04-01  Eric Blake  <ebb9@byu.net>
25378
25379         Fix typos.
25380         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25381         values to be the right type.
25382
25383         For now, cater to gnulib strtod inaccuracies.
25384         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25385         fractional results.  While not as nice from a QoI perspective, it
25386         is a quicker patch than correctly implementing decimal to binary
25387         rounding.
25388
25389 2008-03-31  Eric Blake  <ebb9@byu.net>
25390
25391         Guarantee a definition of NAN.
25392         * lib/math.in.h (NAN): Define if missing.
25393         * tests/test-math.c (main): Test it.
25394         * doc/posix-headers/math.texi (math.h): Document this.
25395         * lib/isnan.c (rpl_isnand): Use it.
25396         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25397         * tests/test-floorf1.c (NaN): Likewise.
25398         * tests/test-frexp.c (NaN): Likewise.
25399         * tests/test-isnand.c (NaN): Likewise.
25400         * tests/test-isnanf.c (NaN): Likewise.
25401         * tests/test-round1.c (NaN): Likewise.
25402         * tests/test-roundf1.c (NaN): Likewise.
25403         * tests/test-snprintf-posix.h (NaN): Likewise.
25404         * tests/test-sprintf-posix.h (NaN): Likewise.
25405         * tests/test-trunc1.c (NaN): Likewise.
25406         * tests/test-truncf1.c (NaN): Likewise.
25407         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25408         * tests/test-vasprintf-posix.c (NaN): Likewise.
25409         * modules/isnand-nolibm (Depends-on): Add math.
25410         * modules/isnanf-nolibm (Depends-on): Likewise.
25411         * modules/isnanl (Depends-on): Likewise.
25412         * modules/isnanl-nolibm (Depends-on): Likewise.
25413         * modules/snprintf-posix-tests (Depends-on): Likewise.
25414         * modules/sprintf-posix-tests (Depends-on): Likewise.
25415         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25416         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25417         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25418         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25419
25420 2008-03-31  Bruno Haible  <bruno@clisp.org>
25421
25422         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25423         * doc/posix-functions/strtod.texi: Likewise.
25424
25425 2008-03-31  Bruno Haible  <bruno@clisp.org>
25426
25427         * tests/test-strtod.c (main): Don't use C99 syntax.
25428
25429 2008-03-31  Bruno Haible  <bruno@clisp.org>
25430
25431         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25432         Reported by Eric Blake.
25433
25434 2008-03-31  Jim Meyering  <meyering@redhat.com>
25435
25436         Don't compare actual signbit return values.
25437         * tests/test-strtod.c (main): Rather, compare only their
25438         zero/non-zero nature.
25439
25440 2008-03-31  Eric Blake  <ebb9@byu.net>
25441
25442         More strtod documentation.
25443         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25444         failures as distinct bugs.
25445
25446 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25447
25448         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25449         Problem reported by Erik Benada in
25450         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25451
25452 2008-03-30  Bruno Haible  <bruno@clisp.org>
25453
25454         * tests/test-strtod.c: Add comments about which assertion fails on which
25455         platform.
25456         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25457
25458 2008-03-30  Eric Blake  <ebb9@byu.net>
25459
25460         Test signbit behavior on zeros.
25461         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25462         (test_signbitd, test_signbitl): Likewise.
25463
25464         More strtod touchups.
25465         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25466         sign of negative underflow, for now.  Use .5, not .1.
25467         * doc/posix-functions/strtod.texi (strtod): Mention these
25468         limitations.
25469         Reported by Jim Meyering.
25470
25471 2008-03-30  Bruno Haible  <bruno@clisp.org>
25472
25473         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25474         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25475
25476 2008-03-30  Bruno Haible  <bruno@clisp.org>
25477
25478         Avoid failure when attempting to return empty iconv results on some
25479         platforms.
25480         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25481         allocation, don't report ENOMEM when the resulting string is empty.
25482
25483 2008-03-30  Bruno Haible  <bruno@clisp.org>
25484
25485         Fix buffer overrun.
25486         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25487         Don't consider the width for tmp_length. Check count against tmp_length
25488         before doing the padding. Ensure enough allocation during padding.
25489
25490 2008-03-30  Eric Blake  <ebb9@byu.net>
25491
25492         strtod touchups.
25493         * lib/strtod.c (strtod): Avoid compiler warnings.
25494         Reported by Jim Meyering.
25495
25496 2008-03-30  Bruno Haible  <bruno@clisp.org>
25497
25498         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25499         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25500         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25501         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25502         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25503         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25504         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25505         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25506
25507         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25508         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25509         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25510         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25511         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25512         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25513         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25514         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25515
25516         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25517         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25518         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25519         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25520         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25521         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25522         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25523         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25524
25525         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25526         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25527
25528         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25529         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25530
25531         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25532         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25533
25534         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25536         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25537
25538         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25540         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25541
25542         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25543         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25544         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25545
25546         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25548         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25549
25550         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25551         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25553         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25554         (Depends-on): Add EOVERFLOW.
25555         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25556         (Depends-on): Add EOVERFLOW.
25557         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25558         (Depends-on): Add EOVERFLOW.
25559         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25560         (Depends-on): Add EOVERFLOW.
25561         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25562         (Depends-on): Add EOVERFLOW.
25563         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25564         (Depends-on): Add EOVERFLOW.
25565         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25566         (Depends-on): Add EOVERFLOW.
25567         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25568         (Depends-on): Add EOVERFLOW.
25569
25570         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25572         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25573
25574         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25576         * modules/snprintf (Depends-on): Add EOVERFLOW.
25577
25578         * lib/poll.c (EOVERFLOW): Remove fallback.
25579         * modules/poll (Depends-on): Add EOVERFLOW.
25580
25581         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25582         * modules/getugroups (Depends-on): Add EOVERFLOW.
25583
25584         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25585         * modules/getdelim (Depends-on): Add EOVERFLOW.
25586
25587         * lib/ftell.c (EOVERFLOW): Remove fallback.
25588         * modules/ftell (Depends-on): Add EOVERFLOW.
25589
25590         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25592         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25593
25594         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25595
25596         * modules/EOVERFLOW-tests: New file.
25597         * tests/test-EOVERFLOW.c: New file.
25598
25599         * modules/EOVERFLOW: New file.
25600         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25601
25602 2008-03-30  Bruno Haible  <bruno@clisp.org>
25603
25604         Fix bug introduced on 2007-06-10.
25605         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25606         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25607
25608 2008-03-30  Bruno Haible  <bruno@clisp.org>
25609
25610         Improve freadseek's efficiency after ungetc.
25611         * lib/freadseek.c: Include freadahead.h.
25612         (freadptrinc): New function, extracted from freadseek.
25613         (freadseek): Use it in a loop. Use freadahead to determine the number
25614         of loop iterations.
25615         * modules/freadseek (Depends-on): Add freadahead.
25616         (configure.ac): Require AC_C_INLINE.
25617
25618 2008-03-30  Bruno Haible  <bruno@clisp.org>
25619
25620         * lib/freadseek.c (freadseek): Don't ignore the return value of
25621         freadptr.
25622
25623 2008-03-29  Eric Blake  <ebb9@byu.net>
25624
25625         Add hex float support.
25626         * modules/strtod (Depends-on): Add c-ctype.
25627         (Link): Mention POW_LIB.
25628         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25629         whitespace between 'e' and exponent.
25630         * tests/test-strtod.c (main): Enable hex float tests.
25631         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25632         now provides.
25633
25634         Document various strtod bugs, with some fixes.
25635         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25636         "-0x", "inf", "nan", and hex constants.
25637         * doc/posix-functions/atof.texi (atof): Likewise.
25638         * modules/stdlib (Makefile.am): Support strtod.
25639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25640         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25641         detect additional strtod bugs.
25642         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25643         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25644         bool where appropriate.  Parse 'inf' and 'nan'.
25645         * tests/test-strtod.c: New file.
25646         * modules/strtod (Depends-on): Add stdbool, stdlib.
25647         (configure.ac): Turn on module indicator.
25648         * modules/strtod-tests: New module.
25649
25650 2008-03-29  Eric Blake  <ebb9@byu.net>
25651
25652         Fix ftell on mingw.
25653         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25654         * modules/ftell-tests (Depends-on): Add binary-io.
25655         * modules/ftello-tests (Depends-on): Likewise.
25656         * tests/test-ftell.c (main): Enhance test to cover behavior after
25657         ungetc.  Enforce binary mode.
25658         * tests/test-ftello.c (main): Likewise.
25659
25660         Pass test-freadseek on cygwin.
25661         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25662         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25663         ungetc buffer.
25664
25665         * tests/test-fflush2.c (main): Fix typo.
25666
25667 2008-03-29  Bruno Haible  <bruno@clisp.org>
25668
25669         * tests/test-fflush2.c (main): Temporarily disable the contents of
25670         this test.
25671         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25672         Reported by Eric Blake.
25673
25674 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25675
25676         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25677         (GC_SHA224_DIGEST_SIZE): Add.
25678
25679         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25680         (gc_hash_digest_length): Likewise.
25681         (gc_hash_buffer): Likewise.
25682
25683 2008-03-25  Bruno Haible  <bruno@clisp.org>
25684
25685         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25686         detail which gettext release to use.
25687         Reported by Simon Josefsson.
25688
25689 2008-03-26  Jim Meyering  <meyering@redhat.com>
25690
25691         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25692         * modules/gnumakefile (clean-GNUmakefile): Also, use
25693         test ... && ... || : syntax rather than if-then ... fi.
25694
25695         gnumakefile: Don't double-quote-expand $(VPATH) value.
25696         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25697
25698 2008-03-24  Eric Blake  <ebb9@byu.net>
25699
25700         Alter GNUmakefile to install into top directory.
25701         * modules/maintainer-makefile: Split, and add dependency...
25702         * modules/gnumakefile: to this new module.
25703         * build-aux/GNUmakefile: Move...
25704         * top/GNUmakefile: ...here.
25705         * build-aux/maint.mk: Move...
25706         * top/maint.mk: ...here.
25707         * MODULES.html.sh (Support for maintaining...): Document new
25708         module.
25709
25710 2008-03-23  Bruno Haible  <bruno@clisp.org>
25711
25712         * gnulib-tool: New options --vc-files, --no-vc-files.
25713         (func_usage): Document them.
25714         (vc_files): New variable.
25715         (func_import): Consider vc_files.
25716         (func_create_testdir): Set vc_files to empty.
25717         Suggested by Jim Meyering and Karl Berry.
25718
25719 2008-03-23  Bruno Haible  <bruno@clisp.org>
25720
25721         Fix regex compilation error on HP-UX 11.
25722         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25723         * modules/regex (Files): Add m4/mbstate_t.m4.
25724         Reported by Ton Voon <ton.voon@altinity.com>.
25725
25726 2008-03-23  Bruno Haible  <bruno@clisp.org>
25727
25728         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25729
25730 2008-03-23  Eric Blake  <ebb9@byu.net>
25731             Bruno Haible  <bruno@clisp.org>
25732
25733         Install files from top/ in the destination directory.
25734         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25735         augmentation also for the files from top/.
25736         (func_import, func_create_testdir): Rewrite file names:
25737         top/filename -> filename.
25738
25739 2008-03-23  Bruno Haible  <bruno@clisp.org>
25740
25741         Tweak "gnulib --version" output.
25742         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25743
25744 2008-03-23  Bruno Haible  <bruno@clisp.org>
25745
25746         Tweak "gnulib --version" output.
25747         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25748         rather than contents of ChangeLog, when possible.
25749
25750 2008-03-21  Eric Blake  <ebb9@byu.net>
25751
25752         More --version tweaks.
25753         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25754         date of last ChangeLog entry.
25755
25756 2008-03-21  Jim Meyering  <meyering@redhat.com>
25757
25758         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25759
25760 2008-03-20  Eric Blake  <ebb9@byu.net>
25761
25762         VPATH fix.
25763         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25764
25765 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25766
25767         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25768         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25769
25770 2008-03-20  Eric Blake  <ebb9@byu.net>
25771
25772         Sync GNUmakefile with coreutils.
25773         * build-aux/GNUmakefile (have-Makefile): Rename...
25774         (_have-Makefile): ...to this, for namespace consideration.
25775         (GNUmakefile.cfg): Include, if present.
25776         (_autoreconf): Define a default.
25777         (_is-dist-target): New rule for rebuilds to pick up intra-release
25778         version.
25779         (maint-cfg.mk): Rename...
25780         (cfg.mk): ...to this.
25781
25782 2008-03-18  Jim Meyering  <meyering@redhat.com>
25783
25784         New script and module: mktempd
25785         * MODULES.html.sh (maint+release support): Add mktempd.
25786         * build-aux/mktempd: New file.
25787         * modules/mktempd: New file.
25788
25789 2008-03-15  Jim Meyering  <meyering@redhat.com>
25790
25791         Undo last change.
25792         * lib/sha1.c, lib/md5.c: 63 != ~63.
25793         Reported by Andreas Schwab.
25794
25795         sha1.c, md5.c: Hoist a redundant expression.
25796         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25797         "ctx->buflen" only once, before calling *_process_block.
25798         * lib/md5.c (md5_process_bytes): Likewise.
25799
25800 2008-03-14  Eric Blake  <ebb9@byu.net>
25801
25802         Bump copyright year in files generated by gnulib-tool.
25803         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25804         gnulib-tool, rather than hard-coding it.
25805
25806         Fix 'gnulib-tool --version' output to work with git.
25807         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25808         (startup): ...here.
25809         (func_version): Use it to invoke git-version-gen, rather than
25810         relying on CVS keyword expansion.  Modernize wording.
25811         (cvsdatestamp, last_checkin_date, version): Kill unused
25812         variables.
25813
25814 2008-03-12  Jim Meyering  <meyering@redhat.com>
25815
25816         Recognize optional cast of the argument to free.
25817         * build-aux/useless-if-before-free: Update regexps.
25818
25819         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25820
25821 2008-03-11  Bruno Haible  <bruno@clisp.org>
25822
25823         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25824         by a single package.
25825         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25826         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25827         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25828         Reported by Sam Steingold <sds@gnu.org>.
25829
25830 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25831
25832         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25833         repositories.
25834
25835 2008-03-11  Bruno Haible  <bruno@clisp.org>
25836
25837         Avoid conflicts between local macro definitions.
25838         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25839         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25840
25841 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25842             Bruno Haible  <bruno@clisp.org>
25843
25844         Make va_copy work with some version of xlc on AIX 5.1.
25845         * lib/stdarg.in.h: New file.
25846         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25847         On AIX, use a <stdarg.h> file substitute.
25848         * modules/stdarg (Files): Add lib/stdarg.in.h.
25849         (Depends-on): Add include_next.
25850         (Makefile.am): Build a stdarg.h substitute if requested.
25851         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25852
25853 2008-03-10  Bruno Haible  <bruno@clisp.org>
25854
25855         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25856         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25857         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25858
25859 2008-03-10  Bruno Haible  <bruno@clisp.org>
25860
25861         * modules/stdlib (Depends-on): Add include_next, remove
25862         absolute-header.
25863
25864 2008-03-09  Bruno Haible  <bruno@clisp.org>
25865
25866         * lib/freadahead.h (freadahead): Document more precisely.
25867         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25868         the sum of both buffer sizes.
25869         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25870         * NEWS: Document the change.
25871
25872 2008-03-09  Bruno Haible  <bruno@clisp.org>
25873
25874         Extend freadptr to return also the buffer size.
25875         * lib/freadptr.h (freadptr): Add sizep argument.
25876         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25877         (freadptr): Add sizep argument. Determine buffer size like freadahead
25878         does.
25879         * tests/test-freadptr.c: Don't include freadahead.h.
25880         (main): Adapt for new calling convention of freadptr.
25881         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25882         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25883         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25884         tests/test-freadptr2.sh.
25885         (Depends): Remove freadahead.
25886         (TESTS): Add test-freadptr2.sh.
25887         (check_PROGRAMS): Add test-freadptr2.
25888
25889 2008-03-09  Bruno Haible  <bruno@clisp.org>
25890
25891         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25892         Report and solution by Simon Josefsson.
25893
25894 2008-03-06  Bruno Haible  <bruno@clisp.org>
25895
25896         Make fflush after ungetc work on BSD platforms.
25897         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25898         * tests/test-fflush2.c: New file.
25899         * tests/test-fflush2.sh: New file.
25900         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25901         tests/test-fflush2.c.
25902         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25903         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25904
25905 2008-03-06  Eric Blake  <ebb9@byu.net>
25906
25907         Likewise for ftello.
25908         * modules/ftello (Dependencies): Add extensions.
25909         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25910
25911 2008-03-06  Bruno Haible  <bruno@clisp.org>
25912
25913         * modules/fseeko (Dependencies): Add extensions.
25914         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25915         Needed on glibc systems.
25916
25917 2008-03-06  Bruno Haible  <bruno@clisp.org>
25918
25919         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25920         email address.
25921         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25922
25923 2008-03-06  Bruno Haible  <bruno@clisp.org>
25924
25925         * users.txt: Add libgnupdf.
25926
25927 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25928
25929         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25930         (Header File Substitutes, Function Substitutes,
25931         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25932         (Build robot for gnulib): Fix typo.
25933
25934 2008-03-06  Bruno Haible  <bruno@clisp.org>
25935
25936         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25937         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25938
25939 2008-03-06  Bruno Haible  <bruno@clisp.org>
25940
25941         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25942         * doc/gnulib.texi: Include it.
25943
25944 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25945
25946         * modules/func (License): Change license to unlimited; there was
25947         no LGPL parts in the module anyway.
25948
25949 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25950
25951         * modules/__func__: Renamed to modules/func.
25952         * modules/__func__-tests: Renamed to modules/func-tests.
25953         * tests/test-__func__.c: Renamed to tests/test-func.c.
25954         * m4/__func__.m4: Renamed to m4/func.m4.
25955         * doc/gnulib.texi (__func__): Section renamed to func.
25956         Suggested by Eric Blake <ebb9@byu.net>.
25957
25958 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25959
25960         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25961         about __func__.  Make example self-contained.  Suggested by Eric
25962         Blake <ebb9@byu.net>.
25963
25964         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25965         Suggested by Eric Blake <ebb9@byu.net>.
25966
25967 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25968
25969         * modules/__func__: New file.
25970         * modules/__func__-tests: New file.
25971         * tests/test-__func__.c: New file.
25972         * m4/__func__.m4: New file.
25973         * doc/gnulib.texi (__func__): Document __func__ module.
25974
25975 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25976
25977         * modules/byteswap (License): Re-license as LGPLv2+.
25978
25979 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25980
25981         * doc/Makefile: Add pdf target.
25982
25983 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25984
25985         * modules/inline (License): Use 'unlimited', since there are only
25986         *.m4 files in this module.
25987
25988 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25989             Bruno Haible  <bruno@clisp.org>
25990
25991         Add support for HP C 7.1 on OpenVMS 8.3.
25992         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25993
25994 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25995
25996         Update VMS specifics.
25997         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25998
25999 2008-03-02  Jim Meyering  <meyering@redhat.com>
26000
26001         Remove the last dependency on the "free" module.
26002         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26003         Reported by Bob Proulx.
26004
26005         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26006
26007         Remove useless "if" tests before free.  Deprecate "free" module.
26008         * doc/posix-functions/free.texi: Mention that this
26009         module is no longer useful.
26010         * modules/free (Notice): Say this module is obsolete.
26011         * modules/readutmp (Depends-on): Remove free.
26012         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26013         * lib/putenv.c (putenv): Likewise.
26014         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26015         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26016         * tests/test-c-strcasestr.c (main): Likewise.
26017         * tests/test-c-strstr.c (main): Likewise.
26018         * tests/test-mbscasestr1.c (main): Likewise.
26019         * tests/test-mbscasestr2.c (main): Likewise.
26020         * tests/test-mbsstr1.c (main): Likewise.
26021         * tests/test-mbsstr2.c (main): Likewise.
26022         * tests/test-memmem.c (main): Likewise.
26023         * tests/test-strcasestr.c (main): Likewise.
26024         * tests/test-striconv.c (main): Likewise.
26025         * tests/test-striconveh.c (main): Likewise.
26026         * tests/test-striconveha.c (main): Likewise.
26027         * tests/test-strstr.c (main): Likewise.
26028
26029         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26030
26031         bootstrap: sync from coreutils again
26032         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26033
26034 2008-03-01  Jim Meyering  <meyering@redhat.com>
26035
26036         bootstrap: sync from coreutils
26037         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26038         also when the target doesn't exist.
26039
26040 2008-03-01  Eric Blake  <ebb9@byu.net>
26041
26042         Fix bugs in last patch.
26043         * lib/memchr2.c (memchr2): Fix typo.
26044         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26045         extension.
26046         Reported by Bruce Korb.
26047
26048         New module 'memchr2'.
26049         * modules/memchr2: New file.
26050         * modules/memchr2-tests: Likewise.
26051         * lib/memchr2.h: Likewise.
26052         * lib/memchr2.c: Likewise, based on memchr.c.
26053         * tests/test-memchr2.c: New test.
26054         * MODULES.html.sh (String handling): Add memchr2.
26055
26056 2008-02-29  Bruno Haible  <bruno@clisp.org>
26057
26058         * modules/freadseek-tests: New file.
26059         * tests/test-freadseek.sh: New file.
26060         * tests/test-freadseek.c: New file.
26061
26062         New module 'freadseek'.
26063         * modules/freadseek: New file.
26064         * lib/freadseek.h: New file.
26065         * lib/freadseek.c: New file.
26066         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26067
26068 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26069
26070         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26071         wydawca.
26072
26073         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26074         program_invocation_name and program_invocation_short_name are
26075         present.
26076
26077 2008-02-28  Bruno Haible  <bruno@clisp.org>
26078
26079         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26080         * tests/test-freadptr.sh: Also test non-seekable stdin.
26081
26082 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26083
26084         * build-aux/bootstrap (source_base, m4_base)
26085         (doc_base, tests_base): New variables.
26086         (gnulib_tool_options): Do not hardcode base directories, use
26087         the above variables instead.
26088
26089 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26090
26091         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26092
26093 2008-02-28  Bruno Haible  <bruno@clisp.org>
26094
26095         * modules/freadptr-tests: New file.
26096         * tests/test-freadptr.sh: New file.
26097         * tests/test-freadptr.c: New file.
26098
26099         New module 'freadptr'.
26100         * modules/freadptr: New file.
26101         * lib/freadptr.h: New file.
26102         * lib/freadptr.c: New file.
26103         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26104
26105 2008-02-26  Karl Berry  <karl@freefriends.org>
26106
26107         Sync from Libtool:
26108         * libltdl/argz.c (argz_add, argz_count): New functions.
26109         * libltdl/argz.in.h: Declare them.
26110         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26111
26112 2008-02-22  Bruno Haible  <bruno@clisp.org>
26113
26114         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26115         is a pointer type.  Needed for HP-UX 10.
26116         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26117         * doc/posix-functions/gmtime_r.texi: Likewise.
26118         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26119
26120 2008-02-24  Bruno Haible  <bruno@clisp.org>
26121
26122         * modules/environ-tests: New file.
26123         * tests/test-environ.c: New file.
26124
26125         New module 'environ'.
26126         * modules/environ: New file.
26127         * lib/unistd.in.h (environ): New declaration.
26128         * m4/environ.m4: New file.
26129         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26130         after use.
26131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26132         HAVE_DECL_ENVIRON.
26133         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26134         HAVE_DECL_ENVIRON.
26135         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26136         wrong claim that 'environ' is missing on some systems.
26137         * modules/execute (Depends-on): Add environ.
26138         * lib/execute.c (environ): Remove fallback declaration.
26139         * modules/pipe (Depends-on): Add environ.
26140         * lib/pipe.c (environ): Remove fallback declaration.
26141         * modules/setenv (Depends-on): Add environ.
26142         * lib/setenv.c (environ): Remove fallback declaration.
26143         * modules/unsetenv (Depends-on): Add environ.
26144         * lib/unsetenv.c (environ): Remove fallback declaration.
26145         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26146         m4/environ.m4.
26147         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26148         (gl_PREREQ_UNSETENV): Likewise.
26149
26150 2008-02-24  Bruno Haible  <bruno@clisp.org>
26151
26152         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26153
26154 2008-02-20  Bob Proulx  <bob@proulx.com>
26155
26156         Enable use of older two part flavor 'git describe'.
26157         * build-aux/git-version-gen: If using the older two part flavor of
26158         git version then recreate the third part now present in the
26159         newer three part flavor of git describe.
26160
26161 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26162
26163         * lib/fts.c (fts_build): Typo correction to comment.
26164
26165 2008-02-17  Bruno Haible  <bruno@clisp.org>
26166
26167         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26168         generating no-op conflicts.
26169
26170 2008-02-17  Bruno Haible  <bruno@clisp.org>
26171
26172         Speed up by 10%.
26173         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26174         result_entries, rather than an index-based loop.
26175
26176 2008-02-17  Bruno Haible  <bruno@clisp.org>
26177
26178         Speed up by 25%.
26179         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26180         'hashcode_cached'.
26181         (entry_create): New function.
26182         (entry_hashcode): Use the cached hashcode if possible.
26183         (read_changelog_file, try_split_merged_entry): Use entry_create.
26184
26185 2008-02-17  Bruno Haible  <bruno@clisp.org>
26186
26187         Speed up from O(n^2) to O(n) for long ChangeLog files.
26188         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26189         (read_changelog_file): Change implementation of entries_reversed list
26190         to rbtreehash.
26191         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26192
26193 2008-02-17  Bruno Haible  <bruno@clisp.org>
26194
26195         New option --split-merged-entry.
26196         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26197         (find_paragraph_end, try_split_merged_entry): New functions.
26198         (long_options): Add option --split-merged-entry.
26199         (usage): Document option --split-merged-entry.
26200         (main): Implement option --split-merged-entry.
26201         Reported by Eric Blake.
26202
26203 2008-02-17  Bruno Haible  <bruno@clisp.org>
26204
26205         * lib/git-merge-changelog.c: Include c-strstr.h.
26206         (main): Support the "git pull --rebase" situation.
26207         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26208         Reported by Eric Blake.
26209
26210 2008-02-16  Eric Blake  <ebb9@byu.net>
26211
26212         Avoid doubling \ in common case of "c-maybe" quoting style.
26213         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26214         eliding outer quotes.
26215         * lib/quotearg.h: Document this.
26216         * tests/test-quotearg.c (result_strings, inputs, results_g)
26217         (flag_results, locale_results): Test it by adding a new string to
26218         each test group.
26219         (compare_strings): Test new string.
26220
26221 2008-02-13  Eric Blake  <ebb9@byu.net>
26222
26223         Avoid trigraph quoting in default output.
26224         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26225         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26226         unless explicitly requested.
26227         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26228
26229 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26230
26231         Don't rely on signed integer overflowing to negative value.
26232         * lib/getugroups.c (getugroups): Include <limits.h>.
26233         Instead, compare against INT_MAX, and increment only if the test passes.
26234
26235 2008-02-13  Jim Meyering  <meyering@redhat.com>
26236         and Eric Blake  <ebb9@byu.net>
26237
26238         Avoid shadowing warning and compile errors on Linux.
26239         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26240         forwarding macros on Linux.
26241         (dcgettext): Define a stub, for Linux.
26242         (results_g, main): Avoid warnings.
26243
26244 2008-02-12  Eric Blake  <ebb9@byu.net>
26245
26246         Silence warning in last patch.
26247         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26248
26249         Quotearg part 4: add tests, fix c-maybe colon quoting.
26250         * lib/quotearg.h: Improve documentation.
26251         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26252         escapes when adding outer quotes.  When quoting trigraphs, use
26253         valid C notation.  When quoting NUL, omit extra characters if next
26254         character is not digit.  Alter prototype.
26255         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26256         callers.
26257         * modules/quotearg-tests: New module.
26258         * tests/test-quotearg.c: New test.
26259
26260 2008-02-07  Eric Blake  <ebb9@byu.net>
26261
26262         Quotearg part 3: add flag to control outer quote elision.
26263         * lib/quotearg.h (c_maybe_quoting_style): New style.
26264         (enum quoting_flags): Better documentation of flags.
26265         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26266         c-maybe style.
26267         (quotearg_buffer_restyled): Handle new flag to elide outer
26268         quotes.
26269
26270         Quotearg part 2: add flag that can control NUL elision.
26271         * lib/quotearg.h (set_quoting_flags): New prototype.
26272         * lib/quotearg.c (struct quoting_options): Add flag field.
26273         (set_quoting_flags): New function.
26274         (quotearg_buffer_restyled): Add flags parameter.
26275         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26276         (quotearg_n_options): Set the flag, since length cannot be
26277         returned.
26278         (quoting_options_from_style): Default flags correctly.
26279
26280         Quotearg part 1: more wrappers, restore quotearg_char state.
26281         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26282         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26283         (quotearg_colon_mem): New wrappers.
26284         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26285         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26286         functions.
26287         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26288         (quotearg_colon_mem): New functions.
26289
26290 2008-02-11  Bruno Haible  <bruno@clisp.org>
26291
26292         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26293         library in the current directory: it does not work with parallel make.
26294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26295
26296 2008-02-11  Bruno Haible  <bruno@clisp.org>
26297
26298         * .gitattributes: New file.
26299
26300 2008-02-11  Jim Meyering  <meyering@redhat.com>
26301
26302         useless-if-before-free: Fix reversed exit values.
26303         * build-aux/useless-if-before-free: Use correct values
26304         for EXIT_MATCH and EXIT_NO_MATCH.
26305
26306         * build-aux/useless-if-before-free: Close stdout carefully.
26307
26308 2008-02-10  Bruno Haible  <bruno@clisp.org>
26309
26310         New module 'git-merge-changelog'.
26311         * modules/git-merge-changelog: New file.
26312         * lib/git-merge-changelog.c: New file.
26313
26314 2008-02-10  Jim Meyering  <meyering@redhat.com>
26315
26316         useless-if-before-free: New option: --list (-l).
26317
26318         useless-if-before-free: Don't exit immediately upon open failure.
26319         * build-aux/useless-if-before-free: Exit 2 for errors.
26320         Upon failure to open a file, don't exit immediately.
26321         Rather, just warn and continue with any remaining files.
26322
26323 2008-02-10  Bruno Haible  <bruno@clisp.org>
26324
26325         New abstract list operation 'node_set_value'.
26326         * lib/gl_list.h (gl_list_node_set_value): New function.
26327         (struct gl_list_implementation): New field node_set_value.
26328         * lib/gl_list.c (gl_list_node_set_value): New function.
26329         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26330         (gl_array_list_implementation): Update.
26331         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26332         (gl_carray_list_implementation): Update.
26333         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26334         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26335         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26336         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26337         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26338         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26339         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26340         Update.
26341         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26342         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26343         (gl_sublist_list_implementation): Update.
26344
26345 2008-02-10  Bruno Haible  <bruno@clisp.org>
26346
26347         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26348         Needed when ELEMENT is #defined to 'some_type *'.
26349
26350 2008-02-10  Jim Meyering  <meyering@redhat.com>
26351
26352         New script and module: useless-if-before-free
26353         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26354         * build-aux/useless-if-before-free: New file.
26355         * modules/useless-if-before-free: New file.
26356
26357         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26358
26359         xstrtol_error: Fix typo.
26360         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26361         s/exit_failure/exit_status/.
26362
26363 2008-02-09  Jim Meyering  <meyering@redhat.com>
26364
26365         New script and module: gitlog-to-changelog
26366         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26367         * modules/gitlog-to-changelog: New file.
26368         * build-aux/gitlog-to-changelog: New file.
26369
26370 2008-02-08  Jim Meyering  <meyering@redhat.com>
26371
26372         Avoid two "parameter unused" warnings.
26373         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26374         Mark "st" as used.
26375
26376         Use "git COMMAND", not "git-COMMAND".
26377         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26378         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26379         * build-aux/git-version-gen: Use "git status", not "git-status".
26380
26381 2008-02-07  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26384         Avoids a crash on Windows Vista.
26385         Reported by Adam Strzelecki <ono@java.pl> via
26386         Simon Josefsson <simon@josefsson.org>.
26387
26388 2008-02-06  Bruno Haible  <bruno@clisp.org>
26389
26390         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26391         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26392         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26394         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26395         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26396         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26397         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26398         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26399         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26400         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26401         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26402         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26403         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26404         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26405         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26406         left-adjust flag.
26407         * tests/test-snprintf-posix.h (test_function): Likewise.
26408         * tests/test-sprintf-posix.h (test_function): Likewise.
26409         * tests/test-vasprintf-posix.c (test_function): Likewise.
26410         * doc/posix-functions/fprintf.texi: Update.
26411         * doc/posix-functions/printf.texi: Update.
26412         * doc/posix-functions/snprintf.texi: Update.
26413         * doc/posix-functions/sprintf.texi: Update.
26414         * doc/posix-functions/vfprintf.texi: Update.
26415         * doc/posix-functions/vprintf.texi: Update.
26416         * doc/posix-functions/vsnprintf.texi: Update.
26417         * doc/posix-functions/vsprintf.texi: Update.
26418         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26419
26420 2008-02-06  Bruno Haible  <bruno@clisp.org>
26421
26422         Fix bug introduced on 2008-01-26.
26423         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26424
26425 2008-02-06  Bruno Haible  <bruno@clisp.org>
26426
26427         Fix bug introduced on 2007-06-10.
26428         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26429         !NEED_PRINTF_FLAG_ZERO.
26430
26431 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26432
26433         getloadavg: use libperfstat on AIX5
26434         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26435
26436 2008-02-03  Bruno Haible  <bruno@clisp.org>
26437
26438         * lib/diffseq.h: Add comments about required #includes.
26439         Reported by Michael Biggs <gnulib@doubleplum.net>.
26440
26441 2008-02-01  Bruno Haible  <bruno@clisp.org>
26442
26443         * users.txt: Add gnuit.
26444
26445 2008-01-31  Bruno Haible  <bruno@clisp.org>
26446
26447         * lib/md4.c (set_uint32): Mark as inline.
26448         * lib/md5.c (set_uint32): Likewise.
26449         * lib/sha1.c (set_uint32): Likewise.
26450         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26451         * m4/md5.m4 (gl_MD5): Likewise.
26452         * m4/sha1.m4 (gl_SHA1): Likewise.
26453
26454 2008-01-31  Jim Meyering  <meyering@redhat.com>
26455
26456         Use "sizeof VAR", rather than a literal "4".
26457         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26458         * lib/md4.c (md4_read_ctx): Likewise.
26459         * lib/sha1.c (sha1_read_ctx): Likewise.
26460
26461 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26462
26463         * tests/test-sha1.c: New file, based on test-md5.c.
26464
26465         * modules/crypto/sha1-tests: New file.
26466
26467 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26468
26469         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26470
26471 2008-01-31  Jim Meyering  <meyering@redhat.com>
26472
26473         Prefer "sizeof v" over the equivalent "4".
26474         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26475         * lib/md5.c (set_uint32): Likewise.
26476         * lib/sha1.c (set_uint32): Likewise.
26477
26478 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26479
26480         * lib/sha1.c (set_uint32): Mark function as static.
26481
26482 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26483
26484         md2: clarify comments to say that alignment is not required.
26485         * lib/md2.h: Remove warning about alignment in comment.
26486         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26487         never been required.
26488
26489 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26490
26491         md4: adapt alignment constraint fix from sha1.
26492         * lib/md4.c (set_uint32): New function, from sha1.c
26493         (md4_read_ctx): Use it.
26494         (md4_finish_ctx): Doc fix.
26495         * lib/md4.h: Doc fix.
26496
26497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26498
26499         md5: adapt alignment constraint fix from sha1.
26500         * lib/md5.c (set_uint32): New function, from sha1.c
26501         (md5_read_ctx): Use it.
26502         (md5_finish_ctx): Doc fix.
26503         * lib/md5.h: Doc fix.
26504
26505 2008-01-30  Peter Palfrader  <weasel@debian.org>
26506
26507         sha1: remove the result buffer alignment constraint
26508         * lib/sha1.c (set_uint32): New function.
26509         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26510         constraint.
26511         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26512         * lib/sha1.h: Likewise.
26513
26514 2008-01-30  Andreas Schwab  <schwab@suse.de>
26515             Bruno Haible  <bruno@clisp.org>
26516
26517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26518         correct definition of LDBL_MIN_EXP.
26519
26520 2008-01-30  Karl Berry  <karl@gnu.org>
26521
26522         * config/srclist-update: try to preserve x bit on updates.
26523         * config/srclistvars.sh: update for karl.
26524
26525 2008-01-29  Jim Meyering  <meyering@redhat.com>
26526
26527         vasnprintf.c: Avoid warning about unused label
26528         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26529         "overflow" label definition and associated code with the
26530         same cpp condition that guards the sole use of that label.
26531
26532 2008-01-26  Bruno Haible  <bruno@clisp.org>
26533
26534         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26535         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26536         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26537         * lib/isnanl-nolibm.h (isnanl): Likewise.
26538         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26539
26540 2008-01-26  Bruno Haible  <bruno@clisp.org>
26541
26542         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26543         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26544
26545 2008-01-26  Bruno Haible  <bruno@clisp.org>
26546
26547         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26548         GCC >= 4.0 built-in.
26549         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26550
26551 2008-01-26  Bruno Haible  <bruno@clisp.org>
26552
26553         Rename isnan, applicable to 'double' only, to isnand.
26554         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26555         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26556         (configure.ac): Update.
26557         (Include): Replace "isnan.h" with "isnand.h".
26558         * m4/isnand.m4: Renamed from m4/isnan.m4.
26559         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26560         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26561         instead of isnan.c.
26562         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26563         instead of HAVE_ISNAN_IN_LIBC.
26564         (isnand): Renamed from isnan.
26565         * lib/isnand.c: New file.
26566         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26567         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26568         (Makefile.am): Update.
26569         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26570         Include isnand.h instead of isnan.h.
26571         (main): Test isnand instead of isnan.
26572         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26573         isnan-nolibm.
26574         * modules/frexp (Depends-on): Likewise.
26575         * modules/frexp-tests (Depends-on): Likewise.
26576         * modules/frexp-nolibm (Depends-on): Likewise.
26577         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26578         * modules/isfinite (Depends-on): Likewise.
26579         * modules/round-tests (Depends-on): Likewise.
26580         * modules/signbit (Depends-on): Likewise.
26581         * modules/signbit-tests (Depends-on): Likewise.
26582         * modules/snprintf-posix (Depends-on): Likewise.
26583         * modules/sprintf-posix (Depends-on): Likewise.
26584         * modules/trunc-tests (Depends-on): Likewise.
26585         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26586         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26587         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26588         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26590         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26591         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26592         * modules/vasnprintf-posix (Depends-on): Likewise.
26593         * modules/vasprintf-posix (Depends-on): Likewise.
26594         * modules/vfprintf-posix (Depends-on): Likewise.
26595         * modules/vsnprintf-posix (Depends-on): Likewise.
26596         * modules/vsprintf-posix (Depends-on): Likewise.
26597         * lib/frexp.c: Include isnand.h instead of isnan.h.
26598         (ISNAN): Set to isnand instead of isnan.
26599         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26600         (gl_isfinited): Use isnand instead of isnan.
26601         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26602         (gl_signbitd): Use isnand instead of isnan.
26603         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26604         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26605         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26606         (main): Use isnand instead of isnan.
26607         * tests/test-round1.c: Include isnand.h.
26608         (main): Use isnand instead of isnan.
26609         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26610         (ISNAN): Set to isnand instead of isnan.
26611         * tests/test-trunc1.c: Include isnand.h.
26612         (main): Use isnand instead of isnan.
26613         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26614         (equal): Use isnand instead of isnan.
26615         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26616         isnand-nolibm.
26617         * NEWS: Mention the change.
26618
26619 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26620             Bruno Haible  <bruno@clisp.org>
26621
26622         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26623         the GCC builtins for signbits are present and set
26624         REPLACE_SIGNBIT_USING_GCC if so.
26625         * lib/math.in.h (signbit): Define using GCC builtins if
26626         REPLACE_SIGNBIT_USING_GCC is set.
26627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26628         REPLACE_SIGNBIT_USING_GCC.
26629         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26630
26631 2008-01-25  Jim Meyering  <meyering@redhat.com>
26632
26633         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26634         * lib/poll.c: Include <config.h>, not "config.h".
26635         * tests/test-getaddrinfo.c: Likewise.
26636
26637 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26638
26639         * modules/sockets-tests: New file.
26640
26641 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26642
26643         * modules/sockets: New module, can be used to call WSA_Startup and
26644         WSA_Cleanup when needed.
26645
26646         * lib/sockets.h, lib/sockets.c: New files.
26647
26648         * m4/sockets.m4: New file.
26649
26650         * tests/test-sockets.c: New file.
26651
26652 2008-01-19  Bruno Haible  <bruno@clisp.org>
26653
26654         * doc/posix-headers: Renamed from doc/headers.
26655         * doc/posix-functions: Renamed from doc/functions.
26656         * doc/gnulib.texi: Update.
26657
26658 2008-01-19  Bruno Haible  <bruno@clisp.org>
26659
26660         * doc/glibc-functions/strcasestr.texi: Include contents of
26661         doc/functions/strcasestr.texi, fixing the list of platforms.
26662         * doc/functions/strcasestr.texi: Remove file.
26663
26664 2008-01-19  Bruno Haible  <bruno@clisp.org>
26665
26666         * doc/glibc-functions/memmem.texi: Include contents of
26667         doc/functions/memmem.texi.
26668         * doc/functions/memmem.texi: Remove file.
26669
26670 2008-01-18  Bruno Haible  <bruno@clisp.org>
26671
26672         * doc/glibc-functions/*.texi: New files.
26673         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26674         to use the new files.
26675
26676 2008-01-17  Bruno Haible  <bruno@clisp.org>
26677
26678         * tests/test-gethostname.c (main): Fix printf statement.
26679
26680 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26681
26682         * modules/gethostname-tests: New file.
26683
26684         * tests/test-gethostname.c: New file.
26685
26686 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26687
26688         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26689         used by the UNAME case.  Reported by Bruno Haible
26690         <bruno@clisp.org>.
26691
26692 2008-01-17  Eric Blake  <ebb9@byu.net>
26693
26694         Convert c-strcasestr to be more efficient.
26695         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26696         (Depends-on): Add c-strcase, remove malloca, strnlen.
26697         * tests/test-c-strcasestr.c (main): Enhance test.
26698         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26699
26700 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26701
26702         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26703         Use it in creating po/Makevars.
26704
26705 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26706
26707         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26708         Applications that requires it should initialize libgcrypt
26709         manually.
26710
26711 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26712
26713         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26714
26715 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26716
26717         Fix problem with getdate on mingw32 reported by Simon Josefsson
26718         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26719         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26720         tzname", when deciding whether to declare tzname.
26721         * lib/strftime.c (tzname): Likewise.
26722
26723 2008-01-15  Bruno Haible  <bruno@clisp.org>
26724
26725         Work around a MacOS X 10.5 bug in frexpl().
26726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26727         * doc/functions/frexpl.texi: Document the bug.
26728         Reported by Elias Pipping <pipping@gentoo.org>.
26729
26730 2008-01-14  Eric Blake  <ebb9@byu.net>
26731
26732         Touch up previous patch.
26733         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26734         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26735
26736         Convert strcasestr module to use Two-Way algorithm.
26737         * modules/strcasestr-simple: New module, based on the old
26738         strcasestr, but with Two-Way rather than KMP.
26739         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26740         * lib/string.in.h (rpl_strcasestr): Declare.
26741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26742         performance.
26743         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26744         * modules/string (Makefile.am): Support strcasestr.
26745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26746         * modules/strcasestr-tests (Depends-on): Check for alarm.
26747         * tests/test-strcasestr.c: Augment test.
26748         * lib/str-two-way.h: Clean up stray macro.
26749         * NEWS: Document new module.
26750         * MODULES.html.sh (string handling): Likewise.
26751         * doc/functions/strcasestr.texi: New file.
26752         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26753         here, since it is not a POSIX function.
26754
26755 2008-01-14  Colin Watson  <cjwatson@debian.org>
26756             Bruno Haible  <bruno@clisp.org>
26757
26758         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26759         works fine; if not, set REPLACE_STRSIGNAL.
26760         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26762         REPLACE_STRSIGNAL.
26763         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26764         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26765         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26766
26767 2008-01-14  Bruno Haible  <bruno@clisp.org>
26768
26769         * modules/strsignal (Include): Change to <string.h>.
26770
26771 2008-01-14  Colin Watson  <cjwatson@debian.org>
26772
26773         * modules/argp (Notice): Add a notice recommending to change
26774         XGETTEXT_OPTIONS.
26775         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26776
26777 2008-01-13  Colin Watson  <cjwatson@debian.org>
26778
26779         * modules/strsignal-tests: New file.
26780         * tests/test-strsignal.c: New file.
26781
26782         * lib/strsignal.c: New file, from glibc with modifications.
26783         * lib/siglist.h: New file, from glibc with modifications.
26784         * lib/string.in.h (strsignal): New declaration.
26785         * m4/strsignal.m4: New file.
26786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26787         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26788         * modules/strsignal: New file.
26789         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26790         HAVE_DECL_STRSIGNAL.
26791
26792 2008-01-13  Bruno Haible  <bruno@clisp.org>
26793
26794         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26795         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26796         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26797         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26798
26799 2008-01-13  Bruno Haible  <bruno@clisp.org>
26800
26801         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26802         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26803         * lib/argp.h (__attribute__): Likewise.
26804         * lib/c-stack.c (__attribute__): Likewise.
26805         * lib/error.h (__attribute__): Likewise.
26806         * lib/fts.c (__attribute__): Likewise.
26807         * lib/openat.h (__attribute__): Likewise.
26808         * lib/stdio.in.h (__attribute__): Likewise.
26809         * lib/string.in.h (__attribute__): Likewise.
26810         * lib/utimens.c (__attribute__): Likewise.
26811         * lib/vasnprintf.h (__attribute__): Likewise.
26812         * lib/xalloc.h (__attribute__): Likewise.
26813         * lib/xprintf.h (__attribute__): Likewise.
26814         * lib/xstrtol.h (__attribute__): Likewise.
26815         * lib/xvasprintf.h (__attribute__): Likewise.
26816
26817 2008-01-12  Bruno Haible  <bruno@clisp.org>
26818
26819         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26820         * doc/glibc-headers/a.out.texi: New file.
26821         * doc/glibc-headers/aliases.texi: New file.
26822         * doc/glibc-headers/alloca.texi: New file.
26823         * doc/glibc-headers/ar.texi: New file.
26824         * doc/glibc-headers/argp.texi: New file.
26825         * doc/glibc-headers/argz.texi: New file.
26826         * doc/glibc-headers/byteswap.texi: New file.
26827         * doc/glibc-headers/crypt.texi: New file.
26828         * doc/glibc-headers/endian.texi: New file.
26829         * doc/glibc-headers/envz.texi: New file.
26830         * doc/glibc-headers/err.texi: New file.
26831         * doc/glibc-headers/error.texi: New file.
26832         * doc/glibc-headers/execinfo.texi: New file.
26833         * doc/glibc-headers/fpu_control.texi: New file.
26834         * doc/glibc-headers/fstab.texi: New file.
26835         * doc/glibc-headers/fts.texi: New file.
26836         * doc/glibc-headers/getopt.texi: New file.
26837         * doc/glibc-headers/ieee754.texi: New file.
26838         * doc/glibc-headers/ifaddrs.texi: New file.
26839         * doc/glibc-headers/libintl.texi: New file.
26840         * doc/glibc-headers/mcheck.texi: New file.
26841         * doc/glibc-headers/mntent.texi: New file.
26842         * doc/glibc-headers/obstack.texi: New file.
26843         * doc/glibc-headers/paths.texi: New file.
26844         * doc/glibc-headers/printf.texi: New file.
26845         * doc/glibc-headers/pty.texi: New file.
26846         * doc/glibc-headers/resolv.texi: New file.
26847         * doc/glibc-headers/shadow.texi: New file.
26848         * doc/glibc-headers/sysexits.texi: New file.
26849         * doc/glibc-headers/ttyent.texi: New file.
26850
26851 2008-01-12  Jim Meyering  <meyering@redhat.com>
26852
26853         announce-gen: emit Gnulib's git-based version string.
26854         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26855         New option --gnulib-version=V, where V is expected to be
26856         the output of running git describe in the gnulib directory.
26857         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26858         not useful, and plan to stop publishing an xdelta file with each
26859         coreutils release.
26860
26861         * build-aux/announce-gen: Also check for lzma-compressed files.
26862
26863 2008-01-11  Bruno Haible  <bruno@clisp.org>
26864
26865         * tests/test-memmem.c (main): Increase maximum allowed time.
26866         * tests/test-strstr.c (main): Likewise.
26867
26868 2008-01-11  Bruno Haible  <bruno@clisp.org>
26869
26870         * doc/functions/memmem.texi: Add more precisions about platforms.
26871         * doc/functions/strstr.texi: Likewise.
26872
26873 2008-01-10  Eric Blake  <ebb9@byu.net>
26874
26875         * m4/strstr.m4: Delete cruft from copy-n-paste.
26876         Reported by Bruno Haible.
26877
26878 2008-01-10  Bruno Haible  <bruno@clisp.org>
26879
26880         Make c-strstr rely on strstr.
26881         * lib/c-strstr.c: Don't include str-kmp.h.
26882         (c_strstr): Define in terms of strstr.
26883         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26884         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26885
26886 2008-01-10  Bruno Haible  <bruno@clisp.org>
26887
26888         * doc/gnulib.texi (String Functions in C Locale): New section.
26889         * doc/c-ctype.texi: New file.
26890         * doc/c-strcase.texi: New file.
26891         * doc/c-strcaseeq.texi: New file.
26892         * doc/c-strcasestr.texi: New file.
26893         * doc/c-strstr.texi: New file.
26894         * doc/c-strtod.texi: New file.
26895         * doc/c-strtold.texi: New file.
26896
26897 2008-01-10  Eric Blake  <ebb9@byu.net>
26898
26899         * lib/relocatable.h: Fix a comment.
26900
26901 2008-01-10  Eric Blake  <ebb9@byu.net>
26902
26903         Share two-way algorithm.
26904         * lib/str-two-way.h: New file, merged from...
26905         * lib/memmem.c: ...here...
26906         * lib/strstr.c: ...and here.
26907         * modules/memmem (Files): Use it.
26908         * modules/strstr (Files): Likewise.
26909
26910         Avoid quadratic strstr implementations.
26911         * lib/strstr.c: New file.
26912         * m4/strstr.m4: Likewise.
26913         * modules/strstr: Likewise.
26914         * modules/strstr-tests: Likewise.
26915         * tests/test-strstr.c: Likewise.
26916         * lib/string.in.h (rpl_strstr): Declare.
26917         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26919         * modules/string (Makefile.am): Likewise.
26920         * MODULES.html.sh (string handling): Mention new module.
26921         * doc/functions/strstr.texi (strstr): Document the bug.
26922
26923 2008-01-10  Bruno Haible  <bruno@clisp.org>
26924
26925         * lib/relocatable.h (relocate): State whether result is freshly
26926         allocated or not.
26927         * lib/relocatable.c (relocate): Return a freshly allocated string
26928         instead of a pointer to a privately held string.
26929         Reported by Sylvain Beucler <beuc@gnu.org>.
26930
26931 2008-01-10  Colin Watson  <cjwatson@debian.org>
26932
26933         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26934         s/S_ISNLK/S_ISLNK/.
26935
26936 2008-01-09  Bruno Haible  <bruno@clisp.org>
26937
26938         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26939         and other files.
26940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26941         if it's only a guess.
26942         * modules/memmem: Simplify by depending on memmem-simple.
26943
26944 2008-01-09  Bruno Haible  <bruno@clisp.org>
26945
26946         Work around OpenBSD 4.0 tdelete() bug.
26947         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26948         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26949         macros and don't redefine the enum values.
26950         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26951         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26952         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26953
26954 2008-01-09  Bruno Haible  <bruno@clisp.org>
26955
26956         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26957         (main): Don't perform the tests if setlocale did not install a UTF-8
26958         locale. Needed on OpenBSD 4.0.
26959         * modules/wcwidth-tests (Depends-on): Add localcharset.
26960
26961 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26962
26963         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26964         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26965         * NEWS: announce this.
26966         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26967
26968 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26969         and Eric Blake  <ebb9@byu.net>
26970
26971         Add memmem-simple module.
26972         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26973         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26974         * modules/memmem-simple: New file.
26975         * modules/memmem (Description): Tweak.
26976         * MODULES.html.sh (string handling): Mention new module.
26977         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26978         addressed by memmem-simple.
26979         * NEWS: Document the difference.
26980
26981 2008-01-09  Eric Blake  <ebb9@byu.net>
26982
26983         Give gcc some memmem optimization hints.
26984         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26985         (strcasestr): Declare as pure.
26986         * modules/memmem (Maintainer): Claim my implementation.
26987
26988 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26989
26990         Support AIX 6.1 and higher.
26991         * build-aux/config.libpath: Likewise.
26992         * build-aux/config.rpath: Likewise.
26993
26994 2008-01-08  Jim Meyering  <meyering@redhat.com>
26995             Bruno Haible  <bruno@clisp.org>
26996
26997         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26998         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26999         Reported by Peter Fales in
27000         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27001
27002 2008-01-08  Bruno Haible  <bruno@clisp.org>
27003
27004         * modules/unictype/category-of (Depends-on): Add
27005         unictype/category-none.
27006         * modules/unictype/category-and-tests (Depends-on): Add
27007         unictype/category-{L,N,Lu,Nd}.
27008         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27009         * modules/unictype/category-or-tests (Depends-on): Add
27010         unictype/category-{L,N}.
27011         * modules/unictype/category-name-tests (Depends-on): Add
27012         unictype/category-{Z,Nl}.
27013         Reported by Simon Josefsson.
27014
27015 2008-01-08  Bruno Haible  <bruno@clisp.org>
27016
27017         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27018         convention better.
27019         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27020         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27021         Reported by Peter Miller <millerp@canb.auug.org.au>.
27022
27023 2008-01-08  Eric Blake  <ebb9@byu.net>
27024
27025         Rewrite memmem to guarantee linear complexity without malloc.
27026         * lib/memmem.c (memmem): Use Two-Way rather than
27027         Knuth-Morris-Pratt, to allow O(1) space usage.
27028         (critical_factorization, two_way_short_needle)
27029         (two_way_long_needle): New functions.
27030         (knuth_morris_pratt): Delete.
27031         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27032         Add stdint.
27033         * tests/test-memmem.c (main): Add tests for periodic needle and
27034         sublinear performance.
27035         * doc/functions/memmem.texi (memmem): Document other deficiencies
27036         in cygwin and older glibc.
27037
27038 2008-01-08  Bruno Haible  <bruno@clisp.org>
27039
27040         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27041         augmentation.
27042
27043 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27044
27045         Add a configure time option: --disable-acl.
27046         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27047         AC_ARG_ENABLE(acl).
27048
27049 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27050
27051         * tests/test-localename.c: Don't include obsolete "setenv.h".
27052
27053         * modules/localename-tests (Depends-on): Need unsetenv.
27054
27055 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27056
27057         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27058
27059 2008-01-06  Colin Watson  <cjwatson@debian.org>
27060
27061         * users.txt: Add man-db.
27062
27063 2008-01-07  Bruno Haible  <bruno@clisp.org>
27064
27065         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27066         previous section name.
27067
27068 2008-01-07  Bruno Haible  <bruno@clisp.org>
27069
27070         * lib/progname.c (set_program_name): Don't strip off a leading
27071         "lt-" prefix outside a .libs directory.
27072         Suggested by Paul Eggert.
27073
27074 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27075             Bruno Haible  <bruno@clisp.org>
27076
27077         Improve memory cleanup in 'relocatable' module.
27078         * lib/relocatable.h (compute_curr_prefix): Change return type to
27079         'char *'.
27080         * lib/relocatable.c (compute_curr_prefix): Change return type to
27081         'char *'. Free curr_installdir after use.
27082         (relocate): Free curr_prefix_better after use.
27083         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27084
27085 2008-01-01  Bruno Haible  <bruno@clisp.org>
27086
27087         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27088         failure on older glibc systems.
27089         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27090
27091 2008-01-05  Eric Blake  <ebb9@byu.net>
27092
27093         Avoid quadratic system memmem.
27094         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27095         Reported by Ralf Wildenhues.
27096
27097         Fix memmem test for mingw.
27098         * modules/memmem-tests (configure.ac): Check for alarm.
27099         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27100         it.
27101         * doc/functions/memmem.texi: New file.
27102         * doc/gnulib.texi (Function Substitutes): Add memmem.
27103         Reported by Bruno Haible.
27104
27105 2008-01-04  Bruno Haible  <bruno@clisp.org>
27106
27107         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27108         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27109         gl_HEADER_STRING_H_DEFAULTS.
27110
27111 2008-01-04  Eric Blake  <ebb9@byu.net>
27112
27113         Shorten duration of memmem test.
27114         * tests/test-memmem.c (main): Use alarm to declare failure if test
27115         is taking too long.
27116         Reported by Ralf Wildenhues.
27117
27118 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27119
27120         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27121         string, needed by strerror.
27122
27123 2008-01-03  Colin Watson  <cjwatson@debian.org>
27124             Bruno Haible  <bruno@clisp.org>
27125
27126         * doc/gnulib-tool.texi (Localization): New section.
27127
27128 2008-01-02  Bruno Haible  <bruno@clisp.org>
27129
27130         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27131         variables to 'unsigned char *' type.
27132         Reported by Paul Eggert.
27133
27134 2008-01-02  Jim Meyering  <jim@meyering.net>
27135
27136         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27137
27138 2007-12-31  Jim Meyering  <jim@meyering.net>
27139
27140         Avoid use of private FTS type name.
27141         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27142
27143 2007-12-30  Karl Berry  <karl@gnu.org>
27144
27145         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27146         work around defect in Texinfo and/or the standalone Info browser.
27147
27148 2007-12-30  Bruno Haible  <bruno@clisp.org>
27149
27150         Unify 5 copies of the KMP code.
27151         * lib/str-kmp.h: New file.
27152         * lib/c-strcasestr.c: Include str-kmp.h.
27153         (knuth_morris_pratt): Remove function.
27154         (c_strcasestr): Update.
27155         * lib/c-strstr.c: Include str-kmp.h.
27156         (knuth_morris_pratt): Remove function.
27157         (c_strcasestr): Update.
27158         * lib/mbscasestr.c: Include str-kmp.h.
27159         (knuth_morris_pratt_unibyte): Remove function.
27160         * lib/mbsstr.c: Include str-kmp.h.
27161         (knuth_morris_pratt_unibyte): Remove function.
27162         * lib/strcasestr.c: Include str-kmp.h.
27163         (knuth_morris_pratt): Remove function.
27164         (strcasestr): Update.
27165         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27166         * modules/c-strstr (Files): Likewise.
27167         * modules/mbscasestr (Files): Likewise.
27168         * modules/mbsstr (Files): Likewise.
27169         * modules/strcasestr (Files): Likewise.
27170         Suggested by Paul Eggert.
27171
27172 2007-12-30  Bruno Haible  <bruno@clisp.org>
27173
27174         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27175         defined.
27176
27177 2007-12-30  Bruno Haible  <bruno@clisp.org>
27178
27179         * lib/xmalloca.h: Include xalloc.h.
27180         (xnmalloca): New macro.
27181
27182 2007-12-30  Bruno Haible  <bruno@clisp.org>
27183
27184         * lib/malloca.h (nmalloca): New macro.
27185         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27186         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27187         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27188         knuth_morris_pratt_multibyte): Likewise.
27189         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27190         knuth_morris_pratt_multibyte): Likewise.
27191         * lib/memmem.c (knuth_morris_pratt): Likewise.
27192         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27193
27194 2007-12-25  Bruno Haible  <bruno@clisp.org>
27195
27196         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27197         * lib/glob.c: Don't include openat.h.
27198         (link_exists2_p): Add back the code that deals with the
27199         !GLOB_ALTDIRFUNC case.
27200         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27201         let it do the filename concatenation.
27202         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27203         * modules/glob (Depends-on): Remove openat.
27204
27205 2007-12-31  Bruno Haible  <bruno@clisp.org>
27206
27207         * modules/dirfd (License): Change to LGPLv2+.
27208         Approved by Jim Meyering.
27209
27210 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27211
27212         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27213         when multiplying M by sizeof (size_t).
27214
27215 2007-12-10  Martin Lambers  <marlam@marlam.de>
27216
27217         Override getpagesize on mingw.
27218         * lib/getpagesize.c: New file.
27219         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27220         * modules/getpagesize (Files): Add lib/getpagesize.c.
27221         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27223         REPLACE_GETPAGESIZE.
27224         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27225
27226 2007-12-25  Bruno Haible  <bruno@clisp.org>
27227
27228         * modules/localcharset (Notice): New field.
27229         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27230         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27231
27232 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27233             Bruno Haible  <bruno@clisp.org>
27234
27235         Avoid using the syntax symbol() in formatted documentation.
27236         * MODULES.html.sh (func_module): When replacing symbol() with a
27237         hyperlink, remove the parentheses. Show an error if some remain.
27238         Recognize and render the '...' syntax.
27239         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27240         Rework. Add paragraph about GCC's inlining.
27241         * doc/alloca.texi: Likewise.
27242         * doc/error.texi: Remove parentheses from symbol reference.
27243         * doc/gnulib-intro.texi: Likewise.
27244         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27245         * modules/fnmatch (Description): Reword to say "the ... function".
27246         * modules/full-read (Description): Likewise.
27247         * modules/full-write (Description): Likewise.
27248         * modules/safe-read (Description): Likewise.
27249         * modules/safe-write (Description): Likewise.
27250         * modules/strchrnul (Description): Likewise.
27251         * modules/trim (Description): Likewise.
27252         * modules/error (Description): Remove parentheses from symbol
27253         references.
27254         * modules/verror (Description): Likewise.
27255         Reported by Karl Berry.
27256
27257 2007-12-25  Bruno Haible  <bruno@clisp.org>
27258
27259         Fixup after 2007-10-16 commit.
27260         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27261
27262 2007-12-24  Bruno Haible  <bruno@clisp.org>
27263
27264         Make --enable-relocatable work with DESTDIR.
27265         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27266         to compute installdir from destprog.
27267         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27268         also set the RELOC_DESTDIR variable.
27269         Reported by Левашев Иван <octagram@bluebottle.com>.
27270
27271 2007-12-24  Bruno Haible  <bruno@clisp.org>
27272
27273         Fix link error due to xalloc_die().
27274         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27275         of xreadlink.
27276         * lib/relocwrapper.c: Update comments.
27277         * build-aux/install-reloc: Remove xreadlink.c from file list.
27278         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27279         xreadlink.c.
27280         Reported by Левашев Иван <octagram@bluebottle.com>.
27281
27282 2007-12-24  Bruno Haible  <bruno@clisp.org>
27283
27284         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27285         * lib/setenv.h: Remove file.
27286         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27287         lib/setenv.h.
27288         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27289         (Depends-on): Add stdlib.
27290         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27291         gl_FUNC_UNSETENV.
27292         (Include): Replace setenv.h with <stdlib.h>.
27293         * modules/unsetenv: New file.
27294         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27295         * lib/unsetenv.c: Include <stdlib.h> first.
27296         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27297         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27298         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27299         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27300         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27301         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27303         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27304         * doc/functions/unsetenv.texi: Update.
27305         * modules/xsetenv (Depends-on): Add unsetenv.
27306         * modules/getdate (Depends-on): Likewise.
27307         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27308         * lib/xsetenv.c: Don't include setenv.h.
27309         * lib/getdate.y: Likewise.
27310         * lib/relocwrapper.c: Likewise.
27311         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27312         (Depends-on): Add stdlib.
27313         * NEWS: Mention the changes.
27314         Reported by Левашев Иван <octagram@bluebottle.com>.
27315
27316 2007-12-23  Bruno Haible  <bruno@clisp.org>
27317
27318         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27319         indentation.
27320
27321 2007-12-23  Bruno Haible  <bruno@clisp.org>
27322
27323         * lib/c-strcasestr.c: Add more comments.
27324         * lib/c-strstr.c: Likewise.
27325         * lib/mbscasestr.c: Likewise.
27326         * lib/mbsstr.c: Likewise.
27327         * lib/strcasestr.c: Likewise.
27328         * lib/memmem.c: Likewise.
27329
27330 2007-12-23  Bruno Haible  <bruno@clisp.org>
27331
27332         * tests/test-memmem.c: Include <string.h> first.
27333
27334 2007-12-22  Bruno Haible  <bruno@clisp.org>
27335
27336         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27337         the contents of $testsbase.
27338         Reported by Ralf Wildenhues.
27339
27340 2007-12-22  Bruno Haible  <bruno@clisp.org>
27341
27342         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27343         two variables local_ldadd_before, local_ldadd_last.
27344
27345 2007-12-20  Eric Blake  <ebb9@byu.net>
27346
27347         Work around circular library issue when cross-compiling.
27348         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27349         that progname.o does not need to pull in rpl_memcmp.
27350
27351 2007-12-19  Eric Blake  <ebb9@byu.net>
27352
27353         Fix memmem to avoid O(n^2) worst-case complexity.
27354         * lib/memmem.c (knuth_morris_pratt): New function.
27355         (memmem): Use it if first few naive iterations fail.
27356         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27357         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27358         * modules/memchr (License): Likewise.
27359         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27360         malloca.
27361         * tests/test-memmem.c: Rewrite, borrowing ideas from
27362         test-mbsstr1.c; the old version wouldn't even compile!
27363         * modules/memmem-tests: New file.
27364         * lib/string.in.h (rpl_memmem): Add declaration.
27365         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27367         REPLACE_MEMMEM.
27368
27369 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27370
27371         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27372         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27373         before any system include files, and undef after them all.  This
27374         should fix a problem on VMS reported by John E. Malmberg in
27375         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27376
27377 2007-12-17  Eric Blake  <ebb9@byu.net>
27378
27379         Revert addition of verify, for BSD/OS.
27380         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27381         can't handle large files, for the sake of obsolete platforms.
27382         * modules/fseeko (Depends-on): Remove verify.
27383         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27384         * doc/functions/ftello.texi (ftello): Likewise.
27385         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27386         Reported by Larry Jones.
27387
27388 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27389
27390         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27391         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27392
27393 2007-12-17  Jim Meyering  <meyering@redhat.com>
27394
27395         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27396         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27397         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27398         * modules/getcwd (Depends-on): Add openat.
27399         Reported by Petr Salinger.
27400
27401 2007-12-17  Bruno Haible  <bruno@clisp.org>
27402
27403         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27404         avoid a segmentation fault of the configure test on x86_64 systems.
27405
27406 2007-12-15  Jim Meyering  <meyering@redhat.com>
27407
27408         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27409
27410 2007-12-13  Eric Blake  <ebb9@byu.net>
27411
27412         Another fseek test.
27413         * tests/test-fseek.c (main): Also test ungetc handling.
27414         * tests/test-fseeko.c (main): Likewise.
27415         * modules/fseeko (Depends-on): Add verify.
27416         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27417         large.
27418         Reported by Larry Jones.
27419
27420         Fix fseeko on mingw.
27421         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27422         seek.
27423
27424         Beef up fseek tests.
27425         * tests/test-fseek.c (main): Also test eof handling.
27426         * tests/test-fseeko.c (main): Likewise.
27427         Reported by Larry Jones.
27428
27429 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27430
27431         Fix fseeko on BSD-based platforms.
27432         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27433         successful seek.
27434
27435 2007-12-12  Eric Blake  <ebb9@byu.net>
27436
27437         Allow circular dependency of separate libtests.a
27438         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27439         when use_libtests.
27440
27441 2007-12-11  Eric Blake  <ebb9@byu.net>
27442
27443         Fix bug with -0.0L in previous patch.
27444         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27445         * tests/test-isnan.c (main): Also test on zeroes.
27446         * tests/test-isnanf.c (main): Likewise.
27447         * tests/test-isnanl.h (main): Likewise.
27448
27449         Detect pseudo-denormals on x86 even when cross-compiling.
27450         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27451         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27452         invalid bit patterns that happen to satisfy ==.
27453
27454         Avoid link failures with separate libtests.a.
27455         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27456         last, to satisfy circular dependencies.
27457
27458 2007-12-11  Eric Blake  <ebb9@byu.net>
27459         and Bruno Haible  <bruno@clisp.org>
27460
27461         Fix OpenBSD 4.0 <float.h> handling of long double.
27462         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27463         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27464         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27465
27466 2007-12-11  Jim Meyering  <meyering@redhat.com>
27467
27468         * users.txt: Add libvirt.
27469
27470         Support versions of autoconf prior to 2.59c.
27471         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27472         if it is not already defined.
27473
27474 2007-12-09  Bruno Haible  <bruno@clisp.org>
27475
27476         Let 'gnulib-tool --import' collect sources needed for the tests in
27477         tests/ rather than in lib/.
27478         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27479         argument. If true, add rules to generate libtests.a, and put libtests.a
27480         into $(LDADD). Consider source files in subdirectories and set
27481         uses_subdirs.
27482         (func_emit_initmacro_start, func_emit_initmacro_end,
27483         func_emit_initmacro_done): Pass all arguments explicitly.
27484         (func_import): Determine two module lists main_modules,
27485         testsrelated_modules. Determine use_libtests. Determine two variables
27486         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27487         instead of just sed_transform_lib_file. Determine two variables
27488         main_files and testsrelated_files. Compute 'files' as the union of
27489         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27490         func_add_or_update. In the generated gnulib-comp.m4, collect the
27491         object files for tests/ in different variables than those for lib/.
27492         Substitute LIBTESTS_LIBDEPS.
27493         (func_create_testdir): Combine the uses_subdirs results from
27494         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27495
27496 2007-12-09  Bruno Haible  <bruno@clisp.org>
27497
27498         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27499         the build-aux directory.
27500
27501 2007-12-09  Bruno Haible  <bruno@clisp.org>
27502
27503         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27504         introduced on 2006-09-09.
27505
27506 2007-12-07  Jim Meyering  <meyering@redhat.com>
27507
27508         Let these macros work also with autoconf-2.59.
27509         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27510         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27511         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27512
27513 2007-12-06  Jim Meyering  <meyering@redhat.com>
27514
27515         Avoid a configure-time syntax error in gl_FUNC_ACL.
27516         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27517         function in each branch, before testing the cache variable.
27518
27519 2007-12-04  Eric Blake  <ebb9@byu.net>
27520
27521         Make scripts executable.
27522         * build-aux/config.guess: Add execute permissions.
27523         * build-aux/config.sub: Likewise.
27524         * build-aux/gendocs.sh: Likewise.
27525
27526         Fix frexp on mingw.
27527         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27528         cross-compiling.
27529         * doc/functions/frexp.texi (frexp): Document the bug.
27530
27531         Make cygwin fseeko check more reliable.
27532         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27533         version numbers, rather than unrelated feature check.
27534         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27535         * doc/functions/ftello.texi (ftello): Likewise.
27536         Reported by Bruno Haible.
27537
27538         * m4/strerror.m4: Bump version number.
27539
27540 2007-12-03  Bruno Haible  <bruno@clisp.org>
27541
27542         * doc/functions/mprotect.texi: Mention the mingw problem.
27543
27544 2007-12-03  Eric Blake  <ebb9@byu.net>
27545
27546         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27547         REPLACE_STRERROR is initialized before this macro.
27548
27549 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27550
27551         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27552         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27553         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27554         put -lsec in even for programs other than 'ls'.  This fixes a problem
27555         for gettext reported by Bruno Haible in
27556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27557         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27558         Add support for Solaris 10.  This isn't efficient, but should get the
27559         job done for now.
27560
27561 2007-12-03  James Youngman  <jay@gnu.org>
27562
27563         * doc/regexprops-generic.texi: change "an close-group" to "a
27564         close-group" and "illegal" to "not allowed".
27565
27566 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27567
27568         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27569         pr_byname.h. Needed for the rare case when the maintainer has done
27570         "make maintainer-clean" in the source directory and then attempts a
27571         build outside the source directory.
27572         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27573         scripts_byname.h.
27574
27575 2007-12-02  Martin Lambers <marlam@marlam.de>
27576             Bruno Haible  <bruno@clisp.org>
27577
27578         * lib/getpagesize.h: Remove file.
27579         * lib/unistd.in.h: Include declaration of getpagesize here.
27580         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27581         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27582         HAVE_SYS_PARAM_H.
27583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27584         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27585         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27586         (Depends-on): Add unistd.
27587         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27588         (Include): Use <unistd.h> instead of getpagesize.h.
27589         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27590         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27591         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27592         gl_GETPAGESIZE invocation, already handled by module dependency.
27593         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27594
27595 2007-12-02  Bruno Haible  <bruno@clisp.org>
27596
27597         * modules/strings-tests: New file.
27598         * tests/test-strings.c: New file.
27599
27600         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27601         * lib/strings.in.h: New file.
27602         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27603         * m4/strings_h.m4: New file.
27604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27605         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27606         * modules/strings: New file.
27607         * modules/string (Makefile.am): Update.
27608         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27609         Reported by Karl Berry.
27610
27611 2007-12-01  Eric Blake  <ebb9@byu.net>
27612
27613         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27614         accomodate fix in cygwin 1.5.25.
27615
27616 2007-12-01  Jim Meyering  <meyering@redhat.com>
27617
27618         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27619         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27620         that would inhibit utf8-optimization of a regexp containing line-
27621         or buffer-anchors, e.g., `^', `$'.
27622
27623 2007-11-30  Bruno Haible  <bruno@clisp.org>
27624
27625         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27626         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27627         glthread_recursive_lock_init.
27628         * lib/lock.c (glthread_recursive_lock_init)
27629         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27630         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27631
27632 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27633
27634         New function qset_acl, like set_acl but with syscall semantics.
27635         * lib/acl.h (qset_acl): New decl.
27636         * lib/acl.c (qset_acl): New function.
27637         (set_acl): Use new function.  Use more-consistent diagnostics.
27638
27639 2007-11-28  Jim Meyering  <meyering@redhat.com>
27640
27641         * modules/physmem (License): Change from GPL to LGPLv2+.
27642
27643 2007-11-26  Bruno Haible  <bruno@clisp.org>
27644
27645         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27646         'long double' type has excess precision.
27647         Reported by Jim Meyering in
27648         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27649
27650 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27651
27652         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27653         Sync from <http://gnu.org/licenses>.
27654         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27655         with license text from same location.
27656         * doc/maintain.texi, doc/standards.texi:  Sync from
27657         <http://savannah.gnu.org/projects/gnustandards>.
27658
27659 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
27660         and Jim Meyering  <meyering@redhat.com>
27661
27662         Adjust getdate' grammar to accept a slightly more regular language.
27663         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27664         Before, the former was rejected.
27665         * lib/getdate.y (digits_to_date_time): New function, factored
27666         out of ...
27667         (number): ...here.  Just call digits_to_date_time.
27668         (hybrid): New non-terminal to handle an <unsigned number,
27669         signed relative offset> sequence consistently.
27670
27671 2007-11-18  Jim Meyering  <meyering@redhat.com>
27672
27673         Pull my changes from coreutils:
27674         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27675         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27676         use of $gnulib_tool_option_extras, so that it's separated from the
27677         preceding argument.
27678
27679         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27680         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27681         parent destination directories before copying a file into place.
27682
27683 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27684
27685         bootstrap: work also with 4-argument variant of AC_INIT
27686         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27687
27688 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27689
27690         Port test-getaddrinfo to Solaris.
27691         Problem reported by Bruno Haible in
27692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27693         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27694         explanation of setting 'hints'.
27695         Don't reject an implementation merely because it returns EAI_SERVICE.
27696         (EAI_SERVICE): Define to 0 if not defined.
27697
27698 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27699
27700         The license of gnu-make and posix-shell is now "GPLed build tool".
27701         * modules/gnu-make (License): Likewise.
27702         * modules/posix-shell (License): Likewise.
27703
27704         New module posix-shell, for determining a POSIX shell
27705         or perhaps something that is close enough to a POSIX shell.
27706         * m4/posix-shell.m4: New file.
27707         * modules/posix-shell: New file.
27708
27709         * MODULES.html.sh: Mention new module.
27710
27711         New module gnu-make, for determining whether we're using GNU Make.
27712         * m4/gnu-make.m4: New file.
27713         * modules/gnu-make: New file.
27714         * MODULES.html.sh: Mention new module.
27715
27716 2007-11-14  Jim Meyering  <meyering@redhat.com>
27717
27718         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27719         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27720         use this macro to create a function _definition_.
27721         Remove useless "#undef ARGMATCH_DIE".
27722
27723 2007-11-14  Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/config.charset: Update for OpenBSD 4.1.
27726         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27727
27728 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27729
27730         Document 64-bit #if problems in stdint.texi.
27731         * doc/headers/stdint.texi (stdint.h): Mention problems with
27732         64-bit-#if, and how to work around them.
27733
27734         Don't insist on 'long long int' support in the preprocessor.  It
27735         breaks too many things.  For example, PRIdMAX still uses a 'long
27736         long int' format with the latest Sun compiler, even though
27737         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27738         preprocessor problem.  This causes the latest coreutils to dump
27739         core on Solaris 10 sparc with the Sun C compiler.
27740         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27741         the troublesome expressions at configure-time, not at #if-time.
27742         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27743         preprocessor.
27744         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27745         compile-time C checks, done at 'configure'-time.
27746         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27747         * modules/inttypes (Makefile): Substitute the new symbols that
27748         gl_INTTYPES_H now generates.
27749         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27750
27751 2007-11-12  Bruno Haible  <bruno@clisp.org>
27752
27753         Tests for Unicode character classification functions.
27754
27755         * modules/unictype/bidicategory-byname-tests: New file.
27756         * modules/unictype/bidicategory-name-tests: New file.
27757         * modules/unictype/bidicategory-of-tests: New file.
27758         * modules/unictype/bidicategory-test-tests: New file.
27759         * modules/unictype/block-list-tests: New file.
27760         * modules/unictype/block-of-tests: New file.
27761         * modules/unictype/block-test-tests: New file.
27762         * modules/unictype/category-C-tests: New file.
27763         * modules/unictype/category-Cc-tests: New file.
27764         * modules/unictype/category-Cf-tests: New file.
27765         * modules/unictype/category-Cn-tests: New file.
27766         * modules/unictype/category-Co-tests: New file.
27767         * modules/unictype/category-Cs-tests: New file.
27768         * modules/unictype/category-L-tests: New file.
27769         * modules/unictype/category-Ll-tests: New file.
27770         * modules/unictype/category-Lm-tests: New file.
27771         * modules/unictype/category-Lo-tests: New file.
27772         * modules/unictype/category-Lt-tests: New file.
27773         * modules/unictype/category-Lu-tests: New file.
27774         * modules/unictype/category-M-tests: New file.
27775         * modules/unictype/category-Mc-tests: New file.
27776         * modules/unictype/category-Me-tests: New file.
27777         * modules/unictype/category-Mn-tests: New file.
27778         * modules/unictype/category-N-tests: New file.
27779         * modules/unictype/category-Nd-tests: New file.
27780         * modules/unictype/category-Nl-tests: New file.
27781         * modules/unictype/category-No-tests: New file.
27782         * modules/unictype/category-P-tests: New file.
27783         * modules/unictype/category-Pc-tests: New file.
27784         * modules/unictype/category-Pd-tests: New file.
27785         * modules/unictype/category-Pe-tests: New file.
27786         * modules/unictype/category-Pf-tests: New file.
27787         * modules/unictype/category-Pi-tests: New file.
27788         * modules/unictype/category-Po-tests: New file.
27789         * modules/unictype/category-Ps-tests: New file.
27790         * modules/unictype/category-S-tests: New file.
27791         * modules/unictype/category-Sc-tests: New file.
27792         * modules/unictype/category-Sk-tests: New file.
27793         * modules/unictype/category-Sm-tests: New file.
27794         * modules/unictype/category-So-tests: New file.
27795         * modules/unictype/category-Z-tests: New file.
27796         * modules/unictype/category-Zl-tests: New file.
27797         * modules/unictype/category-Zp-tests: New file.
27798         * modules/unictype/category-Zs-tests: New file.
27799         * modules/unictype/category-and-not-tests: New file.
27800         * modules/unictype/category-and-tests: New file.
27801         * modules/unictype/category-byname-tests: New file.
27802         * modules/unictype/category-name-tests: New file.
27803         * modules/unictype/category-none-tests: New file.
27804         * modules/unictype/category-of-tests: New file.
27805         * modules/unictype/category-or-tests: New file.
27806         * modules/unictype/category-test-withtable-tests: New file.
27807         * modules/unictype/combining-class-tests: New file.
27808         * modules/unictype/ctype-alnum-tests: New file.
27809         * modules/unictype/ctype-alpha-tests: New file.
27810         * modules/unictype/ctype-blank-tests: New file.
27811         * modules/unictype/ctype-cntrl-tests: New file.
27812         * modules/unictype/ctype-digit-tests: New file.
27813         * modules/unictype/ctype-graph-tests: New file.
27814         * modules/unictype/ctype-lower-tests: New file.
27815         * modules/unictype/ctype-print-tests: New file.
27816         * modules/unictype/ctype-punct-tests: New file.
27817         * modules/unictype/ctype-space-tests: New file.
27818         * modules/unictype/ctype-upper-tests: New file.
27819         * modules/unictype/ctype-xdigit-tests: New file.
27820         * modules/unictype/decimal-digit-tests: New file.
27821         * modules/unictype/digit-tests: New file.
27822         * modules/unictype/mirror-tests: New file.
27823         * modules/unictype/numeric-tests: New file.
27824         * modules/unictype/property-alphabetic-tests: New file.
27825         * modules/unictype/property-ascii-hex-digit-tests: New file.
27826         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27827         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27828         * modules/unictype/property-bidi-block-separator-tests: New file.
27829         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27830         * modules/unictype/property-bidi-common-separator-tests: New file.
27831         * modules/unictype/property-bidi-control-tests: New file.
27832         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27833         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27834         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27835         * modules/unictype/property-bidi-european-digit-tests: New file.
27836         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27837         * modules/unictype/property-bidi-left-to-right-tests: New file.
27838         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27839         * modules/unictype/property-bidi-other-neutral-tests: New file.
27840         * modules/unictype/property-bidi-pdf-tests: New file.
27841         * modules/unictype/property-bidi-segment-separator-tests: New file.
27842         * modules/unictype/property-bidi-whitespace-tests: New file.
27843         * modules/unictype/property-byname-tests: New file.
27844         * modules/unictype/property-combining-tests: New file.
27845         * modules/unictype/property-composite-tests: New file.
27846         * modules/unictype/property-currency-symbol-tests: New file.
27847         * modules/unictype/property-dash-tests: New file.
27848         * modules/unictype/property-decimal-digit-tests: New file.
27849         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27850         * modules/unictype/property-deprecated-tests: New file.
27851         * modules/unictype/property-diacritic-tests: New file.
27852         * modules/unictype/property-extender-tests: New file.
27853         * modules/unictype/property-format-control-tests: New file.
27854         * modules/unictype/property-grapheme-base-tests: New file.
27855         * modules/unictype/property-grapheme-extend-tests: New file.
27856         * modules/unictype/property-grapheme-link-tests: New file.
27857         * modules/unictype/property-hex-digit-tests: New file.
27858         * modules/unictype/property-hyphen-tests: New file.
27859         * modules/unictype/property-id-continue-tests: New file.
27860         * modules/unictype/property-id-start-tests: New file.
27861         * modules/unictype/property-ideographic-tests: New file.
27862         * modules/unictype/property-ids-binary-operator-tests: New file.
27863         * modules/unictype/property-ids-trinary-operator-tests: New file.
27864         * modules/unictype/property-ignorable-control-tests: New file.
27865         * modules/unictype/property-iso-control-tests: New file.
27866         * modules/unictype/property-join-control-tests: New file.
27867         * modules/unictype/property-left-of-pair-tests: New file.
27868         * modules/unictype/property-line-separator-tests: New file.
27869         * modules/unictype/property-logical-order-exception-tests: New file.
27870         * modules/unictype/property-lowercase-tests: New file.
27871         * modules/unictype/property-math-tests: New file.
27872         * modules/unictype/property-non-break-tests: New file.
27873         * modules/unictype/property-not-a-character-tests: New file.
27874         * modules/unictype/property-numeric-tests: New file.
27875         * modules/unictype/property-other-alphabetic-tests: New file.
27876         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27877         * modules/unictype/property-other-grapheme-extend-tests: New file.
27878         * modules/unictype/property-other-id-continue-tests: New file.
27879         * modules/unictype/property-other-id-start-tests: New file.
27880         * modules/unictype/property-other-lowercase-tests: New file.
27881         * modules/unictype/property-other-math-tests: New file.
27882         * modules/unictype/property-other-uppercase-tests: New file.
27883         * modules/unictype/property-paired-punctuation-tests: New file.
27884         * modules/unictype/property-paragraph-separator-tests: New file.
27885         * modules/unictype/property-pattern-syntax-tests: New file.
27886         * modules/unictype/property-pattern-white-space-tests: New file.
27887         * modules/unictype/property-private-use-tests: New file.
27888         * modules/unictype/property-punctuation-tests: New file.
27889         * modules/unictype/property-quotation-mark-tests: New file.
27890         * modules/unictype/property-radical-tests: New file.
27891         * modules/unictype/property-sentence-terminal-tests: New file.
27892         * modules/unictype/property-soft-dotted-tests: New file.
27893         * modules/unictype/property-space-tests: New file.
27894         * modules/unictype/property-terminal-punctuation-tests: New file.
27895         * modules/unictype/property-test-tests: New file.
27896         * modules/unictype/property-titlecase-tests: New file.
27897         * modules/unictype/property-unassigned-code-value-tests: New file.
27898         * modules/unictype/property-unified-ideograph-tests: New file.
27899         * modules/unictype/property-uppercase-tests: New file.
27900         * modules/unictype/property-variation-selector-tests: New file.
27901         * modules/unictype/property-white-space-tests: New file.
27902         * modules/unictype/property-xid-continue-tests: New file.
27903         * modules/unictype/property-xid-start-tests: New file.
27904         * modules/unictype/property-zero-width-tests: New file.
27905         * modules/unictype/scripts-tests: New file.
27906         * modules/unictype/syntax-c-ident-tests: New file.
27907         * modules/unictype/syntax-c-whitespace-tests: New file.
27908         * modules/unictype/syntax-java-ident-tests: New file.
27909         * modules/unictype/syntax-java-whitespace-tests: New file.
27910         * tests/unictype/test-bidi_byname.c: New file.
27911         * tests/unictype/test-bidi_name.c: New file.
27912         * tests/unictype/test-bidi_of.c: New file.
27913         * tests/unictype/test-bidi_test.c: New file.
27914         * tests/unictype/test-block_list.c: New file.
27915         * tests/unictype/test-block_of.c: New file.
27916         * tests/unictype/test-block_test.c: New file.
27917         * tests/unictype/test-categ_and.c: New file.
27918         * tests/unictype/test-categ_and_not.c: New file.
27919         * tests/unictype/test-categ_byname.c: New file.
27920         * tests/unictype/test-categ_name.c: New file.
27921         * tests/unictype/test-categ_none.c: New file.
27922         * tests/unictype/test-categ_of.c: New file.
27923         * tests/unictype/test-categ_or.c: New file.
27924         * tests/unictype/test-categ_test_withtable.c: New file.
27925         * tests/unictype/test-combining.c: New file.
27926         * tests/unictype/test-decdigit.c: New file.
27927         * tests/unictype/test-digit.c: New file.
27928         * tests/unictype/test-mirror.c: New file.
27929         * tests/unictype/test-numeric.c: New file.
27930         * tests/unictype/test-pr_byname.c: New file.
27931         * tests/unictype/test-pr_test.c: New file.
27932         * tests/unictype/test-predicate-part1.h: New file.
27933         * tests/unictype/test-predicate-part2.h: New file.
27934         * tests/unictype/test-scripts.c: New file.
27935         * tests/unictype/test-sy_c_ident.c: New file.
27936         * tests/unictype/test-sy_java_ident.c: New file.
27937
27938         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27939         for Unicode 5.0.0.
27940         * tests/unictype/test-categ_Cc.c: Likewise.
27941         * tests/unictype/test-categ_Cf.c: Likewise.
27942         * tests/unictype/test-categ_Cn.c: Likewise.
27943         * tests/unictype/test-categ_Co.c: Likewise.
27944         * tests/unictype/test-categ_Cs.c: Likewise.
27945         * tests/unictype/test-categ_L.c: Likewise.
27946         * tests/unictype/test-categ_Ll.c: Likewise.
27947         * tests/unictype/test-categ_Lm.c: Likewise.
27948         * tests/unictype/test-categ_Lo.c: Likewise.
27949         * tests/unictype/test-categ_Lt.c: Likewise.
27950         * tests/unictype/test-categ_Lu.c: Likewise.
27951         * tests/unictype/test-categ_M.c: Likewise.
27952         * tests/unictype/test-categ_Mc.c: Likewise.
27953         * tests/unictype/test-categ_Me.c: Likewise.
27954         * tests/unictype/test-categ_Mn.c: Likewise.
27955         * tests/unictype/test-categ_N.c: Likewise.
27956         * tests/unictype/test-categ_Nd.c: Likewise.
27957         * tests/unictype/test-categ_Nl.c: Likewise.
27958         * tests/unictype/test-categ_No.c: Likewise.
27959         * tests/unictype/test-categ_P.c: Likewise.
27960         * tests/unictype/test-categ_Pc.c: Likewise.
27961         * tests/unictype/test-categ_Pd.c: Likewise.
27962         * tests/unictype/test-categ_Pe.c: Likewise.
27963         * tests/unictype/test-categ_Pf.c: Likewise.
27964         * tests/unictype/test-categ_Pi.c: Likewise.
27965         * tests/unictype/test-categ_Po.c: Likewise.
27966         * tests/unictype/test-categ_Ps.c: Likewise.
27967         * tests/unictype/test-categ_S.c: Likewise.
27968         * tests/unictype/test-categ_Sc.c: Likewise.
27969         * tests/unictype/test-categ_Sk.c: Likewise.
27970         * tests/unictype/test-categ_Sm.c: Likewise.
27971         * tests/unictype/test-categ_So.c: Likewise.
27972         * tests/unictype/test-categ_Z.c: Likewise.
27973         * tests/unictype/test-categ_Zl.c: Likewise.
27974         * tests/unictype/test-categ_Zp.c: Likewise.
27975         * tests/unictype/test-categ_Zs.c: Likewise.
27976         * tests/unictype/test-ctype_alnum.c: Likewise.
27977         * tests/unictype/test-ctype_alpha.c: Likewise.
27978         * tests/unictype/test-ctype_blank.c: Likewise.
27979         * tests/unictype/test-ctype_cntrl.c: Likewise.
27980         * tests/unictype/test-ctype_digit.c: Likewise.
27981         * tests/unictype/test-ctype_graph.c: Likewise.
27982         * tests/unictype/test-ctype_lower.c: Likewise.
27983         * tests/unictype/test-ctype_print.c: Likewise.
27984         * tests/unictype/test-ctype_punct.c: Likewise.
27985         * tests/unictype/test-ctype_space.c: Likewise.
27986         * tests/unictype/test-ctype_upper.c: Likewise.
27987         * tests/unictype/test-ctype_xdigit.c: Likewise.
27988         * tests/unictype/test-decdigit.h: Likewise.
27989         * tests/unictype/test-digit.h: Likewise.
27990         * tests/unictype/test-numeric.h: Likewise.
27991         * tests/unictype/test-pr_alphabetic.c: Likewise.
27992         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27993         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27994         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27995         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27996         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27997         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27998         * tests/unictype/test-pr_bidi_control.c: Likewise.
27999         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28000         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28001         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28002         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28003         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28004         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28005         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28006         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28007         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28008         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28009         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28010         * tests/unictype/test-pr_combining.c: Likewise.
28011         * tests/unictype/test-pr_composite.c: Likewise.
28012         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28013         * tests/unictype/test-pr_dash.c: Likewise.
28014         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28015         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28016         * tests/unictype/test-pr_deprecated.c: Likewise.
28017         * tests/unictype/test-pr_diacritic.c: Likewise.
28018         * tests/unictype/test-pr_extender.c: Likewise.
28019         * tests/unictype/test-pr_format_control.c: Likewise.
28020         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28021         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28022         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28023         * tests/unictype/test-pr_hex_digit.c: Likewise.
28024         * tests/unictype/test-pr_hyphen.c: Likewise.
28025         * tests/unictype/test-pr_id_continue.c: Likewise.
28026         * tests/unictype/test-pr_id_start.c: Likewise.
28027         * tests/unictype/test-pr_ideographic.c: Likewise.
28028         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28029         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28030         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28031         * tests/unictype/test-pr_iso_control.c: Likewise.
28032         * tests/unictype/test-pr_join_control.c: Likewise.
28033         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28034         * tests/unictype/test-pr_line_separator.c: Likewise.
28035         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28036         * tests/unictype/test-pr_lowercase.c: Likewise.
28037         * tests/unictype/test-pr_math.c: Likewise.
28038         * tests/unictype/test-pr_non_break.c: Likewise.
28039         * tests/unictype/test-pr_not_a_character.c: Likewise.
28040         * tests/unictype/test-pr_numeric.c: Likewise.
28041         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28042         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28043         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28044         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28045         * tests/unictype/test-pr_other_id_start.c: Likewise.
28046         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28047         * tests/unictype/test-pr_other_math.c: Likewise.
28048         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28049         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28050         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28051         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28052         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28053         * tests/unictype/test-pr_private_use.c: Likewise.
28054         * tests/unictype/test-pr_punctuation.c: Likewise.
28055         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28056         * tests/unictype/test-pr_radical.c: Likewise.
28057         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28058         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28059         * tests/unictype/test-pr_space.c: Likewise.
28060         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28061         * tests/unictype/test-pr_titlecase.c: Likewise.
28062         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28063         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28064         * tests/unictype/test-pr_uppercase.c: Likewise.
28065         * tests/unictype/test-pr_variation_selector.c: Likewise.
28066         * tests/unictype/test-pr_white_space.c: Likewise.
28067         * tests/unictype/test-pr_xid_continue.c: Likewise.
28068         * tests/unictype/test-pr_xid_start.c: Likewise.
28069         * tests/unictype/test-pr_zero_width.c: Likewise.
28070         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28071         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28072
28073 2007-11-12  Bruno Haible  <bruno@clisp.org>
28074
28075         Unicode character classification functions.
28076         * lib/unictype.h: New file.
28077         * modules/unictype/base: New file.
28078         * modules/unictype/category-L: New file.
28079         * modules/unictype/category-Lu: New file.
28080         * modules/unictype/category-Ll: New file.
28081         * modules/unictype/category-Lt: New file.
28082         * modules/unictype/category-Lm: New file.
28083         * modules/unictype/category-Lo: New file.
28084         * modules/unictype/category-M: New file.
28085         * modules/unictype/category-Mn: New file.
28086         * modules/unictype/category-Mc: New file.
28087         * modules/unictype/category-Me: New file.
28088         * modules/unictype/category-N: New file.
28089         * modules/unictype/category-Nd: New file.
28090         * modules/unictype/category-Nl: New file.
28091         * modules/unictype/category-No: New file.
28092         * modules/unictype/category-P: New file.
28093         * modules/unictype/category-Pc: New file.
28094         * modules/unictype/category-Pd: New file.
28095         * modules/unictype/category-Ps: New file.
28096         * modules/unictype/category-Pe: New file.
28097         * modules/unictype/category-Pi: New file.
28098         * modules/unictype/category-Pf: New file.
28099         * modules/unictype/category-Po: New file.
28100         * modules/unictype/category-S: New file.
28101         * modules/unictype/category-Sm: New file.
28102         * modules/unictype/category-Sc: New file.
28103         * modules/unictype/category-Sk: New file.
28104         * modules/unictype/category-So: New file.
28105         * modules/unictype/category-Z: New file.
28106         * modules/unictype/category-Zs: New file.
28107         * modules/unictype/category-Zl: New file.
28108         * modules/unictype/category-Zp: New file.
28109         * modules/unictype/category-C: New file.
28110         * modules/unictype/category-Cc: New file.
28111         * modules/unictype/category-Cf: New file.
28112         * modules/unictype/category-Cs: New file.
28113         * modules/unictype/category-Co: New file.
28114         * modules/unictype/category-Cn: New file.
28115         * modules/unictype/category-or: New file.
28116         * modules/unictype/category-of: New file.
28117         * modules/unictype/category-test: New file.
28118         * modules/unictype/category-test-withtable: New file.
28119         * modules/unictype/category-byname: New file.
28120         * modules/unictype/category-none: New file.
28121         * modules/unictype/category-and: New file.
28122         * modules/unictype/category-and-not: New file.
28123         * modules/unictype/category-name: New file.
28124         * modules/unictype/combining-class: New file.
28125         * modules/unictype/category-all: New file.
28126         * modules/unictype/bidicategory-all: New file.
28127         * modules/unictype/bidicategory-byname: New file.
28128         * modules/unictype/bidicategory-name: New file.
28129         * modules/unictype/bidicategory-of: New file.
28130         * modules/unictype/bidicategory-test: New file.
28131         * modules/unictype/decimal-digit: New file.
28132         * modules/unictype/digit: New file.
28133         * modules/unictype/numeric: New file.
28134         * modules/unictype/mirror: New file.
28135         * modules/unictype/property-white-space: New file.
28136         * modules/unictype/property-alphabetic: New file.
28137         * modules/unictype/property-other-alphabetic: New file.
28138         * modules/unictype/property-not-a-character: New file.
28139         * modules/unictype/property-default-ignorable-code-point: New file.
28140         * modules/unictype/property-other-default-ignorable-code-point: New
28141         file.
28142         * modules/unictype/property-deprecated: New file.
28143         * modules/unictype/property-logical-order-exception: New file.
28144         * modules/unictype/property-variation-selector: New file.
28145         * modules/unictype/property-private-use: New file.
28146         * modules/unictype/property-unassigned-code-value: New file.
28147         * modules/unictype/property-uppercase: New file.
28148         * modules/unictype/property-other-uppercase: New file.
28149         * modules/unictype/property-lowercase: New file.
28150         * modules/unictype/property-other-lowercase: New file.
28151         * modules/unictype/property-titlecase: New file.
28152         * modules/unictype/property-soft-dotted: New file.
28153         * modules/unictype/property-id-start: New file.
28154         * modules/unictype/property-other-id-start: New file.
28155         * modules/unictype/property-id-continue: New file.
28156         * modules/unictype/property-other-id-continue: New file.
28157         * modules/unictype/property-xid-start: New file.
28158         * modules/unictype/property-xid-continue: New file.
28159         * modules/unictype/property-pattern-white-space: New file.
28160         * modules/unictype/property-pattern-syntax: New file.
28161         * modules/unictype/property-join-control: New file.
28162         * modules/unictype/property-grapheme-base: New file.
28163         * modules/unictype/property-grapheme-extend: New file.
28164         * modules/unictype/property-other-grapheme-extend: New file.
28165         * modules/unictype/property-grapheme-link: New file.
28166         * modules/unictype/property-bidi-control: New file.
28167         * modules/unictype/property-bidi-left-to-right: New file.
28168         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28169         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28170         * modules/unictype/property-bidi-european-digit: New file.
28171         * modules/unictype/property-bidi-eur-num-separator: New file.
28172         * modules/unictype/property-bidi-eur-num-terminator: New file.
28173         * modules/unictype/property-bidi-arabic-digit: New file.
28174         * modules/unictype/property-bidi-common-separator: New file.
28175         * modules/unictype/property-bidi-block-separator: New file.
28176         * modules/unictype/property-bidi-segment-separator: New file.
28177         * modules/unictype/property-bidi-whitespace: New file.
28178         * modules/unictype/property-bidi-non-spacing-mark: New file.
28179         * modules/unictype/property-bidi-boundary-neutral: New file.
28180         * modules/unictype/property-bidi-pdf: New file.
28181         * modules/unictype/property-bidi-embedding-or-override: New file.
28182         * modules/unictype/property-bidi-other-neutral: New file.
28183         * modules/unictype/property-hex-digit: New file.
28184         * modules/unictype/property-ascii-hex-digit: New file.
28185         * modules/unictype/property-ideographic: New file.
28186         * modules/unictype/property-unified-ideograph: New file.
28187         * modules/unictype/property-radical: New file.
28188         * modules/unictype/property-ids-binary-operator: New file.
28189         * modules/unictype/property-ids-trinary-operator: New file.
28190         * modules/unictype/property-zero-width: New file.
28191         * modules/unictype/property-space: New file.
28192         * modules/unictype/property-non-break: New file.
28193         * modules/unictype/property-iso-control: New file.
28194         * modules/unictype/property-format-control: New file.
28195         * modules/unictype/property-dash: New file.
28196         * modules/unictype/property-hyphen: New file.
28197         * modules/unictype/property-punctuation: New file.
28198         * modules/unictype/property-line-separator: New file.
28199         * modules/unictype/property-paragraph-separator: New file.
28200         * modules/unictype/property-quotation-mark: New file.
28201         * modules/unictype/property-sentence-terminal: New file.
28202         * modules/unictype/property-terminal-punctuation: New file.
28203         * modules/unictype/property-currency-symbol: New file.
28204         * modules/unictype/property-math: New file.
28205         * modules/unictype/property-other-math: New file.
28206         * modules/unictype/property-paired-punctuation: New file.
28207         * modules/unictype/property-left-of-pair: New file.
28208         * modules/unictype/property-combining: New file.
28209         * modules/unictype/property-composite: New file.
28210         * modules/unictype/property-decimal-digit: New file.
28211         * modules/unictype/property-numeric: New file.
28212         * modules/unictype/property-diacritic: New file.
28213         * modules/unictype/property-extender: New file.
28214         * modules/unictype/property-ignorable-control: New file.
28215         * modules/unictype/property-test: New file.
28216         * modules/unictype/property-byname: New file.
28217         * modules/unictype/property-all: New file.
28218         * modules/unictype/scripts: New file.
28219         * modules/unictype/scripts-all: New file.
28220         * modules/unictype/block-of: New file.
28221         * modules/unictype/block-test: New file.
28222         * modules/unictype/block-list: New file.
28223         * modules/unictype/block-all: New file.
28224         * modules/unictype/syntax-c-whitespace: New file.
28225         * modules/unictype/syntax-java-whitespace: New file.
28226         * modules/unictype/syntax-c-ident: New file.
28227         * modules/unictype/syntax-java-ident: New file.
28228         * modules/unictype/ctype-alnum: New file.
28229         * modules/unictype/ctype-alpha: New file.
28230         * modules/unictype/ctype-cntrl: New file.
28231         * modules/unictype/ctype-digit: New file.
28232         * modules/unictype/ctype-graph: New file.
28233         * modules/unictype/ctype-lower: New file.
28234         * modules/unictype/ctype-print: New file.
28235         * modules/unictype/ctype-punct: New file.
28236         * modules/unictype/ctype-space: New file.
28237         * modules/unictype/ctype-upper: New file.
28238         * modules/unictype/ctype-xdigit: New file.
28239         * modules/unictype/ctype-blank: New file.
28240         * lib/unictype/bidi_byname.c: New file.
28241         * lib/unictype/bidi_name.c: New file.
28242         * lib/unictype/bidi_of.c: New file.
28243         * lib/unictype/bidi_test.c: New file.
28244         * lib/unictype/bitmap.h: New file.
28245         * lib/unictype/block_test.c: New file.
28246         * lib/unictype/blocks.c: New file.
28247         * lib/unictype/categ_C.c: New file.
28248         * lib/unictype/categ_Cc.c: New file.
28249         * lib/unictype/categ_Cf.c: New file.
28250         * lib/unictype/categ_Cn.c: New file.
28251         * lib/unictype/categ_Co.c: New file.
28252         * lib/unictype/categ_Cs.c: New file.
28253         * lib/unictype/categ_L.c: New file.
28254         * lib/unictype/categ_Ll.c: New file.
28255         * lib/unictype/categ_Lm.c: New file.
28256         * lib/unictype/categ_Lo.c: New file.
28257         * lib/unictype/categ_Lt.c: New file.
28258         * lib/unictype/categ_Lu.c: New file.
28259         * lib/unictype/categ_M.c: New file.
28260         * lib/unictype/categ_Mc.c: New file.
28261         * lib/unictype/categ_Me.c: New file.
28262         * lib/unictype/categ_Mn.c: New file.
28263         * lib/unictype/categ_N.c: New file.
28264         * lib/unictype/categ_Nd.c: New file.
28265         * lib/unictype/categ_Nl.c: New file.
28266         * lib/unictype/categ_No.c: New file.
28267         * lib/unictype/categ_P.c: New file.
28268         * lib/unictype/categ_Pc.c: New file.
28269         * lib/unictype/categ_Pd.c: New file.
28270         * lib/unictype/categ_Pe.c: New file.
28271         * lib/unictype/categ_Pf.c: New file.
28272         * lib/unictype/categ_Pi.c: New file.
28273         * lib/unictype/categ_Po.c: New file.
28274         * lib/unictype/categ_Ps.c: New file.
28275         * lib/unictype/categ_S.c: New file.
28276         * lib/unictype/categ_Sc.c: New file.
28277         * lib/unictype/categ_Sk.c: New file.
28278         * lib/unictype/categ_Sm.c: New file.
28279         * lib/unictype/categ_So.c: New file.
28280         * lib/unictype/categ_Z.c: New file.
28281         * lib/unictype/categ_Zl.c: New file.
28282         * lib/unictype/categ_Zp.c: New file.
28283         * lib/unictype/categ_Zs.c: New file.
28284         * lib/unictype/categ_and.c: New file.
28285         * lib/unictype/categ_and_not.c: New file.
28286         * lib/unictype/categ_byname.c: New file.
28287         * lib/unictype/categ_name.c: New file.
28288         * lib/unictype/categ_none.c: New file.
28289         * lib/unictype/categ_of.c: New file.
28290         * lib/unictype/categ_or.c: New file.
28291         * lib/unictype/categ_test.c: New file.
28292         * lib/unictype/combining.c: New file.
28293         * lib/unictype/ctype_alnum.c: New file.
28294         * lib/unictype/ctype_alpha.c: New file.
28295         * lib/unictype/ctype_blank.c: New file.
28296         * lib/unictype/ctype_cntrl.c: New file.
28297         * lib/unictype/ctype_digit.c: New file.
28298         * lib/unictype/ctype_graph.c: New file.
28299         * lib/unictype/ctype_lower.c: New file.
28300         * lib/unictype/ctype_print.c: New file.
28301         * lib/unictype/ctype_punct.c: New file.
28302         * lib/unictype/ctype_space.c: New file.
28303         * lib/unictype/ctype_upper.c: New file.
28304         * lib/unictype/ctype_xdigit.c: New file.
28305         * lib/unictype/decdigit.c: New file.
28306         * lib/unictype/digit.c: New file.
28307         * lib/unictype/identsyntaxmap.h: New file.
28308         * lib/unictype/mirror.c: New file.
28309         * lib/unictype/numeric.c: New file.
28310         * lib/unictype/pr_alphabetic.c: New file.
28311         * lib/unictype/pr_ascii_hex_digit.c: New file.
28312         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28313         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28314         * lib/unictype/pr_bidi_block_separator.c: New file.
28315         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28316         * lib/unictype/pr_bidi_common_separator.c: New file.
28317         * lib/unictype/pr_bidi_control.c: New file.
28318         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28319         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28320         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28321         * lib/unictype/pr_bidi_european_digit.c: New file.
28322         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28323         * lib/unictype/pr_bidi_left_to_right.c: New file.
28324         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28325         * lib/unictype/pr_bidi_other_neutral.c: New file.
28326         * lib/unictype/pr_bidi_pdf.c: New file.
28327         * lib/unictype/pr_bidi_segment_separator.c: New file.
28328         * lib/unictype/pr_bidi_whitespace.c: New file.
28329         * lib/unictype/pr_byname.c: New file.
28330         * lib/unictype/pr_byname.gperf: New file.
28331         * lib/unictype/pr_combining.c: New file.
28332         * lib/unictype/pr_composite.c: New file.
28333         * lib/unictype/pr_currency_symbol.c: New file.
28334         * lib/unictype/pr_dash.c: New file.
28335         * lib/unictype/pr_decimal_digit.c: New file.
28336         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28337         * lib/unictype/pr_deprecated.c: New file.
28338         * lib/unictype/pr_diacritic.c: New file.
28339         * lib/unictype/pr_extender.c: New file.
28340         * lib/unictype/pr_format_control.c: New file.
28341         * lib/unictype/pr_grapheme_base.c: New file.
28342         * lib/unictype/pr_grapheme_extend.c: New file.
28343         * lib/unictype/pr_grapheme_link.c: New file.
28344         * lib/unictype/pr_hex_digit.c: New file.
28345         * lib/unictype/pr_hyphen.c: New file.
28346         * lib/unictype/pr_id_continue.c: New file.
28347         * lib/unictype/pr_id_start.c: New file.
28348         * lib/unictype/pr_ideographic.c: New file.
28349         * lib/unictype/pr_ids_binary_operator.c: New file.
28350         * lib/unictype/pr_ids_trinary_operator.c: New file.
28351         * lib/unictype/pr_ignorable_control.c: New file.
28352         * lib/unictype/pr_iso_control.c: New file.
28353         * lib/unictype/pr_join_control.c: New file.
28354         * lib/unictype/pr_left_of_pair.c: New file.
28355         * lib/unictype/pr_line_separator.c: New file.
28356         * lib/unictype/pr_logical_order_exception.c: New file.
28357         * lib/unictype/pr_lowercase.c: New file.
28358         * lib/unictype/pr_math.c: New file.
28359         * lib/unictype/pr_non_break.c: New file.
28360         * lib/unictype/pr_not_a_character.c: New file.
28361         * lib/unictype/pr_numeric.c: New file.
28362         * lib/unictype/pr_other_alphabetic.c: New file.
28363         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28364         * lib/unictype/pr_other_grapheme_extend.c: New file.
28365         * lib/unictype/pr_other_id_continue.c: New file.
28366         * lib/unictype/pr_other_id_start.c: New file.
28367         * lib/unictype/pr_other_lowercase.c: New file.
28368         * lib/unictype/pr_other_math.c: New file.
28369         * lib/unictype/pr_other_uppercase.c: New file.
28370         * lib/unictype/pr_paired_punctuation.c: New file.
28371         * lib/unictype/pr_paragraph_separator.c: New file.
28372         * lib/unictype/pr_pattern_syntax.c: New file.
28373         * lib/unictype/pr_pattern_white_space.c: New file.
28374         * lib/unictype/pr_private_use.c: New file.
28375         * lib/unictype/pr_punctuation.c: New file.
28376         * lib/unictype/pr_quotation_mark.c: New file.
28377         * lib/unictype/pr_radical.c: New file.
28378         * lib/unictype/pr_sentence_terminal.c: New file.
28379         * lib/unictype/pr_soft_dotted.c: New file.
28380         * lib/unictype/pr_space.c: New file.
28381         * lib/unictype/pr_terminal_punctuation.c: New file.
28382         * lib/unictype/pr_test.c: New file.
28383         * lib/unictype/pr_titlecase.c: New file.
28384         * lib/unictype/pr_unassigned_code_value.c: New file.
28385         * lib/unictype/pr_unified_ideograph.c: New file.
28386         * lib/unictype/pr_uppercase.c: New file.
28387         * lib/unictype/pr_variation_selector.c: New file.
28388         * lib/unictype/pr_white_space.c: New file.
28389         * lib/unictype/pr_xid_continue.c: New file.
28390         * lib/unictype/pr_xid_start.c: New file.
28391         * lib/unictype/pr_zero_width.c: New file.
28392         * lib/unictype/scripts.c: New file.
28393         * lib/unictype/sy_c_ident.c: New file.
28394         * lib/unictype/sy_c_whitespace.c: New file.
28395         * lib/unictype/sy_java_ident.c: New file.
28396         * lib/unictype/sy_java_whitespace.c: New file.
28397
28398         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28399         Unicode 5.0.0.
28400         * lib/unictype/blocks.h: Likewise.
28401         * lib/unictype/categ_C.h: Likewise.
28402         * lib/unictype/categ_Cc.h: Likewise.
28403         * lib/unictype/categ_Cf.h: Likewise.
28404         * lib/unictype/categ_Cn.h: Likewise.
28405         * lib/unictype/categ_Co.h: Likewise.
28406         * lib/unictype/categ_Cs.h: Likewise.
28407         * lib/unictype/categ_L.h: Likewise.
28408         * lib/unictype/categ_Ll.h: Likewise.
28409         * lib/unictype/categ_Lm.h: Likewise.
28410         * lib/unictype/categ_Lo.h: Likewise.
28411         * lib/unictype/categ_Lt.h: Likewise.
28412         * lib/unictype/categ_Lu.h: Likewise.
28413         * lib/unictype/categ_M.h: Likewise.
28414         * lib/unictype/categ_Mc.h: Likewise.
28415         * lib/unictype/categ_Me.h: Likewise.
28416         * lib/unictype/categ_Mn.h: Likewise.
28417         * lib/unictype/categ_N.h: Likewise.
28418         * lib/unictype/categ_Nd.h: Likewise.
28419         * lib/unictype/categ_Nl.h: Likewise.
28420         * lib/unictype/categ_No.h: Likewise.
28421         * lib/unictype/categ_P.h: Likewise.
28422         * lib/unictype/categ_Pc.h: Likewise.
28423         * lib/unictype/categ_Pd.h: Likewise.
28424         * lib/unictype/categ_Pe.h: Likewise.
28425         * lib/unictype/categ_Pf.h: Likewise.
28426         * lib/unictype/categ_Pi.h: Likewise.
28427         * lib/unictype/categ_Po.h: Likewise.
28428         * lib/unictype/categ_Ps.h: Likewise.
28429         * lib/unictype/categ_S.h: Likewise.
28430         * lib/unictype/categ_Sc.h: Likewise.
28431         * lib/unictype/categ_Sk.h: Likewise.
28432         * lib/unictype/categ_Sm.h: Likewise.
28433         * lib/unictype/categ_So.h: Likewise.
28434         * lib/unictype/categ_Z.h: Likewise.
28435         * lib/unictype/categ_Zl.h: Likewise.
28436         * lib/unictype/categ_Zp.h: Likewise.
28437         * lib/unictype/categ_Zs.h: Likewise.
28438         * lib/unictype/categ_of.h: Likewise.
28439         * lib/unictype/combining.h: Likewise.
28440         * lib/unictype/ctype_alnum.h: Likewise.
28441         * lib/unictype/ctype_alpha.h: Likewise.
28442         * lib/unictype/ctype_blank.h: Likewise.
28443         * lib/unictype/ctype_cntrl.h: Likewise.
28444         * lib/unictype/ctype_digit.h: Likewise.
28445         * lib/unictype/ctype_graph.h: Likewise.
28446         * lib/unictype/ctype_lower.h: Likewise.
28447         * lib/unictype/ctype_print.h: Likewise.
28448         * lib/unictype/ctype_punct.h: Likewise.
28449         * lib/unictype/ctype_space.h: Likewise.
28450         * lib/unictype/ctype_upper.h: Likewise.
28451         * lib/unictype/ctype_xdigit.h: Likewise.
28452         * lib/unictype/decdigit.h: Likewise.
28453         * lib/unictype/digit.h: Likewise.
28454         * lib/unictype/mirror.h: Likewise.
28455         * lib/unictype/numeric.h: Likewise.
28456         * lib/unictype/pr_alphabetic.h: Likewise.
28457         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28458         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28459         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28460         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28461         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28462         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28463         * lib/unictype/pr_bidi_control.h: Likewise.
28464         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28465         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28466         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28467         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28468         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28469         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28470         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28471         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28472         * lib/unictype/pr_bidi_pdf.h: Likewise.
28473         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28474         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28475         * lib/unictype/pr_combining.h: Likewise.
28476         * lib/unictype/pr_composite.h: Likewise.
28477         * lib/unictype/pr_currency_symbol.h: Likewise.
28478         * lib/unictype/pr_dash.h: Likewise.
28479         * lib/unictype/pr_decimal_digit.h: Likewise.
28480         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28481         * lib/unictype/pr_deprecated.h: Likewise.
28482         * lib/unictype/pr_diacritic.h: Likewise.
28483         * lib/unictype/pr_extender.h: Likewise.
28484         * lib/unictype/pr_format_control.h: Likewise.
28485         * lib/unictype/pr_grapheme_base.h: Likewise.
28486         * lib/unictype/pr_grapheme_extend.h: Likewise.
28487         * lib/unictype/pr_grapheme_link.h: Likewise.
28488         * lib/unictype/pr_hex_digit.h: Likewise.
28489         * lib/unictype/pr_hyphen.h: Likewise.
28490         * lib/unictype/pr_id_continue.h: Likewise.
28491         * lib/unictype/pr_id_start.h: Likewise.
28492         * lib/unictype/pr_ideographic.h: Likewise.
28493         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28494         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28495         * lib/unictype/pr_ignorable_control.h: Likewise.
28496         * lib/unictype/pr_iso_control.h: Likewise.
28497         * lib/unictype/pr_join_control.h: Likewise.
28498         * lib/unictype/pr_left_of_pair.h: Likewise.
28499         * lib/unictype/pr_line_separator.h: Likewise.
28500         * lib/unictype/pr_logical_order_exception.h: Likewise.
28501         * lib/unictype/pr_lowercase.h: Likewise.
28502         * lib/unictype/pr_math.h: Likewise.
28503         * lib/unictype/pr_non_break.h: Likewise.
28504         * lib/unictype/pr_not_a_character.h: Likewise.
28505         * lib/unictype/pr_numeric.h: Likewise.
28506         * lib/unictype/pr_other_alphabetic.h: Likewise.
28507         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28508         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28509         * lib/unictype/pr_other_id_continue.h: Likewise.
28510         * lib/unictype/pr_other_id_start.h: Likewise.
28511         * lib/unictype/pr_other_lowercase.h: Likewise.
28512         * lib/unictype/pr_other_math.h: Likewise.
28513         * lib/unictype/pr_other_uppercase.h: Likewise.
28514         * lib/unictype/pr_paired_punctuation.h: Likewise.
28515         * lib/unictype/pr_paragraph_separator.h: Likewise.
28516         * lib/unictype/pr_pattern_syntax.h: Likewise.
28517         * lib/unictype/pr_pattern_white_space.h: Likewise.
28518         * lib/unictype/pr_private_use.h: Likewise.
28519         * lib/unictype/pr_punctuation.h: Likewise.
28520         * lib/unictype/pr_quotation_mark.h: Likewise.
28521         * lib/unictype/pr_radical.h: Likewise.
28522         * lib/unictype/pr_sentence_terminal.h: Likewise.
28523         * lib/unictype/pr_soft_dotted.h: Likewise.
28524         * lib/unictype/pr_space.h: Likewise.
28525         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28526         * lib/unictype/pr_titlecase.h: Likewise.
28527         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28528         * lib/unictype/pr_unified_ideograph.h: Likewise.
28529         * lib/unictype/pr_uppercase.h: Likewise.
28530         * lib/unictype/pr_variation_selector.h: Likewise.
28531         * lib/unictype/pr_white_space.h: Likewise.
28532         * lib/unictype/pr_xid_continue.h: Likewise.
28533         * lib/unictype/pr_xid_start.h: Likewise.
28534         * lib/unictype/pr_zero_width.h: Likewise.
28535         * lib/unictype/scripts.h: Likewise.
28536         * lib/unictype/scripts_byname.gperf: Likewise.
28537         * lib/unictype/sy_c_ident.h: Likewise.
28538         * lib/unictype/sy_c_whitespace.h: Likewise.
28539         * lib/unictype/sy_java_ident.h: Likewise.
28540         * lib/unictype/sy_java_whitespace.h: Likewise.
28541
28542         * lib/unictype/Makefile: New file.
28543         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28544         glibc.
28545         * lib/unictype/3level.h: New file, copied from glibc.
28546         * lib/unictype/3levelbit.h: New file.
28547
28548 2007-11-11  Bruno Haible  <bruno@clisp.org>
28549
28550         * modules/gperf: New file.
28551         * modules/iconv_open (Depends-on): Add it.
28552         (Makefile.am): Remove the GPERF definition.
28553
28554 2007-11-11  Bruno Haible  <bruno@clisp.org>
28555
28556         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28557         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28558
28559 2007-11-11  Bruno Haible  <bruno@clisp.org>
28560
28561         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28562         (usage): Remove function.
28563
28564 2007-11-11  Bruno Haible  <bruno@clisp.org>
28565
28566         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28567         gl_FUNC_CEILF_LIBS.
28568         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28569         gl_FUNC_CEIL_LIBS.
28570         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28571         gl_FUNC_CEILL_LIBS.
28572         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28573         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28574         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28575
28576 2007-11-11  Bruno Haible  <bruno@clisp.org>
28577
28578         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28579         roundf were declared but do not exist on functions.
28580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28581         roundl were declared but do not exist on functions.
28582         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28583         HAVE_FLOORL_AND_CEILL, respectively.
28584         Needed for Sun C on Solaris 10.
28585
28586 2007-11-11  Bruno Haible  <bruno@clisp.org>
28587
28588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28589         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28590         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28591         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28592         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28593         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28594         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28595         HAVE_DECL_ROUNDF.
28596         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28597         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28599         of HAVE_DECL_ROUND*.
28600         * modules/math (Makefile.am): Update.
28601
28602 2007-11-10  Bruno Haible  <bruno@clisp.org>
28603
28604         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28605         ptrdiff_t as m4/intl.m4.
28606
28607 2007-11-10  Jim Meyering  <meyering@redhat.com>
28608
28609         Avoid link failure for the argmatch test.
28610         * tests/test-argmatch.c (usage): Define function to avoid a link
28611         failure: argmatch_die requires a usage function.
28612
28613 2007-11-09  Bruno Haible  <bruno@clisp.org>
28614
28615         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28616         * doc/functions/vsnprintf.texi: Likewise.
28617         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28618         with a size argument < 2.
28619
28620 2007-11-09  Bruno Haible  <bruno@clisp.org>
28621
28622         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28623         buffer. Fixes an inefficiency introduced on 2007-11-03.
28624
28625 2007-11-09  Bruno Haible  <bruno@clisp.org>
28626
28627         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28628         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28629
28630 2007-11-08  Jim Meyering  <meyering@redhat.com>
28631
28632         Change cache variable name prefix "jm_" to "gl_" everywhere.
28633         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28634         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28635         * m4/uptime.m4: s/gl_/jm_/
28636
28637 2007-11-07  Bruno Haible  <bruno@clisp.org>
28638
28639         Update to GNU gettext 0.17.
28640         * m4/intl.m4: Update to GNU gettext 0.17.
28641         * m4/po.m4: Likewise.
28642         * modules/gettext (Files): Remove m4/ulonglong.m4.
28643         (configure.ac): Require gettext infrastructure from version 0.17.
28644
28645 2007-11-06  Bruno Haible  <bruno@clisp.org>
28646
28647         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28648         symbolic values are not defined in a public header.
28649         * lib/freadable.c (freadable) [QNX]: Likewise.
28650         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28651         * lib/freading.c (freading) [QNX]: Likewise.
28652         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28653         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28654         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28655         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28656         Reported by Alain Magloire.
28657
28658         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28659
28660 2007-11-05  Bruno Haible  <bruno@clisp.org>
28661
28662         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28663         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28664         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28665         Reported by Eric Blake.
28666
28667 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28668             Bruno Haible  <bruno@clisp.org>
28669
28670         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28671         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28672         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28673         (malloc): Undefine also before including <stdlib.h>.
28674         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28675         Needed on OSF/1 4.0.
28676
28677 2007-11-05  Jim Meyering  <meyering@redhat.com>
28678
28679         git-version-gen: sync from coreutils.
28680         * build-aux/git-version-gen: Add comments.
28681         Change the first '-' to '.' in the snapshot version string,
28682         e.g., 6.9-377-08144 -> 6.9.377-08144
28683         Remove first parameter.
28684         Don't declare a version "-dirty" merely because a time
28685         stamp has changed.
28686
28687 2007-11-04  Bruno Haible  <bruno@clisp.org>
28688
28689         * lib/lock.h: Protect all macro definitions containing an 'if'
28690         statement through a "do { ... } while (0)".
28691         * lib/tls.h: Likewise.
28692
28693 2007-11-04  Bruno Haible  <bruno@clisp.org>
28694
28695         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28696
28697 2007-11-04  Bruno Haible  <bruno@clisp.org>
28698
28699         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28700         * modules/fprintf-posix (Depends-on): Add nocrash.
28701         * modules/snprintf-posix (Depends-on): Likewise.
28702         * modules/sprintf-posix (Depends-on): Likewise.
28703         * modules/vasnprintf-posix (Depends-on): Likewise.
28704         * modules/vasprintf-posix (Depends-on): Likewise.
28705         * modules/vfprintf-posix (Depends-on): Likewise.
28706         * modules/vsnprintf-posix (Depends-on): Likewise.
28707         * modules/vsprintf-posix (Depends-on): Likewise.
28708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28709         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28710         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28711         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28712         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28713         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28714         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28715
28716 2007-11-04  Bruno Haible  <bruno@clisp.org>
28717
28718         * modules/nocrash: New file.
28719         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28720         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28721
28722 2007-11-04  Bruno Haible  <bruno@clisp.org>
28723
28724         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28725         precision handling.
28726         * tests/test-vasprintf-posix.c (test_function): Likewise.
28727         * tests/test-snprintf-posix.h (test_function): Likewise.
28728         * tests/test-sprintf-posix.h (test_function): Likewise.
28729
28730         Fix *printf behaviour for large precisions on mingw and BeOS.
28731         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28732         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28734         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28735         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28736         gl_PRINTF_PRECISION and test its result. Invoke
28737         gl_PREREQ_VASNPRINTF_PRECISION.
28738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28744         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28745         * doc/functions/fprintf.texi: Update.
28746         * doc/functions/printf.texi: Update.
28747         * doc/functions/snprintf.texi: Update.
28748         * doc/functions/sprintf.texi: Update.
28749         * doc/functions/vfprintf.texi: Update.
28750         * doc/functions/vprintf.texi: Update.
28751         * doc/functions/vsnprintf.texi: Update.
28752         * doc/functions/vsprintf.texi: Update.
28753
28754 2007-11-04  Bruno Haible  <bruno@clisp.org>
28755
28756         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28757
28758 2007-11-04  Bruno Haible  <bruno@clisp.org>
28759
28760         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28761         Reported by Sylvain Beucler <beuc@gnu.org>.
28762
28763 2007-11-03  Bruno Haible  <bruno@clisp.org>
28764
28765         * tests/test-fprintf-posix2.sh: New file.
28766         * tests/test-fprintf-posix2.c: New file.
28767         * modules/fprintf-posix-tests (Files): Add them.
28768         (TESTS): Add test-fprintf-posix2.sh.
28769         (configure.ac): Check for getrlimit and setrlimit.
28770         (check_PROGRAMS): Add test-fprintf-posix2.
28771
28772         * tests/test-printf-posix2.sh: New file.
28773         * tests/test-printf-posix2.c: New file.
28774         * modules/printf-posix-tests (Files): Add them.
28775         (TESTS): Add test-printf-posix2.sh.
28776         (configure.ac): Check for getrlimit and setrlimit.
28777         (check_PROGRAMS): Add test-printf-posix2.
28778
28779         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28780         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28781         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28782         (decode_double): New function, copied from decode_long_double.
28783         (scale10_round_decimal_decoded): New function, extracted from
28784         scale10_round_decimal_long_double.
28785         (scale10_round_decimal_long_double): Use it.
28786         (scale10_round_decimal_double): New function.
28787         (floorlog10): New function.
28788         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28790         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28791         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28792         gl_PRINTF_ENOMEM and test its result. Invoke
28793         gl_PREREQ_VASNPRINTF_ENOMEM.
28794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28795         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28796         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28797         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28798         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28800         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28801         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28802         * modules/snprintf-posix (Depends-on): Likewise.
28803         * modules/sprintf-posix (Depends-on): Likewise.
28804         * modules/vasnprintf-posix (Depends-on): Likewise.
28805         * modules/vasprintf-posix (Depends-on): Likewise.
28806         * modules/vfprintf-posix (Depends-on): Likewise.
28807         * modules/vsnprintf-posix (Depends-on): Likewise.
28808         * modules/vsprintf-posix (Depends-on): Likewise.
28809         * doc/functions/fprintf.texi: Update.
28810         * doc/functions/printf.texi: Update.
28811         * doc/functions/snprintf.texi: Update.
28812         * doc/functions/sprintf.texi: Update.
28813         * doc/functions/vfprintf.texi: Update.
28814         * doc/functions/vprintf.texi: Update.
28815         * doc/functions/vsnprintf.texi: Update.
28816         * doc/functions/vsprintf.texi: Update.
28817
28818 2007-11-03  Bruno Haible  <bruno@clisp.org>
28819
28820         * modules/frexp-nolibm-tests: New file.
28821
28822         * modules/frexp-nolibm: New file.
28823         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28824
28825 2007-11-03  Bruno Haible  <bruno@clisp.org>
28826
28827         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28828         value is C99 compliant.
28829         Needed for OSF/1 5.1.
28830
28831 2007-11-03  Bruno Haible  <bruno@clisp.org>
28832
28833         Fix out-of-memory handling of vasnprintf.
28834         * lib/printf-parse.c: Include <errno.h>.
28835         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28836         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28837         is already set.
28838
28839 2007-11-02  Eric Blake  <ebb9@byu.net>
28840
28841         Fix tests on cygwin.
28842         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28843
28844 2007-11-01  Bruno Haible  <bruno@clisp.org>
28845
28846         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28847         warning.
28848         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28849         needed for POSIX compatibility.
28850
28851 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28852
28853         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28854         for compatibility with GNU.
28855
28856 2007-11-01  Bruno Haible  <bruno@clisp.org>
28857
28858         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28859         (putenv): Renamed from rpl_putenv. Change argument type from
28860         'const char *' to 'char *'.
28861         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28862         of defining putenv in config.h, just set REPLACE_PUTENV.
28863         * modules/putenv (Depends-on): Add stdlib.
28864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28865         (Include): Use <stdlib.h>.
28866         * lib/stdlib.in.h (putenv): New declaration.
28867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28868         REPLACE_PUTENV.
28869         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28870         REPLACE_PUTENV.
28871         Needed for MacOS X 10.5.0.
28872         Reported by Peter O'Gorman <peter@pogma.com>.
28873
28874 2007-11-01  Jim Meyering  <meyering@redhat.com>
28875
28876         Treat an empty date string exactly like "0".
28877         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28878         if the remaining date string (to be parsed) is empty, use "0".
28879         Reported by Mischa Molhoek and discussed in this thread:
28880         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28881
28882 2007-10-31  Bruno Haible  <bruno@clisp.org>
28883
28884         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28885         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28886         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28887         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28888         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28889         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28890
28891 2007-10-31  Bruno Haible  <bruno@clisp.org>
28892
28893         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28894         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28895         (AC_TYPE_LONG_LONG_INT): Use it.
28896         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28897         it as well.
28898         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28899         to m4/longlong.m4.
28900         * modules/stdint (Files): Remove m4/ulonglong.m4.
28901         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28902         m4/ulonglong.m4.
28903         * modules/strtoumax (Files): Likewise.
28904
28905 2007-10-30  Bruno Haible  <bruno@clisp.org>
28906
28907         * modules/xvasprintf-posix: New file.
28908         Suggested by Eric Blake.
28909
28910 2007-10-30  Bruno Haible  <bruno@clisp.org>
28911
28912         * modules/xprintf-posix-tests: New file.
28913         * tests/test-xprintf-posix.sh: New file.
28914         * tests/test-xprintf-posix.c: New file.
28915         * tests/test-xfprintf-posix.c: New file.
28916
28917         * modules/xprintf-posix: New file.
28918
28919 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28920
28921         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28922         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28923         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28924
28925 2007-10-29  Bruno Haible  <bruno@clisp.org>
28926
28927         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28928         contain the special marker '_cv_'.
28929         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28930         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28931         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28932         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28933         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28934         Reported by Ralf Wildenhues.
28935
28936 2007-10-29  Bruno Haible  <bruno@clisp.org>
28937
28938         * gnulib-tool (func_import): When --lgpl is not specified, set
28939         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28940         GPLv3.
28941         Reported by Simon Josefsson.
28942
28943 2007-10-28  Bruno Haible  <bruno@clisp.org>
28944
28945         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28946         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28947         HAVE_DECL_ISFINITE.
28948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28949         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28950         HAVE_DECL_ISFINITE.
28951
28952 2007-10-28  Bruno Haible  <bruno@clisp.org>
28953
28954         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28955         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28956
28957 2007-10-28  Bruno Haible  <bruno@clisp.org>
28958
28959         Fix link errors with Sun C 5.0 on Solaris 10.
28960         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28961         function is declared but not present in the compiler's libm.
28962         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28963         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28964         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28965         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28966         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28967         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28968         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28970         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28971         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28972         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28973         HAVE_DECL_FLOORL.
28974
28975 2007-10-28  Bruno Haible  <bruno@clisp.org>
28976
28977         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28978         gl_FUNC_FLOORL. Cache the result.
28979         (gl_FUNC_FLOORL): Use it.
28980         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28981         gl_FUNC_CEILL. Cache the result.
28982         (gl_FUNC_CEILL): Use it.
28983
28984         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28985         gl_FUNC_FLOOR. Cache the result.
28986         (gl_FUNC_FLOOR): Use it.
28987         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28988         gl_FUNC_CEIL. Cache the result.
28989         (gl_FUNC_CEIL): Use it.
28990
28991         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28992         gl_FUNC_FLOORF. Cache the result.
28993         (gl_FUNC_FLOORF): Use it.
28994         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28995         gl_FUNC_CEILF. Cache the result.
28996         (gl_FUNC_CEILF): Use it.
28997
28998 2007-10-28  Bruno Haible  <bruno@clisp.org>
28999
29000         * gnulib-tool: Allow specifying the LGPL version number through
29001         --lgpl=2 or --lgpl=3.
29002         (func_usage): Document --lgpl with argument.
29003         Handle --lgpl=... arguments.
29004         (func_import): Recognize also gl_LGPL calls with an argument. When
29005         --lgpl=2 is used and the module's license is just LGPL, report an
29006         error. Set sed_transform_lib_file according to the lgpl variable. In
29007         the generated files, use --lgpl or gl_LGPL invocations with argument,
29008         if necessary.
29009         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29010         an LGPv2+ license.
29011         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29012         gl_LGPL macro.
29013
29014 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29015             Bruno Haible  <bruno@clisp.org>
29016
29017         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29018         (u16_uctomb_aux): Likewise.
29019         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29020         !HAVE_INLINE.
29021         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29022
29023 2007-10-28  Bruno Haible  <bruno@clisp.org>
29024
29025         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29026         Invoke AM_GETTEXT_OPTION if it exists.
29027         * modules/vasprintf: Likewise.
29028         * modules/verror: Likewise.
29029         * modules/xprintf: Likewise.
29030         * modules/xvasprintf: Likewise.
29031
29032 2007-10-27  Ben Pfaff  <blp@gnu.org>
29033
29034         * lib/math.in.h: Define isfinite macro and prototypes for
29035         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29036         implementations.
29037         * m4/math_h.m4: New substitutions for isfinite module.
29038         * lib/isfinite.c: New file.
29039         * m4/isfinite.m4: New file.
29040         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29041         * modules/isfinite: New file.
29042         * modules/isfinite-tests: New file.
29043         * tests/tests-isfinite.c: New file.
29044         * doc/functions/isfinite.texi: Mention isfinite module.
29045         * MODULES.html.sh: Mention new module.
29046
29047 2007-10-27  Ben Pfaff  <blp@gnu.org>
29048
29049         Ralf Wildenhues reported that Tru64 4.0D declares the round
29050         functions but does not have definitions.
29051         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29052         cannot be found in any library, set the output variable to
29053         "missing" instead of "".
29054         * m4/round.m4: Also use our substitute if we cannot find round in
29055         any library, even if it is declared.
29056         * m4/roundf.m4: Likewise for roundf.
29057         * m4/roundl.m4: Likewise for roundl.
29058         * lib/math.in.h: Undefine roundf, round, roundl before defining
29059         their replacements, to allow for hypothetical systems where these
29060         may be defined as macros but not available in libraries.
29061
29062 2007-10-27  Bruno Haible  <bruno@clisp.org>
29063
29064         * doc/gnulib.texi: Invoke @firstparagraphindent.
29065         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29066         changes in gnulib.
29067         (Source changes): New section.
29068
29069 2007-10-26  Bruno Haible  <bruno@clisp.org>
29070
29071         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29072         borrowed from autoconf.
29073
29074 2007-10-26  Bruno Haible  <bruno@clisp.org>
29075
29076         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29077         strerror returned the empty string. Needed on HP-UX 11.00.
29078
29079 2007-10-24  Micah Cowan  <micah@cowan.name>
29080
29081         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29082         * build-aux/bootstrap: Remove support for now-unnecessary option,
29083         --cvs-user, and envvars CVS_USER, CVS_RSH.
29084
29085 2007-10-24  Jim Meyering  <meyering@redhat.com>
29086
29087         Avoid diagnostics from sha1sum when there is no cached checksum.
29088         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29089         if the po.s1 file hasn't been created yet.
29090
29091         * build-aux/bootstrap: Sync from coreutils:
29092         2007-10-24  Jim Meyering  <meyering@redhat.com>
29093         Get gnulib from the git repository, not from an obsolete cvs one.
29094         * build-aux/bootstrap: Suggestion from Micah Cowan.
29095         2007-10-04  Jim Meyering  <jim@meyering.net>
29096         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29097         (update_po_files): Work also when there are no .po files in po/.
29098
29099 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29100
29101         * README: Append ".git" to git and cg examples.
29102         Problem reported by Benoit Sigoure.
29103
29104 2007-10-23  Micah Cowan  <micah@cowan.name>
29105
29106         * users.txt: Add wget.
29107
29108 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29109
29110         Fix linking of some unistdio tests on FreeBSD.
29111         * modules/unistdio/u16-vsnprintf-tests
29112         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29113         * modules/unistdio/u16-vsprintf-tests
29114         (test_u16_vsnprintf1_LDADD): Likewise.
29115         * modules/unistdio/u32-vsnprintf-tests
29116         (test_u32_vsnprintf1_LDADD): Likewise.
29117         * modules/unistdio/u32-vsprintf-tests
29118         (test_u32_vsprintf1_LDADD): Likewise.
29119         * modules/unistdio/u8-vsnprintf-tests
29120         (test_u8_vsnprintf1_LDADD): Likewise.
29121         * modules/unistdio/u8-vsprintf-tests
29122         (test_u8_vsprintf1_LDADD): Likewise.
29123         * modules/unistdio/ulc-vsnprintf-tests
29124         (test_ulc_vsnprintf1_LDADD): Likewise.
29125         * modules/unistdio/ulc-vsprintf-tests
29126         (test_ulc_vsprintf1_LDADD): Likewise.
29127
29128         Fix linking of some uniconv tests on FreeBSD.
29129         * modules/uniconv/u16-conv-from-enc-tests
29130         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29131         * modules/uniconv/u16-conv-to-enc-tests
29132         (test_u16_conv_to_enc_LDADD): Likewise.
29133         * modules/uniconv/u16-strconv-from-enc-tests
29134         (test_u16_strconv_from_enc_LDADD): Likewise.
29135         * modules/uniconv/u16-strconv-to-enc-tests
29136         (test_u16_strconv_to_enc_LDADD): Likewise.
29137         * modules/uniconv/u32-conv-from-enc-tests
29138         (test_u32_conv_from_enc_LDADD): Likewise.
29139         * modules/uniconv/u32-conv-to-enc-tests
29140         (test_u32_conv_to_enc_LDADD): Likewise.
29141         * modules/uniconv/u32-strconv-from-enc-tests
29142         (test_u32_strconv_from_enc_LDADD): Likewise.
29143         * modules/uniconv/u32-strconv-to-enc-tests
29144         (test_u32_strconv_to_enc_LDADD): Likewise.
29145         * modules/uniconv/u8-conv-from-enc-tests
29146         (test_u8_conv_from_enc_LDADD): Likewise.
29147         * modules/uniconv/u8-conv-to-enc-tests
29148         (test_u8_conv_to_enc_LDADD): Likewise.
29149         * modules/uniconv/u8-strconv-from-enc-tests
29150         (test_u8_strconv_from_enc_LDADD): Likewise.
29151         * modules/uniconv/u8-strconv-to-enc-tests
29152         (test_u8_strconv_to_enc_LDADD): Likewise.
29153
29154 2007-10-22  Bruno Haible  <bruno@clisp.org>
29155
29156         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29157         size.
29158
29159 2007-10-22  Eric Blake  <ebb9@byu.net>
29160
29161         Tweak x*printf documentation.
29162         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29163         variable name and comments.
29164         Suggested by Bruno Haible.
29165
29166 2007-10-22  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/acl.c (copy_acl): Fix file name in comment.
29169
29170 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29171
29172         Fix Tru64 problem with stdbool.h.
29173         * lib/stdbool.in.h (false, true):
29174         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29175         Don't declare as an enum in this situation; it runs afoul of Tru64.
29176         Problem reported by Steven M. Schweda in
29177         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29178
29179 2007-10-22  Eric Blake  <ebb9@byu.net>
29180
29181         Also wrap vf?printf.
29182         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29183         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29184         (xvprintf, xvfprintf): New functions.
29185
29186 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29187
29188         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29189         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29190
29191         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29192         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29193
29194 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29195
29196         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29197         by Bruno Haible.
29198
29199 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29200
29201         * lib/getloadavg.c
29202         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29203         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29204
29205         * tests/test-i-ring.c: Work for C89.
29206
29207 2007-10-22  Bruno Haible  <bruno@clisp.org>
29208
29209         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29210         -1u, in preprocessor expression, so that we don't test for the bug
29211         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29213
29214 2007-10-22  Eric Blake  <ebb9@byu.net>
29215
29216         * tests/test-yesno.sh: Silence stderr during test.
29217
29218 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29219
29220         * modules/crypto/gc-camellia: New file.
29221
29222         * m4/gc-camellia.m4: New file.
29223
29224         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29225
29226         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29227
29228 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29229
29230         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29231         --help to stdout.  Reported by sms@antinode.org (Steven
29232         M. Schweda).
29233
29234 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29235
29236         * users.txt: Fix link to libksba.
29237
29238 2007-10-21  Ben Pfaff  <blp@gnu.org>
29239
29240         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29241         round.c roundf implementation that depends on floorf and ceilf to
29242         be tested unconditionally.
29243
29244 2007-10-21  Ben Pfaff  <blp@gnu.org>
29245
29246         * m4/check-libm-func.m4: Removed.
29247         * m4/check-math-lib.m4: New file.
29248         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29249         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29250         definition and lack of AC_LIBOBJ([roundf]).
29251         * m4/roundl.m4: Ditto, and similarly for roundl.
29252         * modules/round: Reference new m4 file.
29253         * modules/roundf: Ditto.
29254         * modules/roundl: Ditto.
29255         * tests/test-round2.c (main): Use ROUND instead of round.
29256         Bug report from Bruno Haible.
29257
29258 2007-10-21  Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29261         context.
29262
29263 2007-10-21  Bruno Haible  <bruno@clisp.org>
29264
29265         * tests/test-wcwidth.c (main): Allow negative result for some control
29266         characters.
29267
29268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29269         Needed on OSF/1 5.1.
29270
29271 2007-10-21  Bruno Haible  <bruno@clisp.org>
29272
29273         * tests/test-floorf1.c: Include isnanf.h.
29274         (main): Use isnanf() instead of isnan().
29275         * tests/test-ceilf1.c: Include isnanf.h.
29276         (main): Use isnanf() instead of isnan().
29277         * tests/test-truncf1.c: Include isnanf.h.
29278         (main): Use isnanf() instead of isnan().
29279         * tests/test-roundf1.c: Include isnanf.h.
29280         (main): Use isnanf() instead of isnan().
29281
29282 2007-10-21  Eric Blake  <ebb9@byu.net>
29283
29284         * users.txt: Update URL for m4.
29285
29286 2007-10-21  Bruno Haible  <bruno@clisp.org>
29287
29288         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29289
29290 2007-10-21  Bruno Haible  <bruno@clisp.org>
29291
29292         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29293         Git's management files if the CVS files are not present.
29294
29295 2007-10-20  Bruno Haible  <bruno@clisp.org>
29296
29297         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29298         gcc-3.4.x.
29299
29300 2007-10-20  Ben Pfaff  <blp@gnu.org>
29301
29302         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29303         implementations.
29304         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29305         * lib/round.c: New file.
29306         * lib/roundf.c: New file.
29307         * lib/roundl.c: New file.
29308         * m4/round.m4: New file.
29309         * m4/roundf.m4: New file.
29310         * m4/roundl.m4: New file.
29311         * m4/check-libm-func-m4: New file.
29312         * modules/math: Replace round, roundf, roundl related @VARS@ in
29313         math.in.h.
29314         * modules/round: New file.
29315         * modules/round-tests: New file.
29316         * modules/roundf: New file.
29317         * modules/roundf-tests: New file.
29318         * modules/roundl: New file.
29319         * modules/roundl-tests: New file.
29320         * tests/test-round1.c: New file.
29321         * tests/test-round2.c: New file.
29322         * tests/test-roundf1.c: New file.
29323         * tests/test-roundf2.c: New file.
29324         * tests/test-roundl.c: New file.
29325         * doc/functions/round.texi: Mention round module.
29326         * doc/functions/roundf.texi: Mention roundf module.
29327         * doc/functions/roundl.texi: Mention roundl module.
29328         * MODULES.html.sh: Mention new modules.
29329         Thanks to Bruno Haible for suggestions.
29330
29331 2007-10-20  Jim Meyering  <meyering@redhat.com>
29332
29333         * lib/xprintf.c: Include <config.h> unconditionally.
29334
29335         Change xprintf's license to GPL.
29336         * modules/xprintf (License): s/LGPL/GPL/, since this module
29337         depends on modules (exit and exitfail) which are GPL.
29338         Suggestion from Bruno Haible.
29339
29340         xprintf fixes.
29341         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29342         Use a clearer diagnostic.
29343         Patch from Bruno Haible.
29344
29345 2007-10-20  Bruno Haible  <bruno@clisp.org>
29346
29347         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29348         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29350
29351 2007-10-20  Bruno Haible  <bruno@clisp.org>
29352
29353         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29354         precision in the comparison result > x - 1 or similar.
29355         * tests/test-ceilf2.c (correct_result_p): Likewise.
29356         * tests/test-truncf2.c (correct_result_p): Likewise.
29357         * tests/test-trunc2.c (correct_result_p): Likewise.
29358         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29359
29360 2007-10-20  Bruno Haible  <bruno@clisp.org>
29361
29362         * modules/ceil: New file.
29363         * m4/ceil.m4: New file.
29364         * doc/functions/ceil.texi: Mention the 'ceil' module.
29365
29366 2007-10-20  Bruno Haible  <bruno@clisp.org>
29367
29368         * modules/floor: New file.
29369         * m4/floor.m4: New file.
29370         * doc/functions/floor.texi: Mention the 'floor' module.
29371
29372 2007-10-20  Bruno Haible  <bruno@clisp.org>
29373
29374         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29375         of %a.
29376         * modules/floorf-tests (Depends-on): Likewise.
29377         * modules/truncf-tests (Depends-on): Likewise.
29378         * modules/trunc-tests (Depends-on): Likewise.
29379         Reported by Ben Pfaff.
29380
29381 2007-10-19  Jim Meyering  <meyering@redhat.com>
29382
29383         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29384         Don't bother testing specific errno values.  Just test ferror.
29385
29386         New module: xprintf
29387         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29388
29389 2007-10-19  Bruno Haible  <bruno@clisp.org>
29390
29391         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29392         syntax.
29393         * modules/javaexec (Makefile.am): Likewise.
29394         * modules/relocatable-prog (Makefile.am): Likewise.
29395         Suggested by Jim Meyering.
29396
29397 2007-10-18  Bruno Haible  <bruno@clisp.org>
29398
29399         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29400         Reported by Jim Meyering.
29401
29402 2007-10-18  Eric Blake  <ebb9@byu.net>
29403
29404         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29405
29406 2007-10-18  Bruno Haible  <bruno@clisp.org>
29407
29408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29409         the format string into writable memory. Needed in Fortify conditions.
29410
29411 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29412             Bruno Haible  <bruno@clisp.org>
29413
29414         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29415         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29416         * modules/trim (Depends-on): Add mbchar.
29417         (configure.ac): Add gl_FUNC_MBRTOWC.
29418         (Makefile.am): Augment lib_SOURCES.
29419
29420 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29421
29422         Modify glob.c to use fstatat and dirfd, to simplify it.
29423         Suggested by Eric Blake.
29424         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29425         Don't include <stdbool.h>; not used.
29426         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29427         (link_exists_p): Simplify implementation, since we can now assume
29428         dirfd and fstatat.
29429         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29430
29431 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29432
29433         * gnulib-tool (func_get_dependencies): Fix sed script to
29434         match only tests.
29435
29436 2007-10-17  Bruno Haible  <bruno@clisp.org>
29437
29438         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29439         allow locale names without encoding suffix.
29440         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29442
29443 2007-10-16  Bruno Haible  <bruno@clisp.org>
29444
29445         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29446         * lib/getgroups.c (getgroups): Likewise.
29447         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29448
29449 2007-10-16  Bruno Haible  <bruno@clisp.org>
29450
29451         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29452         * modules/malloc-posix (License): Likewise.
29453         * modules/realloc-posix (License): Likewise.
29454         * modules/calloc-posix (License): Likewise.
29455         * modules/intprops (License): Change from GPL to LGPL, with
29456         Paul Eggert's approval.
29457
29458 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29459
29460         Merge glibc changes into lib/glob.c.
29461
29462         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29463         2007-10-15 04:59:03 UTC.  Here are the changes:
29464
29465         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29466
29467         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29468
29469         * lib/glob.c: Add some branch prediction throughout.
29470
29471         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29472
29473         [BZ #5103]
29474         * lib/glob.c (glob): Recognize patterns starting \/.
29475
29476         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29477
29478         [BZ #3996]
29479         * lib/glob.c (attribute_hidden): Define if not defined.
29480         (glob): Unescape dirname, filename or username when needed and not
29481         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29482         is NULL.  Handle unescaped [ in pattern without closing ].
29483         Don't pass GLOB_CHECK down to recursive glob for directories.
29484         (__glob_pattern_type): New function.
29485         (__glob_pattern_p): Implement using __glob_pattern_type.
29486         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29487         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29488         Remove unreachable code.
29489
29490         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29491
29492         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29493         explain why there are no leaks.
29494
29495         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29496
29497         [BZ #3253]
29498         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29499         time, rather allocate increasingly bigger arrays of pointers, if
29500         possible with alloca, if too large with malloc.
29501
29502 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29503
29504         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29505         Problem reported by H.Merijn Brand in
29506         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29507         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29508         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29509
29510 2007-10-15  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29513         with explicit rpl_ prefix.
29514         * lib/fopen.c (fopen): Likewise.
29515         * lib/freopen.c (freopen): Likewise.
29516         * lib/iconv.c (iconv): Likewise.
29517         * lib/iconv_close.c (iconv_close): Likewise.
29518
29519 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29520
29521         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29522
29523 2007-10-15  Bruno Haible  <bruno@clisp.org>
29524
29525         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29526         <stddef.h> instead of <stdlib.h> since we only need NULL.
29527         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29528
29529 2007-10-15  Bruno Haible  <bruno@clisp.org>
29530
29531         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29532         Replace paragraph talking about LIBOBJS.
29533         Reported by Colin Watson <cjwatson@debian.org>.
29534
29535 2007-10-15  Bruno Haible  <bruno@clisp.org>
29536
29537         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29538         <stdlib.h> before using NULL.
29539
29540 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29541
29542         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29543         Reported by Albert Chin <china@thewrittenword.com>.
29544
29545 2007-10-14  Bruno Haible  <bruno@clisp.org>
29546
29547         * modules/iconv_open-utf-tests: New file.
29548         * tests/test-iconv-utf.c: New file.
29549
29550         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29551         * modules/iconv_open-utf: New file.
29552         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29553         (iconv, iconv_close): New declarations.
29554         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29555         be defined.
29556         (iconv_open): Add special handling of conversion between UTF-8 and
29557         UTF-{16,32}{BE,LE}.
29558         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29559         * lib/iconv_close.c: New file.
29560         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29561         gl_FUNC_ICONV_OPEN.
29562         (gl_FUNC_ICONV_OPEN): Use it.
29563         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29564         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29565         and REPLACE_ICONV_UTF.
29566         * modules/iconv_open (Depends-on): Add c-strcase.
29567         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29568         ICONV_CONST.
29569         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29570
29571 2007-10-13  Albert Chin  <china@thewrittenword.com>
29572             Bruno Haible  <bruno@clisp.org>
29573
29574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29575         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29576
29577 2007-10-13  Bruno Haible  <bruno@clisp.org>
29578
29579         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29580         defined, use the ISO C99 inline semantics.
29581         * lib/argp.h (ARGP_EI): Likewise.
29582
29583 2007-10-13  Bruno Haible  <bruno@clisp.org>
29584
29585         Handle 'inline' change in gcc 4.3.0.
29586         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29587         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29588         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29589         argp_fmtstream_point): Disable 'extern' declaration if the function
29590         definition is going to be provided inline.
29591         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29592         semantics, not the ISO C99 inline semantics.
29593         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29594         'extern' declaration if the function definition is going to be provided
29595         inline.
29596         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29597         the GNU C inline semantics, not the ISO C99 inline semantics. With
29598         GCC 4.2, avoid a warning.
29599
29600 2007-10-13  Bruno Haible  <bruno@clisp.org>
29601
29602         * lib/freading.h (freading): Enable the use of __freading for
29603         glibc >= 2.7.
29604         * lib/freading.c (freading): Likewise.
29605
29606 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29607
29608         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29609         "warning: C99 inline functions are not supported; using GNU89".
29610
29611 2007-10-12  Bruno Haible  <bruno@clisp.org>
29612
29613         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29614         of 2.
29615         * tests/test-ceilf2.c: New file.
29616         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29617
29618         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29619         * modules/ceilf-tests: Update.
29620
29621 2007-10-12  Bruno Haible  <bruno@clisp.org>
29622
29623         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29624         of 2.
29625         * tests/test-floorf2.c: New file.
29626         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29627
29628         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29629         * modules/floorf-tests: Update.
29630
29631 2007-10-12  Bruno Haible  <bruno@clisp.org>
29632
29633         * tests/test-trunc2.c: New file.
29634         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29635
29636         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29637         * modules/trunc-tests: Update.
29638
29639 2007-10-12  Bruno Haible  <bruno@clisp.org>
29640
29641         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29642         of 2.
29643         * tests/test-truncf2.c: New file.
29644         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29645
29646         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29647         * modules/truncf-tests: Update.
29648
29649 2007-10-11  Eric Blake  <ebb9@byu.net>
29650
29651         Don't claim strerror is broken on Interix.
29652         * doc/functions/strerror.texi (strerror): Known broken systems are
29653         now Solaris 8, and not Interix.
29654         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29655         Interix on cross-compile.
29656         Reported by Martin Koeppe in
29657         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29658
29659 2007-10-11  Bruno Haible  <bruno@clisp.org>
29660
29661         * modules/i-ring-tests: New file.
29662         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29663         instead of assert.
29664
29665 2007-10-11  Bruno Haible  <bruno@clisp.org>
29666
29667         * modules/filenamecat-tests: New file.
29668         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29669         * lib/filenamecat.c: Remove test code.
29670
29671 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29672
29673         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29674
29675         * lib/strerror.c: Include <string.h> always, to test interface,
29676         and to remove the need for the dummy.
29677         Include intprops.h to compute width instead of doing it ourselves
29678         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29679         (strerror): Define it to return NULL if there's no system strerror.
29680         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29681         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29682         ancient pre-strerror Unix systems well any more.  Saying "unknown
29683         system error" is enough.
29684         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29685         simpler strerror.c implementation.
29686         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29687         Simplify the tests to reflect the simpler strerror implementation.
29688         * modules/strerror (Depends-on): Add intprops.
29689
29690 2007-10-09  Eric Blake  <ebb9@byu.net>
29691
29692         Silence test-fpending.
29693         * modules/fpending-tests (Files): Add wrapper script.
29694         * tests/test-fpending.sh: New file.
29695
29696 2007-10-09  Bruno Haible  <bruno@clisp.org>
29697
29698         * MODULES.html.sh (func_module): Don't create a hyperlink for
29699         function names like 'printf_frexp'.
29700         (Misc): Add crc, memxor.
29701         (Characteristics of floating types): New section.
29702         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29703         isnanf-nolibm, signbit, trunc, truncf, truncl.
29704         (Enhancements for ISO C 99 functions): New subsection Input/output.
29705         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29706         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29707         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29708         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29709         (Enhancements for POSIX:2001 functions): Add chdir-long.
29710         (File system functions): Add areadlink, chdir-safer, read-file.
29711         Remove cycle-check.
29712         (File system as inode set): New section.
29713         (Date and time): Add gethrxtime.
29714         (Multithreading): Add openmp.
29715         (Internationalization functions): Add localename.
29716         (Unicode string functions): Add unistr/u*-mbsnlen.
29717         (Support for maintaining and releasing projects): Add git-version-gen.
29718         (Lone files): Remove directories.
29719
29720 2007-10-08  Ben Pfaff  <blp@gnu.org>
29721
29722         * lib/xmalloca.h: Fix typo in comment.
29723
29724 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29725
29726         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29727         when avoiding problems with integer overflow.  Use a portable test
29728         instead.
29729
29730 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29731
29732         * modules/dummy (License): Change to LGPLv2+.
29733         * modules/float (License): Likewise
29734         * modules/realloc (License): Likewise
29735         * modules/stdlib (License): Likewise
29736
29737 2007-10-07  Bruno Haible  <bruno@clisp.org>
29738
29739         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29740         * floor.c (TWO_MANT_DIG): Likewise.
29741         * ceil.c (TWO_MANT_DIG): Likewise.
29742         Reported by Ben Pfaff.
29743
29744 2007-10-07  Bruno Haible  <bruno@clisp.org>
29745
29746         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29747         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29748         * lib/frexp.c (FUNC): Likewise.
29749         * lib/printf-frexp.h (printf_frexp): Likewise.
29750         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29751         * lib/printf-frexp.c (FUNC): Likewise.
29752         Suggested by Jim Meyering.
29753
29754 2007-10-07  Jim Meyering  <meyering@redhat.com>
29755
29756         Make xnanosleep's integer overflow test more robust.
29757         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29758         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29759
29760 2007-10-07  Bruno Haible  <bruno@clisp.org>
29761
29762         * NEWS: Mention the license change.
29763
29764         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29765         abbreviations in the modules files.
29766
29767         Change copyright notice from GPLv2+ to GPLv3+.
29768         * README: Change copyright notice.
29769         * MODULES.html.sh: Likewise.
29770         * build-aux/bootstrap.conf: Likewise.
29771         * build-aux/config.libpath: Likewise.
29772         * build-aux/csharpcomp.sh.in: Likewise.
29773         * build-aux/csharpexec.sh.in: Likewise.
29774         * build-aux/install-reloc: Likewise.
29775         * build-aux/javacomp.sh.in: Likewise.
29776         * build-aux/javaexec.sh.in: Likewise.
29777         * build-aux/ldd.sh.in: Likewise.
29778         * build-aux/reloc-ldflags: Likewise.
29779         * build-aux/relocatable.sh.in: Likewise.
29780         * build-aux/x-to-1.in: Likewise.
29781         * check-module: Likewise.
29782         * config/srclistvars.sh: Likewise.
29783         * gnulib-tool: Likewise.
29784         * lib/acl-internal.h: Likewise.
29785         * lib/acl.c: Likewise.
29786         * lib/acl.h: Likewise.
29787         * lib/acl_entries.c: Likewise.
29788         * lib/areadlink-with-size.c: Likewise.
29789         * lib/areadlink.c: Likewise.
29790         * lib/areadlink.h: Likewise.
29791         * lib/argmatch.c: Likewise.
29792         * lib/argmatch.h: Likewise.
29793         * lib/argp-ba.c: Likewise.
29794         * lib/argp-eexst.c: Likewise.
29795         * lib/argp-fmtstream.c: Likewise.
29796         * lib/argp-fmtstream.h: Likewise.
29797         * lib/argp-fs-xinl.c: Likewise.
29798         * lib/argp-help.c: Likewise.
29799         * lib/argp-namefrob.h: Likewise.
29800         * lib/argp-parse.c: Likewise.
29801         * lib/argp-pin.c: Likewise.
29802         * lib/argp-pv.c: Likewise.
29803         * lib/argp-pvh.c: Likewise.
29804         * lib/argp-xinl.c: Likewise.
29805         * lib/argp.h: Likewise.
29806         * lib/at-func.c: Likewise.
29807         * lib/atanl.c: Likewise.
29808         * lib/backupfile.c: Likewise.
29809         * lib/backupfile.h: Likewise.
29810         * lib/basename.c: Likewise.
29811         * lib/binary-io.h: Likewise.
29812         * lib/byteswap.in.h: Likewise.
29813         * lib/c-stack.c: Likewise.
29814         * lib/c-stack.h: Likewise.
29815         * lib/c-strcasestr.c: Likewise.
29816         * lib/c-strcasestr.h: Likewise.
29817         * lib/c-strstr.c: Likewise.
29818         * lib/c-strstr.h: Likewise.
29819         * lib/c-strtod.c: Likewise.
29820         * lib/calloc.c: Likewise.
29821         * lib/canon-host.c: Likewise.
29822         * lib/canon-host.h: Likewise.
29823         * lib/canonicalize-lgpl.c: Likewise.
29824         * lib/canonicalize.c: Likewise.
29825         * lib/canonicalize.h: Likewise.
29826         * lib/ceil.c: Likewise.
29827         * lib/ceilf.c: Likewise.
29828         * lib/ceill.c: Likewise.
29829         * lib/chdir-long.c: Likewise.
29830         * lib/chdir-long.h: Likewise.
29831         * lib/chdir-safer.c: Likewise.
29832         * lib/chdir-safer.h: Likewise.
29833         * lib/chown.c: Likewise.
29834         * lib/classpath.c: Likewise.
29835         * lib/classpath.h: Likewise.
29836         * lib/clean-temp.c: Likewise.
29837         * lib/clean-temp.h: Likewise.
29838         * lib/cloexec.c: Likewise.
29839         * lib/close-stream.c: Likewise.
29840         * lib/closein.c: Likewise.
29841         * lib/closein.h: Likewise.
29842         * lib/closeout.c: Likewise.
29843         * lib/closeout.h: Likewise.
29844         * lib/concat-filename.c: Likewise.
29845         * lib/copy-file.c: Likewise.
29846         * lib/copy-file.h: Likewise.
29847         * lib/count-one-bits.h: Likewise.
29848         * lib/crc.c: Likewise.
29849         * lib/crc.h: Likewise.
29850         * lib/creat-safer.c: Likewise.
29851         * lib/csharpcomp.c: Likewise.
29852         * lib/csharpcomp.h: Likewise.
29853         * lib/csharpexec.c: Likewise.
29854         * lib/csharpexec.h: Likewise.
29855         * lib/cycle-check.c: Likewise.
29856         * lib/cycle-check.h: Likewise.
29857         * lib/diacrit.c: Likewise.
29858         * lib/diacrit.h: Likewise.
29859         * lib/diffseq.h: Likewise.
29860         * lib/dirchownmod.c: Likewise.
29861         * lib/dirent.in.h: Likewise.
29862         * lib/dirfd.c: Likewise.
29863         * lib/dirfd.h: Likewise.
29864         * lib/dirname.c: Likewise.
29865         * lib/dirname.h: Likewise.
29866         * lib/dummy.c: Likewise.
29867         * lib/dup-safer.c: Likewise.
29868         * lib/dup2.c: Likewise.
29869         * lib/eealloc.h: Likewise.
29870         * lib/error.c: Likewise.
29871         * lib/error.h: Likewise.
29872         * lib/euidaccess.c: Likewise.
29873         * lib/exclude.c: Likewise.
29874         * lib/exclude.h: Likewise.
29875         * lib/execute.c: Likewise.
29876         * lib/execute.h: Likewise.
29877         * lib/exitfail.c: Likewise.
29878         * lib/exitfail.h: Likewise.
29879         * lib/expl.c: Likewise.
29880         * lib/fatal-signal.c: Likewise.
29881         * lib/fatal-signal.h: Likewise.
29882         * lib/fbufmode.c: Likewise.
29883         * lib/fbufmode.h: Likewise.
29884         * lib/fchdir.c: Likewise.
29885         * lib/fchmodat.c: Likewise.
29886         * lib/fchownat.c: Likewise.
29887         * lib/fcntl--.h: Likewise.
29888         * lib/fcntl-safer.h: Likewise.
29889         * lib/fcntl.in.h: Likewise.
29890         * lib/fd-safer.c: Likewise.
29891         * lib/fflush.c: Likewise.
29892         * lib/file-has-acl.c: Likewise.
29893         * lib/file-set.c: Likewise.
29894         * lib/file-type.c: Likewise.
29895         * lib/file-type.h: Likewise.
29896         * lib/fileblocks.c: Likewise.
29897         * lib/filemode.c: Likewise.
29898         * lib/filemode.h: Likewise.
29899         * lib/filename.h: Likewise.
29900         * lib/filenamecat.c: Likewise.
29901         * lib/filenamecat.h: Likewise.
29902         * lib/findprog.c: Likewise.
29903         * lib/findprog.h: Likewise.
29904         * lib/float.in.h: Likewise.
29905         * lib/floor.c: Likewise.
29906         * lib/floorf.c: Likewise.
29907         * lib/floorl.c: Likewise.
29908         * lib/fopen-safer.c: Likewise.
29909         * lib/fopen.c: Likewise.
29910         * lib/fpending.c: Likewise.
29911         * lib/fpending.h: Likewise.
29912         * lib/fprintf.c: Likewise.
29913         * lib/fprintftime.h: Likewise.
29914         * lib/fpucw.h: Likewise.
29915         * lib/fpurge.c: Likewise.
29916         * lib/fpurge.h: Likewise.
29917         * lib/freadable.c: Likewise.
29918         * lib/freadable.h: Likewise.
29919         * lib/freadahead.c: Likewise.
29920         * lib/freadahead.h: Likewise.
29921         * lib/freading.c: Likewise.
29922         * lib/freading.h: Likewise.
29923         * lib/free.c: Likewise.
29924         * lib/freopen.c: Likewise.
29925         * lib/frexp.c: Likewise.
29926         * lib/frexpl.c: Likewise.
29927         * lib/fseek.c: Likewise.
29928         * lib/fseterr.c: Likewise.
29929         * lib/fseterr.h: Likewise.
29930         * lib/fstatat.c: Likewise.
29931         * lib/fstrcmp.c: Likewise.
29932         * lib/fstrcmp.h: Likewise.
29933         * lib/fsusage.c: Likewise.
29934         * lib/fsusage.h: Likewise.
29935         * lib/ftell.c: Likewise.
29936         * lib/ftello.c: Likewise.
29937         * lib/fts-cycle.c: Likewise.
29938         * lib/fts.c: Likewise.
29939         * lib/fts_.h: Likewise.
29940         * lib/full-read.c: Likewise.
29941         * lib/full-read.h: Likewise.
29942         * lib/full-write.c: Likewise.
29943         * lib/full-write.h: Likewise.
29944         * lib/fwritable.c: Likewise.
29945         * lib/fwritable.h: Likewise.
29946         * lib/fwriteerror.c: Likewise.
29947         * lib/fwriteerror.h: Likewise.
29948         * lib/fwriting.c: Likewise.
29949         * lib/fwriting.h: Likewise.
29950         * lib/gcd.c: Likewise.
29951         * lib/gcd.h: Likewise.
29952         * lib/getcwd.c: Likewise.
29953         * lib/getdate.h: Likewise.
29954         * lib/getdate.y: Likewise.
29955         * lib/getdomainname.c: Likewise.
29956         * lib/getdomainname.h: Likewise.
29957         * lib/getgroups.c: Likewise.
29958         * lib/gethostname.c: Likewise.
29959         * lib/gethrxtime.c: Likewise.
29960         * lib/gethrxtime.h: Likewise.
29961         * lib/getloadavg.c: Likewise.
29962         * lib/getndelim2.c: Likewise.
29963         * lib/getndelim2.h: Likewise.
29964         * lib/getnline.c: Likewise.
29965         * lib/getnline.h: Likewise.
29966         * lib/getopt.c: Likewise.
29967         * lib/getopt.in.h: Likewise.
29968         * lib/getopt1.c: Likewise.
29969         * lib/getopt_int.h: Likewise.
29970         * lib/getpagesize.h: Likewise.
29971         * lib/getsubopt.c: Likewise.
29972         * lib/gettime.c: Likewise.
29973         * lib/getugroups.c: Likewise.
29974         * lib/getugroups.h: Likewise.
29975         * lib/getusershell.c: Likewise.
29976         * lib/gl_anyavltree_list1.h: Likewise.
29977         * lib/gl_anyavltree_list2.h: Likewise.
29978         * lib/gl_anyhash_list1.h: Likewise.
29979         * lib/gl_anyhash_list2.h: Likewise.
29980         * lib/gl_anylinked_list1.h: Likewise.
29981         * lib/gl_anylinked_list2.h: Likewise.
29982         * lib/gl_anyrbtree_list1.h: Likewise.
29983         * lib/gl_anyrbtree_list2.h: Likewise.
29984         * lib/gl_anytree_list1.h: Likewise.
29985         * lib/gl_anytree_list2.h: Likewise.
29986         * lib/gl_anytree_oset.h: Likewise.
29987         * lib/gl_anytreehash_list1.h: Likewise.
29988         * lib/gl_anytreehash_list2.h: Likewise.
29989         * lib/gl_array_list.c: Likewise.
29990         * lib/gl_array_list.h: Likewise.
29991         * lib/gl_array_oset.c: Likewise.
29992         * lib/gl_array_oset.h: Likewise.
29993         * lib/gl_avltree_list.c: Likewise.
29994         * lib/gl_avltree_list.h: Likewise.
29995         * lib/gl_avltree_oset.c: Likewise.
29996         * lib/gl_avltree_oset.h: Likewise.
29997         * lib/gl_avltreehash_list.c: Likewise.
29998         * lib/gl_avltreehash_list.h: Likewise.
29999         * lib/gl_carray_list.c: Likewise.
30000         * lib/gl_carray_list.h: Likewise.
30001         * lib/gl_linked_list.c: Likewise.
30002         * lib/gl_linked_list.h: Likewise.
30003         * lib/gl_linkedhash_list.c: Likewise.
30004         * lib/gl_linkedhash_list.h: Likewise.
30005         * lib/gl_list.c: Likewise.
30006         * lib/gl_list.h: Likewise.
30007         * lib/gl_oset.c: Likewise.
30008         * lib/gl_oset.h: Likewise.
30009         * lib/gl_rbtree_list.c: Likewise.
30010         * lib/gl_rbtree_list.h: Likewise.
30011         * lib/gl_rbtree_oset.c: Likewise.
30012         * lib/gl_rbtree_oset.h: Likewise.
30013         * lib/gl_rbtreehash_list.c: Likewise.
30014         * lib/gl_rbtreehash_list.h: Likewise.
30015         * lib/gl_sublist.c: Likewise.
30016         * lib/gl_sublist.h: Likewise.
30017         * lib/group-member.c: Likewise.
30018         * lib/group-member.h: Likewise.
30019         * lib/hard-locale.c: Likewise.
30020         * lib/hard-locale.h: Likewise.
30021         * lib/hash-pjw.c: Likewise.
30022         * lib/hash-pjw.h: Likewise.
30023         * lib/hash-triple.c: Likewise.
30024         * lib/hash.c: Likewise.
30025         * lib/hash.h: Likewise.
30026         * lib/human.c: Likewise.
30027         * lib/human.h: Likewise.
30028         * lib/i-ring.c: Likewise.
30029         * lib/i-ring.h: Likewise.
30030         * lib/idcache.c: Likewise.
30031         * lib/imaxabs.c: Likewise.
30032         * lib/imaxdiv.c: Likewise.
30033         * lib/inet_pton.c: Likewise.
30034         * lib/inet_pton.h: Likewise.
30035         * lib/intprops.h: Likewise.
30036         * lib/inttostr.c: Likewise.
30037         * lib/inttostr.h: Likewise.
30038         * lib/inttypes.in.h: Likewise.
30039         * lib/isapipe.c: Likewise.
30040         * lib/isdir.c: Likewise.
30041         * lib/isnan.c: Likewise.
30042         * lib/isnan.h: Likewise.
30043         * lib/isnanf.c: Likewise.
30044         * lib/isnanf.h: Likewise.
30045         * lib/isnanl-nolibm.h: Likewise.
30046         * lib/isnanl.c: Likewise.
30047         * lib/isnanl.h: Likewise.
30048         * lib/javacomp.c: Likewise.
30049         * lib/javacomp.h: Likewise.
30050         * lib/javaexec.c: Likewise.
30051         * lib/javaexec.h: Likewise.
30052         * lib/javaversion.c: Likewise.
30053         * lib/javaversion.h: Likewise.
30054         * lib/javaversion.java: Likewise.
30055         * lib/lbrkprop.h: Likewise.
30056         * lib/lchmod.h: Likewise.
30057         * lib/lchown.c: Likewise.
30058         * lib/ldexpl.c: Likewise.
30059         * lib/linebreak.c: Likewise.
30060         * lib/linebreak.h: Likewise.
30061         * lib/linebuffer.c: Likewise.
30062         * lib/linebuffer.h: Likewise.
30063         * lib/locale.in.h: Likewise.
30064         * lib/logl.c: Likewise.
30065         * lib/long-options.c: Likewise.
30066         * lib/long-options.h: Likewise.
30067         * lib/lstat.c: Likewise.
30068         * lib/lstat.h: Likewise.
30069         * lib/math.in.h: Likewise.
30070         * lib/mbchar.c: Likewise.
30071         * lib/mbchar.h: Likewise.
30072         * lib/mbfile.h: Likewise.
30073         * lib/mbiter.h: Likewise.
30074         * lib/mbscasecmp.c: Likewise.
30075         * lib/mbscasestr.c: Likewise.
30076         * lib/mbschr.c: Likewise.
30077         * lib/mbscspn.c: Likewise.
30078         * lib/mbslen.c: Likewise.
30079         * lib/mbsncasecmp.c: Likewise.
30080         * lib/mbsnlen.c: Likewise.
30081         * lib/mbspbrk.c: Likewise.
30082         * lib/mbspcasecmp.c: Likewise.
30083         * lib/mbsrchr.c: Likewise.
30084         * lib/mbssep.c: Likewise.
30085         * lib/mbsspn.c: Likewise.
30086         * lib/mbsstr.c: Likewise.
30087         * lib/mbstok_r.c: Likewise.
30088         * lib/mbswidth.c: Likewise.
30089         * lib/mbswidth.h: Likewise.
30090         * lib/mbuiter.h: Likewise.
30091         * lib/memcasecmp.c: Likewise.
30092         * lib/memcasecmp.h: Likewise.
30093         * lib/memchr.c: Likewise.
30094         * lib/memcmp.c: Likewise.
30095         * lib/memcoll.c: Likewise.
30096         * lib/memcoll.h: Likewise.
30097         * lib/memcpy.c: Likewise.
30098         * lib/memrchr.c: Likewise.
30099         * lib/mkancesdirs.c: Likewise.
30100         * lib/mkdir-p.c: Likewise.
30101         * lib/mkdir-p.h: Likewise.
30102         * lib/mkdir.c: Likewise.
30103         * lib/mkdirat.c: Likewise.
30104         * lib/mkdtemp.c: Likewise.
30105         * lib/mkstemp-safer.c: Likewise.
30106         * lib/mkstemp.c: Likewise.
30107         * lib/modechange.c: Likewise.
30108         * lib/modechange.h: Likewise.
30109         * lib/mountlist.c: Likewise.
30110         * lib/mountlist.h: Likewise.
30111         * lib/mpsort.c: Likewise.
30112         * lib/nanosleep.c: Likewise.
30113         * lib/obstack.c: Likewise.
30114         * lib/obstack.h: Likewise.
30115         * lib/open-safer.c: Likewise.
30116         * lib/open.c: Likewise.
30117         * lib/openat-die.c: Likewise.
30118         * lib/openat-priv.h: Likewise.
30119         * lib/openat-proc.c: Likewise.
30120         * lib/openat.c: Likewise.
30121         * lib/openat.h: Likewise.
30122         * lib/pagealign_alloc.c: Likewise.
30123         * lib/pagealign_alloc.h: Likewise.
30124         * lib/physmem.c: Likewise.
30125         * lib/physmem.h: Likewise.
30126         * lib/pipe-safer.c: Likewise.
30127         * lib/pipe.c: Likewise.
30128         * lib/pipe.h: Likewise.
30129         * lib/posixtm.c: Likewise.
30130         * lib/posixtm.h: Likewise.
30131         * lib/posixver.c: Likewise.
30132         * lib/printf-frexp.c: Likewise.
30133         * lib/printf-frexp.h: Likewise.
30134         * lib/printf-frexpl.c: Likewise.
30135         * lib/printf-frexpl.h: Likewise.
30136         * lib/printf.c: Likewise.
30137         * lib/progname.c: Likewise.
30138         * lib/progname.h: Likewise.
30139         * lib/progreloc.c: Likewise.
30140         * lib/putenv.c: Likewise.
30141         * lib/quote.c: Likewise.
30142         * lib/quote.h: Likewise.
30143         * lib/quotearg.c: Likewise.
30144         * lib/quotearg.h: Likewise.
30145         * lib/raise.c: Likewise.
30146         * lib/readline.c: Likewise.
30147         * lib/readline.h: Likewise.
30148         * lib/readlink.c: Likewise.
30149         * lib/readtokens.c: Likewise.
30150         * lib/readtokens.h: Likewise.
30151         * lib/readtokens0.c: Likewise.
30152         * lib/readtokens0.h: Likewise.
30153         * lib/readutmp.c: Likewise.
30154         * lib/readutmp.h: Likewise.
30155         * lib/realloc.c: Likewise.
30156         * lib/relocwrapper.c: Likewise.
30157         * lib/rename-dest-slash.c: Likewise.
30158         * lib/rename.c: Likewise.
30159         * lib/rmdir.c: Likewise.
30160         * lib/rpmatch.c: Likewise.
30161         * lib/safe-read.c: Likewise.
30162         * lib/safe-read.h: Likewise.
30163         * lib/safe-write.c: Likewise.
30164         * lib/safe-write.h: Likewise.
30165         * lib/same-inode.h: Likewise.
30166         * lib/same.c: Likewise.
30167         * lib/same.h: Likewise.
30168         * lib/save-cwd.c: Likewise.
30169         * lib/save-cwd.h: Likewise.
30170         * lib/savedir.c: Likewise.
30171         * lib/savedir.h: Likewise.
30172         * lib/savewd.c: Likewise.
30173         * lib/savewd.h: Likewise.
30174         * lib/search.in.h: Likewise.
30175         * lib/setenv.c: Likewise.
30176         * lib/setenv.h: Likewise.
30177         * lib/settime.c: Likewise.
30178         * lib/sh-quote.c: Likewise.
30179         * lib/sh-quote.h: Likewise.
30180         * lib/sig2str.c: Likewise.
30181         * lib/sig2str.h: Likewise.
30182         * lib/signal.in.h: Likewise.
30183         * lib/signbitd.c: Likewise.
30184         * lib/signbitf.c: Likewise.
30185         * lib/signbitl.c: Likewise.
30186         * lib/sigprocmask.c: Likewise.
30187         * lib/sincosl.c: Likewise.
30188         * lib/sleep.c: Likewise.
30189         * lib/sprintf.c: Likewise.
30190         * lib/sqrtl.c: Likewise.
30191         * lib/stat-time.h: Likewise.
30192         * lib/stdio--.h: Likewise.
30193         * lib/stdio-safer.h: Likewise.
30194         * lib/stdlib--.h: Likewise.
30195         * lib/stdlib-safer.h: Likewise.
30196         * lib/stdlib.in.h: Likewise.
30197         * lib/stpcpy.c: Likewise.
30198         * lib/stpncpy.c: Likewise.
30199         * lib/strchrnul.c: Likewise.
30200         * lib/strcspn.c: Likewise.
30201         * lib/strerror.c: Likewise.
30202         * lib/strftime.c: Likewise.
30203         * lib/strftime.h: Likewise.
30204         * lib/striconveh.c: Likewise.
30205         * lib/striconveh.h: Likewise.
30206         * lib/striconveha.c: Likewise.
30207         * lib/striconveha.h: Likewise.
30208         * lib/stripslash.c: Likewise.
30209         * lib/strnlen1.c: Likewise.
30210         * lib/strnlen1.h: Likewise.
30211         * lib/strtod.c: Likewise.
30212         * lib/strtoimax.c: Likewise.
30213         * lib/strtok_r.c: Likewise.
30214         * lib/strtol.c: Likewise.
30215         * lib/strtoll.c: Likewise.
30216         * lib/strtoul.c: Likewise.
30217         * lib/strtoull.c: Likewise.
30218         * lib/sysexits.in.h: Likewise.
30219         * lib/tempname.c: Likewise.
30220         * lib/tempname.h: Likewise.
30221         * lib/timespec.h: Likewise.
30222         * lib/tls.c: Likewise.
30223         * lib/tls.h: Likewise.
30224         * lib/tmpdir.c: Likewise.
30225         * lib/tmpdir.h: Likewise.
30226         * lib/tmpfile-safer.c: Likewise.
30227         * lib/tmpfile.c: Likewise.
30228         * lib/trigl.c: Likewise.
30229         * lib/trigl.h: Likewise.
30230         * lib/trim.c: Likewise.
30231         * lib/trim.h: Likewise.
30232         * lib/trunc.c: Likewise.
30233         * lib/truncf.c: Likewise.
30234         * lib/truncl.c: Likewise.
30235         * lib/tsearch.c: Likewise.
30236         * lib/unicodeio.c: Likewise.
30237         * lib/unicodeio.h: Likewise.
30238         * lib/unistd--.h: Likewise.
30239         * lib/unistd-safer.h: Likewise.
30240         * lib/unistdio/ulc-fprintf.c: Likewise.
30241         * lib/unistdio/ulc-vfprintf.c: Likewise.
30242         * lib/unlinkdir.c: Likewise.
30243         * lib/unlinkdir.h: Likewise.
30244         * lib/unlocked-io.h: Likewise.
30245         * lib/unsetenv.c: Likewise.
30246         * lib/userspec.c: Likewise.
30247         * lib/utime.c: Likewise.
30248         * lib/utimecmp.c: Likewise.
30249         * lib/utimecmp.h: Likewise.
30250         * lib/utimens.c: Likewise.
30251         * lib/verify.h: Likewise.
30252         * lib/verror.c: Likewise.
30253         * lib/verror.h: Likewise.
30254         * lib/version-etc-fsf.c: Likewise.
30255         * lib/version-etc.c: Likewise.
30256         * lib/version-etc.h: Likewise.
30257         * lib/vfprintf.c: Likewise.
30258         * lib/vprintf.c: Likewise.
30259         * lib/vsprintf.c: Likewise.
30260         * lib/w32spawn.h: Likewise.
30261         * lib/wait-process.c: Likewise.
30262         * lib/wait-process.h: Likewise.
30263         * lib/wcwidth.c: Likewise.
30264         * lib/write-any-file.c: Likewise.
30265         * lib/xalloc-die.c: Likewise.
30266         * lib/xalloc.h: Likewise.
30267         * lib/xasprintf.c: Likewise.
30268         * lib/xgetcwd.c: Likewise.
30269         * lib/xgetcwd.h: Likewise.
30270         * lib/xgetdomainname.c: Likewise.
30271         * lib/xgetdomainname.h: Likewise.
30272         * lib/xgethostname.c: Likewise.
30273         * lib/xmalloc.c: Likewise.
30274         * lib/xmalloca.c: Likewise.
30275         * lib/xmalloca.h: Likewise.
30276         * lib/xmemcoll.c: Likewise.
30277         * lib/xnanosleep.c: Likewise.
30278         * lib/xreadlink.c: Likewise.
30279         * lib/xreadlink.h: Likewise.
30280         * lib/xsetenv.c: Likewise.
30281         * lib/xsetenv.h: Likewise.
30282         * lib/xstriconv.c: Likewise.
30283         * lib/xstriconv.h: Likewise.
30284         * lib/xstrndup.c: Likewise.
30285         * lib/xstrndup.h: Likewise.
30286         * lib/xstrtod.c: Likewise.
30287         * lib/xstrtod.h: Likewise.
30288         * lib/xstrtol-error.c: Likewise.
30289         * lib/xstrtol.c: Likewise.
30290         * lib/xstrtol.h: Likewise.
30291         * lib/xtime.h: Likewise.
30292         * lib/xvasprintf.c: Likewise.
30293         * lib/xvasprintf.h: Likewise.
30294         * lib/yesno.c: Likewise.
30295         * lib/yesno.h: Likewise.
30296         * posix-modules: Likewise.
30297         * tests/test-alloca-opt.c: Likewise.
30298         * tests/test-arcfour.c: Likewise.
30299         * tests/test-arctwo.c: Likewise.
30300         * tests/test-argmatch.c: Likewise.
30301         * tests/test-argp-2.sh: Likewise.
30302         * tests/test-argp.c: Likewise.
30303         * tests/test-arpa_inet.c: Likewise.
30304         * tests/test-array_list.c: Likewise.
30305         * tests/test-array_oset.c: Likewise.
30306         * tests/test-atexit.c: Likewise.
30307         * tests/test-avltree_list.c: Likewise.
30308         * tests/test-avltree_oset.c: Likewise.
30309         * tests/test-avltreehash_list.c: Likewise.
30310         * tests/test-base64.c: Likewise.
30311         * tests/test-binary-io.c: Likewise.
30312         * tests/test-byteswap.c: Likewise.
30313         * tests/test-c-ctype.c: Likewise.
30314         * tests/test-c-strcasecmp.c: Likewise.
30315         * tests/test-c-strcasestr.c: Likewise.
30316         * tests/test-c-strncasecmp.c: Likewise.
30317         * tests/test-c-strstr.c: Likewise.
30318         * tests/test-canonicalize-lgpl.c: Likewise.
30319         * tests/test-canonicalize.c: Likewise.
30320         * tests/test-carray_list.c: Likewise.
30321         * tests/test-ceilf.c: Likewise.
30322         * tests/test-ceill.c: Likewise.
30323         * tests/test-count-one-bits.c: Likewise.
30324         * tests/test-crc.c: Likewise.
30325         * tests/test-dirname.c: Likewise.
30326         * tests/test-fbufmode.c: Likewise.
30327         * tests/test-fcntl.c: Likewise.
30328         * tests/test-fflush.c: Likewise.
30329         * tests/test-floorf.c: Likewise.
30330         * tests/test-floorl.c: Likewise.
30331         * tests/test-fopen.c: Likewise.
30332         * tests/test-fprintf-posix.c: Likewise.
30333         * tests/test-fprintf-posix.h: Likewise.
30334         * tests/test-fpurge.c: Likewise.
30335         * tests/test-freadable.c: Likewise.
30336         * tests/test-freadahead.c: Likewise.
30337         * tests/test-freading.c: Likewise.
30338         * tests/test-freopen.c: Likewise.
30339         * tests/test-frexp.c: Likewise.
30340         * tests/test-frexpl.c: Likewise.
30341         * tests/test-fseek.c: Likewise.
30342         * tests/test-fseeko.c: Likewise.
30343         * tests/test-fseterr.c: Likewise.
30344         * tests/test-fstrcmp.c: Likewise.
30345         * tests/test-ftell.c: Likewise.
30346         * tests/test-ftello.c: Likewise.
30347         * tests/test-fwritable.c: Likewise.
30348         * tests/test-fwriting.c: Likewise.
30349         * tests/test-getaddrinfo.c: Likewise.
30350         * tests/test-getpass.c: Likewise.
30351         * tests/test-gettimeofday.c: Likewise.
30352         * tests/test-hmac-md5.c: Likewise.
30353         * tests/test-hmac-sha1.c: Likewise.
30354         * tests/test-iconv.c: Likewise.
30355         * tests/test-iconvme.c: Likewise.
30356         * tests/test-inttypes.c: Likewise.
30357         * tests/test-isnan.c: Likewise.
30358         * tests/test-isnanf.c: Likewise.
30359         * tests/test-isnanl-nolibm.c: Likewise.
30360         * tests/test-isnanl.c: Likewise.
30361         * tests/test-isnanl.h: Likewise.
30362         * tests/test-ldexpl.c: Likewise.
30363         * tests/test-linked_list.c: Likewise.
30364         * tests/test-linkedhash_list.c: Likewise.
30365         * tests/test-locale.c: Likewise.
30366         * tests/test-localename.c: Likewise.
30367         * tests/test-lock.c: Likewise.
30368         * tests/test-lseek.c: Likewise.
30369         * tests/test-malloca.c: Likewise.
30370         * tests/test-math.c: Likewise.
30371         * tests/test-mbscasecmp.c: Likewise.
30372         * tests/test-mbscasestr1.c: Likewise.
30373         * tests/test-mbscasestr2.c: Likewise.
30374         * tests/test-mbscasestr3.c: Likewise.
30375         * tests/test-mbscasestr4.c: Likewise.
30376         * tests/test-mbschr.c: Likewise.
30377         * tests/test-mbscspn.c: Likewise.
30378         * tests/test-mbsncasecmp.c: Likewise.
30379         * tests/test-mbspbrk.c: Likewise.
30380         * tests/test-mbspcasecmp.c: Likewise.
30381         * tests/test-mbsrchr.c: Likewise.
30382         * tests/test-mbsspn.c: Likewise.
30383         * tests/test-mbsstr1.c: Likewise.
30384         * tests/test-mbsstr2.c: Likewise.
30385         * tests/test-mbsstr3.c: Likewise.
30386         * tests/test-md5.c: Likewise.
30387         * tests/test-memmem.c: Likewise.
30388         * tests/test-netinet_in.c: Likewise.
30389         * tests/test-open.c: Likewise.
30390         * tests/test-printf-frexp.c: Likewise.
30391         * tests/test-printf-frexpl.c: Likewise.
30392         * tests/test-printf-posix.c: Likewise.
30393         * tests/test-printf-posix.h: Likewise.
30394         * tests/test-rbtree_list.c: Likewise.
30395         * tests/test-rbtree_oset.c: Likewise.
30396         * tests/test-rbtreehash_list.c: Likewise.
30397         * tests/test-read-file.c: Likewise.
30398         * tests/test-rijndael.c: Likewise.
30399         * tests/test-search.c: Likewise.
30400         * tests/test-signbit.c: Likewise.
30401         * tests/test-sleep.c: Likewise.
30402         * tests/test-snprintf-posix.c: Likewise.
30403         * tests/test-snprintf-posix.h: Likewise.
30404         * tests/test-snprintf.c: Likewise.
30405         * tests/test-sprintf-posix.c: Likewise.
30406         * tests/test-sprintf-posix.h: Likewise.
30407         * tests/test-stat-time.c: Likewise.
30408         * tests/test-stdbool.c: Likewise.
30409         * tests/test-stdint.c: Likewise.
30410         * tests/test-stdio.c: Likewise.
30411         * tests/test-stdlib.c: Likewise.
30412         * tests/test-stpncpy.c: Likewise.
30413         * tests/test-strcasestr.c: Likewise.
30414         * tests/test-striconv.c: Likewise.
30415         * tests/test-striconveh.c: Likewise.
30416         * tests/test-striconveha.c: Likewise.
30417         * tests/test-string.c: Likewise.
30418         * tests/test-sys_select.c: Likewise.
30419         * tests/test-sys_socket.c: Likewise.
30420         * tests/test-sys_stat.c: Likewise.
30421         * tests/test-sys_time.c: Likewise.
30422         * tests/test-sysexits.c: Likewise.
30423         * tests/test-time.c: Likewise.
30424         * tests/test-tls.c: Likewise.
30425         * tests/test-trunc.c: Likewise.
30426         * tests/test-truncf.c: Likewise.
30427         * tests/test-truncl.c: Likewise.
30428         * tests/test-unistd.c: Likewise.
30429         * tests/test-vasnprintf-posix.c: Likewise.
30430         * tests/test-vasnprintf-posix2.c: Likewise.
30431         * tests/test-vasnprintf.c: Likewise.
30432         * tests/test-vasprintf-posix.c: Likewise.
30433         * tests/test-vasprintf.c: Likewise.
30434         * tests/test-verify.c: Likewise.
30435         * tests/test-vfprintf-posix.c: Likewise.
30436         * tests/test-vprintf-posix.c: Likewise.
30437         * tests/test-vsnprintf-posix.c: Likewise.
30438         * tests/test-vsnprintf.c: Likewise.
30439         * tests/test-vsprintf-posix.c: Likewise.
30440         * tests/test-wchar.c: Likewise.
30441         * tests/test-wctype.c: Likewise.
30442         * tests/test-wcwidth.c: Likewise.
30443         * tests/test-xstrtol.c: Likewise.
30444         * tests/test-xvasprintf.c: Likewise.
30445         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30446         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30447         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30448         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30449         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30450         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30451         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30452         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30453         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30454         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30455         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30456         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30457         * tests/uniname/test-uninames.c: Likewise.
30458         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30459         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30460         * tests/unistdio/test-u16-printf1.h: Likewise.
30461         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30462         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30463         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30464         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30465         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30466         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30467         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30468         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30469         * tests/unistdio/test-u32-printf1.h: Likewise.
30470         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30471         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30472         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30473         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30474         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30475         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30476         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30477         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30478         * tests/unistdio/test-u8-printf1.h: Likewise.
30479         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30480         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30481         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30482         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30483         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30484         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30485         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30486         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30487         * tests/unistdio/test-ulc-printf1.h: Likewise.
30488         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30489         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30490         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30491         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30492         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30493         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30494         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30495         * tests/uniwidth/test-u16-width.c: Likewise.
30496         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30497         * tests/uniwidth/test-u32-width.c: Likewise.
30498         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30499         * tests/uniwidth/test-u8-width.c: Likewise.
30500         * tests/uniwidth/test-uc_width.c: Likewise.
30501         * config/srclist-update: Likewise.
30502         (fixlicense): Update to GPLv3+.
30503
30504         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30505         * tests/test-tsearch.c: Change copyright notice.
30506
30507         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30508         * lib/c-strcaseeq.h: Change copyright notice.
30509         * lib/streq.h: Likewise.
30510         * lib/uniconv.h: Likewise.
30511         * lib/uniconv/u-conv-from-enc.h: Likewise.
30512         * lib/uniconv/u-conv-to-enc.h: Likewise.
30513         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30514         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30515         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30516         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30517         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30518         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30519         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30520         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30521         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30522         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30523         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30524         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30525         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30526         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30527         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30528         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30529         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30530         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30531         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30532         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30533         * lib/uniname.h: Likewise.
30534         * lib/uniname/uniname.c: Likewise.
30535         * lib/unistdio.h: Likewise.
30536         * lib/unistdio/u-asnprintf.h: Likewise.
30537         * lib/unistdio/u-asprintf.h: Likewise.
30538         * lib/unistdio/u-printf-args.c: Likewise.
30539         * lib/unistdio/u-printf-args.h: Likewise.
30540         * lib/unistdio/u-printf-parse.h: Likewise.
30541         * lib/unistdio/u-snprintf.h: Likewise.
30542         * lib/unistdio/u-sprintf.h: Likewise.
30543         * lib/unistdio/u-vasprintf.h: Likewise.
30544         * lib/unistdio/u-vsnprintf.h: Likewise.
30545         * lib/unistdio/u-vsprintf.h: Likewise.
30546         * lib/unistdio/u16-asnprintf.c: Likewise.
30547         * lib/unistdio/u16-asprintf.c: Likewise.
30548         * lib/unistdio/u16-printf-parse.c: Likewise.
30549         * lib/unistdio/u16-snprintf.c: Likewise.
30550         * lib/unistdio/u16-sprintf.c: Likewise.
30551         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30552         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30553         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30554         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30555         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30556         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30557         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30558         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30559         * lib/unistdio/u16-vasnprintf.c: Likewise.
30560         * lib/unistdio/u16-vasprintf.c: Likewise.
30561         * lib/unistdio/u16-vsnprintf.c: Likewise.
30562         * lib/unistdio/u16-vsprintf.c: Likewise.
30563         * lib/unistdio/u32-asnprintf.c: Likewise.
30564         * lib/unistdio/u32-asprintf.c: Likewise.
30565         * lib/unistdio/u32-printf-parse.c: Likewise.
30566         * lib/unistdio/u32-snprintf.c: Likewise.
30567         * lib/unistdio/u32-sprintf.c: Likewise.
30568         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30569         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30570         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30571         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30572         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30573         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30574         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30575         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30576         * lib/unistdio/u32-vasnprintf.c: Likewise.
30577         * lib/unistdio/u32-vasprintf.c: Likewise.
30578         * lib/unistdio/u32-vsnprintf.c: Likewise.
30579         * lib/unistdio/u32-vsprintf.c: Likewise.
30580         * lib/unistdio/u8-asnprintf.c: Likewise.
30581         * lib/unistdio/u8-asprintf.c: Likewise.
30582         * lib/unistdio/u8-printf-parse.c: Likewise.
30583         * lib/unistdio/u8-snprintf.c: Likewise.
30584         * lib/unistdio/u8-sprintf.c: Likewise.
30585         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30586         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30587         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30588         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30589         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30590         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30591         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30592         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30593         * lib/unistdio/u8-vasnprintf.c: Likewise.
30594         * lib/unistdio/u8-vasprintf.c: Likewise.
30595         * lib/unistdio/u8-vsnprintf.c: Likewise.
30596         * lib/unistdio/u8-vsprintf.c: Likewise.
30597         * lib/unistdio/ulc-asnprintf.c: Likewise.
30598         * lib/unistdio/ulc-asprintf.c: Likewise.
30599         * lib/unistdio/ulc-printf-parse.c: Likewise.
30600         * lib/unistdio/ulc-snprintf.c: Likewise.
30601         * lib/unistdio/ulc-sprintf.c: Likewise.
30602         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30603         * lib/unistdio/ulc-vasprintf.c: Likewise.
30604         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30605         * lib/unistdio/ulc-vsprintf.c: Likewise.
30606         * lib/unistr.h: Likewise.
30607         * lib/unistr/u-cpy-alloc.h: Likewise.
30608         * lib/unistr/u-cpy.h: Likewise.
30609         * lib/unistr/u-endswith.h: Likewise.
30610         * lib/unistr/u-move.h: Likewise.
30611         * lib/unistr/u-set.h: Likewise.
30612         * lib/unistr/u-startswith.h: Likewise.
30613         * lib/unistr/u-stpcpy.h: Likewise.
30614         * lib/unistr/u-stpncpy.h: Likewise.
30615         * lib/unistr/u-strcat.h: Likewise.
30616         * lib/unistr/u-strcpy.h: Likewise.
30617         * lib/unistr/u-strcspn.h: Likewise.
30618         * lib/unistr/u-strdup.h: Likewise.
30619         * lib/unistr/u-strlen.h: Likewise.
30620         * lib/unistr/u-strncat.h: Likewise.
30621         * lib/unistr/u-strncpy.h: Likewise.
30622         * lib/unistr/u-strnlen.h: Likewise.
30623         * lib/unistr/u-strpbrk.h: Likewise.
30624         * lib/unistr/u-strspn.h: Likewise.
30625         * lib/unistr/u-strstr.h: Likewise.
30626         * lib/unistr/u-strtok.h: Likewise.
30627         * lib/unistr/u16-check.c: Likewise.
30628         * lib/unistr/u16-chr.c: Likewise.
30629         * lib/unistr/u16-cmp.c: Likewise.
30630         * lib/unistr/u16-cpy-alloc.c: Likewise.
30631         * lib/unistr/u16-cpy.c: Likewise.
30632         * lib/unistr/u16-endswith.c: Likewise.
30633         * lib/unistr/u16-mblen.c: Likewise.
30634         * lib/unistr/u16-mbsnlen.c: Likewise.
30635         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30636         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30637         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30638         * lib/unistr/u16-mbtouc.c: Likewise.
30639         * lib/unistr/u16-mbtoucr.c: Likewise.
30640         * lib/unistr/u16-move.c: Likewise.
30641         * lib/unistr/u16-next.c: Likewise.
30642         * lib/unistr/u16-prev.c: Likewise.
30643         * lib/unistr/u16-set.c: Likewise.
30644         * lib/unistr/u16-startswith.c: Likewise.
30645         * lib/unistr/u16-stpcpy.c: Likewise.
30646         * lib/unistr/u16-stpncpy.c: Likewise.
30647         * lib/unistr/u16-strcat.c: Likewise.
30648         * lib/unistr/u16-strchr.c: Likewise.
30649         * lib/unistr/u16-strcmp.c: Likewise.
30650         * lib/unistr/u16-strcpy.c: Likewise.
30651         * lib/unistr/u16-strcspn.c: Likewise.
30652         * lib/unistr/u16-strdup.c: Likewise.
30653         * lib/unistr/u16-strlen.c: Likewise.
30654         * lib/unistr/u16-strmblen.c: Likewise.
30655         * lib/unistr/u16-strmbtouc.c: Likewise.
30656         * lib/unistr/u16-strncat.c: Likewise.
30657         * lib/unistr/u16-strncmp.c: Likewise.
30658         * lib/unistr/u16-strncpy.c: Likewise.
30659         * lib/unistr/u16-strnlen.c: Likewise.
30660         * lib/unistr/u16-strpbrk.c: Likewise.
30661         * lib/unistr/u16-strrchr.c: Likewise.
30662         * lib/unistr/u16-strspn.c: Likewise.
30663         * lib/unistr/u16-strstr.c: Likewise.
30664         * lib/unistr/u16-strtok.c: Likewise.
30665         * lib/unistr/u16-to-u32.c: Likewise.
30666         * lib/unistr/u16-to-u8.c: Likewise.
30667         * lib/unistr/u16-uctomb-aux.c: Likewise.
30668         * lib/unistr/u16-uctomb.c: Likewise.
30669         * lib/unistr/u32-check.c: Likewise.
30670         * lib/unistr/u32-chr.c: Likewise.
30671         * lib/unistr/u32-cmp.c: Likewise.
30672         * lib/unistr/u32-cpy-alloc.c: Likewise.
30673         * lib/unistr/u32-cpy.c: Likewise.
30674         * lib/unistr/u32-endswith.c: Likewise.
30675         * lib/unistr/u32-mblen.c: Likewise.
30676         * lib/unistr/u32-mbsnlen.c: Likewise.
30677         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30678         * lib/unistr/u32-mbtouc.c: Likewise.
30679         * lib/unistr/u32-mbtoucr.c: Likewise.
30680         * lib/unistr/u32-move.c: Likewise.
30681         * lib/unistr/u32-next.c: Likewise.
30682         * lib/unistr/u32-prev.c: Likewise.
30683         * lib/unistr/u32-set.c: Likewise.
30684         * lib/unistr/u32-startswith.c: Likewise.
30685         * lib/unistr/u32-stpcpy.c: Likewise.
30686         * lib/unistr/u32-stpncpy.c: Likewise.
30687         * lib/unistr/u32-strcat.c: Likewise.
30688         * lib/unistr/u32-strchr.c: Likewise.
30689         * lib/unistr/u32-strcmp.c: Likewise.
30690         * lib/unistr/u32-strcpy.c: Likewise.
30691         * lib/unistr/u32-strcspn.c: Likewise.
30692         * lib/unistr/u32-strdup.c: Likewise.
30693         * lib/unistr/u32-strlen.c: Likewise.
30694         * lib/unistr/u32-strmblen.c: Likewise.
30695         * lib/unistr/u32-strmbtouc.c: Likewise.
30696         * lib/unistr/u32-strncat.c: Likewise.
30697         * lib/unistr/u32-strncmp.c: Likewise.
30698         * lib/unistr/u32-strncpy.c: Likewise.
30699         * lib/unistr/u32-strnlen.c: Likewise.
30700         * lib/unistr/u32-strpbrk.c: Likewise.
30701         * lib/unistr/u32-strrchr.c: Likewise.
30702         * lib/unistr/u32-strspn.c: Likewise.
30703         * lib/unistr/u32-strstr.c: Likewise.
30704         * lib/unistr/u32-strtok.c: Likewise.
30705         * lib/unistr/u32-to-u16.c: Likewise.
30706         * lib/unistr/u32-to-u8.c: Likewise.
30707         * lib/unistr/u32-uctomb.c: Likewise.
30708         * lib/unistr/u8-check.c: Likewise.
30709         * lib/unistr/u8-chr.c: Likewise.
30710         * lib/unistr/u8-cmp.c: Likewise.
30711         * lib/unistr/u8-cpy-alloc.c: Likewise.
30712         * lib/unistr/u8-cpy.c: Likewise.
30713         * lib/unistr/u8-endswith.c: Likewise.
30714         * lib/unistr/u8-mblen.c: Likewise.
30715         * lib/unistr/u8-mbsnlen.c: Likewise.
30716         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30717         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30718         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30719         * lib/unistr/u8-mbtouc.c: Likewise.
30720         * lib/unistr/u8-mbtoucr.c: Likewise.
30721         * lib/unistr/u8-move.c: Likewise.
30722         * lib/unistr/u8-next.c: Likewise.
30723         * lib/unistr/u8-prev.c: Likewise.
30724         * lib/unistr/u8-set.c: Likewise.
30725         * lib/unistr/u8-startswith.c: Likewise.
30726         * lib/unistr/u8-stpcpy.c: Likewise.
30727         * lib/unistr/u8-stpncpy.c: Likewise.
30728         * lib/unistr/u8-strcat.c: Likewise.
30729         * lib/unistr/u8-strchr.c: Likewise.
30730         * lib/unistr/u8-strcmp.c: Likewise.
30731         * lib/unistr/u8-strcpy.c: Likewise.
30732         * lib/unistr/u8-strcspn.c: Likewise.
30733         * lib/unistr/u8-strdup.c: Likewise.
30734         * lib/unistr/u8-strlen.c: Likewise.
30735         * lib/unistr/u8-strmblen.c: Likewise.
30736         * lib/unistr/u8-strmbtouc.c: Likewise.
30737         * lib/unistr/u8-strncat.c: Likewise.
30738         * lib/unistr/u8-strncmp.c: Likewise.
30739         * lib/unistr/u8-strncpy.c: Likewise.
30740         * lib/unistr/u8-strnlen.c: Likewise.
30741         * lib/unistr/u8-strpbrk.c: Likewise.
30742         * lib/unistr/u8-strrchr.c: Likewise.
30743         * lib/unistr/u8-strspn.c: Likewise.
30744         * lib/unistr/u8-strstr.c: Likewise.
30745         * lib/unistr/u8-strtok.c: Likewise.
30746         * lib/unistr/u8-to-u16.c: Likewise.
30747         * lib/unistr/u8-to-u32.c: Likewise.
30748         * lib/unistr/u8-uctomb-aux.c: Likewise.
30749         * lib/unistr/u8-uctomb.c: Likewise.
30750         * lib/unitypes.h: Likewise.
30751         * lib/uniwidth.h: Likewise.
30752         * lib/uniwidth/cjk.h: Likewise.
30753         * lib/uniwidth/u16-strwidth.c: Likewise.
30754         * lib/uniwidth/u16-width.c: Likewise.
30755         * lib/uniwidth/u32-strwidth.c: Likewise.
30756         * lib/uniwidth/u32-width.c: Likewise.
30757         * lib/uniwidth/u8-strwidth.c: Likewise.
30758         * lib/uniwidth/u8-width.c: Likewise.
30759         * lib/uniwidth/width.c: Likewise.
30760
30761 2007-10-07  Bruno Haible  <bruno@clisp.org>
30762
30763         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30764         The file is still under LGPL (see modules/inttypes).
30765
30766 2007-10-06  Bruno Haible  <bruno@clisp.org>
30767
30768         * modules/trunc (Dependencies): Add 'extensions'.
30769         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30770         Reported by Ben Pfaff <blp@gnu.org>.
30771
30772 2007-10-06  Bruno Haible  <bruno@clisp.org>
30773
30774         * modules/freopen-tests: New file.
30775         * tests/test-freopen.c: New file.
30776
30777         * modules/fopen-tests: New file.
30778         * tests/test-fopen.c: New file.
30779
30780         * modules/fopen: New file.
30781         * lib/fopen.c: New file.
30782         * m4/fopen.m4: New file.
30783         * modules/freopen: New file.
30784         * lib/freopen.c: New file.
30785         * m4/freopen.m4: New file.
30786         * lib/stdio.in.h (fopen, freopen): New declarations.
30787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30788         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30789         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30790         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30791         * doc/functions/fopen.texi: Mention the 'fopen' module.
30792         * doc/functions/freopen.texi: Mention the 'freopen' module.
30793
30794 2007-10-06  Bruno Haible  <bruno@clisp.org>
30795
30796         * modules/open-tests: New file.
30797         * tests/test-open.c: New file.
30798
30799         * modules/open: New file.
30800         * lib/open.c: New file.
30801         * m4/open.m4: New file.
30802         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30803         lib/open.c does.
30804         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30805         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30806         macros.
30807         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30808         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30809         REPLACE_OPEN.
30810         * doc/functions/open.texi: Mention the 'open' module.
30811
30812 2007-10-04  Bruno Haible  <bruno@clisp.org>
30813
30814         * modules/ceill-tests: New file.
30815         * tests/test-ceill.c: New file.
30816
30817         * modules/ceill: New file.
30818         * lib/ceill.c: Replace entire file.
30819         * m4/ceill.m4: New file.
30820         * lib/math.in.h (ceill): Replace declaration.
30821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30822         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30823         * doc/functions/ceill.texi: Mention the 'ceill' module.
30824         * modules/mathl (Files): Remove lib/ceill.c.
30825         (Depends-on): Add ceill.
30826
30827 2007-10-04  Bruno Haible  <bruno@clisp.org>
30828
30829         * modules/ceilf-tests: New file.
30830         * tests/test-ceilf.c: New file.
30831
30832         * modules/ceilf: New file.
30833         * lib/ceil.c: New file.
30834         * lib/ceilf.c: New file.
30835         * m4/ceilf.m4: New file.
30836         * lib/math.in.h (ceilf): New declaration.
30837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30838         HAVE_DECL_CEILF.
30839         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30840         HAVE_DECL_CEILF.
30841         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30842
30843 2007-10-04  Bruno Haible  <bruno@clisp.org>
30844
30845         * modules/floorl-tests: New file.
30846         * tests/test-floorl.c: New file.
30847
30848         * modules/floorl: New file.
30849         * lib/floorl.c: Replace entire file.
30850         * m4/floorl.m4: New file.
30851         * lib/math.in.h (floorl): Replace declaration.
30852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30853         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30854         * doc/functions/floorl.texi: Mention the 'floorl' module.
30855         * modules/mathl (Files): Remove lib/floorl.c.
30856         (Depends-on): Add floorl.
30857
30858 2007-10-04  Bruno Haible  <bruno@clisp.org>
30859
30860         * modules/floorf-tests: New file.
30861         * tests/test-floorf.c: New file.
30862
30863         * modules/floorf: New file.
30864         * lib/floor.c: New file.
30865         * lib/floorf.c: New file.
30866         * m4/floorf.m4: New file.
30867         * lib/math.in.h (floorf): New declaration.
30868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30869         HAVE_DECL_FLOORF.
30870         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30871         HAVE_DECL_FLOORF.
30872         * doc/functions/floorf.texi: Mention the 'floorf' module.
30873
30874 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30875             Bruno Haible  <bruno@clisp.org>
30876
30877         Advertise for the Git server instead of the CVS server.
30878         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30879         repository instead of the CVS one.
30880         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30881         about all VCS systems generically.
30882         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30883
30884 2007-10-04  Bruno Haible  <bruno@clisp.org>
30885
30886         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30887         means.
30888         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30889
30890 2007-10-04  Bruno Haible  <bruno@clisp.org>
30891
30892         * modules/truncl-tests: New file.
30893         * tests/test-truncl.c: New file.
30894
30895         * modules/truncl: New file.
30896         * lib/truncl.c: New file.
30897         * m4/truncl.m4: New file.
30898         * lib/math.in.h (truncl): New declaration.
30899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30900         HAVE_DECL_TRUNCL.
30901         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30902         HAVE_DECL_TRUNCL.
30903         * doc/functions/truncl.texi: Mention the 'truncl' module.
30904
30905 2007-10-04  Bruno Haible  <bruno@clisp.org>
30906
30907         * modules/truncf-tests: New file.
30908         * tests/test-truncf.c: New file.
30909
30910         * modules/truncf: New file.
30911         * lib/trunc.c: Make paramerizable through USE_* macros.
30912         * lib/truncf.c: New file.
30913         * m4/truncf.m4: New file.
30914         * lib/math.in.h (truncf): New declaration.
30915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30916         HAVE_DECL_TRUNCF.
30917         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30918         HAVE_DECL_TRUNCF.
30919         * doc/functions/truncf.texi: Mention the 'truncf' module.
30920
30921 2007-10-03  Bruno Haible  <bruno@clisp.org>
30922
30923         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30924         augmentation also for tests modules.
30925         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30926         * modules/atexit-tests (Makefile.am): Likewise.
30927         * modules/binary-io-tests (Makefile.am): Likewise.
30928         * modules/c-strcase-tests (Makefile.am): Likewise.
30929         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30930         * modules/canonicalize-tests (Makefile.am): Likewise.
30931         * modules/closein-tests (Makefile.am): Likewise.
30932         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30933         * modules/freadahead-tests (Makefile.am): Likewise.
30934         * modules/fseek-tests (Makefile.am): Likewise.
30935         * modules/fseeko-tests (Makefile.am): Likewise.
30936         * modules/ftell-tests (Makefile.am): Likewise.
30937         * modules/ftello-tests (Makefile.am): Likewise.
30938         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30939         * modules/isnanl-tests (Makefile.am): Likewise.
30940         * modules/lseek-tests (Makefile.am): Likewise.
30941         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30942         * modules/mbscasestr-tests (Makefile.am): Likewise.
30943         * modules/mbschr-tests (Makefile.am): Likewise.
30944         * modules/mbscspn-tests (Makefile.am): Likewise.
30945         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30946         * modules/mbspbrk-tests (Makefile.am): Likewise.
30947         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30948         * modules/mbsrchr-tests (Makefile.am): Likewise.
30949         * modules/mbsspn-tests (Makefile.am): Likewise.
30950         * modules/mbsstr-tests (Makefile.am): Likewise.
30951         * modules/printf-posix-tests (Makefile.am): Likewise.
30952         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30953         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30954         * modules/tsearch-tests (Makefile.am): Likewise.
30955         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30956         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30957         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30958         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30959         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30960         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30961         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30962         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30963         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30964         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30965         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30966         * modules/xstrtol-tests (Makefile.am): Likewise.
30967         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30968         * modules/yesno-tests (Makefile.am): Likewise.
30969
30970 2007-10-03  Bruno Haible  <bruno@clisp.org>
30971
30972         * modules/trunc-tests: New file.
30973         * tests/test-trunc.c: New file.
30974
30975         * modules/trunc: New file.
30976         * lib/trunc.c: New file.
30977         * m4/trunc.m4: New file.
30978         * lib/math.in.h (trunc): New declaration.
30979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30980         HAVE_DECL_TRUNC.
30981         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30982         HAVE_DECL_TRUNC.
30983         * doc/functions/trunc.texi: Mention the 'trunc' module.
30984
30985 2007-10-03  Bruno Haible  <bruno@clisp.org>
30986
30987         * tests/test-fpending.c: New file, mostly copied
30988         from coreutils/lib/t-fpending.c.
30989         * modules/fpending-tests: New file.
30990
30991 2007-10-03  Bruno Haible  <bruno@clisp.org>
30992
30993         Port the stdio extensions to QNX (untested).
30994         * lib/fseterr.c (fseterr): Add support for QNX.
30995         * lib/fbufmode.c (fbufmode): Likewise.
30996         * lib/freadable.c (freadable): Likewise.
30997         * lib/fwritable.c (fwritable): Likewise.
30998         * lib/freading.c (freading): Likewise.
30999         * lib/fwriting.c (fwriting): Likewise.
31000         * lib/freadahead.c (freadahed): Likewise.
31001         * lib/fpurge.c (fpurge): Likewise.
31002         * lib/fseeko.c (rpl_fseeko): Likewise.
31003
31004 2007-10-03  Bruno Haible  <bruno@clisp.org>
31005             Jim Meyering  <jim@meyering.net>
31006             Eric Blake  <ebb9@byu.net>
31007
31008         * doc/relocatable.texi: Use @command instead of @program.
31009
31010 2007-10-02  Jim Meyering  <jim@meyering.net>
31011
31012         Perform one more "_.h" -> ".in.h" substitution.
31013         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31014         instead of unistd_.h here, too.
31015
31016 2007-10-01  Bruno Haible  <bruno@clisp.org>
31017
31018         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31019         Needed for the alloca-opt module.
31020
31021 2007-09-30  Bruno Haible  <bruno@clisp.org>
31022
31023         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31024         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31025         alloca_.h.
31026         * lib/argz.in.h: Renamed from lib/argz_.h.
31027         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31028         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31029         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31030         byteswap_.h.
31031         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31032         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31033         dirent_.h.
31034         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31035         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31036         fcntl_.h.
31037         * lib/float.in.h: Renamed from lib/float_.h.
31038         * modules/float (Files, Makefile.am): Use float.in.h instead of
31039         float_.h.
31040         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31041         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31042         fnmatch_.h.
31043         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31044         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31045         getopt_.h.
31046         * lib/glob.in.h: Renamed from lib/glob_.h.
31047         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31048         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31049         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31050         iconv_.h.
31051         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31052         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31053         inttypes_.h.
31054         * lib/locale.in.h: Renamed from lib/locale_.h.
31055         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31056         locale_.h.
31057         * lib/math.in.h: Renamed from lib/math_.h.
31058         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31059         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31060         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31061         of netinet_in_.h. Add dependency.
31062         * lib/poll.in.h: Renamed from lib/poll_.h.
31063         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31064         * lib/search.in.h: Renamed from lib/search_.h.
31065         * modules/search (Files, Makefile.am): Use search.in.h instead of
31066         search_.h.
31067         * lib/signal.in.h: Renamed from lib/signal_.h.
31068         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31069         _signal.h.
31070         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31071         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31072         stdbool_.h.
31073         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31074         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31075         stdint_.h.
31076         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31077         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31078         stdio_.h.
31079         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31080         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31081         stdlib_.h.
31082         * lib/string.in.h: Renamed from lib/string_.h.
31083         * modules/string (Files, Makefile.am): Use string.in.h instead of
31084         string_.h.
31085         * doc/gnulib-tool.texi (Initial import): Update.
31086         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31087         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31088         of sys_select_.h. Add dependency.
31089         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31090         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31091         of sys_socket_.h.
31092         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31093         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31094         sys_stat_.h.
31095         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31096         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31097         sys_time_.h.
31098         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31099         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31100         sysexits_.h.
31101         * lib/time.in.h: Renamed from lib/time_.h.
31102         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31103         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31104         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31105         unistd_.h.
31106         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31107         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31108         wchar_.h.
31109         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31110         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31111         wctype_.h.
31112         * build-aux/bootstrap (slurp): Update.
31113         * lib/.cppi-disable: Update.
31114
31115 2007-09-30  Bruno Haible  <bruno@clisp.org>
31116
31117         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31118         Needed on BeOS.
31119
31120 2007-09-30  Bruno Haible  <bruno@clisp.org>
31121
31122         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31123
31124 2007-09-29  Bruno Haible  <bruno@clisp.org>
31125
31126         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31127
31128 2007-09-29  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31131         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31132         * build-aux/install-reloc: Compile also areadlink.c.
31133         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31134
31135 2007-09-29  Bruno Haible  <bruno@clisp.org>
31136
31137         * gnulib-tool (func_emit_initmacro_done): Indentation.
31138
31139 2007-09-29  Bruno Haible  <bruno@clisp.org>
31140
31141         * README: Add CVS checkout update instructions.
31142         Info from Bob Proulx <bob@proulx.com>.
31143
31144 2007-09-28  Eric Blake  <ebb9@byu.net>
31145
31146         Provide move-if-change.
31147         * build-aux/move-if-change: New file, based on best practice
31148         rather than any canonical upstream location.
31149
31150 2007-09-28  Jim Meyering  <jim@meyering.net>
31151
31152         Fix canonicalize loop-detection corner case.
31153         Do not attempt to stat the symlink values stored via seen_triple.
31154         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31155         on linux-2.6.18, (but not 2.6.22).
31156         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31157         triple_compare.  The former compares dev,ino,filename, while the latter
31158         would actually stat dirname(filename) when dev and ino were equal.
31159         * lib/hash-triple.c: Install <string.h>.
31160         (STREQ): Define.
31161         (triple_compare_ino_str): New function.
31162         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31163
31164 2007-09-28  Eric Blake  <ebb9@byu.net>
31165
31166         Enforce that AC_REPLACE_FUNCS files exist.
31167         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31168         override check for typos.
31169
31170         Fix test-closein on Solaris 10.
31171         * tests/test-closein.c (main): Don't assume stdin can be inherited
31172         closed on all systems.
31173         * tests/test-closein.sh: Likewise.
31174         Reported by Piotr Tarnowski.
31175
31176 2007-09-28  Jim Meyering  <jim@meyering.net>
31177
31178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31179
31180 2007-09-27  Jim Meyering  <jim@meyering.net>
31181
31182         canonicalize: Avoid a false-positive cycle failure.
31183         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31184         Sort.  Remove cycle-check.
31185         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31186         not cycle-check.h.
31187         (seen_triple): New function.
31188         (canonicalize_filename_mode): Use it instead of cycle-check.
31189         * tests/test-canonicalize.c: Add a test for this bug.
31190         * tests/test-canonicalize.sh: Set up and run the test.
31191
31192         New module, file-set, from coreutils.
31193         * modules/file-set: Define it.
31194         * lib/file-set.c, lib/file-set.h: Implement.
31195
31196         New module, hash-triple, from coreutils.
31197         * modules/hash-triple: Define it.
31198         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31199
31200 2007-09-25  Eric Blake  <ebb9@byu.net>
31201
31202         Fix strerror on Interix.
31203         * lib/string_.h (strerror): Declare replacement.
31204         * doc/functions/strerror.texi (strerror): Document the Interix
31205         shortcoming.
31206         * modules/string (Makefile.am): Support new hooks.
31207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31208         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31209         gl_FUNC_STRERROR_SEPARATE.
31210         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31211         * lib/strerror.c (rpl_strerror): Provide replacement.
31212         * modules/strerror (Depends-on): Add string.
31213         (configure.ac): Detect use of module.
31214         * tests/test-strerror.c: New file.
31215         * modules/strerror-tests: New test module.
31216         * modules/argp (Depends-on): Add strerror.
31217         * modules/error (Depends-on): Likewise.
31218         Reported by Martin Koeppe.
31219
31220 2007-09-24  Bruno Haible  <bruno@clisp.org>
31221
31222         * README: Update git instructions.
31223
31224 2007-09-24  Eric Blake  <ebb9@byu.net>
31225
31226         Revert fpending breakage from 2007-09-08.
31227         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31228         __fpending.c.
31229
31230 2007-09-24  Jim Meyering  <jim@meyering.net>
31231
31232         filenamecat.c: Add a test.
31233         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31234         showing how the function works when DIR is the empty string.
31235
31236 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31237
31238         * tests/test-canonicalize.sh: Turn on executable bit.
31239
31240 2007-09-19  Eric Blake  <ebb9@byu.net>
31241
31242         * README: Update CVS instructions.
31243
31244 2007-09-18  Bruno Haible  <bruno@clisp.org>
31245
31246         * modules/areadlink: New file.
31247         * lib/areadlink.h (areadlink): New declaration.
31248         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31249
31250 2007-09-17  Jim Meyering  <jim@meyering.net>
31251
31252         * lib/savewd.c (ESTALE) [!defined]: Define.
31253         Reported to be required on Interix by Martin Koeppe.
31254
31255 2007-09-17  Bruno Haible  <bruno@clisp.org>
31256
31257         * gnulib-tool (func_version): Use $version.
31258
31259 2007-09-16  Bruno Haible  <bruno@clisp.org>
31260
31261         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31262         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31263         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31264         Reported by Greg Schafer <gschafer@zip.com.au>.
31265
31266 2007-09-15  Bruno Haible  <bruno@clisp.org>
31267
31268         * gnulib-tool (sed): Try a little harder to make bash understand the
31269         alias.
31270         Reported by Bruce Korb <bruce.korb@gmail.com>.
31271
31272 2007-09-13  Eric Blake  <ebb9@byu.net>
31273
31274         * ChangeLog: Remove conflict markers.
31275
31276 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31277
31278         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31279         Reported by Bruno Haible <bruno@clisp.org>.
31280
31281 2007-09-12  Bruno Haible  <bruno@clisp.org>
31282
31283         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31284         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31285         is not defined.
31286
31287 2007-09-12  Eric Blake  <ebb9@byu.net>
31288
31289         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31291         Autoconf definition.
31292         * modules/euidaccess (Depends-on): Add extensions, for
31293         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31294         * modules/fnmatch (Depends-on): Likewise.
31295         * modules/getaddrinfo (Depends-on): Likewise.
31296         * modules/getdelim (Depends-on): Likewise.
31297         * modules/getline (Depends-on): Likewise.
31298         * modules/getsubopt (Depends-on): Likewise.
31299         * modules/gettext (Depends-on): Likewise.
31300         * modules/group-member (Depends-on): Likewise.
31301         * modules/mbchar (Depends-on): Likewise.
31302         * modules/memmem (Depends-on): Likewise.
31303         * modules/mempcpy (Depends-on): Likewise.
31304         * modules/memrchr (Depends-on): Likewise.
31305         * modules/pagealign_alloc (Depends-on): Likewise.
31306         * modules/readutmp (Depends-on): Likewise.
31307         * modules/stpcpy (Depends-on): Likewise.
31308         * modules/stpncpy (Depends-on): Likewise.
31309         * modules/strchrnul (Depends-on): Likewise.
31310         * modules/strndup (Depends-on): Likewise.
31311         * modules/strsep (Depends-on): Likewise.
31312         * modules/strverscmp (Depends-on): Likewise.
31313         * modules/vasprintf (Depends-on): Likewise.
31314         * modules/wcwidth (Depends-on): Likewise.
31315         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31316         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31317         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31319         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31320         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31321         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31322         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31323         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31324         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31326         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31327         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31328         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31329         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31330         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31331         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31332         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31333         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31334         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31335         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31336         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31337         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31338         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31339         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31341         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31342         so that lock.m4 can be used in gettext without extensions module.
31343
31344 2007-09-11  Bruno Haible  <bruno@clisp.org>
31345
31346         * m4/isc-posix.m4: Remove file.
31347         Suggested by Eric Blake.
31348
31349 2007-09-11  Eric Blake  <ebb9@byu.net>
31350
31351         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31352
31353 2007-09-10  Bruno Haible  <bruno@clisp.org>
31354
31355         * posix-modules: Fix typo in error message.
31356         Reported by Matt <mkraai@beckman.com>.
31357
31358 2007-09-09  Bruno Haible  <bruno@clisp.org>
31359
31360         * doc/functions/getdelim.texi: Update list of platforms lacking the
31361         function.
31362         * doc/functions/getline.texi: Likewise.
31363
31364 2007-09-09  Jim Meyering  <jim@meyering.net>
31365
31366         * lib/hash.c (hash_initialize): Detect calloc failure.
31367         Reported by Bruno Haible.
31368
31369 2007-09-09  Bruno Haible  <bruno@clisp.org>
31370
31371         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31372         malloc or realloc fails.
31373
31374 2007-09-09  Bruno Haible  <bruno@clisp.org>
31375
31376         * modules/getcwd (Depends-on): Add malloc-posix.
31377         * modules/glob (Depends-on): Likewise.
31378         * modules/putenv (Depends-on): Likewise.
31379         * modules/strdup (Depends-on): Likewise.
31380         * modules/getdelim (Depends-on): Add realloc-posix.
31381         * modules/read-file (Depends-on): Likewise.
31382
31383 2007-09-09  Bruno Haible  <bruno@clisp.org>
31384
31385         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31386         (gl_FUNC_MALLOC_POSIX): Require it.
31387         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31388         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31389         * modules/realloc (Files): Add m4/malloc.m4.
31390         * modules/calloc (Files): Likewise.
31391
31392 2007-09-09  Bruno Haible  <bruno@clisp.org>
31393
31394         * modules/malloc-posix: New file.
31395         * modules/malloc (Depends-on): Add malloc-posix.
31396         * lib/malloc.c: Include errno.h.
31397         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31398         and a POSIX-compatible malloc into a single function. Set ENOMEM
31399         when returning NULL.
31400         * m4/malloc.m4: New file.
31401         * doc/functions/malloc.texi: Mention the malloc-posix module.
31402         * lib/stdlib_.h (malloc): New declaration.
31403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31404         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31405         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31406         and HAVE_MALLOC_POSIX.
31407
31408 2007-09-09  Bruno Haible  <bruno@clisp.org>
31409
31410         * modules/realloc-posix: New file.
31411         * modules/realloc (Depends-on): Add realloc-posix.
31412         * lib/realloc.c: Include errno.h.
31413         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31414         and a POSIX-compatible realloc into a single function. Set ENOMEM
31415         when returning NULL.
31416         * m4/realloc.m4: New file.
31417         * doc/functions/realloc.texi: Mention the realloc-posix module.
31418         * lib/stdlib_.h (realloc): New declaration.
31419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31420         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31421         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31422         and HAVE_REALLOC_POSIX.
31423
31424 2007-09-09  Bruno Haible  <bruno@clisp.org>
31425
31426         * modules/calloc-posix: New file.
31427         * modules/calloc (Depends-on): Add calloc-posix.
31428         * lib/calloc.c: Include errno.h.
31429         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31430         and a POSIX-compatible calloc into a single function. Set ENOMEM
31431         when returning NULL.
31432         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31433         * doc/functions/calloc.texi: Mention the calloc-posix module.
31434         * lib/stdlib_.h (calloc): New declaration.
31435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31436         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31437         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31438         and HAVE_CALLOC_POSIX.
31439
31440 2007-09-09  Bruno Haible  <bruno@clisp.org>
31441
31442         Allow for modules to show an arbitrary notice.
31443         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31444         * gnulib-tool: New option --extract-notice.
31445         (func_usage): Document it.
31446         (sed_extract_prog): Update.
31447         (func_get_notice): New function.
31448         (func_modules_notice): New function.
31449         (func_import, func_create_testdir): Invoke it.
31450         Suggested by Jim Meyering.
31451
31452 2007-09-09  Bruno Haible  <bruno@clisp.org>
31453
31454         * gnulib-tool: New options --verbose, --quiet.
31455         (func_usage): Document them.
31456         (verbose): New variable.
31457         (func_execute_command): New function.
31458         (func_import): Don't show the module list and the file list if
31459         $verbose < 0.
31460         (func_create_testdir): Likewise. Use func_execute_command.
31461         (func_create_megatestdir): Use func_execute_command.
31462
31463 2007-09-08  Bruno Haible  <bruno@clisp.org>
31464
31465         * gnulib-tool (func_import): Prefer rsync over wget when available,
31466         for fetching the PO files.
31467
31468 2007-09-08  Bruno Haible  <bruno@clisp.org>
31469
31470         * posix-modules: New file. Portions copied from gnulib-tool.
31471         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31472
31473 2007-09-08  Jim Meyering  <jim@meyering.net>
31474
31475         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31476         * lib/fpending.h: Rename from __fpending.h.
31477         * lib/fpending.c: Rename from __fpending.c.
31478         Include "fpending.h", not "__fpending.h".
31479         * lib/__fpending.h, lib/__fpending.c: Remove files.
31480         * modules/fpending (Files): Reflect new file names.
31481         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31482
31483 2007-09-08  Bruno Haible  <bruno@clisp.org>
31484
31485         * m4/inttypes-h.m4: Remove stub file.
31486
31487 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31488
31489         * doc/headers/stdint.texi: Discuss #include_next issue.
31490
31491 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31492
31493         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31494
31495 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31496
31497         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31498         in variable name.
31499
31500 2007-09-03  Jim Meyering  <jim@meyering.net>
31501
31502         New module: git-version-gen.
31503         * modules/git-version-gen: New file.
31504
31505         Import changes from coreutils for bootstrap script.
31506
31507         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31508
31509         bootstrap: uses rsync to download the .po files
31510         * build-aux/bootstrap (po_download_command_format): New global.
31511         (download_po_files): Use rsync.
31512         (update_po_files): Don't remove .po files after download,
31513         so future rsync runs can take advantage of the copies.
31514
31515         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31516
31517         Solve the unnecessary-.po-file-regeneration problem once and for all.
31518         * build-aux/bootstrap (download_po_files): New function, renamed from
31519         get_translations.  Now, downloads, but doesn't update LINGUAS.
31520         (update_po_files): New function.
31521
31522         bootstrap: Ignore more.
31523         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31524         uniwidth to e.g., lib/.gitignore.
31525         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31526
31527         * build-aux/bootstrap: New setting: vc_ignore.
31528         (insert_sorted_if_absent): Create $file if absent.
31529         Adapt to new, possibly empty, list: $vc_ignore.
31530
31531         bootstrap: generate more ignorable names
31532         * build-aux/bootstrap (slurp): When generating ignorable names,
31533         also map .sin to .sed, .gperf to .c, and .y to .c.
31534
31535 2007-09-03  Jim Meyering  <jim@meyering.net>
31536
31537         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31538         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31539
31540 2007-09-02  Bruno Haible  <bruno@clisp.org>
31541
31542         Fix mis-recognition of 'mcs' on QNX 6.
31543         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31544         output contains the string "Mono".
31545         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31546         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31547
31548 2007-09-01  Bruno Haible  <bruno@clisp.org>
31549
31550         Fix collision between uniwidth/* and linebreak modules.
31551         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31552         u32_width): Remove declarations.
31553         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31554         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31555         streq3, streq2, streq1, streq0): Remove functions.
31556         (STREQ): Remove macro.
31557         (is_cjk_encoding): Remove function.
31558         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31559         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31560         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31561         * NEWS: Document the change.
31562
31563 2007-09-01  Bruno Haible  <bruno@clisp.org>
31564
31565         * lib/streq.h: Add double-inclusion guard.
31566
31567 2007-09-01  Karl Berry  <karl@gnu.org>
31568
31569         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31570
31571 2007-08-28  Jim Meyering  <jim@meyering.net>
31572
31573         Rename mreadlink_with_size to areadlink_with_size.
31574         * NEWS: Document the change.
31575         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31576         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31577         * lib/mreadlink.h: Rename this to...
31578         * lib/areadlink.h: ...this.
31579         * modules/mreadlink-with-size: Rename this to...
31580         * modules/areadlink-with-size: ...this.
31581         * lib/canonicalize.c: Reflect the renaming.
31582         * modules/canonicalize: Likewise.
31583
31584 2007-08-26  Bruno Haible  <bruno@clisp.org>
31585
31586         * gnulib-tool (func_import): When deciding which files to remove,
31587         consider also dangling symbolic links.
31588         Reported by Eric Blake.
31589
31590 2007-08-26  Bruno Haible  <bruno@clisp.org>
31591
31592         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31593
31594 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31595
31596         * lib/readline.c: Don't include getline.h, the prototype is now
31597         found in stdio.h.
31598
31599 2007-08-23  Jim Meyering  <jim@meyering.net>
31600
31601         Getdelim touchup.
31602         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31603         around the funlockfile call, since funlockfile never sets errno.
31604         Don't set errno upon failed realloc.
31605
31606 2007-08-22  Eric Blake  <ebb9@byu.net>
31607
31608         Getline touchups.
31609         * lib/getdelim.c (getdelim): Revert regression that required *n to
31610         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31611         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31612         getdelim, rather than whether implementation is missing.
31613         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31614         * lib/stdio_.h (getline): Also declare if replacement is
31615         required.
31616         * doc/functions/getdelim.texi: New file.
31617         * doc/functions/getline.texi: Likewise.
31618         * doc/gnulib.texi (Function Substitutes): Add new files.
31619         Reported by Bruno Haible.
31620
31621 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31622
31623         * users.txt: Add Guile.
31624
31625 2007-08-22  Eric Blake  <ebb9@byu.net>
31626
31627         * tests/test-getdelim.c (main): Use remove, not unlink.
31628         * tests/test-getline.c (main): Likewise.
31629
31630         Move getline and getdelim into stdio.h, per POSIX 200x.
31631         * modules/getline (Files): Remove getline.h.
31632         (Depends-on): Add stdio.
31633         (configure.ac): Add module indicator.
31634         * modules/getdelim (Files): Remove getdelim.h.
31635         (Depends-on): Add stdio.
31636         (configure.ac): Add module indicator.
31637         * modules/stdio (Makefile.am): Work with new indicators.
31638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31639         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31640         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31641         * lib/getdelim.h: Delete.
31642         * lib/getline.h: Delete.
31643         * lib/stdio_.h (getdelim, getline): Declare.
31644         * modules/getdelim-tests: New module.
31645         * modules/getline-tests: Likewise.
31646         * tests/test-getdelim.c: New file.
31647         * tests/test-getline.c: Likewise.
31648         * NEWS: Document the change.
31649         * lib/getline.c: Update choice of header.
31650         * lib/csharpcomp.c: Likewise.
31651         * lib/getpass.c: Likewise.
31652         * lib/javacomp.c: Likewise.
31653         * lib/javaversion.c: Likewise.
31654         * lib/yesno.c: Likewise.
31655         * lib/getdelim.c: Likewise.
31656         (getdelim): Set errno on failure, and avoid memory leak.
31657
31658 2007-08-19  Bruno Haible  <bruno@clisp.org>
31659
31660         * modules/closein (Depends-on): Add freadahead.
31661         * lib/closein.c: Include freadahead.h.
31662         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31663         is zero.
31664
31665 2007-08-19  Bruno Haible  <bruno@clisp.org>
31666
31667         * modules/freadahead-tests: New file.
31668         * tests/test-freadahead.sh: New file.
31669         * tests/test-freadahead.c: New file.
31670
31671         * modules/freadahead: New file.
31672         * lib/freadahead.h: New file.
31673         * lib/freadahead.c: New file.
31674         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31675         fbufmode, fpurge, freadable, fwritable.
31676
31677 2007-08-19  Eric Blake  <ebb9@byu.net>
31678
31679         Test yesno in combination with closein.
31680         * lib/yesno.c (yesno): Document use of stdin.
31681         * modules/yesno-tests (Files): New module.
31682         * tests/test-yesno.c (main): New file.
31683         * tests/test-yesno.sh: Likewise.
31684
31685 2007-08-19  Bruno Haible  <bruno@clisp.org>
31686
31687         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31688         * lib/fseeko.c (rpl_fseeko): Likewise.
31689         * lib/fseterr.c (fseterr): Likewise.
31690
31691 2007-08-19  Bruno Haible  <bruno@clisp.org>
31692
31693         * tests/test-lseek.c (main): Disable a test for BeOS.
31694         * doc/functions/lseek.texi: Document the BeOS bug.
31695
31696 2007-08-19  Bruno Haible  <bruno@clisp.org>
31697             Eric Blake  <ebb9@byu.net>
31698
31699         * lib/lseek.c: Include <sys/stat.h>.
31700         (rpl_lseek): Add workaround code also for Unix platforms.
31701         Needed for BeOS.
31702         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31703         * doc/functions/lseek.texi: Document BeOS definiency.
31704
31705 2007-08-18  Bruno Haible  <bruno@clisp.org>
31706
31707         * modules/fstrcmp-tests: New file.
31708         * tests/test-fstrcmp.c: New file.
31709
31710 2007-08-18  Bruno Haible  <bruno@clisp.org>
31711
31712         * modules/fstrcmp: New file, from GNU gettext with modifications.
31713         * lib/fstrcmp.h: New file, from GNU gettext.
31714         * lib/fstrcmp.c: New file, from GNU gettext.
31715         * MODULES.html.sh (String handling): Add fstrcmp.
31716
31717 2007-08-18  Bruno Haible  <bruno@clisp.org>
31718
31719         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31720         'bool'.
31721         (diag, compareseq): Remove const from the ctxt argument.
31722         (USE_HEURISTIC): Undefine at the end.
31723
31724 2007-08-18  Jim Meyering  <jim@meyering.net>
31725
31726         New file: lib/idcache.h
31727         * NEWS: Mention the addition.
31728         * modules/idcache (Files): Add lib/idcache.h
31729         * lib/idcache.c: Include "idcache.h".
31730         Don't include <sys/types.h>.
31731         Add a FIXME comment.
31732         Move file-scoped "static" declarations to the top.
31733         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31734
31735 2007-08-17  Bruno Haible  <bruno@clisp.org>
31736         and Paul Eggert  <eggert@cs.ucla.edu>
31737
31738         * MODULES.html.sh: Add diffseq.
31739         * modules/diffseq: New file.
31740         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31741         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31742
31743 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31744
31745         Import changes from coreutils for bootstrap script.
31746
31747         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31748
31749         * build-aux/bootstrap (slurp): Work even in environments where
31750         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31751         current code does not slurp files whose names start with ".", and
31752         this looks like it might be a troublesome area.
31753
31754         2007-07-11  Jim Meyering  <jim@meyering.net>
31755
31756         If there's a GPL vN copyright comment, require that N == 3.
31757
31758         2007-07-08  Jim Meyering  <jim@meyering.net>
31759
31760         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31761         * build-aux/bootstrap (mam_template): Move definition out of loop.
31762
31763         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31764
31765         * build-aux/bootstrap (symlink_to_dir): Rename function from
31766         symlink_to_gnulib.  Add a directory parameter.  Update all
31767         callers.
31768         (cp_mark_as_generated): Also check for -- and link to -- files in
31769         gl/.
31770
31771         2007-07-08  Jim Meyering  <jim@meyering.net>
31772
31773         Adapt to deeper hierarchy in gnulib.
31774         * build-aux/bootstrap (symlink_to_dir): If the destination
31775         directory doesn't exist, create it. This is required at least for
31776         "lib/uniwidth/cjk.h".
31777
31778         2007-05-15  Jim Meyering  <jim@meyering.net>
31779
31780         * build-aux/bootstrap: Now that generated Makefile.am files
31781         are no longer under version control, they must be created at
31782         bootstrap time.
31783
31784 2007-08-14  Ben Pfaff  <blp@gnu.org>
31785
31786         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31787
31788 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31789
31790         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31791         given the changes below.
31792         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31793         even on hosts that have padding bits beyond the supported 64.
31794
31795 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31796
31797         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31798         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31799         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31800         depends on it.
31801         (xstrtol_error): Remove.
31802         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31803         but with a different signature.
31804         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31805         * lib/xstrtol-error.c: Include exitfail.h.
31806         (xstrtol_fatal): New function, with a different signature from the
31807         old xstrtol_error, so that the caller need not worry about passing
31808         in an exit status, or about storage management of the option argument.
31809         (xstrtol_error): Now a static function.  Redo signature to
31810         implement xstrtol_fatal.  Output the correct number of hyphens in
31811         front of the option so that the caller need not worry about
31812         storage management.
31813         (N_): New macro.
31814         (_): Remove; not used now.
31815         * modules/xstrtol: Depend on getopt.
31816         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31817         of old STRTOL_FATAL_ERROR macro.
31818         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31819         of test program.
31820         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31821         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31822
31823 2007-08-08  Eric Blake  <ebb9@byu.net>
31824
31825         * lib/xstrtol-error.c: Add missing include.
31826
31827         Move xstrtol messages into gnulib domain, when --pobase is used.
31828         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31829         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31830         * modules/xstrtol (Files): Distribute new file.
31831         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31832         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31833         * tests/test-xstrtol.c: ...into new file.
31834         * tests/test-xstrtoul.c: Also test xstrtoul.
31835         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31836         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31837         * tests/test-xstrtol.sh: Drive the tests.
31838         * tests/test-xstrtoimax.sh: Likewise.
31839         * tests/test-xstrtoumax.sh: Likewise.
31840         * modules/xstrtol-tests: New module.
31841         * modules/xstrtoimax-tests: Likewise.
31842         * modules/xstrtoumax-tests: Likewise.
31843
31844 2007-08-08  Jim Meyering  <jim@meyering.net>
31845
31846         New function: mfile_name_concat.
31847         * lib/filenamecat.c (mfile_name_concat): New function, just like
31848         file_name_concat, but return NULL upon failure rather than exiting
31849         with a diagnostic.
31850         * lib/filenamecat.h: Declare it.
31851
31852 2007-08-07  Bruno Haible  <bruno@clisp.org>
31853
31854         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31855         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31856         warning from gcc.
31857         Reported by Eric Blake.
31858
31859 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31860
31861         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31862         * modules/crypto/arcfour (License): Likewise.
31863         * modules/crypto/des-tests (License): Likewise.
31864         * modules/crypto/gc-arctwo-tests (License): Likewise.
31865         * modules/crypto/gc-des-tests (License): Likewise.
31866         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31867         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31868         * modules/crypto/gc-md2-tests (License): Likewise.
31869         * modules/crypto/gc-md4-tests (License): Likewise.
31870         * modules/crypto/gc-md5-tests (License): Likewise.
31871         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31872         * modules/crypto/gc-rijndael-tests (License): Likewise.
31873         * modules/crypto/gc-sha1-tests (License): Likewise.
31874         * modules/crypto/gc-tests (License): Likewise.
31875         * modules/crypto/hmac-md5 (License): Likewise.
31876         * modules/crypto/hmac-sha1 (License): Likewise.
31877         * modules/crypto/md2-tests (License): Likewise.
31878         * modules/crypto/md4-tests (License): Likewise.
31879         * modules/crypto/md5 (License): Likewise.
31880         * modules/crypto/rijndael (License): Likewise.
31881         * modules/crypto/sha1 (License): Likewise.
31882         * modules/memxor (License): Likewise.
31883
31884 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31885         and Bruno Haible  <bruno@clisp.org>
31886
31887         * NEWS: Describe interface changes to human, xstrtol.
31888         * lib/human.h: Include <xstrtol.h>.
31889         (human_options): Return enum strtol_error, not int.  Remove
31890         bool arg; take int * instead.
31891         * lib/human.c: Don't include "gettext.h".
31892         (_): Remove; no longer used.
31893         Don't include <xstrtol.h>, since human.h does it.
31894         (human_options): Adjust to abovementioned interface changes.
31895         Do not report error to stderr; that's now the caller's
31896         responsibility.
31897         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31898         interface change.
31899         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31900         Str, Argument_type_string.  All uses changed.  Put " argument"
31901         in diagnostics to make them clearer.  Change wording of suffix
31902         message for clarity.
31903         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31904         Argument_type_string.
31905         (STRTOL_FATAL_WARN): Remove; no longer used.
31906         * modules/human (Depends-on): Remove gettext-h.
31907
31908 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31909
31910         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31911
31912 2007-07-31  Bruno Haible  <bruno@clisp.org>
31913
31914         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31915         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31916         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31917
31918 2007-07-31  Bruno Haible  <bruno@clisp.org>
31919
31920         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31921         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31922
31923 2007-07-30  Bruno Haible  <bruno@clisp.org>
31924
31925         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31926         * modules/c-ctype (License): Likewise.
31927         * modules/c-strcase (License): Likewise.
31928         * modules/check-version (License): Likewise.
31929         * modules/iconv (License): Likewise.
31930         * modules/iconv_open (License): Likewise.
31931         * modules/read-file (License): Likewise.
31932         * modules/striconv (License): Likewise.
31933         * modules/strverscmp (License): Likewise.
31934         * modules/vasprintf (License): Likewise.
31935         * modules/crypto/des (License): Likewise.
31936         * modules/crypto/gc (License): Likewise.
31937         * modules/crypto/gc-arcfour (License): Likewise.
31938         * modules/crypto/gc-arctwo (License): Likewise.
31939         * modules/crypto/gc-des (License): Likewise.
31940         * modules/crypto/gc-hmac-md5 (License): Likewise.
31941         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31942         * modules/crypto/gc-md2 (License): Likewise.
31943         * modules/crypto/gc-md4 (License): Likewise.
31944         * modules/crypto/gc-md5 (License): Likewise.
31945         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31946         * modules/crypto/gc-random (License): Likewise.
31947         * modules/crypto/gc-rijndael (License): Likewise.
31948         * modules/crypto/gc-sha1 (License): Likewise.
31949         * modules/crypto/md2 (License): Likewise.
31950         * modules/crypto/md4 (License): Likewise.
31951
31952 2007-07-30  Jim Meyering  <jim@meyering.net>
31953
31954         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31955         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31956         it has valid stat data.  This bug would cause du not to count the
31957         sizes of inaccessible directories.
31958         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31959         in <http://bugzilla.redhat.com/250077>.
31960
31961 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31962             Bruno Haible  <bruno@clisp.org>
31963
31964         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31965         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31966         #include_next, gives a diagnostic about it, but reports no error in
31967         the exit code.
31968         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31969
31970 2007-07-24  Ben Pfaff  <blp@gnu.org>
31971
31972         Improve name: "count-one-bits" is better than "popcount".
31973         * MODULES.html.sh: Update name.
31974         * lib/popcount.h: Renamed lib/count-one-bits.h.
31975         (popcount): Renamed count_one_bits.
31976         (popcountl): Renamed count_one_bits_l.
31977         (popcountll): Renamed count_one_bits_ll.
31978         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31979         * modules/popcount: Renamed module/count-one-bits.
31980         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31981         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31982
31983 2007-07-23  Ben Pfaff  <blp@gnu.org>
31984
31985         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31986         better code generation, and add U to large constants to avoid
31987         warnings, in non-GCC case.
31988         Suggested by Bruno Haible.
31989
31990 2007-07-23  Ben Pfaff  <blp@gnu.org>
31991
31992         * lib/popcount.h: Use verify_true instead of if...abort.
31993         * modules/popcount: Depend on verify module.
31994         Suggested by Jim Meyering.
31995
31996 2007-07-23  Bruno Haible  <bruno@clisp.org>
31997
31998         * gnulib-tool (func_import): Create a .cvsignore file also when the
31999         directory is not yet in CVS but the toplevel directory is. When
32000         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32001         Reported by Karl Berry.
32002
32003 2007-07-22  Ben Pfaff  <blp@gnu.org>
32004
32005         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32006         case.
32007         Suggested by Eric Blake.
32008
32009 2007-07-22  Ben Pfaff  <blp@gnu.org>
32010
32011         New module: popcount.
32012         * MODULES.html.sh: Add popcount.
32013         * modules/popcount: New file.
32014         * modules/popcount-tests: New file.
32015         * tests/test-popcount.c: New file.
32016         * lib/popcount.h: New file.
32017         * m4/popcount.m4: New file.
32018
32019 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32020
32021         * build-aux/announce-gen: Update to GPLv3.
32022
32023         * build-aux/config.guess: Update from config.
32024
32025 2007-07-21  Bruno Haible  <bruno@clisp.org>
32026
32027         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32028         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32029
32030 2007-07-20  Jim Meyering  <jim@meyering.net>
32031
32032         * check-module: Diagnose a self-dependency.
32033
32034 2007-07-19  Bruno Haible  <bruno@clisp.org>
32035
32036         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32037         empty.
32038         Reported by Eric Blake.
32039
32040 2007-07-18  Bruno Haible  <bruno@clisp.org>
32041
32042         * gnulib-tool: New options --po-base, --po-domain.
32043         (func_usage): Document them.
32044         (pobase, po_domain): New variables.
32045         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32046         DEFAULT_TEXT_DOMAIN.
32047         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32048         (func_import): Consider pobase and po_domain. Create a po/ directory.
32049         (func_create_testdir): Set pobase and po_domain to empty.
32050         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32051         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32052
32053 2007-07-18  Bruno Haible  <bruno@clisp.org>
32054
32055         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32056         EXTRA_DIST augmentation for files in build-aux/.
32057
32058 2007-07-16  Bruno Haible  <bruno@clisp.org>
32059
32060         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32061         * modules/getdelim (License): Likewise.
32062
32063 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32064
32065         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32066         * modules/d-type (License): Likewise.
32067         * modules/extensions (License): Likewise.
32068         * modules/fnmatch (License): Likewise.
32069         * modules/fseeko (License): Likewise.
32070         * modules/getaddrinfo (License): Likewise.
32071         * modules/getline (License): Likewise.
32072         * modules/getlogin_r (License): Likewise.
32073         * modules/getpass (License): Likewise.
32074         * modules/gettimeofday (License): Likewise.
32075         * modules/glob (License): Likewise.
32076         * modules/inet_ntop (License): Likewise.
32077         * modules/malloc (License): Likewise.
32078         * modules/malloca (License): Likewise.
32079         * modules/memmem (License): Likewise.
32080         * modules/mempcpy (License): Likewise.
32081         * modules/memset (License): Likewise.
32082         * modules/minmax (License): Likewise.
32083         * modules/mktime (License): Likewise.
32084         * modules/netinet_in (License): Likewise.
32085         * modules/pathmax (License): Likewise.
32086         * modules/poll (License): Likewise.
32087         * modules/regex (License): Likewise.
32088         * modules/snprintf (License): Likewise.
32089         * modules/stdbool (License): Likewise.
32090         * modules/stdint (License): Likewise.
32091         * modules/stdio (License): Likewise.
32092         * modules/strcase (License): Likewise.
32093         * modules/strcasestr (License): Likewise.
32094         * modules/strdup (License): Likewise.
32095         * modules/string (License): Likewise.
32096         * modules/strndup (License): Likewise.
32097         * modules/strnlen (License): Likewise.
32098         * modules/strpbrk (License): Likewise.
32099         * modules/strptime (License): Likewise.
32100         * modules/strsep (License): Likewise.
32101         * modules/sys_select (License): Likewise.
32102         * modules/sys_socket (License): Likewise.
32103         * modules/sys_stat (License): Likewise.
32104         * modules/sys_time (License): Likewise.
32105         * modules/time (License): Likewise.
32106         * modules/time_r (License): Likewise.
32107         * modules/timegm (License): Likewise.
32108         * modules/unistd (License): Likewise.
32109         * modules/vsnprintf (License): Likewise.
32110         * modules/wctype (License): Likewise.
32111
32112 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32113
32114         * modules/argz (License): LGPLv2+.
32115
32116 2007-07-15  Karl Berry  <karl@gnu.org>
32117
32118         * doc/gnulib.texi: revise node structure per new fdl.texi.
32119
32120 2007-07-14  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32123         the output file.
32124         * lib/uniname/uninames.h: Regenerated.
32125
32126 2007-07-14  Karl Berry  <karl@gnu.org>
32127
32128         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32129         omitting sectioning and index commands.
32130
32131 2007-07-13  Bruno Haible  <bruno@clisp.org>
32132
32133         New gnulib-tool option --more-symlinks.
32134         * gnulib-tool (func_usage): Document --more-symlinks.
32135         (do_copyrights): New variable.
32136         Recognize option --more-symlinks.
32137         (func_import): Don't add a copyright notice transform to
32138         sed_transform_lib_file if do_copyrights is empty.
32139
32140 2007-07-13  Bruno Haible  <bruno@clisp.org>
32141
32142         * lib/vasnprintf.c (decimal_point_char): Define also if
32143         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32144         && !NEED_PRINTF_DIRECTIVE_A.
32145         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32146         Gary V. Vaughan <gary@gnu.org>.
32147
32148 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32149
32150         * lib/inttypes_.h: Undo previous change, since it was fixed
32151         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32152
32153 2007-07-13  Bruno Haible  <bruno@clisp.org>
32154
32155         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32156         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32157
32158 2007-07-13  Jim Meyering  <jim@meyering.net>
32159
32160         df: Don't fail for Tru64's "file-on-file mount".
32161         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32162         so we fall through and use statfs instead.  Details here:
32163         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32164         Reported by Albert Chin.
32165
32166 2007-07-13  Bruno Haible  <bruno@clisp.org>
32167
32168         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32169         * modules/configmake (License): Likewise.
32170         * modules/gettext (License): Likewise.
32171         * modules/gettext-h (License): Likewise.
32172         * modules/include_next (License): Likewise.
32173         * modules/link-warning (License): Likewise.
32174         * modules/localcharset (License): Likewise.
32175         * modules/localename (License): Likewise.
32176         * modules/lock (License): Likewise.
32177         * modules/relocatable-lib-lgpl (License): Likewise.
32178         * modules/size_max (License): Likewise.
32179         * modules/vasnprintf (License): Likewise.
32180         * modules/wchar (License): Likewise.
32181         * modules/xsize (License): Likewise.
32182
32183 2007-07-13  Bruno Haible  <bruno@clisp.org>
32184
32185         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32186         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32187
32188 2007-07-12  Bruno Haible  <bruno@clisp.org>
32189
32190         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32191         in the modules files.
32192
32193 2007-07-11  Karl Berry  <karl@gnu.org>
32194
32195         * MODULES.html.sh (func_module): use
32196          sed -e '\|^'"${includefile}"'$|d'
32197          instead of /.../d, to avoid errors on $includefile's containing /.
32198
32199 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32200
32201         * gnulib-tool (func_import): Avoid duplication of --avoid
32202         statements
32203         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32204         names to `_' in variable names.
32205
32206 2007-07-10  Eric Blake  <ebb9@byu.net>
32207
32208         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32209         * NEWS: Document this change.
32210
32211 2007-07-08  Bruno Haible  <bruno@clisp.org>
32212
32213         Update to Unicode 5.0.
32214         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32215         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32216         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32217         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32218         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32219         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32220         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32221         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32222         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32223         U+10A3F, U+1D242..U+1D244.
32224         (nonspacing_table_ind): Update.
32225         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32226         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32227
32228 2007-07-08  Bruno Haible  <bruno@clisp.org>
32229
32230         Update to Unicode 5.0.
32231         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32232         code transform. Extend the name index field of unicode_name_to_code and
32233         unicode_code_to_name from 16 to 24 bits.
32234         * lib/uniname/uniname.c (unicode_character_name,
32235         unicode_name_character): Add the range 0x12xxx to the code transform.
32236         * lib/uniname/uninames.h: Regenerated.
32237         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32238
32239 2007-07-07  Bruno Haible  <bruno@clisp.org>
32240
32241         * modules/wcwidth-tests: New file.
32242         * tests/test-wcwidth.c: New file.
32243
32244         Work around MacOS X wcwidth() bug.
32245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32246         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32247         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32248         original wcwidth in non-UTF-8 locales.
32249         * modules/wcwidth (Depends-on): Add localcharset, streq,
32250         uniwidth/width.
32251         * doc/functions/wcwidth.texi: Update.
32252
32253 2007-07-07  Bruno Haible  <bruno@clisp.org>
32254
32255         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32256         (wcwidth): New declaration.
32257         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32258         macros.
32259         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32260         here. Prepare for creating <wchar.h> unconditionally.
32261         * modules/wchar (Depends-on): Add link-warning.
32262         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32263         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32264         * lib/wcwidth.h: Remove file.
32265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32266         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32267         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32268         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32269         (Include): Replace wcwidth.h with <wchar.h>.
32270         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32271         * lib/mbchar.h: Don't include wcwidth.h.
32272         * lib/mbswidth.c: Likewise.
32273         * NEWS: Mention the change.
32274
32275 2007-07-07  Bruno Haible  <bruno@clisp.org>
32276
32277         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32278         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32279         definition with an external declaration.
32280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32281         defined as a function. Remove AC_C_INLINE requirement.
32282         * modules/wcwidth (Files): Add lib/wcwidth.c.
32283         (Makefile.am): Remove redundant statement.
32284
32285 2007-07-07  Bruno Haible  <bruno@clisp.org>
32286
32287         * MODULES.html.sh (Unicode string functions): Add the new modules.
32288
32289         * tests/uniwidth/test-u32-strwidth.c: New file.
32290         * modules/uniwidth/u32-strwidth-tests: New file.
32291
32292         * lib/uniwidth/u32-strwidth.c: New file.
32293         * modules/uniwidth/u32-strwidth: New file.
32294
32295         * tests/uniwidth/test-u16-strwidth.c: New file.
32296         * modules/uniwidth/u16-strwidth-tests: New file.
32297
32298         * lib/uniwidth/u16-strwidth.c: New file.
32299         * modules/uniwidth/u16-strwidth: New file.
32300
32301         * tests/uniwidth/test-u8-strwidth.c: New file.
32302         * modules/uniwidth/u8-strwidth-tests: New file.
32303
32304         * lib/uniwidth/u8-strwidth.c: New file.
32305         * modules/uniwidth/u8-strwidth: New file.
32306
32307         * tests/uniwidth/test-u32-width.c: New file.
32308         * modules/uniwidth/u32-width-tests: New file.
32309
32310         * lib/uniwidth/u32-width.c: New file.
32311         * modules/uniwidth/u32-width: New file.
32312
32313         * tests/uniwidth/test-u16-width.c: New file.
32314         * modules/uniwidth/u16-width-tests: New file.
32315
32316         * lib/uniwidth/u16-width.c: New file.
32317         * modules/uniwidth/u16-width: New file.
32318
32319         * tests/uniwidth/test-u8-width.c: New file.
32320         * modules/uniwidth/u8-width-tests: New file.
32321
32322         * lib/uniwidth/u8-width.c: New file.
32323         * modules/uniwidth/u8-width: New file.
32324
32325         * tests/uniwidth/test-uc_width.c: New file.
32326         * modules/uniwidth/width-tests: New file.
32327
32328         * lib/uniwidth/width.c: New file, from GNU libiconv.
32329         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32330         * modules/uniwidth/width: New file.
32331
32332         * lib/uniwidth.h: New file, from GNU libiconv.
32333         * modules/uniwidth/base: New file.
32334
32335 2007-07-07  Bruno Haible  <bruno@clisp.org>
32336
32337         * lib/uniname.h: New file, from GNU gettext.
32338         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32339         * lib/uniname/uninames.h: New file, from GNU gettext.
32340         * lib/uniname/uniname.c: New file, from GNU gettext.
32341         * tests/uniname/test-uninames.sh: New file.
32342         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32343         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32344         * modules/uniname/base: New file.
32345         * modules/uniname/uniname: New file.
32346         * modules/uniname/uniname-tests: New file.
32347         * MODULES.html.sh (Unicode string functions): Add the new modules.
32348
32349 2007-07-06  Bruno Haible  <bruno@clisp.org>
32350
32351         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32352
32353 2007-07-06  Bruno Haible  <bruno@clisp.org>
32354
32355         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32356         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32357         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32358         include <sys/time.h>.
32359         Reported by Eric Blake.
32360
32361 2007-07-06  Eric Blake  <ebb9@byu.net>
32362
32363         Fix testing canonicalize on cygwin.
32364         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32365         Revert patch from 2007-06-19.
32366         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32367         canonicalize module is also in use.
32368         * tests/test-canonicalize.c: New file.
32369         * tests/test-canonicalize.sh: Likewise.
32370         * modules/canonicalize-tests: Likewise.
32371
32372 2007-07-06  Jim Meyering  <jim@meyering.net>
32373
32374         * lib/getugroups.c (getugroups): Detect getgrent failure.
32375         Adjust comment to reflect reality: this function may return -1.
32376
32377 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32378
32379         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32380         the new TP address.
32381         (usage): Fix typo
32382         (gnulib_mk): New variable.
32383
32384 2007-07-05  Jim Meyering  <jim@meyering.net>
32385
32386         Don't let endgrent clobber errno, no matter how improbable.
32387         * lib/getugroups.c (getugroups): Save and restore errno around
32388         endgrent call.
32389
32390         Close the group DB even when failing with 2^31 or more members.
32391         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32392
32393 2007-07-04  Jim Meyering  <jim@meyering.net>
32394
32395         * lib/getugroups.h: New file.
32396         * lib/getugroups.c: Include "getugroups.h".
32397         Remove uses of "register" keyword.
32398         Move local variable, "cp", down into scope where used.
32399         Give "username" parameter the "const" attribute.
32400         * modules/getugroups (Files): Add lib/getugroups.h
32401
32402 2007-07-04  Karl Berry  <karl@gnu.org>
32403
32404         * MODULES.html.sh (func_all_modules): Complete rename of
32405         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32406
32407 2007-07-02  Bruno Haible  <bruno@clisp.org>
32408
32409         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32410         mode, when inttypes.h comes from gnulib.
32411         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32412
32413 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32414
32415         * NEWS: Mention lgpl module name change.
32416
32417         * modules/lgpl-2.1: Renamed from lgpl.
32418
32419         * NEWS: Mention gpl module name change.
32420
32421         * modules/gpl-3.0: New file, based on gpl-2.0.
32422
32423         * modules/gpl-2.0: Renamed from gpl.
32424
32425         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32426         doc/gpl-2.0.texi.
32427
32428 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32429
32430         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32431         #define __STDC_LIMIT_MACROS temporarily while including
32432         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32433         Problem reported by Joel E. Denny in
32434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32435
32436 2007-07-01  Bruno Haible  <bruno@clisp.org>
32437
32438         * lib/unistdio.h: New file.
32439         * lib/unistdio/u-asnprintf.h: New file.
32440         * lib/unistdio/u-asprintf.h: New file.
32441         * lib/unistdio/u-printf-args.c: New file.
32442         * lib/unistdio/u-printf-args.h: New file.
32443         * lib/unistdio/u-printf-parse.h: New file.
32444         * lib/unistdio/u-snprintf.h: New file.
32445         * lib/unistdio/u-sprintf.h: New file.
32446         * lib/unistdio/u-vasprintf.h: New file.
32447         * lib/unistdio/u-vsnprintf.h: New file.
32448         * lib/unistdio/u-vsprintf.h: New file.
32449         * lib/unistdio/ulc-asnprintf.c: New file.
32450         * lib/unistdio/ulc-asprintf.c: New file.
32451         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32452         * lib/unistdio/ulc-printf-parse.c: New file.
32453         * lib/unistdio/ulc-snprintf.c: New file.
32454         * lib/unistdio/ulc-sprintf.c: New file.
32455         * lib/unistdio/ulc-vasnprintf.c: New file.
32456         * lib/unistdio/ulc-vasprintf.c: New file.
32457         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32458         * lib/unistdio/ulc-vsnprintf.c: New file.
32459         * lib/unistdio/ulc-vsprintf.c: New file.
32460         * lib/unistdio/u8-asnprintf.c: New file.
32461         * lib/unistdio/u8-asprintf.c: New file.
32462         * lib/unistdio/u8-printf-parse.c: New file.
32463         * lib/unistdio/u8-snprintf.c: New file.
32464         * lib/unistdio/u8-sprintf.c: New file.
32465         * lib/unistdio/u8-vasnprintf.c: New file.
32466         * lib/unistdio/u8-vasprintf.c: New file.
32467         * lib/unistdio/u8-vsnprintf.c: New file.
32468         * lib/unistdio/u8-vsprintf.c: New file.
32469         * lib/unistdio/u8-u8-asnprintf.c: New file.
32470         * lib/unistdio/u8-u8-asprintf.c: New file.
32471         * lib/unistdio/u8-u8-snprintf.c: New file.
32472         * lib/unistdio/u8-u8-sprintf.c: New file.
32473         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32474         * lib/unistdio/u8-u8-vasprintf.c: New file.
32475         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32476         * lib/unistdio/u8-u8-vsprintf.c: New file.
32477         * lib/unistdio/u16-asnprintf.c: New file.
32478         * lib/unistdio/u16-asprintf.c: New file.
32479         * lib/unistdio/u16-printf-parse.c: New file.
32480         * lib/unistdio/u16-snprintf.c: New file.
32481         * lib/unistdio/u16-sprintf.c: New file.
32482         * lib/unistdio/u16-vasnprintf.c: New file.
32483         * lib/unistdio/u16-vasprintf.c: New file.
32484         * lib/unistdio/u16-vsnprintf.c: New file.
32485         * lib/unistdio/u16-vsprintf.c: New file.
32486         * lib/unistdio/u16-u16-asnprintf.c: New file.
32487         * lib/unistdio/u16-u16-asprintf.c: New file.
32488         * lib/unistdio/u16-u16-snprintf.c: New file.
32489         * lib/unistdio/u16-u16-sprintf.c: New file.
32490         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32491         * lib/unistdio/u16-u16-vasprintf.c: New file.
32492         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32493         * lib/unistdio/u16-u16-vsprintf.c: New file.
32494         * lib/unistdio/u32-asnprintf.c: New file.
32495         * lib/unistdio/u32-asprintf.c: New file.
32496         * lib/unistdio/u32-printf-parse.c: New file.
32497         * lib/unistdio/u32-snprintf.c: New file.
32498         * lib/unistdio/u32-sprintf.c: New file.
32499         * lib/unistdio/u32-vasnprintf.c: New file.
32500         * lib/unistdio/u32-vasprintf.c: New file.
32501         * lib/unistdio/u32-vsnprintf.c: New file.
32502         * lib/unistdio/u32-vsprintf.c: New file.
32503         * lib/unistdio/u32-u32-asnprintf.c: New file.
32504         * lib/unistdio/u32-u32-asprintf.c: New file.
32505         * lib/unistdio/u32-u32-snprintf.c: New file.
32506         * lib/unistdio/u32-u32-sprintf.c: New file.
32507         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32508         * lib/unistdio/u32-u32-vasprintf.c: New file.
32509         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32510         * lib/unistdio/u32-u32-vsprintf.c: New file.
32511         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32512         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32513         * tests/unistdio/test-ulc-printf1.h: New file.
32514         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32515         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32516         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32517         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32518         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32519         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32520         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32521         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32522         * tests/unistdio/test-u8-asnprintf1.c: New file.
32523         * tests/unistdio/test-u8-asnprintf1.h: New file.
32524         * tests/unistdio/test-u8-printf1.h: New file.
32525         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32526         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32527         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32528         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32529         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32530         * tests/unistdio/test-u8-vasprintf1.c: New file.
32531         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32532         * tests/unistdio/test-u8-vsprintf1.c: New file.
32533         * tests/unistdio/test-u16-asnprintf1.c: New file.
32534         * tests/unistdio/test-u16-asnprintf1.h: New file.
32535         * tests/unistdio/test-u16-printf1.h: New file.
32536         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32537         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32538         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32539         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32540         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32541         * tests/unistdio/test-u16-vasprintf1.c: New file.
32542         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32543         * tests/unistdio/test-u16-vsprintf1.c: New file.
32544         * tests/unistdio/test-u32-asnprintf1.c: New file.
32545         * tests/unistdio/test-u32-asnprintf1.h: New file.
32546         * tests/unistdio/test-u32-printf1.h: New file.
32547         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32548         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32549         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32550         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32551         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32552         * tests/unistdio/test-u32-vasprintf1.c: New file.
32553         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32554         * tests/unistdio/test-u32-vsprintf1.c: New file.
32555         * modules/unistdio/base: New file.
32556         * modules/unistdio/u-printf-args: New file.
32557         * modules/unistdio/ulc-asnprintf: New file.
32558         * modules/unistdio/ulc-asprintf: New file.
32559         * modules/unistdio/ulc-fprintf: New file.
32560         * modules/unistdio/ulc-printf-parse: New file.
32561         * modules/unistdio/ulc-snprintf: New file.
32562         * modules/unistdio/ulc-sprintf: New file.
32563         * modules/unistdio/ulc-vasnprintf: New file.
32564         * modules/unistdio/ulc-vasprintf: New file.
32565         * modules/unistdio/ulc-vfprintf: New file.
32566         * modules/unistdio/ulc-vsnprintf: New file.
32567         * modules/unistdio/ulc-vsprintf: New file.
32568         * modules/unistdio/u8-asnprintf: New file.
32569         * modules/unistdio/u8-asprintf: New file.
32570         * modules/unistdio/u8-printf-parse: New file.
32571         * modules/unistdio/u8-snprintf: New file.
32572         * modules/unistdio/u8-sprintf: New file.
32573         * modules/unistdio/u8-vasnprintf: New file.
32574         * modules/unistdio/u8-vasprintf: New file.
32575         * modules/unistdio/u8-vsnprintf: New file.
32576         * modules/unistdio/u8-vsprintf: New file.
32577         * modules/unistdio/u8-u8-asnprintf: New file.
32578         * modules/unistdio/u8-u8-asprintf: New file.
32579         * modules/unistdio/u8-u8-snprintf: New file.
32580         * modules/unistdio/u8-u8-sprintf: New file.
32581         * modules/unistdio/u8-u8-vasnprintf: New file.
32582         * modules/unistdio/u8-u8-vasprintf: New file.
32583         * modules/unistdio/u8-u8-vsnprintf: New file.
32584         * modules/unistdio/u8-u8-vsprintf: New file.
32585         * modules/unistdio/u16-asnprintf: New file.
32586         * modules/unistdio/u16-asprintf: New file.
32587         * modules/unistdio/u16-printf-parse: New file.
32588         * modules/unistdio/u16-snprintf: New file.
32589         * modules/unistdio/u16-sprintf: New file.
32590         * modules/unistdio/u16-vasnprintf: New file.
32591         * modules/unistdio/u16-vasprintf: New file.
32592         * modules/unistdio/u16-vsnprintf: New file.
32593         * modules/unistdio/u16-vsprintf: New file.
32594         * modules/unistdio/u16-u16-asnprintf: New file.
32595         * modules/unistdio/u16-u16-asprintf: New file.
32596         * modules/unistdio/u16-u16-snprintf: New file.
32597         * modules/unistdio/u16-u16-sprintf: New file.
32598         * modules/unistdio/u16-u16-vasnprintf: New file.
32599         * modules/unistdio/u16-u16-vasprintf: New file.
32600         * modules/unistdio/u16-u16-vsnprintf: New file.
32601         * modules/unistdio/u16-u16-vsprintf: New file.
32602         * modules/unistdio/u32-asnprintf: New file.
32603         * modules/unistdio/u32-asprintf: New file.
32604         * modules/unistdio/u32-printf-parse: New file.
32605         * modules/unistdio/u32-snprintf: New file.
32606         * modules/unistdio/u32-sprintf: New file.
32607         * modules/unistdio/u32-vasnprintf: New file.
32608         * modules/unistdio/u32-vasprintf: New file.
32609         * modules/unistdio/u32-vsnprintf: New file.
32610         * modules/unistdio/u32-vsprintf: New file.
32611         * modules/unistdio/u32-u32-asnprintf: New file.
32612         * modules/unistdio/u32-u32-asprintf: New file.
32613         * modules/unistdio/u32-u32-snprintf: New file.
32614         * modules/unistdio/u32-u32-sprintf: New file.
32615         * modules/unistdio/u32-u32-vasnprintf: New file.
32616         * modules/unistdio/u32-u32-vasprintf: New file.
32617         * modules/unistdio/u32-u32-vsnprintf: New file.
32618         * modules/unistdio/u32-u32-vsprintf: New file.
32619         * modules/unistdio/ulc-asnprintf-tests: New file.
32620         * modules/unistdio/ulc-vasnprintf-tests: New file.
32621         * modules/unistdio/ulc-vasprintf-tests: New file.
32622         * modules/unistdio/ulc-vsnprintf-tests: New file.
32623         * modules/unistdio/ulc-vsprintf-tests: New file.
32624         * modules/unistdio/u8-asnprintf-tests: New file.
32625         * modules/unistdio/u8-vasnprintf-tests: New file.
32626         * modules/unistdio/u8-vasprintf-tests: New file.
32627         * modules/unistdio/u8-vsnprintf-tests: New file.
32628         * modules/unistdio/u8-vsprintf-tests: New file.
32629         * modules/unistdio/u16-asnprintf-tests: New file.
32630         * modules/unistdio/u16-vasnprintf-tests: New file.
32631         * modules/unistdio/u16-vasprintf-tests: New file.
32632         * modules/unistdio/u16-vsnprintf-tests: New file.
32633         * modules/unistdio/u16-vsprintf-tests: New file.
32634         * modules/unistdio/u32-asnprintf-tests: New file.
32635         * modules/unistdio/u32-vasnprintf-tests: New file.
32636         * modules/unistdio/u32-vasprintf-tests: New file.
32637         * modules/unistdio/u32-vsnprintf-tests: New file.
32638         * modules/unistdio/u32-vsprintf-tests: New file.
32639         * MODULES.html.sh (Unicode string functions): Add the new modules.
32640
32641 2007-07-01  Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/sprintf.c (sprintf): Limit the available length estimation,
32644         to avoid address wraparound.
32645         * lib/vsprintf.c (vsprintf): Likewise.
32646         * modules/sprintf-posix (Dependencies): Add stdint.
32647         * modules/vsprintf-posix (Dependencies): Likewise.
32648
32649 2007-07-01  Bruno Haible  <bruno@clisp.org>
32650
32651         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32652         Windows PATH as well. Conservative double-quoting. Comments.
32653
32654 2007-07-01  Bruno Haible  <bruno@clisp.org>
32655             Eric Blake  <ebb9@byu.net>
32656             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32657
32658         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32659         empty components in $PATH, denoting '.'.
32660
32661 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32662
32663         * gnulib-tool: Fix indentation.
32664         (func_create_megatestdir): Likewise.
32665         Report by Bruno Haible.
32666
32667 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32668
32669         Sync from Automake.
32670         * build-aux/gnupload: Fix shell portability issues with for loops.
32671         Report by Karl Berry.
32672
32673 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32674
32675         * build-aux/maint.mk (POURL): Use translationproject.org.
32676
32677 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32678             Bruno Haible  <bruno@clisp.org>
32679
32680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32681         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32682         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32683         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32684         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32685
32686 2007-06-27  Bruno Haible  <bruno@clisp.org>
32687
32688         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32689         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32690
32691 2007-06-26  Karl Berry  <karl@gnu.org>
32692
32693         * MODULES.html.sh: remove xreadlink-with-size.
32694
32695 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32696
32697         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32698         method that I hope also handles the double-include problem noted
32699         by Bruno Haible in
32700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32701
32702 2007-06-23  Bruno Haible  <bruno@clisp.org>
32703
32704         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32705         Don't let the 'mostlyclean' target fail if the last subdirectory could
32706         not be removed.
32707         Reported by Karl Berry.
32708
32709 2007-06-23  Bruno Haible  <bruno@clisp.org>
32710
32711         * gnulib-tool (echo): Add a speedier workaround for ksh.
32712         * tests/test-echo.sh: Likewise.
32713
32714 2007-06-23  Bruno Haible  <bruno@clisp.org>
32715
32716         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32717         * tests/test-echo.sh: Likewise.
32718
32719 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32720
32721         * gnulib-tool (IFS): Initialize early, so we don't set it to
32722         empty later.
32723         (self_abspathname): Rewrite algorithm to set it, reindent.
32724         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32725         (func_create_megatestdir): Merge some sed scripts.
32726
32727 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32728
32729         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32730         exposed by Sun Studio 11 cc on Solaris 8.
32731
32732 2007-06-22  Bruno Haible  <bruno@clisp.org>
32733
32734         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32735         backslashes.
32736         * tests/test-echo.sh: New file.
32737
32738 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32739
32740         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32741         simplify `sed_replace_build_aux' scripts, they are portable but
32742         echoing them with `echo' is not.
32743         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32744
32745 2007-06-21  Karl Berry  <karl@gnu.org>
32746
32747         * config/srclist.txt: guess we can't handle the licenses via
32748         srclist at the moment.
32749
32750 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32751
32752         * MODULES.html.sh: Add include_next.
32753         * modules/include_next: New file.
32754
32755 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32756
32757         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32758         INCLUDE_NEXT.
32759         (gl_CHECK_NEXT_HEADERS): New macro.
32760         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32761         the obsolescent gl_ABSOLUTE_HEADER.
32762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32763         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32764         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32765         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32766         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32767         * m4/math_h.m4 (gl_MATH_H): Likewise.
32768         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32769         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32770         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32771         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32772         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32773         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32774         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32775         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32776         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32778         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32779         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32780         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32781         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32782         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32783         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32784         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32785         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32786         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32787         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32788         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32789         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32790         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32791         * lib/float_.h: Likewise.
32792         * lib/inttypes_.h: Likewise.
32793         * lib/math_.h: Likewise.
32794         * lib/search_.h: Likewise.
32795         * lib/signal_.h: Likewise.
32796         * lib/stdint_.h: Likewise.
32797         * lib/stdio_.h: Likewise.
32798         * lib/stdlib_.h: Likewise.
32799         * lib/string_.h: Likewise.
32800         * lib/sys_stat_.h: Likewise.
32801         * lib/sys_time_.h: Likewise.
32802         * lib/time_.h: Likewise.
32803         * lib/unistd_.h: Likewise.
32804         * lib/wchar_.h: Likewise.
32805         * lib/wctype_.h: Likewise.
32806         * lib/dirent_.h: Likewise.
32807         * lib/iconv_.h: Likewise.
32808         * lib/locale_.h: Likewise.
32809         * lib/netinet_in_.h: Likewise.
32810         * lib/sys_select_.h: Likewise.
32811         * lib/sys_socket_.h: Likewise.
32812         * lib/sysexits_.h: Likewise.
32813         * modules/fcntl (Depends-on): Depend on include_next, not
32814         absolute_header.
32815         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32816         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32817         * modules/fchdir: Likewise.
32818         * modules/float: Likewise.
32819         * modules/iconv_open: Likewise.
32820         * modules/inttypes: Likewise.
32821         * modules/locale: Likewise.
32822         * modules/math: Likewise.
32823         * modules/netinet_in: Likewise.
32824         * modules/search: Likewise.
32825         * modules/signal: Likewise.
32826         * modules/stdint: Likewise.
32827         * modules/stdio: Likewise.
32828         * modules/stdlib: Likewise.
32829         * modules/string: Likewise.
32830         * modules/sys_select: Likewise.
32831         * modules/sys_socket: Likewise.
32832         * modules/sys_stat: Likewise.
32833         * modules/sys_time: Likewise.
32834         * modules/sysexits: Likewise.
32835         * modules/time: Likewise.
32836         * modules/unistd: Likewise.
32837         * modules/wchar: Likewise.
32838         * modules/wctype: Likewise.
32839         * modules/sys_stat: Change maintainer to "all".
32840         * modules/unistd: Likewise.
32841
32842 2007-06-20  Karl Berry  <karl@gnu.org>
32843
32844         * config/srclist.txt: track www changes in license files.
32845
32846 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32847
32848         * build-aux/bootstrap: Remove stray dot.
32849         Make sure build_aux settings are honored when linking
32850         gnulib_extra_files.
32851
32852 2007-06-19  Eric Blake  <ebb9@byu.net>
32853
32854         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32855         Allow compilation on cygwin.
32856
32857 2007-06-19  Jim Meyering  <jim@meyering.net>
32858
32859         xreadlink-with-size: Remove module.  No longer used.
32860         Ex-callers now use xreadlink or mreadlink-with-size.
32861         * modules/xreadlink-with-size: Remove module.
32862         * lib/xreadlink-with-size.c: Remove file.
32863         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32864         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32865         just before the function definition *is* accurate.
32866
32867         Eliminate one way canonicalize_filename_mode could exit.
32868         * lib/canonicalize.c (canonicalize_filename_mode):
32869         Use mreadlink_with_size, not xreadlink_with_size.
32870
32871 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32872
32873         Detect porting problems to FreeBSD/arm, which has time_t wider than
32874         long int.  Original problem reported for GNU diff by Xin Li in
32875         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32876         * modules/getdate (Depends-on): Add intprops, verify.
32877         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32878         is an integer type no wider than long int.
32879
32880 2007-06-18  Jim Meyering  <jim@meyering.net>
32881
32882         New module: mreadlink-with-size.
32883         * MODULES.html.sh: Add mreadlink-with-size.
32884         * modules/mreadlink-with-size: New module
32885         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32886         not xreadlink-with-size.
32887         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32888
32889 2007-06-16  Bruno Haible  <bruno@clisp.org>
32890
32891         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32892         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32893         Reported by Gary V. Vaughan <gary@gnu.org>.
32894
32895 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32896
32897         Revamp lchown so that it lives in unistd.h where it belongs.
32898         * lib/lchown.h: Remove.
32899         * lib/dirchownmod.c: Don't include lib/lchown.h.
32900         * lib/fchownat.c: Likewise.
32901         * lib/openat.c: Likewise.
32902         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32903         does not follow symlinks.
32904         (EOPNOTSUPP): Define if not defined.
32905         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32906         is defined to 0.
32907         (lchown): New decl.
32908         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32909         Do not check for lchown decl.
32910         Set REPLACE_LCHOWN.
32911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32912         REPLACE_LCHOWN.
32913         * modules/chown: Make it clear it follows symlinks.
32914         * modules/lchown: Make it clear it doesn't follow symlinks.
32915         (Files): Remove lib/lchown.h
32916         (Depends-on): Add unistd.
32917         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32918         (Include): Include <unistd.h>, not "lchown.h".
32919         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32920         REPLACE_LCHOWN.
32921
32922 2007-06-15  Jim Meyering  <jim@meyering.net>
32923
32924         Change license (GPL to LGPL) of fsusage and dependents.
32925         * modules/fsusage (License): Change to LGPL.
32926         * modules/full-read (License): Likewise.
32927         * modules/full-write (License): Likewise.
32928         * modules/safe-read (License): Likewise.
32929         * modules/safe-write (License): Likewise.
32930
32931 2007-06-14  Ben Pfaff  <blp@gnu.org>
32932
32933         Missing part of allocsa -> malloca transition.
32934         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32935         gl_MALLOCA.
32936
32937 2007-06-12  Bruno Haible  <bruno@clisp.org>
32938
32939         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32940         to ia64, x86_64, i386.
32941         Reported by Eric Blake.
32942
32943 2007-06-12  Bruno Haible  <bruno@clisp.org>
32944
32945         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32946         cross-compiling to x86_64.
32947
32948 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32949
32950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32951         glitch reported by Ralf Wildenhues in
32952         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32953
32954         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32955         Vin Shelton.
32956
32957 2007-06-11  Bruno Haible  <bruno@clisp.org>
32958
32959         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32960         replacement string.
32961         Reported by Eric Blake.
32962
32963 2007-06-10  Bruno Haible  <bruno@clisp.org>
32964
32965         Prepare vasnprintf code for use with Unicode strings.
32966         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32967         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32968         TYPE_U32_STRING.
32969         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32970         a_u32_string variants.
32971         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32972         * lib/printf-args.c: Don't include config.h and the specification
32973         header if PRINTF_FETCHARGS is already defined.
32974         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32975         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32976         TYPE_U16_STRING, TYPE_U32_STRING.
32977         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32978         u16_directive, u16_directives, u32_directive, u32_directives): New
32979         types.
32980         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32981         New declarations.
32982         * lib/printf-parse.c: Don't include config.h and the specification
32983         header if PRINTF_PARSE is already defined. Eliminate the set of
32984         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32985         them now. Include c-ctype.h.
32986         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32987         directive and CHAR_T_ONLY_ASCII.
32988         * lib/vasnprintf.c: Don't include config.h and the specification header
32989         if VASNPRINTF is already defined.
32990         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32991         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32992         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32993         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32994         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32995         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32996         code accordingly.
32997         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32998         pad_ourselves also in this case, with the 'c' and 's' directives, and
32999         with a different notion of "width".
33000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33001
33002 2007-06-10  Bruno Haible  <bruno@clisp.org>
33003
33004         * modules/unistr/u32-mbsnlen: New file.
33005         * lib/unistr/u32-mbsnlen.c: New file.
33006
33007         * modules/unistr/u16-mbsnlen: New file.
33008         * lib/unistr/u16-mbsnlen.c: New file.
33009
33010         * modules/unistr/u8-mbsnlen: New file.
33011         * lib/unistr/u8-mbsnlen.c: New file.
33012
33013         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33014         declarations.
33015
33016 2007-06-10  Bruno Haible  <bruno@clisp.org>
33017
33018         * lib/string_.h (mbsnlen): New declaration.
33019         * lib/mbsnlen.c: New file.
33020         * m4/mbsnlen.m4: New file.
33021         * modules/mbsnlen: New file.
33022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33023         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33024         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33025
33026 2007-06-10  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33029
33030 2007-06-10  Bruno Haible  <bruno@clisp.org>
33031
33032         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33033         * lib/mbuiter.h: Likewise.
33034
33035 2007-06-10  Bruno Haible  <bruno@clisp.org>
33036
33037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33038         declaration.
33039
33040 2007-06-10  Karl Berry  <karl@gnu.org>
33041
33042         * config/srclist.txt: remove gettext entries, Bruno prefers
33043         to update individually.
33044
33045 2007-06-10  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33048         'maxlen'. Ensure only length + width bytes are allocated, not
33049         length + 1 + width.
33050
33051 2007-06-09  Bruno Haible  <bruno@clisp.org>
33052
33053         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33054         (CHAR_T): Remove macro.
33055         (VASNPRINTF): Update.
33056
33057 2007-06-09  Bruno Haible  <bruno@clisp.org>
33058
33059         * MODULES.html.sh (Unicode string functions): Add the new modules.
33060
33061         * modules/uniconv/u32-conv-to-enc: New file.
33062         * lib/uniconv/u32-conv-to-enc.c: New file.
33063         * modules/uniconv/u32-conv-to-enc-tests: New file.
33064         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33065
33066         * modules/uniconv/u16-conv-to-enc: New file.
33067         * lib/uniconv/u16-conv-to-enc.c: New file.
33068         * lib/uniconv/u-conv-to-enc.h: New file.
33069         * modules/uniconv/u16-conv-to-enc-tests: New file.
33070         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33071
33072         * modules/uniconv/u8-conv-to-enc: New file.
33073         * lib/uniconv/u8-conv-to-enc.c: New file.
33074         * modules/uniconv/u8-conv-to-enc-tests: New file.
33075         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33076
33077         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33078         u32_conv_to_encoding): New declarations.
33079
33080 2007-06-09  Bruno Haible  <bruno@clisp.org>
33081
33082         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33083
33084 2007-06-09  Bruno Haible  <bruno@clisp.org>
33085
33086         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33087         * modules/malloca: Renamed from modules/allocsa, updated.
33088         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33089         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33090         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33091         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33092         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33093         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33094         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33095         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33096         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33097         * modules/c-strcasestr (Depends-on): Update.
33098         * lib/c-strcasestr.c: Update.
33099         * modules/c-strstr (Depends-on): Update.
33100         * lib/c-strstr.c: Update.
33101         * modules/canonicalize-lgpl (Depends-on): Update.
33102         * lib/canonicalize-lgpl.c: Update.
33103         * modules/clean-temp (Depends-on): Update.
33104         * lib/clean-temp.c: Update.
33105         * modules/csharpcomp (Depends-on): Update.
33106         * lib/csharpcomp.c: Update.
33107         * modules/csharpexec (Depends-on): Update.
33108         * lib/csharpexec.c: Update.
33109         * modules/javacomp (Depends-on): Update.
33110         * lib/javacomp.c: Update.
33111         * modules/javaexec (Depends-on): Update.
33112         * lib/javaexec.c: Update.
33113         * modules/mbscasestr (Depends-on): Update.
33114         * lib/mbscasestr.c: Update.
33115         * modules/mbsstr (Depends-on): Update.
33116         * lib/mbsstr.c: Update.
33117         * modules/setenv (Depends-on): Update.
33118         * lib/setenv.c: Update.
33119         * modules/strcasestr (Depends-on): Update.
33120         * lib/strcasestr.c: Update.
33121         * modules/striconveha (Depends-on): Update.
33122         * lib/striconveha.c: Update.
33123         * modules/relocatable-prog-wrapper (Files): Update.
33124         * lib/relocwrapper.c: Update.
33125         * build-aux/install-reloc: Update.
33126         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33127
33128 2007-06-08  Bruno Haible  <bruno@clisp.org>
33129
33130         Port to uClibc.
33131         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33132         * lib/fpurge.c (fpurge): Likewise.
33133         * lib/freading.c (freading): Likewise.
33134         * lib/fseeko.c (rpl_fseeko): Likewise.
33135         * lib/fseterr.c (fseterr): Likewise.
33136         * lib/fwriting.c (fwriting): Likewise.
33137         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33138
33139 2007-06-08  Bruno Haible  <bruno@clisp.org>
33140
33141         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33142         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33143         * modules/gettext (Files): Add m4/intlmacosx.m4.
33144
33145 2007-06-07  Bruno Haible  <bruno@clisp.org>
33146
33147         * modules/localename-tests: New file.
33148         * tests/test-localename.c: New file.
33149
33150         New module 'localename'.
33151         * lib/localename.h: New file.
33152         * lib/localename.c: New file, from GNU gettext.
33153         * m4/localename.m4: New file.
33154         * modules/localename: New file.
33155
33156 2007-06-07  Bruno Haible  <bruno@clisp.org>
33157
33158         Work around the lack of <wchar.h> on some builds of uClibc.
33159         * doc/headers/wchar.texi: Update.
33160         * lib/wchar_.h: Include <wchar.h> only if it exists.
33161         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33162         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33163         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33164         doesn't exist.
33165         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33166         * modules/mbfile (Depends-on): Add wchar.
33167         * modules/mbiter (Depends-on): Likewise.
33168         * modules/mbuiter (Depends-on): Likewise.
33169         Reported by Simon Josefsson.
33170
33171 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33172
33173         Work around problem reported by Steven M. Schweda in
33174         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33175         Tru64 5.1B with the Compaq compiler environment installed declares
33176         an 'isblank' function but does not define it in the C library.
33177         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33178         * lib/regex_internal.h (isblank): Likewise.
33179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33180         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33181
33182 2007-06-05  Bruno Haible  <bruno@clisp.org>
33183
33184         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33185         ia64.
33186         * modules/printf-safe: New file.
33187         * modules/fprintf-posix (Depends-on): Add printf-safe.
33188         * modules/printf-posix (Depends-on): Likewise.
33189         * modules/snprintf-posix (Depends-on): Likewise.
33190         * modules/sprintf-posix (Depends-on): Likewise.
33191         * modules/vasnprintf-posix (Depends-on): Likewise.
33192         * modules/vasprintf-posix (Depends-on): Likewise.
33193         * modules/vfprintf-posix (Depends-on): Likewise.
33194         * modules/vprintf-posix (Depends-on): Likewise.
33195         * modules/vsnprintf-posix (Depends-on): Likewise.
33196         * modules/vsprintf-posix (Depends-on): Likewise.
33197         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33198         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33199         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33200         "no" on i386, x86_64, ia64.
33201         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33202         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33203         on i386, x86_64, ia64.
33204         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33205         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33206         on i386, x86_64, ia64.
33207         * tests/test-vasnprintf-posix.c: Include float.h.
33208         (LDBL80_WORDS): New macro.
33209         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33210         on i386, x86_64, ia64.
33211         * tests/test-vasprintf-posix.c: Include float.h.
33212         (LDBL80_WORDS): New macro.
33213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33214         on i386, x86_64, ia64.
33215         * tests/test-snprintf-posix.c: Include float.h.
33216         * tests/test-sprintf-posix.c: Likewise.
33217         * tests/test-vsnprintf-posix.c: Likewise.
33218         * tests/test-vsprintf-posix.c: Likewise.
33219
33220 2007-06-05  Bruno Haible  <bruno@clisp.org>
33221
33222         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33223         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33224         non-IEEE numbers on i386, x86_64, ia64.
33225         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33226         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33227         * tests/test-isnanl.h: Include float.h.
33228         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33229
33230 2007-06-05  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33233         also the %a / %A. Handle the %a / %A code before this extra handling.
33234
33235 2007-06-05  Bruno Haible  <bruno@clisp.org>
33236
33237         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33238         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33239
33240 2007-06-05  Bruno Haible  <bruno@clisp.org>
33241
33242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33243         typo in variable name.
33244
33245 2007-06-05  Eric Blake  <ebb9@byu.net>
33246
33247         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33248         Reported by Simon Josefsson.
33249
33250 2007-06-04  Bruno Haible  <bruno@clisp.org>
33251
33252         Avoid test failures on some PowerPC platforms.
33253         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33254         Define differently for PowerPC.
33255         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33256         Reported by Gary V. Vaughan <gary@gnu.org>.
33257
33258 2007-06-02  Bruno Haible  <bruno@clisp.org>
33259
33260         Fix test-stdint failure on FreeBSD/ia64.
33261         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33262         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33263         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33264         * doc/headers/stdint.texi: Update.
33265
33266 2007-06-01  Bruno Haible  <bruno@clisp.org>
33267
33268         * tests/test-binary-io.c (main): Pass a third argument to open().
33269         Reported by Gary V. Vaughan <gary@gnu.org>.
33270
33271 2007-06-01  Bruno Haible  <bruno@clisp.org>
33272
33273         * doc/functions/frexpl.texi: Update for mingw.
33274
33275 2007-06-01  Bruno Haible  <bruno@clisp.org>
33276
33277         * tests/test-lseek.c (main): Disable test of errno for invalid third
33278         argument.
33279         * doc/functions/lseek.texi: Update.
33280         Reported by Gary V. Vaughan <gary@gnu.org>.
33281
33282 2007-05-28  Bruno Haible  <bruno@clisp.org>
33283
33284         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33285
33286 2007-05-31  Eric Blake  <ebb9@byu.net>
33287
33288         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33289         cross compiling.
33290
33291 2007-05-30  Eric Blake  <ebb9@byu.net>
33292         and Bruno Haible  <bruno@clisp.org>
33293
33294         Work around mingw test failures exposed by m4-1.4.9b.
33295         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33296         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33297         moment.
33298
33299 2007-05-30  Bruno Haible  <bruno@clisp.org>
33300
33301         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33302         assuming that they are closed. Needed on HP-UX 11.
33303
33304 2007-05-29  Bruno Haible  <bruno@clisp.org>
33305
33306         Fix a problem with #include_next.
33307         * lib/dirent_.h: Split the double-inclusion guard.
33308         * lib/fcntl_.h: Likewise.
33309         * lib/float_.h: Likewise.
33310         * lib/iconv_.h: Likewise.
33311         * lib/inttypes_.h: Likewise.
33312         * lib/locale_.h: Likewise.
33313         * lib/math_.h: Likewise.
33314         * lib/netinet_in_.h: Likewise.
33315         * lib/search_.h: Likewise.
33316         * lib/signal_.h: Likewise.
33317         * lib/stdint_.h: Likewise.
33318         * lib/stdio_.h: Likewise.
33319         * lib/stdlib_.h: Likewise.
33320         * lib/string_.h: Likewise.
33321         * lib/sys_select_.h: Likewise.
33322         * lib/sys_socket_.h: Likewise.
33323         * lib/sys_stat_.h: Likewise.
33324         * lib/sys_time_.h: Likewise.
33325         * lib/sysexits_.h: Likewise.
33326         * lib/time_.h: Likewise.
33327         * lib/unistd_.h: Likewise.
33328         * lib/wchar_.h: Likewise.
33329         * lib/wctype_.h: Likewise.
33330
33331 2007-05-29  Bruno Haible  <bruno@clisp.org>
33332
33333         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33334         for the moment.
33335
33336 2007-05-29  Bruno Haible  <bruno@clisp.org>
33337
33338         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33339         invocation.
33340         Reported by Eric Blake.
33341
33342 2007-05-29  Bruno Haible  <bruno@clisp.org>
33343
33344         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33345         compiling case.
33346
33347 2007-05-29  Eric Blake  <ebb9@byu.net>
33348             Bruno Haible  <bruno@clisp.org>
33349
33350         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33351         cross compiles.
33352
33353 2007-05-28  Eric Blake  <ebb9@byu.net>
33354
33355         * modules/closein-tests (test_closein_LDADD): Support test on
33356         cygwin with libtool.
33357
33358 2007-05-28  Bruno Haible  <bruno@clisp.org>
33359
33360         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33361         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33362         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33363         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33364         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33365         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33366         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33367         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33368         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33369
33370 2007-05-28  Eric Blake  <ebb9@byu.net>
33371
33372         Unconditionally include <config.h> in unit tests.
33373         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33374         * tests/test-allocsa.c, tests/test-arcfour.c,
33375         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33376         tests/test-array_list.c, tests/test-array_oset.c,
33377         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33378         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33379         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33380         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33381         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33382         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33383         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33384         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33385         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33386         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33387         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33388         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33389         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33390         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33391         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33392         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33393         test-md5.c, test-memmem.c, test-printf-posix.c,
33394         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33395         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33396         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33397         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33398         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33399         test-vasnprintf-posix2.c, test-vasnprintf.c,
33400         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33401         test-vfprintf-posix.c, test-vprintf-posix.c,
33402         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33403         test-xvasprintf.c: Likewise.
33404
33405 2007-05-28  Bruno Haible  <bruno@clisp.org>
33406
33407         * gnulib-tool (func_import): Remember the --with-tests command-line
33408         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33409         Reported by Eric Blake.
33410
33411 2007-05-28  Bruno Haible  <bruno@clisp.org>
33412
33413         * modules/ftell-tests: New file.
33414         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33415         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33416
33417         * lib/ftell.c: New file.
33418         * modules/ftell: New file.
33419         * m4/ftell.m4: New file.
33420         * doc/functions/ftell.texi: Update.
33421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33422         REPLACE_FTELL.
33423         * lib/stdio_.h (rpl_ftell): New declaration.
33424         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33425         REPLACE_FTELL.
33426
33427 2007-05-28  Eric Blake  <ebb9@byu.net>
33428
33429         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33430
33431 2007-05-28  Bruno Haible  <bruno@clisp.org>
33432
33433         * modules/fseek-tests: New file.
33434         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33435         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33436
33437         * lib/fseek.c: New file.
33438         * modules/fseek: New file.
33439         * m4/fseek.m4: New file.
33440         * doc/functions/fseek.texi: Update.
33441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33442         REPLACE_FSEEK.
33443         * lib/stdio_.h (rpl_fseek): New declaration.
33444         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33445         REPLACE_FSEEK.
33446
33447 2007-05-28  Bruno Haible  <bruno@clisp.org>
33448
33449         * lib/stdio_.h (fflush): More comments.
33450
33451 2007-05-28  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33454         runtime test.
33455
33456 2007-05-28  Eric Blake  <ebb9@byu.net>
33457
33458         Improve lseek module.
33459         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33460         * lib/unistd_.h (lseek): Scale back link warning message.
33461         * tests/test-lseek.c: Beef up test.
33462         * tests/test-lseek.sh: Exercise more facets of lseek.
33463         Reported by Bruno Haible.
33464
33465 2007-05-28  Bruno Haible  <bruno@clisp.org>
33466
33467         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33468         to define.
33469
33470 2007-05-27  Bruno Haible  <bruno@clisp.org>
33471
33472         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33473
33474 2007-05-27  Bruno Haible  <bruno@clisp.org>
33475
33476         * modules/openmp: New file.
33477         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33478         Noah Misch.
33479
33480 2007-05-26  Bruno Haible  <bruno@clisp.org>
33481
33482         * modules/chdir-long (Depends-on): Add fchdir.
33483         * modules/chdir-safer (Depends-on): Likewise.
33484         * modules/fts (Depends-on): Likewise.
33485         * modules/fts-lgpl (Depends-on): Likewise.
33486         * modules/openat (Depends-on): Likewise.
33487         * modules/savewd (Depends-on): Likewise.
33488
33489 2007-05-24  Eric Blake  <ebb9@byu.net>
33490
33491         Fix lseek on mingw.
33492         * modules/lseek: New module.
33493         * m4/lseek.m4: New file.
33494         * lib/lseek.c: New file.
33495         * modules/lseek-tests: New file.
33496         * tests/test-lseek.c: New file.
33497         * tests/test-lseek.sh: New file.
33498         * MODULES.html.sh: Document lseek module.
33499         * modules/fflush (Depends-on): Add lseek, fseeko.
33500         * modules/fseeko (Depends-on): Likewise.
33501         * modules/ftello (Depends-on): Likewise.
33502         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33503         broken.
33504         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33505         broken.
33506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33507         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33508         * lib/ftello.c (rpl_ftello): Likewise.
33509         * tests/test-fseeko.c (main): Test this.
33510         * tests/test-fseeko.sh: Likewise.
33511         * tests/test-ftello.c (main): Likewise.
33512         * tests/test-ftello.sh: Likewise.
33513         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33514         implies replacing fseek.
33515         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33516         HAVE_FTELLO.
33517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33518         * modules/unistd (Makefile.am): Likewise.
33519         * lib/unistd_.h (lseek): Declare a replacement.
33520         * doc/functions/lseek.texi (lseek): Document this fix.
33521         * doc/functions/fseek.texi (fseek): Likewise.
33522         * doc/functions/ftell.texi (ftell): Likewise.
33523
33524 2007-05-24  Bruno Haible  <bruno@clisp.org>
33525
33526         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33527         in the printed representation of a NaN.
33528         * tests/test-vasprintf-posix.c (test_function): Likewise.
33529         * tests/test-snprintf-posix.h (test_function): Likewise.
33530         * tests/test-sprintf-posix.h (test_function): Likewise.
33531         Reported by Eric Blake.
33532
33533 2007-05-23  Eric Blake  <ebb9@byu.net>
33534
33535         Fix fseeko/ftello on cygwin 1.5.24.
33536         * doc/functions/fseeko.texi (fseeko): Document the fix.
33537         * doc/functions/ftello.texi (ftello): Document the fix.
33538         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33539         * doc/functions/stdout.text (stdout): New file.
33540         * doc/functions/stderr.text (stderr): New file.
33541         * doc/gnulib.texi (Function Substitutes): Use new files.
33542         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33543         prior to 1.7.0.
33544         * tests/test-ftello.c (main): Likewise for ftello.
33545         * tests/test-fseeko.sh: New file.
33546         * tests/test-ftello.sh: New file.
33547         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33548         with seekable stdin.
33549         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33550         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33551         (gl_REPLACE_FSEEKO): New macro.
33552         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33553         * modules/fseeko (Files): Distribute fseeko.c.
33554         * modules/ftello (Files): Distribute ftello.c.
33555         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33556         mode.
33557         * lib/ftello.c (rpl_ftello): New file.
33558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33559         fseeko, ftello.
33560         (gl_STDIN_LARGE_OFFSET): New macro.
33561         * modules/stdio (Makefile.am): Perform the replacement.
33562         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33563
33564 2007-05-23  Bruno Haible  <bruno@clisp.org>
33565
33566         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33567         GNULIB_POSIXCHECK is defined.
33568
33569 2007-05-21  Bruno Haible  <bruno@clisp.org>
33570
33571         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33572         Check also the output for NaN arguments. When cross-compiling, guess
33573         no on IRIX.
33574         * lib/vasnprintf.c: Update comments.
33575         * tests/test-vasnprintf-posix.c (strisnan): New function.
33576         (test_function): Use it.
33577         * tests/test-vasprintf-posix.c (strisnan): New function.
33578         (test_function): Use it.
33579         * tests/test-snprintf-posix.h (strisnan): New function.
33580         (test_function): Use it.
33581         * tests/test-sprintf-posix.h (strisnan): New function.
33582         (test_function): Use it.
33583         Reported by Eric Blake.
33584
33585 2007-05-20  Bruno Haible  <bruno@clisp.org>
33586
33587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33588         numbers that fails on BeOS.
33589         * doc/functions/frexpl.texi: Update.
33590
33591 2007-05-20  Jim Meyering  <jim@meyering.net>
33592
33593         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33594         forced upon us by glibc-2.6.
33595
33596 2007-05-20  Bruno Haible  <bruno@clisp.org>
33597
33598         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33599         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33600         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33601         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33602         NEED_PRINTF_INFINITE.
33603         (is_infinitel): New function.
33604         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33606         gl_PREREQ_VASNPRINTF_INFINITE.
33607         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33608         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33609         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33610         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33611         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33612         gl_PREREQ_VASNPRINTF_INFINITE.
33613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33620         * doc/functions/fprintf.texi: Update.
33621         * doc/functions/printf.texi: Update.
33622         * doc/functions/snprintf.texi: Update.
33623         * doc/functions/sprintf.texi: Update.
33624         * doc/functions/vfprintf.texi: Update.
33625         * doc/functions/vprintf.texi: Update.
33626         * doc/functions/vsnprintf.texi: Update.
33627         * doc/functions/vsprintf.texi: Update.
33628
33629 2007-05-20  Bruno Haible  <bruno@clisp.org>
33630
33631         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33632         was not found in libc.
33633         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33634
33635 2007-05-20  Bruno Haible  <bruno@clisp.org>
33636
33637         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33638         printed as "-nan" instead of "nan".
33639         * tests/test-vasprintf-posix.c (test_function): Likewise.
33640         * tests/test-snprintf-posix.h (test_function): Likewise.
33641         * tests/test-sprintf-posix.h (test_function): Likewise.
33642         Needed for HP-UX 11.
33643
33644 2007-05-20  Jim Meyering  <jim@meyering.net>
33645
33646         Fix buggy test for the fchownat-deref bug.
33647         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33648         symlink required for the run-test.  Without it, this test would
33649         always declare that fchownat doesn't work, and client code would
33650         unnecessarily use the replacement function with fixed libc.
33651         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33652         Reported by Greg Schafer.
33653
33654 2007-05-19  Bruno Haible  <bruno@clisp.org>
33655
33656         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33657         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33658         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33659         Needed for IRIX 6.5 and Solaris 2.5.1.
33660
33661 2007-05-19  Bruno Haible  <bruno@clisp.org>
33662
33663         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33664         (test_function): Skip tests involving -0.0 on platforms where
33665         -0.0 = 0.0.
33666         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33667         (test_function): Skip tests involving -0.0 on platforms where
33668         -0.0 = 0.0.
33669         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33670         (test_function): Skip tests involving -0.0 on platforms where
33671         -0.0 = 0.0.
33672         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33673         (test_function): Skip tests involving -0.0 on platforms where
33674         -0.0 = 0.0.
33675         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33676         tests.
33677         * tests/test-printf-posix.h (test_function): Likewise.
33678         * tests/test-printf-posix.output: Remove all -0.0 related results.
33679         Needed for IRIX 6.5.
33680
33681 2007-05-19  Bruno Haible  <bruno@clisp.org>
33682
33683         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33684         printed as "nan0x7fffffff" instead of "nan".
33685         * tests/test-vasprintf-posix.c (test_function): Likewise.
33686         * tests/test-snprintf-posix.h (test_function): Likewise.
33687         * tests/test-sprintf-posix.h (test_function): Likewise.
33688         * tests/test-fprintf-posix.h (NaN): Remove macro.
33689         (test_function): Remove all NaN related tests.
33690         * tests/test-printf-posix.h (NaN): Remove macro.
33691         (test_function): Remove all NaN related tests.
33692         * tests/test-printf-posix.output: Remove all NaN related results.
33693         Needed for IRIX 6.5.
33694
33695 2007-05-19  Bruno Haible  <bruno@clisp.org>
33696
33697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33699
33700 2007-05-19  Bruno Haible  <bruno@clisp.org>
33701
33702         * lib/float_.h: New file.
33703         * m4/float_h.m4: New file.
33704         * modules/float: New file.
33705         * modules/isnanl (Dependencies): Add float.
33706         * modules/isnanl-nolibm (Dependencies): Likewise.
33707         * modules/mathl (Dependencies): Likewise.
33708         * modules/printf-frexpl (Dependencies): Likewise.
33709         * modules/signbit (Dependencies): Likewise.
33710         * modules/vasnprintf (Dependencies): Likewise.
33711         * doc/headers/float.texi: Update.
33712
33713 2007-05-19  Jim Meyering  <jim@meyering.net>
33714
33715         * lib/utimens.c (gl_futimens): Rename from futimens,
33716         now that glibc-2.6 declares futimens.
33717         * lib/utimens.h: Likewise.
33718
33719 2007-05-19  Bruno Haible  <bruno@clisp.org>
33720
33721         Avoid test failures on mingw.
33722         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33723         * tests/test-printf-posix.sh: Likewise.
33724         * tests/test-vfprintf-posix.sh: Likewise.
33725         * tests/test-vprintf-posix.sh: Likewise.
33726
33727 2007-05-19  Bruno Haible  <bruno@clisp.org>
33728
33729         Fix *printf result for NaN, Inf, -0.0 on mingw.
33730         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33731         * lib/vasnprintf.c: Include math.h and isnan.h.
33732         (is_infinite_or_zero): New function.
33733         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33734         values in the %f, %F, %e, %E, %g, %G directives.
33735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33737         gl_PRINTF_INFINITE and test its result. Invoke
33738         gl_PREREQ_VASNPRINTF_INFINITE.
33739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33742         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33746         * doc/functions/fprintf.texi: Update.
33747         * doc/functions/printf.texi: Update.
33748         * doc/functions/snprintf.texi: Update.
33749         * doc/functions/sprintf.texi: Update.
33750         * doc/functions/vfprintf.texi: Update.
33751         * doc/functions/vprintf.texi: Update.
33752         * doc/functions/vsnprintf.texi: Update.
33753         * doc/functions/vsprintf.texi: Update.
33754
33755 2007-05-19  Bruno Haible  <bruno@clisp.org>
33756
33757         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33758         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33759         Instead of multiplying with 10^k, set extra_zeroes to k.
33760         (scale10_round_long_double): Remove function.
33761
33762 2007-05-18  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33765         introduced on 2007-05-06.
33766
33767 2007-05-18  Bruno Haible  <bruno@clisp.org>
33768
33769         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33770         %g directives.
33771         * tests/test-vasprintf-posix.c (test_function): Likewise.
33772         * tests/test-snprintf-posix.h (test_function): Likewise.
33773         * tests/test-sprintf-posix.h (test_function): Likewise.
33774
33775 2007-05-18  Bruno Haible  <bruno@clisp.org>
33776
33777         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33778         (strmatch): New function.
33779         (test_function): Test the %f directive on numbers of various exponents.
33780         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33781         (strmatch): New function.
33782         (test_function): Test the %f directive on numbers of various exponents.
33783         * tests/test-snprintf-posix.h (strmatch): New function.
33784         (test_function): Test the %f directive on numbers of various exponents.
33785         * tests/test-sprintf-posix.h (strmatch): New function.
33786         (test_function): Test the %f directive on numbers of various exponents.
33787         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33788         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33789         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33790         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33791
33792 2007-05-18  Bruno Haible  <bruno@clisp.org>
33793
33794         Add support for 'long double' number output.
33795         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33796         * lib/vasnprintf.c: Include math.h and float+.h.
33797         (mp_limb_t): New type.
33798         (GMP_LIMB_BITS): New macro.
33799         (mp_twolimb_t): New type.
33800         (GMP_TWOLIMB_BITS): New macro.
33801         (mpn_t): New type.
33802         (multiply, divide, convert_to_decimal, decode_long_double,
33803         scale10_round_long_double, scale10_round_decimal_long_double,
33804         floorlog10l): New functions.
33805         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33806         for the %f, %F, %e, %E, %g, %G directives.
33807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33809         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33810         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33812         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33813         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33814         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33815         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33817         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33818         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33819         * modules/snprintf-posix (Depends-on): Likewise.
33820         * modules/sprintf-posix (Depends-on): Likewise.
33821         * modules/vasnprintf-posix (Depends-on): Likewise.
33822         * modules/vasprintf-posix (Depends-on): Likewise.
33823         * modules/vfprintf-posix (Depends-on): Likewise.
33824         * modules/vsnprintf-posix (Depends-on): Likewise.
33825         * modules/vsprintf-posix (Depends-on): Likewise.
33826         * modules/vasnprintf (Files): Add lib/float+.h.
33827         * doc/functions/fprintf.texi: Update.
33828         * doc/functions/printf.texi: Update.
33829         * doc/functions/snprintf.texi: Update.
33830         * doc/functions/sprintf.texi: Update.
33831         * doc/functions/vfprintf.texi: Update.
33832         * doc/functions/vprintf.texi: Update.
33833         * doc/functions/vsnprintf.texi: Update.
33834         * doc/functions/vsprintf.texi: Update.
33835
33836 2007-05-18  Bruno Haible  <bruno@clisp.org>
33837
33838         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33839
33840 2007-05-18  Bruno Haible  <bruno@clisp.org>
33841
33842         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33843         for printing 64-bit integers. Needed for mingw.
33844
33845 2007-05-18  Bruno Haible  <bruno@clisp.org>
33846
33847         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33848         gl_FUNC_FREXPL_WORKS.
33849         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33850
33851 2007-05-18  Bruno Haible  <bruno@clisp.org>
33852
33853         * modules/frexpl-nolibm-tests: New file.
33854
33855         * modules/frexpl-nolibm: New file.
33856         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33857
33858 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33859
33860         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33861         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33862         GCC 4.2, which otherwise issues a lot of warnings.
33863         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33864         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33865         Likewise.
33866         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33867         * modules/iconv_open (iconv.h): Likewise.
33868         * modules/locale (locale.h): Likewise.
33869         * modules/netinet_in (netinet/in.h): Likewise.
33870         * modules/sys_select (sys_select.h): Likewise.
33871         * modules/sys_socket (sys/socket.h): Likewise.
33872         * modules/sys_stat (sys/stat.h): Likewise.
33873         * modules/sysexits (sysexits.h): Likewise.
33874         * modules/unistd (unistd.h): Likewise.
33875
33876 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33877
33878         * modules/closein-tests (Makefile.am): Distribute
33879         `test-closein.sh'.
33880
33881 2007-05-17  Bruno Haible  <bruno@clisp.org>
33882
33883         * tests/test-printf-posix.output: Renamed from
33884         tests/test-fprintf-posix.out.
33885         * modules/fprintf-posix-tests: Update.
33886         * modules/printf-posix-tests: Update.
33887         * modules/vfprintf-posix-tests: Update.
33888         * modules/vprintf-posix-tests: Update.
33889         * tests/test-fprintf-posix.sh: Update.
33890         * tests/test-printf-posix.sh: Update.
33891         * tests/test-vfprintf-posix.sh: Update.
33892         * tests/test-vprintf-posix.sh: Update.
33893         Reported by Ralf Wildenhues.
33894
33895 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33896
33897         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33898         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33899         GCC 4.2, which otherwise issues a lot of warnings.
33900         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33901         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33902         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33903         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33904         it should no longer be needed.
33905         * lib/string_.h: Likewise.
33906         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33907         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33908         * modules/inttypes (inttypes.h): Likewise.
33909         * modules/math (math.h): Likewise.
33910         * modules/search (search.h): Likewise.
33911         * modules/signal (signal.h): Likewise.
33912         * modules/stdint (stdint.h): Likewise.
33913         * modules/stdio (stdio.h): Likewise.
33914         * modules/stdlib (stdlib.h): Likewise.
33915         * modules/string (string.h): Likewise.
33916         * modules/sys_time (sys/time.h): Likewise.
33917         * modules/time (time.h): Likewise.
33918         * modules/wchar (wchar.h): Likewise.
33919         * modules/wctype (wtype.h): Likewise.
33920
33921 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33922
33923         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33924
33925 2007-05-13  Bruno Haible  <bruno@clisp.org>
33926
33927         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33928         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33929         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33930         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33931         (gl_PREREQ_STRTOK_R): Don't require it here.
33932
33933 2007-05-13  Bruno Haible  <bruno@clisp.org>
33934
33935         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33936         when used in C++ mode.
33937
33938 2007-05-12  Bruno Haible  <bruno@clisp.org>
33939
33940         * lib/linebuffer.h: Tweak doc.
33941         * lib/linebuffer.c: Likewise.
33942
33943 2007-05-12  James Youngman  <jay@gnu.org>
33944
33945         * lib/linebuffer.c (readlinebuffer_delim): New function,
33946         like readlinebuffer, but use a caller-specified delimiter.
33947         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33948         as the delimiter.
33949         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33950
33951 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33952
33953         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33954         * modules/openat (Files): Remove openat-die.c.
33955         (Depends-on): Add openat-die.
33956         * modules/openat-die: New module.
33957
33958 2007-05-06  Bruno Haible  <bruno@clisp.org>
33959
33960         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33961         Update with info about Cygwin.
33962         * doc/functions/fprintf.texi: Update.
33963         * doc/functions/printf.texi: Update.
33964         * doc/functions/snprintf.texi: Update.
33965         * doc/functions/sprintf.texi: Update.
33966         * doc/functions/vfprintf.texi: Update.
33967         * doc/functions/vprintf.texi: Update.
33968         * doc/functions/vsnprintf.texi: Update.
33969         * doc/functions/vsprintf.texi: Update.
33970         Reported by Eric Blake.
33971
33972 2007-05-06  Bruno Haible  <bruno@clisp.org>
33973
33974         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33975         padding ourselves for the floating-point directives.
33976         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33979         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33980         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33985         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33986         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33987         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33988         * tests/test-snprintf-posix.h (test_function): Also check the width
33989         and some flags in the %f directive.
33990         * tests/test-sprintf-posix.h (test_function): Likewise.
33991         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33992         * tests/test-vasprintf-posix.c (test_function): Likewise.
33993         * doc/functions/fprintf.texi: Update.
33994         * doc/functions/printf.texi: Update.
33995         * doc/functions/snprintf.texi: Update.
33996         * doc/functions/sprintf.texi: Update.
33997         * doc/functions/vfprintf.texi: Update.
33998         * doc/functions/vprintf.texi: Update.
33999         * doc/functions/vsnprintf.texi: Update.
34000         * doc/functions/vsprintf.texi: Update.
34001
34002 2007-05-06  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34005         pass the ' flag character to sprintf or snprintf.
34006         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34009         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34010         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34018         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34019         flag.
34020         * tests/test-sprintf-posix.h (test_function): Likewise.
34021         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34022         * tests/test-vasprintf-posix.c (test_function): Likewise.
34023         * doc/functions/fprintf.texi: Update.
34024         * doc/functions/printf.texi: Update.
34025         * doc/functions/snprintf.texi: Update.
34026         * doc/functions/sprintf.texi: Update.
34027         * doc/functions/vfprintf.texi: Update.
34028         * doc/functions/vprintf.texi: Update.
34029         * doc/functions/vsnprintf.texi: Update.
34030         * doc/functions/vsprintf.texi: Update.
34031
34032 2007-05-01  Bruno Haible  <bruno@clisp.org>
34033
34034         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34035
34036 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34037
34038         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34039         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34040
34041 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34042
34043         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34044         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34046
34047 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34048
34049         * lib/argp-help.c (struct hol_entry): New member `ord'.
34050         (HOL_ENTRY_PTRCMP): Use ord for comparison
34051         (hol_sort): Initialize ord.
34052
34053 2007-05-01  Bruno Haible  <bruno@clisp.org>
34054
34055         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34056         Reported by Eric Blake.
34057         * doc/gnulib.texi (Function Substitutes): Update.
34058
34059 2007-05-01  Bruno Haible  <bruno@clisp.org>
34060
34061         * doc/functions.texi: Remove file, now redundant through
34062         doc/functions/*.texi.
34063
34064 2007-05-01  Bruno Haible  <bruno@clisp.org>
34065
34066         * modules/argp (Depends-on): Add sleep.
34067
34068 2007-05-01  Bruno Haible  <bruno@clisp.org>
34069
34070         * modules/sleep-tests: New file.
34071         * tests/test-sleep.c: New file.
34072
34073         * modules/sleep: New file.
34074         * lib/sleep.c: New file.
34075         * m4/sleep.m4: New file.
34076         * lib/unistd_.h (sleep): New declaration.
34077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34078         HAVE_SLEEP.
34079         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34080         * doc/functions/sleep.texi: Document the sleep module.
34081
34082 2007-05-01  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/sigprocmask.h: Remove file.
34085         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34086         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34087         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34088         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34089         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34090         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34091         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34092         HAVE_SIGSET_T as a shell variable.
34093         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34094         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34095         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34096         (Depends-on): Add signal. Remove verify.
34097         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34098         (Include): Mention <signal.h> instead of sigprocmask.h.
34099         * NEWS: Mention the change.
34100         * lib/fatal-signal.c: Don't include sigprocmask.h.
34101
34102 2007-05-01  Bruno Haible  <bruno@clisp.org>
34103
34104         * modules/signal: New file.
34105         * lib/signal_.h: New file.
34106         * m4/signal_h.m4: New file.
34107
34108 2007-05-01  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34111         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34112         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34113         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34114
34115 2007-05-01  Bruno Haible  <bruno@clisp.org>
34116
34117         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34118         configure time.
34119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34120         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34121         * modules/sys_stat (Makefile.am): Substitute their values into
34122         sys/stat.h.
34123
34124 2007-05-01  Bruno Haible  <bruno@clisp.org>
34125
34126         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34127         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34128         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34129
34130 2007-05-01  Bruno Haible  <bruno@clisp.org>
34131
34132         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34133         'assert' module here.
34134
34135 2007-05-01  Bruno Haible  <bruno@clisp.org>
34136
34137         * doc/functions/*.texi: New files.
34138         * doc/functions/google-ranking.txt: New file.
34139         * doc/gnulib.texi (Function Substitutes): New chapter.
34140         (ctime, inet_ntoa): Remove sections.
34141         * doc/ctime.texi: Remove file.
34142         * doc/inet_ntoa.texi: Remove file.
34143         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34144         dependencies.
34145         (%.info): New rule, specifying a --reference-limit.
34146
34147 2007-05-01  Bruno Haible  <bruno@clisp.org>
34148
34149         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34150
34151 2007-05-01  Bruno Haible  <bruno@clisp.org>
34152
34153         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34154         the portability of 'mkdir' to mingw systems.
34155
34156 2007-05-01  Bruno Haible  <bruno@clisp.org>
34157
34158         * doc/headers/google-ranking.txt: New file.
34159
34160 2007-04-30  Eric Blake  <ebb9@byu.net>
34161
34162         Prefer fseeko to fseek.
34163         * modules/getpass (Depends-on): Add fseeko.
34164         * lib/getpass.c (getpass): Use fseeko, not fseek.
34165
34166 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34167
34168         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34169         assumes the sorting is stable, while most qsort implementations
34170         are not.  Use argument addresses to ensure they never compare as
34171         equal.
34172
34173         * tests/test-argp-2.sh (usage-indent test): Fix output
34174         (func_compare): Restore diff options
34175         * tests/test-argp.c: Restore #include "progname.h"
34176
34177 2007-04-29  Bruno Haible  <bruno@clisp.org>
34178
34179         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34181         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34183         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34184         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34185         (TESTS, check_PROGRAMS): Add test-snprintf.
34186         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34187         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34188         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34189         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34190         assertions that fail on HP-UX, OSF/1, or IRIX.
34191         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34192
34193 2007-04-29  Bruno Haible  <bruno@clisp.org>
34194
34195         * MODULES.html.sh (posix_functions): Remove 'contents'.
34196
34197 2007-04-29  Karl Berry  <karl@gnu.org>
34198
34199         * config/srclist.txt (gendocs_template_min): new entry.
34200
34201 2007-04-29  Bruno Haible  <bruno@clisp.org>
34202
34203         Work around fpurge bug on BSD systems.
34204         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34205         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34206         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34207         fpurge to rpl_fpurge if the system already has this function.
34208         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34209         the case where the system already has this function. Correct invariants
34210         on BSD systems.
34211         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34212         BSD systems.
34213
34214 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34215
34216         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34217         proposed by Sven Verdoolaege.
34218
34219         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34220         options.
34221         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34222         (usage and help tests): Update
34223
34224 2007-04-29  Bruno Haible  <bruno@clisp.org>
34225
34226         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34227         Print more information in case of failure. Disable a test on BeOS.
34228
34229 2007-04-29  Bruno Haible  <bruno@clisp.org>
34230
34231         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34232         This helps debugging on systems on which no gdb is available.
34233
34234 2007-04-29  Bruno Haible  <bruno@clisp.org>
34235
34236         * lib/freading.h: Improve comments.
34237         * lib/fwriting.h: Likewise.
34238         * tests/test-freading.c (main): Don't check freading immediately after
34239         repositioning. Needed for glibc.
34240
34241 2007-04-29  Bruno Haible  <bruno@clisp.org>
34242
34243         * lib/freading.c (freading): Trivial simplification.
34244
34245 2007-04-28  Bruno Haible  <bruno@clisp.org>
34246
34247         * tests/test-fwriting.c (main): Also test the interaction between
34248         fflush and fwriting.
34249         * modules/fwriting-tests (Depends-on): Add fflush.
34250
34251         * tests/test-freading.c (main): Also test the interaction between
34252         fflush and freading.
34253         * modules/freading-tests (Depends-on): Add fflush.
34254
34255 2007-04-28  Bruno Haible  <bruno@clisp.org>
34256
34257         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34258         fseeko and ftello.
34259         Suggested by Eric Blake.
34260
34261 2007-04-28  Jim Meyering  <jim@meyering.net>
34262
34263         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34264         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34265         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34266
34267 2007-04-27  Eric Blake  <ebb9@byu.net>
34268
34269         * doc/headers/assert.texi (assert.h): Document assert module use.
34270
34271 2007-04-27  Bruno Haible  <bruno@clisp.org>
34272
34273         * doc/headers/*.texi: New files.
34274         * doc/gnulib.texi (Header File Substitutes): New chapter.
34275         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34276         dependencies.
34277         (standards.info ,standards.html, standards.dvi): Update dependencies.
34278         (mostlyclean, clean): New targets.
34279
34280 2007-04-27  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34283         * modules/sysexits (Files, Makefile.am): Update.
34284
34285         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34286         * modules/sys_socket (Files, Makefile.am): Update.
34287
34288         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34289         * modules/sys_stat (Files, Makefile.am): Update.
34290
34291 2007-04-27  Eric Blake  <ebb9@byu.net>
34292
34293         * lib/freading.h: Improve comments.
34294         * lib/fwriting.h: Likewise.
34295         * lib/fflush.c: Likewise.
34296
34297         Fix closein for mingw.
34298         * modules/closein-tests: Add tests for closein.
34299         * tests/test-closein.c: New file.
34300         * tests/test-closein.sh: Likewise.
34301         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34302         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34303
34304 2007-04-27  Bruno Haible  <bruno@clisp.org>
34305
34306         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34307         version is < 6.
34308         * lib/math_.h [__DECC]: Likewise.
34309         * lib/stdio_.h [__DECC]: Likewise.
34310         * lib/stdlib_.h [__DECC]: Likewise.
34311         * lib/string_.h [__DECC]: Likewise.
34312         * lib/time_.h [__DECC]: Likewise.
34313         * lib/wchar_.h [__DECC]: Likewise.
34314         * lib/wctype_.h [__DECC]: Likewise.
34315
34316 2007-04-27  Bruno Haible  <bruno@clisp.org>
34317
34318         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34319
34320 2007-04-27  Bruno Haible  <bruno@clisp.org>
34321
34322         * lib/fflush.c: Add comments.
34323         * modules/fpurge-tests (Depends-on): Add fflush.
34324         * modules/freadable-tests (Depends-on): Likewise.
34325         * modules/fwritable-tests (Depends-on): Likewise.
34326
34327 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34328
34329         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34330         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34331         Report by Bruno Haible <bruno@clisp.org>.
34332
34333 2007-04-26  Eric Blake  <ebb9@byu.net>
34334
34335         Fix fflush on mingw.
34336         * modules/fflush (Depends-on): Add freading.
34337         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34338         but unread data.
34339
34340 2007-04-26  Eric Blake  <ebb9@byu.net>
34341         and Bruno Haible  <bruno@clisp.org>
34342
34343         Implement freading and fwriting.
34344         * lib/freading.c: New file.
34345         * lib/freading.h: Likewise.
34346         * m4/freading.m4: Likewise.
34347         * modules/freading: Likewise.
34348         * modules/freading-tests: Likewise.
34349         * tests/test-freading.c: Likewise.
34350         * lib/fwriting.c: New file.
34351         * lib/fwriting.h: Likewise.
34352         * m4/fwriting.m4: Likewise.
34353         * modules/fwriting: Likewise.
34354         * modules/fwriting-tests: Likewise.
34355         * tests/test-fwriting.c: Likewise.
34356         * MODULES.html.sh (File stream based Input/Output): Mention them.
34357
34358 2007-04-26  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34361         'long' when we assume it.
34362         Suggested by Eric Blake.
34363
34364 2007-04-26  Bruno Haible  <bruno@clisp.org>
34365
34366         Ensure fseeko, ftello are declared on glibc systems.
34367         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34368         * modules/fseeko (configure.ac-early): Likewise.
34369         * modules/ftello (configure.ac-early): Likewise.
34370         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34371         AC_FUNC_FSEEKO for this.
34372         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34373         (gl_CHECK_FSEEKO): Remove macro.
34374
34375 2007-04-26  Bruno Haible  <bruno@clisp.org>
34376
34377         * tests/test-fflush.c (main): Also check the ftell result after
34378         fflush and fseek/fseeko.
34379         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34380         file descriptor position cache in the stream.
34381         * lib/fseeko.c (rpl_fseeko): Likewise.
34382
34383 2007-04-26  Bruno Haible  <bruno@clisp.org>
34384
34385         * modules/fflush-tests (Depends-on): Add fseeko.
34386
34387 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34388             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34389
34390         * lib/argz_.h: ensure error_t definition is obtained in same
34391         mechanism system argz.h would have.
34392         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34393         argz facilities are known bad.  Err on the side of caution if
34394         cross-compiling.
34395
34396 2007-04-25  Eric Blake  <ebb9@byu.net>
34397
34398         * lib/fpurge.c (includes): Use stdlib.h for free.
34399         * tests/test-fflush.c (main): Also test fflush-fseeko.
34400
34401 2007-04-25  Bruno Haible  <bruno@clisp.org>
34402
34403         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34404         * lib/fseeko.c: New file.
34405         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34406         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34407         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34408         gl_FUNC_FSEEKO.
34409         (gl_FUNC_FSEEKO): Invoke it.
34410         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34411         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34412         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34413
34414 2007-04-25  Bruno Haible  <bruno@clisp.org>
34415
34416         * modules/fflush (Depends-on): Add ftello.
34417
34418 2007-04-25  Bruno Haible  <bruno@clisp.org>
34419
34420         * modules/ftello-tests: New file.
34421         * tests/test-ftello.c: New file.
34422
34423         * modules/ftello: New file.
34424         * m4/ftello.m4: New file.
34425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34426         HAVE_FTELLO.
34427         * lib/stdio_.h (ftello): New declaration.
34428         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34429         HAVE_FTELLO.
34430
34431 2007-04-25  Bruno Haible  <bruno@clisp.org>
34432
34433         * modules/fseeko-tests: New file.
34434         * tests/test-fseeko.c: New file.
34435
34436         * modules/fseeko: New file.
34437         * m4/fseeko.m4: New file.
34438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34439         HAVE_FSEEKO.
34440         * lib/stdio_.h (fseeko): New declaration.
34441         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34442         HAVE_FSEEKO.
34443
34444 2007-04-25  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34447
34448 2007-04-25  Bruno Haible  <bruno@clisp.org>
34449
34450         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34451         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34452         * tests/test-unistd.c: Likewise.
34453         * tests/test-fcntl.c: Likewise.
34454
34455 2007-04-23  Eric Blake  <ebb9@byu.net>
34456
34457         * lib/fflush.c: Fix missing include.
34458         Reported by Bruno Haible.
34459
34460 2007-04-23  Bruno Haible  <bruno@clisp.org>
34461
34462         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34463         Reported by Eric Blake.
34464
34465 2007-04-23  Bruno Haible  <bruno@clisp.org>
34466
34467         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34468
34469 2007-04-23  Bruno Haible  <bruno@clisp.org>
34470
34471         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34472
34473 2007-04-23  Bruno Haible  <bruno@clisp.org>
34474
34475         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34476         Needed on HP-UX 11.
34477
34478 2007-04-16  Eric Blake  <ebb9@byu.net>
34479
34480         Make fflush rely on fpurge.
34481         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34482         open coding all variants.
34483         * modules/fflush (Depends-on): Add fpurge and unistd.
34484         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34485         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34486
34487         Fix --with-tests compilation on cygwin.
34488         * modules/argmatch-tests (Makefile.am): List gnulib library first
34489         in LDADD.
34490         * modules/argp-tests (Makefile.am): Likewise.
34491         * modules/array-list-tests (Makefile.am): Likewise.
34492         * modules/array-oset-tests (Makefile.am): Likewise.
34493         * modules/avltree-list-tests (Makefile.am): Likewise.
34494         * modules/avltree-oset-tests (Makefile.am): Likewise.
34495         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34496         * modules/carray-list-tests (Makefile.am): Likewise.
34497         * modules/dirname-tests (Makefile.am): Likewise.
34498         * modules/frexp-tests (Makefile.am): Likewise.
34499         * modules/isnanl-tests (Makefile.am): Likewise.
34500         * modules/linked-list-tests (Makefile.am): Likewise.
34501         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34502         * modules/lock-tests (Makefile.am): Likewise.
34503         * modules/rbtree-list-tests (Makefile.am): Likewise.
34504         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34505         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34506         * modules/tls-tests (Makefile.am): Likewise.
34507         * modules/tsearch-tests (Makefile.am): Likewise.
34508         * modules/xvasprintf-tests (Makefile.am): Likewise.
34509
34510         Fix fpurge for cygwin.
34511         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34512         value.
34513         * modules/fpurge-tests (Depends-on): Clean up trash.
34514
34515 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34516
34517         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34518
34519         * m4/autobuild.m4: Re-indent.
34520
34521 2007-04-13  Bruno Haible  <bruno@clisp.org>
34522
34523         * modules/fpurge-tests: New file.
34524         * tests/test-fpurge.c: New file.
34525
34526         * modules/fpurge: New file.
34527         * lib/fpurge.h: New file.
34528         * lib/fpurge.c: New file.
34529         * m4/fpurge.m4: New file.
34530
34531 2007-04-13  Bruno Haible  <bruno@clisp.org>
34532
34533         * modules/fbufmode-tests: New file.
34534         * tests/test-fbufmode.c: New file.
34535
34536         * modules/fbufmode: New file.
34537         * lib/fbufmode.h: New file.
34538         * lib/fbufmode.c: New file.
34539         * m4/fbufmode.m4: New file.
34540
34541 2007-04-13  Bruno Haible  <bruno@clisp.org>
34542
34543         * modules/fwritable-tests: New file.
34544         * tests/test-fwritable.c: New file.
34545
34546         * modules/fwritable: New file.
34547         * lib/fwritable.h: New file.
34548         * lib/fwritable.c: New file.
34549         * m4/fwritable.m4: New file.
34550
34551 2007-04-13  Bruno Haible  <bruno@clisp.org>
34552
34553         * modules/freadable-tests: New file.
34554         * tests/test-freadable.c: New file.
34555
34556         * modules/freadable: New file.
34557         * lib/freadable.h: New file.
34558         * lib/freadable.c: New file.
34559         * m4/freadable.m4: New file.
34560
34561 2007-04-13  Bruno Haible  <bruno@clisp.org>
34562
34563         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34564         MOSTLYCLEANFILES.
34565
34566 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34567
34568         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34569         gzip bootstrap.conf to avoid dragging in i18n machinery.
34570         (gnulib_tool_option): Use it.
34571
34572 2007-04-13  Bruno Haible  <bruno@clisp.org>
34573
34574         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34575         %F directives.
34576         * tests/test-vasprintf-posix.c (test_function): Likewise.
34577         * tests/test-snprintf-posix.h (test_function): Likewise.
34578         * tests/test-sprintf-posix.h (test_function): Likewise.
34579         * tests/test-fprintf-posix.h (test_function): Likewise.
34580         * tests/test-printf-posix.h (test_function): Likewise.
34581         * tests/test-fprintf-posix.out: Likewise.
34582
34583 2007-04-13  Bruno Haible  <bruno@clisp.org>
34584
34585         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34586         * modules/tls-tests (configure.ac): Likewise.
34587         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34588
34589 2007-04-13  Bruno Haible  <bruno@clisp.org>
34590
34591         * lib/tls.c (glthread_tls_get): Fix return type.
34592         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34593
34594 2007-04-12  Eric Blake  <ebb9@byu.net>
34595
34596         * modules/gettime (Depends-on): Remove gettime.
34597         Reported by Dmitry V. Levin.
34598
34599 2007-04-12  Bruno Haible  <bruno@clisp.org>
34600
34601         * modules/fflush (Include): Mention <stdio.h>.
34602         * modules/strtoimax (Include): Mention <inttypes.h>.
34603         * modules/strtoumax (Include): Likewise.
34604
34605 2007-04-12  Eric Blake  <ebb9@byu.net>
34606
34607         * .cvsignore: New file.
34608         * .gitignore: Likewise.
34609
34610 2007-04-12  Bruno Haible  <bruno@clisp.org>
34611
34612         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34613         not before, since $(LDADD) often contains libgnu.a.
34614         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34615         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34616         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34617         Needed on Cygwin.
34618
34619 2007-04-12  Eric Blake  <ebb9@byu.net>
34620
34621         Work around glibc's failure to flush stdin on fclose.
34622         * lib/closein.c (close_stdin): Flush stdin before closing.
34623
34624         Work around glibc's failure to reset seekable stdin on exit.
34625         * modules/closein: New module.
34626         * lib/closein.c: New file.
34627         * lib/closein.h: Likewise.
34628         * m4/closein.m4: Likewise.
34629         * MODULES.html.sh (File stream based Input/Output): Document it.
34630
34631 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34632
34633         * gnulib-tool: Rename generated 'autobuild' script to
34634         'do-autobuild' in --create-megatestdir output.
34635
34636         * doc/gnulib.texi (Build robot for gnulib): Fix.
34637
34638 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34639
34640         * modules/sysexits (Depends-on): Add absolute-header.
34641
34642 2007-04-12  Eric Blake  <ebb9@byu.net>
34643
34644         No need to preserve errno on success.
34645         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34646         Reported by Bruno Haible.
34647
34648 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34649
34650         * MODULES.html.sh (Support for maintaining and releasing
34651         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34652
34653 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34654
34655         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34656
34657 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34658
34659         * modules/autobuild: New module.
34660
34661         * m4/autobuild.m4: New file.
34662
34663 2007-04-11  Bruno Haible  <bruno@clisp.org>
34664
34665         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34666         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34675         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34678         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34684         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34685         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34686         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34687         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34688         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34689         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34690         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34691         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34692         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34693         Reported by Eric Blake.
34694
34695 2007-04-11  Bruno Haible  <bruno@clisp.org>
34696
34697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34698
34699 2007-04-10  Bruno Haible  <bruno@clisp.org>
34700
34701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34702         for NaN and Infinity. Needed on FreeBSD 6.1.
34703         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34704         regarding results for "%010a" of Infinity and NaN.
34705         * tests/test-vasprintf-posix.c (test_function): Likewise.
34706         * tests/test-snprintf-posix.h (test_function): Likewise.
34707         * tests/test-sprintf-posix.h (test_function): Likewise.
34708         * tests/test-fprintf-posix.h (test_function): Likewise.
34709         * tests/test-printf-posix.h (test_function): Likewise.
34710         * tests/test-fprintf-posix.out: Likewise.
34711
34712 2007-04-10  Bruno Haible  <bruno@clisp.org>
34713
34714         * modules/locale-tests: New file.
34715         * tests/test-locale.c: New file.
34716
34717         * modules/locale: New file.
34718         * lib/locale_.h: New file.
34719         * m4/locale_h.m4: New file.
34720
34721 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34722             Bruno Haible  <bruno@clisp.org>
34723
34724         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34725         be determined, test for availability of the copysignf, copysign,
34726         copysignl functions.
34727         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34728         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34729         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34730
34731 2007-04-09  Eric Blake  <ebb9@byu.net>
34732
34733         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34734         * modules/stdio (Makefile.am): Support fflush.
34735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34736         * modules/fflush: New file.
34737         * lib/fflush.c: Likewise.
34738         * m4/fflush.m4: Likewise.
34739         * modules/fflush-tests: New test.
34740         * tests/test-fflush.c: Likewise.
34741         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34742
34743 2007-04-06  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34746         (VASNPRINTF): Use signbit for faster determination whether to print a
34747         minus sign.
34748         * modules/vasnprintf (Files): Remove lib/float+.h.
34749         * modules/fprintf-posix (Depends-on): Add signbit.
34750         * modules/snprintf-posix (Depends-on): Likewise.
34751         * modules/sprintf-posix (Depends-on): Likewise.
34752         * modules/vasnprintf-posix (Depends-on): Likewise.
34753         * modules/vasprintf-posix (Depends-on): Likewise.
34754         * modules/vfprintf-posix (Depends-on): Likewise.
34755         * modules/vsnprintf-posix (Depends-on): Likewise.
34756         * modules/vsprintf-posix (Depends-on): Likewise.
34757
34758 2007-04-06  Bruno Haible  <bruno@clisp.org>
34759
34760         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34761         * tests/test-frexpl.c (main): Likewise.
34762         * tests/test-ldexpl.c (main): Likewise.
34763         * modules/frexp-tests (Depends-on): Add signbit.
34764         * modules/frexpl-tests (Depdends-on): Likewise.
34765         * modules/ldexpl-tests (Depdends-on): Likewise.
34766
34767 2007-04-06  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/signbit-tests: New file.
34770         * tests/test-signbit.c: New file.
34771
34772         * modules/signbit: New file.
34773         * lib/signbitf.c: New file.
34774         * lib/signbitd.c: New file.
34775         * lib/signbitl.c: New file.
34776         * m4/signbit.m4: New file.
34777         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34778         (signbit): New macro.
34779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34780         REPLACE_SIGNBIT.
34781         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34782         REPLACE_FREXPL into math.h.
34783
34784 2007-04-06  Bruno Haible  <bruno@clisp.org>
34785
34786         * modules/isnanf-nolibm-tests: New file.
34787         * tests/test-isnanf.c: New file.
34788
34789         * modules/isnanf-nolibm: New file.
34790         * lib/isnanf.h: New file.
34791         * lib/isnanf.c: New file.
34792         * lib/isnan.c: Consider the USE_FLOAT macro.
34793         * m4/isnanf.m4: New file.
34794
34795 2007-04-06  Bruno Haible  <bruno@clisp.org>
34796
34797         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34798         (Link): New section.
34799
34800         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34801
34802 2007-04-06  Bruno Haible  <bruno@clisp.org>
34803
34804         Assume the 'long double' type.
34805         * m4/longdouble.m4: Remove file.
34806         * config/srclist.txt: Don't mention longdouble.m4.
34807         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34808         * lib/float+.h: Likewise.
34809         * lib/frexp.c: Likewise.
34810         * lib/printf-args.h: Likewise.
34811         * lib/printf-args.c: Likewise.
34812         * lib/printf-frexp.c: Likewise.
34813         * lib/printf-parse.c: Likewise.
34814         * lib/vasnprintf.c: Likewise.
34815         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34816         * m4/intl.m4: Likewise.
34817         * m4/isnanl.m4: Likewise.
34818         * m4/printf.m4: Likewise.
34819         * m4/printf-frexpl.m4: Likewise.
34820         * m4/vasnprintf.m4: Likewise.
34821         * modules/allocsa (Files): Remove m4/longdouble.m4.
34822         * modules/gettext (Files): Likewise.
34823         * modules/relocatable-prog-wrapper (Files): Likewise.
34824         * modules/vasnprintf (Files): Likewise.
34825         * modules/isnanl (Files): Likewise.
34826         (Include): Simplify.
34827         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34828         (Include): Simplify.
34829         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34830         (Include): Simplify.
34831         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34832         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34833         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34834         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34835         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34836         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34837         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34838         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34839         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34840         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34841         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34842         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34843         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34844         * tests/test-isnanl.c: Likewise.
34845         * tests/test-snprintf-posix.h: Likewise.
34846         * tests/test-sprintf-posix.h: Likewise.
34847         * tests/test-vasnprintf-posix.c: Likewise.
34848         * tests/test-vasnprintf-posix2.c: Likewise.
34849         * tests/test-vasprintf-posix.c: Likewise.
34850
34851 2007-04-06  Bruno Haible  <bruno@clisp.org>
34852
34853         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34854         * lib/math_.h [__DECC]: Include the overridden include file through
34855         #include_next, outside the double-inclusion guard.
34856         * lib/stdio_.h [__DECC]: Likewise.
34857         * lib/stdlib_.h [__DECC]: Likewise.
34858         * lib/string_.h [__DECC]: Likewise.
34859         * lib/time_.h [__DECC]: Likewise.
34860         * lib/wchar_.h [__DECC]: Likewise.
34861         * lib/wctype_.h [__DECC]: Likewise.
34862         * lib/inttypes_.h [__DECC]: Likewise.
34863         Reported by Albert Chin <china@thewrittenword.com> in
34864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34865
34866 2007-04-04  Eric Blake  <ebb9@byu.net>
34867
34868         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34869         1.5.x.
34870
34871 2007-04-04  Bruno Haible  <bruno@clisp.org>
34872
34873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34874         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34875
34876 2007-04-04  Bruno Haible  <bruno@clisp.org>
34877
34878         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34879         results for "%010a" of Infinity and NaN.
34880         * tests/test-vasprintf-posix.c (test_function): Likewise.
34881         * tests/test-snprintf-posix.h (test_function): Likewise.
34882         * tests/test-sprintf-posix.h (test_function): Likewise.
34883         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34884         * tests/test-printf-posix.h (test_function): Likewise.
34885         * tests/test-fprintf-posix.out: Update.
34886         Needed for FreeBSD 6.1.
34887
34888 2007-04-04  Bruno Haible  <bruno@clisp.org>
34889
34890         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34891         directly used by the gnulib modules nor by gnulib-tool.
34892
34893 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34894
34895         * DEPENDENCIES: Give overall description of version dependency
34896         desirability.  Use more-typical names for apps.
34897         Add shell, coreutils, diffutils, grep, tar, gzip.
34898
34899 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34900
34901         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34902
34903 2007-04-04  Karl Berry  <karl@gnu.org>
34904
34905         * MODULES.html.sh (func_module): missing '.
34906
34907 2007-04-03  Bruno Haible  <bruno@clisp.org>
34908
34909         * modules/argmatch-tests (Makefile.am): New variable
34910         test_argmatch_LDADD.
34911         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34912         * modules/array-list-tests (Makefile.am): New variable
34913         test_array_list_LDADD.
34914         * modules/array-oset-tests (Makefile.am): New variable
34915         test_array_oset_LDADD.
34916         * modules/avltree-list-tests (Makefile.am): New variable
34917         test_avltree_list_LDADD.
34918         * modules/avltree-oset-tests (Makefile.am): New variable
34919         test_avltree_oset_LDADD.
34920         * modules/avltreehash-list-tests (Makefile.am): New variable
34921         test_avltreehash_list_LDADD.
34922         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34923         test_canonicalize_lgpl_LDADD.
34924         * modules/carray-list-tests (Makefile.am): New variable
34925         test_carray_list_LDADD.
34926         * modules/dirname-tests (Makefile.am): New variable
34927         test_dirname_LDADD.
34928         * modules/linked-list-tests (Makefile.am): New variable
34929         test_linked_list_LDADD.
34930         * modules/linkedhash-list-tests (Makefile.am): New variable
34931         test_linkedhash_list_LDADD.
34932         * modules/rbtree-list-tests (Makefile.am): New variable
34933         test_rbtree_list_LDADD.
34934         * modules/rbtree-oset-tests (Makefile.am): New variable
34935         test_rbtree_oset_LDADD.
34936         * modules/rbtreehash-list-tests (Makefile.am): New variable
34937         test_rbtreehash_list_LDADD.
34938         * modules/xvasprintf-tests (Makefile.am): New variable
34939         test_xvasprintf_LDADD.
34940         Reported by Eric Blake.
34941
34942 2007-04-03  Eric Blake  <ebb9@byu.net>
34943
34944         * DEPENDENCIES: Weaken m4 requirements.
34945
34946 2007-04-03  Bruno Haible  <bruno@clisp.org>
34947
34948         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34949         * modules/isnanl-tests (configure.ac): Likewise.
34950
34951 2007-04-03  Ben Pfaff  <blp@gnu.org>
34952
34953         * modules/iconv_open: Add $(srcdir)/ to source directory
34954         references in Makefile fragments that call gperf, to fix VPATH
34955         builds.
34956
34957 2007-04-03  Bruno Haible  <bruno@clisp.org>
34958
34959         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34960         * lib/ldexpl.c: Undo last change.
34961
34962 2007-04-03  Bruno Haible  <bruno@clisp.org>
34963
34964         * modules/printf-frexpl (Depends-on): Undo last change.
34965         (Files): Add m4/ldexpl.m4.
34966
34967 2007-04-03  Bruno Haible  <bruno@clisp.org>
34968
34969         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34970         * modules/isnanl (Link): New section.
34971
34972         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34973         * modules/frexp (Link): New section.
34974
34975         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34976         * modules/frexpl (Link): New section.
34977
34978         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34979         * modules/ldexpl (Link): New section.
34980
34981 2007-04-03  Bruno Haible  <bruno@clisp.org>
34982
34983         * modules/TEMPLATE-EXTENDED: New file.
34984         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34985
34986 2007-04-03  Bruno Haible  <bruno@clisp.org>
34987
34988         * DEPENDENCIES: New file.
34989         Suggested by Simon Josefsson.
34990
34991 2007-04-03  Bruno Haible  <bruno@clisp.org>
34992
34993         * doc/gnulib.texi: Escape @.
34994
34995 2007-04-03  James Youngman  <jay@gnu.org>
34996         and Paul Eggert  <eggert@cs.ucla.edu>
34997
34998         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34999         birthtime on all systems that have birthtime, not just those which
35000         use st_birthtimensec rather than st_birthtim.  Putting zero in
35001         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35002         that the birth time is not available for files on an NFS mount.
35003
35004 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35005
35006         * modules/memxor: Move back from crypto/, suggested by Bruno.
35007         * modules/crypto/hmac-sha1: Fix memxor dependency.
35008
35009         * modules/crypto/gc: Moved from ../.
35010
35011 2007-04-02  Eric Blake  <ebb9@byu.net>
35012
35013         * lib/ldexpl.c (includes): Avoid libm.
35014
35015         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35016
35017 2007-04-02  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35020         on IRIX.
35021
35022 2007-04-02  Bruno Haible  <bruno@clisp.org>
35023
35024         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35025         x86 or x86_64 platforms running MacOS X.
35026         Reported by Ryan Schmidt <@ryandesign.com>.
35027
35028 2007-04-02  Bruno Haible  <bruno@clisp.org>
35029
35030         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35031         i386.
35032
35033 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35034
35035         * modules/crypto/arcfour: Moved from ../.
35036         * modules/crypto/arcfour-tests: Moved from ../.
35037         * modules/crypto/arctwo: Moved from ../.
35038         * modules/crypto/arctwo-tests: Moved from ../.
35039         * modules/crypto/des: Moved from ../.
35040         * modules/crypto/des-tests: Moved from ../.
35041         * modules/crypto/gc-arcfour: Moved from ../.
35042         * modules/crypto/gc-arcfour-tests: Moved from ../.
35043         * modules/crypto/gc-arctwo: Moved from ../.
35044         * modules/crypto/gc-arctwo-tests: Moved from ../.
35045         * modules/crypto/gc-des: Moved from ../.
35046         * modules/crypto/gc-des-tests: Moved from ../.
35047         * modules/crypto/gc-hmac-md5: Moved from ../.
35048         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35049         * modules/crypto/gc-hmac-sha1: Moved from ../.
35050         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35051         * modules/crypto/gc-md2: Moved from ../.
35052         * modules/crypto/gc-md2-tests: Moved from ../.
35053         * modules/crypto/gc-md4: Moved from ../.
35054         * modules/crypto/gc-md4-tests: Moved from ../.
35055         * modules/crypto/gc-md5: Moved from ../.
35056         * modules/crypto/gc-md5-tests: Moved from ../.
35057         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35058         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35059         * modules/crypto/gc-random: Moved from ../.
35060         * modules/crypto/gc-rijndael: Moved from ../.
35061         * modules/crypto/gc-rijndael-tests: Moved from ../.
35062         * modules/crypto/gc-sha1: Moved from ../.
35063         * modules/crypto/gc-sha1-tests: Moved from ../.
35064         * modules/crypto/gc-tests: Moved from ../.
35065         * modules/crypto/hmac-md5: Moved from ../.
35066         * modules/crypto/hmac-md5-tests: Moved from ../.
35067         * modules/crypto/hmac-sha1: Moved from ../.
35068         * modules/crypto/hmac-sha1-tests: Moved from ../.
35069         * modules/crypto/md2: Moved from ../.
35070         * modules/crypto/md2-tests: Moved from ../.
35071         * modules/crypto/md4: Moved from ../.
35072         * modules/crypto/md4-tests: Moved from ../.
35073         * modules/crypto/md5: Moved from ../.
35074         * modules/crypto/md5-tests: Moved from ../.
35075         * modules/crypto/memxor: Moved from ../.
35076         * modules/crypto/rijndael: Moved from ../.
35077         * modules/crypto/rijndael-tests: Moved from ../.
35078         * modules/crypto/sha1: Moved from ../.
35079
35080 2007-03-30  James Youngman  <jay@gnu.org>
35081
35082         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35083         rename() to change the ctime of a file (because ctime is unaffected
35084         by rename on jfs2 on AIX 5.1).
35085         (main): Start by doing cleanup, in case a previous run failed leaving
35086         test files behind.
35087
35088 2007-03-31  Bruno Haible  <bruno@clisp.org>
35089
35090         Support old proprietary implementations of iconv.
35091         * modules/iconv_open: New file.
35092         * lib/iconv_.h: New file.
35093         * m4/iconv_h.m4: New file.
35094         * lib/iconv_open.c: New file.
35095         * lib/iconv_open-aix.gperf: New file.
35096         * lib/iconv_open-hpux.gperf: New file.
35097         * lib/iconv_open-irix.gperf: New file.
35098         * lib/iconv_open-osf.gperf: New file.
35099         * m4/iconv_open.m4: New file.
35100         * modules/linebreak (Depends-on): Add iconv_open.
35101         * modules/striconv (Depends-on): Likewise.
35102         * modules/striconveh (Depends-on): Likewise.
35103         * modules/unicodeio (Depends-on): Likewise.
35104         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35105         (iconv_t)(-1).
35106         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35107         conversion if cd is (iconv_t)(-1).
35108         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35109         is not possible.
35110
35111 2007-03-31  Bruno Haible  <bruno@clisp.org>
35112
35113         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35114         work on Solaris either. Protect also second use of "autodetect_jp".
35115
35116 2007-03-31  Bruno Haible  <bruno@clisp.org>
35117
35118         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35119         the function is not present.
35120
35121 2007-03-31  Bruno Haible  <bruno@clisp.org>
35122
35123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35124         the function is not present.
35125
35126 2007-03-31  Bruno Haible  <bruno@clisp.org>
35127
35128         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35129         a bug in HP-UX iconv_open().
35130
35131 2007-03-31  Bruno Haible  <bruno@clisp.org>
35132
35133         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35134         (Mathematics <math.h>): New section, add fpieee.
35135         (Input/output <stdio.h>): Add fseterr.
35136         (Mathematics <math.h>): New section, add printf-frexp.
35137         (Container data structures): Add sublist.
35138         (Core language properties): Add fpucw, inline.
35139         (Functions for greatest-width integer types <inttypes.h>): Add
35140         imaxabs, imaxdiv, inttypes.
35141         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35142         isnanl-nolibm, ldexp.
35143         (Mathematics <math.h>): New section, add printf-frexpl.
35144         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35145         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35146         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35147         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35148         (Unicode string functions): Add unistr/u*-mbtoucr.
35149         (Java): Add javacomp-script, javaexec-script.
35150         (C#): Add csharpcomp-script, csharpexec-script.
35151         (Support for building libraries and executables): Add havelib,
35152         relocatable-*.
35153         (Support for maintaining and releasing projects): Renamed from
35154         'Support for maintaining and release projects'. Add announce-gen.
35155
35156 2007-03-31  Bruno Haible  <bruno@clisp.org>
35157
35158         * README: Talk primarily about git.
35159         (git and CVS): Renamed from CVS.
35160         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35161         gnulib is available through git.
35162         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35163
35164 2007-03-30  Bruno Haible  <bruno@clisp.org>
35165
35166         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35167         * lib/poll_.h: Likewise.
35168         * lib/stat_.h: Likewise.
35169         * lib/sys_time_.h: Likewise.
35170         * lib/sysexit_.h: Likewise.
35171         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35172         * lib/stdbool_.h: Likewise.
35173         * lib/byteswap_.h: Add double-inclusion guard.
35174
35175 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35176
35177         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35178
35179 2007-03-30  Karl Berry  <karl@gnu.org>
35180
35181         * config/srclist-update: double space after USA in the license
35182         substitution, since that's how it's usually (?) written.
35183
35184 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35185
35186         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35187         reported by Bruno Haible.
35188
35189 2007-03-29  Bruno Haible  <bruno@clisp.org>
35190
35191         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35192         a bug in AIX iconv().
35193
35194 2007-03-29  Bruno Haible  <bruno@clisp.org>
35195
35196         * modules/ldexpl-tests: New file.
35197         * tests/test-ldexpl.c: New file.
35198
35199 2007-03-29  Bruno Haible  <bruno@clisp.org>
35200
35201         * lib/ldexpl.c: Include fpucw.h.
35202         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35203         multiplication.
35204         * modules/ldexpl (Depends-on): Add fpucw.
35205
35206 2007-03-29  Bruno Haible  <bruno@clisp.org>
35207
35208         * modules/ldexpl: New file.
35209         * m4/ldexpl.m4: New file.
35210         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35211         set.
35212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35213         REPLACE_LDEXPL.
35214         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35215         REPLACE_LDEXPL.
35216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35217         gl_FUNC_LDEXPL_WORKS.
35218         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35219         * modules/mathl (Files): Remove lib/ldexpl.c.
35220         (Depends-on): Add ldexpl.
35221
35222 2007-03-29  Bruno Haible  <bruno@clisp.org>
35223
35224         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35225
35226 2007-03-29  Bruno Haible  <bruno@clisp.org>
35227
35228         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35229         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35230         and possibly also HP-UX.
35231         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35232         work on AIX, IRIX, HP-UX, OSF/1.
35233         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35234         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35235         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35236         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35237         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35238         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35239
35240 2007-03-29  Bruno Haible  <bruno@clisp.org>
35241
35242         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35243
35244 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35245
35246         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35247         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35248
35249 2007-03-29  Eric Blake  <ebb9@byu.net>
35250
35251         * lib/acl-internal.h: Remove redundant include.
35252         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35253         Cygwin when a file is locked.
35254
35255 2007-03-29  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35258         file.
35259         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35260
35261 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35262
35263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35264         try to remove a parent directory if the child couldn't be removed
35265         (except for the first rmdir, which could fail because the child
35266         doesn't exist).  Problem reported by Jeff Blaine in
35267         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35268
35269 2007-03-28  Bruno Haible  <bruno@clisp.org>
35270
35271         * lib/striconveh.c (utf8conv_carefully): New function.
35272         (mem_cd_iconveh_internal): Invoke it.
35273
35274 2007-03-28  Bruno Haible  <bruno@clisp.org>
35275
35276         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35277         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35278         input.
35279         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35280         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35281         unistr/u8-uctomb.
35282
35283 2007-03-28  Bruno Haible  <bruno@clisp.org>
35284
35285         * modules/unistr/u8-mbtoucr: New file.
35286         * lib/unistr/u8-mbtoucr.c: New file.
35287         * modules/unistr/u16-mbtoucr: New file.
35288         * lib/unistr/u16-mbtoucr.c: New file.
35289         * modules/unistr/u16-mbtoucr: New file.
35290         * lib/unistr/u16-mbtoucr.c: New file.
35291         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35292
35293 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35294             Bruno Haible  <bruno@clisp.org>
35295
35296         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35297         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35298         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35299
35300         * m4/stdio_h.m4: Add stubs for vasprintf too.
35301
35302         * modules/stdio: Support vasprintf in sed command.
35303
35304         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35305         vasprintf.h.  Add stdio module indicator.
35306
35307         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35308         vasprintf.h.
35309
35310         * lib/vasprintf.h: File removed.
35311
35312         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35313         * lib/vasprintf.c: Ditto.
35314         * lib/xvasprintf.c: Ditto.
35315         * tests/test-vasprintf-posix.c: Ditto.
35316         * tests/test-vasprintf.c: Ditto.
35317
35318 2007-03-27  Bruno Haible  <bruno@clisp.org>
35319
35320         Make vasnprintf multithread-safe.
35321         * lib/vasnprintf.c (decimal_point_char): New function.
35322         (VASNPRINTF): Use it.
35323         Suggested by Simon Josefsson.
35324
35325 2007-03-27  Eric Blake  <ebb9@byu.net>
35326
35327         Support sub-second birthtime on cygwin.
35328         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35329         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35330         (get_stat_birthtime): Also work with st_birthtim.
35331
35332 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35333
35334         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35335         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35336         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35337         (get_stat_birthtime_ns): Simplify compile-time tests.
35338         (get_stat_birthtime): Change the API to look like
35339         get_stat_mtime etc., except return a negative tv_nsec on error.
35340         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35341         Don't check for "spare" fields.
35342         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35343         or for struct stat.st_birthtime, as these tests aren't used.
35344         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35345
35346 2007-03-27  Bruno Haible  <bruno@clisp.org>
35347
35348         * lib/stat-time.h: Include <sys/stat.h>.
35349
35350 2007-03-27  James Youngman  <jay@gnu.org>
35351
35352         * lib/stat-time.h (get_stat_birthtime): New function for
35353           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35354         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35355           and its variants.
35356         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35357         * modules/stat-time-test: New file.
35358         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35359
35360 2007-03-26  Bruno Haible  <bruno@clisp.org>
35361
35362         Better support of signalling NaNs.
35363         * lib/atanl.c: Include isnanl.h.
35364         (atanl): Perform test for NaN at the beginning of the function and
35365         through a call to isnanl.
35366         * lib/cosl.c: Include isnanl.h.
35367         (cosl): Perform test for NaN at the beginning of the function and
35368         through a call to isnanl.
35369         * lib/ldexpl.c: Include isnanl.h.
35370         (ldexpl): Perform test for NaN through a call to isnanl.
35371         * lib/logl.c: Include isnanl.h.
35372         (logl): Perform test for NaN at the beginning of the function and
35373         through a call to isnanl.
35374         * lib/sinl.c: Include isnanl.h.
35375         (sinl): Perform test for NaN at the beginning of the function and
35376         through a call to isnanl.
35377         * lib/sqrtl.c: Include isnanl.h.
35378         (sqrtl): Perform test for NaN at the beginning of the function and
35379         through a call to isnanl.
35380         * lib/tanl.c: Include isnanl.h.
35381         (tanl): Perform test for NaN at the beginning of the function and
35382         through a call to isnanl.
35383         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35384         * modules/mathl (Depends-on): Add isnanl.
35385
35386 2007-03-26  Eric Blake  <ebb9@byu.net>
35387
35388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35389         regression in logic sense of previous patch.
35390
35391 2007-03-26  Bruno Haible  <bruno@clisp.org>
35392
35393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35394         unportable shell command "if ! ...".
35395         Reported by Ralf Wildenhues.
35396
35397 2007-03-25  Bruno Haible  <bruno@clisp.org>
35398
35399         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35400         <sysexits.h> file, and only add EX_CONFIG.
35401         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35402         absolute file name and whether it is sufficient. Substitute also
35403         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35404         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35405         ABSOLUTE_SYSEXITS_H into sysexits.h.
35406
35407 2007-03-25  Bruno Haible  <bruno@clisp.org>
35408
35409         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35410         hints is NULL.
35411
35412 2007-03-25  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35415         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35416
35417 2007-03-25  Bruno Haible  <bruno@clisp.org>
35418
35419         * lib/vasnprintf.c: Include langinfo.h.
35420         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35421         multithread-safe.
35422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35431         Reported by Simon Josefsson.
35432
35433 2007-03-25  Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35436         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35437         * modules/vasnprintf (Depends-on): Add stdint.
35438
35439 2007-03-25  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/fpieee: New file.
35442         * m4/fpieee.m4: New file.
35443         * modules/isnan-nolibm (Depends-on): Add fpieee.
35444         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35445         * modules/isnanl (Depends-on): Add fpieee.
35446
35447 2007-03-25  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35450
35451 2007-03-25  Bruno Haible  <bruno@clisp.org>
35452
35453         Avoid test failures on IRIX 6.5.
35454         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35455         (main): Use it.
35456         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35457         macros.
35458         (main): Use them.
35459
35460 2007-03-25  Bruno Haible  <bruno@clisp.org>
35461
35462         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35463         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35464         exists but doesn't work.
35465         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35466         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35468         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35469
35470 2007-03-25  Bruno Haible  <bruno@clisp.org>
35471
35472         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35473         returns inf. Needed on IRIX 6.5.
35474
35475 2007-03-25  Bruno Haible  <bruno@clisp.org>
35476
35477         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35478         (main): Use isnanl instead of x != x idiom.
35479         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35480
35481         * tests/test-frexp.c: Include isnan.h.
35482         (main): Use isnan instead of x != x idiom.
35483         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35484
35485 2007-03-25  Bruno Haible  <bruno@clisp.org>
35486
35487         * tests/test-frexp.c (NaN): New function/macro.
35488         (main): Use it instead of 0.0 / 0.0.
35489         * tests/test-isnan.c (NaN): New function/macro.
35490         (main): Use it instead of 0.0 / 0.0.
35491         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35492         (test_function): Use it instead of 0.0 / 0.0.
35493         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35494         (test_function): Use it instead of 0.0 / 0.0.
35495         * tests/test-snprintf-posix.h (NaN): New function/macro.
35496         (test_function): Use it instead of 0.0 / 0.0.
35497         * tests/test-sprintf-posix.h (NaN): New function/macro.
35498         (test_function): Use it instead of 0.0 / 0.0.
35499         * tests/test-fprintf-posix.h (NaN): New function/macro.
35500         (test_function): Use it instead of 0.0 / 0.0.
35501         * tests/test-printf-posix.h (NaN): New function/macro.
35502         (test_function): Use it instead of 0.0 / 0.0.
35503
35504         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35505
35506 2007-03-25  Bruno Haible  <bruno@clisp.org>
35507
35508         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35509
35510 2007-03-25  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/regexec.c (merge_state_with_log): Make static.
35513
35514 2007-03-25  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/trigl.c (kernel_rem_pio2): Make static.
35517
35518 2007-03-25  Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/sincosl.c (sincosl_table): Make static.
35521
35522 2007-03-25  Bruno Haible  <bruno@clisp.org>
35523
35524         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35525         if the compiler does not support C99.
35526
35527 2007-03-25  Bruno Haible  <bruno@clisp.org>
35528
35529         * modules/time (Makefile.am): Ensure all rule action lines start with a
35530         tab.
35531
35532 2007-03-24  Bruno Haible  <bruno@clisp.org>
35533
35534         * modules/tsearch-tests: New file.
35535         * tests/test-tsearch.sh: New file.
35536         * tests/test-tsearch.c: New file, mostly copied from glibc.
35537
35538         * modules/search-tests: New file.
35539         * tests/test-search.c: New file.
35540
35541         * modules/search: New file.
35542         * lib/search_.h: New file, incorporating lib/tsearch.h.
35543         * m4/search_h.m4: New file.
35544         * lib/tsearch.h: Remove file.
35545         * lib/tsearch.c: Include search.h instead of tsearch.h.
35546         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35547         HAVE_TSEARCH.
35548         * modules/tsearch (Files): Remove lib/tsearch.h.
35549         (Depends-on): Add search.
35550         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35551         (Include): Change tsearch.h into search.h.
35552
35553 2007-03-24  Bruno Haible  <bruno@clisp.org>
35554
35555         * modules/fpucw: New file.
35556         * lib/fpucw.h: New file.
35557         * lib/frexp.c: Include fpucw.h.
35558         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35559         (FUNC): Use them.
35560         * lib/printf-frexp.c: Include fpucw.h.
35561         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35562         (FUNC): Use them.
35563         * lib/vasnprintf.c: Include fpucw.h.
35564         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35565         'long double' calculations.
35566         * tests/test-frexpl.c: Include fpucw.h.
35567         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35568         * tests/test-printf-frexpl.c: Include fpucw.h.
35569         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35570         * modules/frexpl (Depends-on): Add fpucw.
35571         * modules/printf-frexpl (Depends-on): Likewise.
35572         * modules/fprintf-posix (Depends-on): Likewise.
35573         * modules/snprintf-posix (Depends-on): Likewise.
35574         * modules/sprintf-posix (Depends-on): Likewise.
35575         * modules/vasnprintf-posix (Depends-on): Likewise.
35576         * modules/vasprintf-posix (Depends-on): Likewise.
35577         * modules/vfprintf-posix (Depends-on): Likewise.
35578         * modules/vsnprintf-posix (Depends-on): Likewise.
35579         * modules/vsprintf-posix (Depends-on): Likewise.
35580         * modules/frexpl-tests (Depends-on): Likewise.
35581         * modules/printf-frexpl-tests (Depends-on): Likewise.
35582
35583 2007-03-24  Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/float+.h: New file.
35586         * lib/isnan.c: Include float+.h.
35587         (SIZE): New macro.
35588         (FUNC): Compare only SIZE bytes of the value.
35589         * lib/vasnprintf.c: Include float+.h.
35590         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35591         SIZEOF_LDBL or SIZEOF_DBL bytes.
35592         * modules/isnan-nolibm (Files): Add lib/float+.h.
35593         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35594         * modules/isnanl (Files): Add lib/float+.h.
35595         * modules/vasnprintf (Files): Add lib/float+.h.
35596
35597 2007-03-24  Bruno Haible  <bruno@clisp.org>
35598
35599         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35600         include isnanl-nolibm.h.
35601
35602 2007-03-24  Bruno Haible  <bruno@clisp.org>
35603
35604         * tests/test-read-file.c (main): Don't produce spurious output for
35605         expected situations. Make the test fail if it encountered unexpected
35606         results.
35607
35608 2007-03-24  Bruno Haible  <bruno@clisp.org>
35609
35610         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35611         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35612
35613 2007-03-24  Bruno Haible  <bruno@clisp.org>
35614
35615         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35616
35617 2007-03-24  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35620         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35621
35622         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35623         * modules/utf8-ucs4: Turn into a symbolic link to module
35624         unistr/u8-mbtouc.
35625
35626         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35627         utf8-ucs4-unsafe.
35628         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35629         unistr/u8-mbtouc-unsafe.
35630
35631         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35632         * modules/utf16-ucs4: Turn into a symbolic link to module
35633         unistr/u16-mbtouc.
35634
35635         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35636         utf16-ucs4-unsafe.
35637         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35638         unistr/u16-mbtouc-unsafe.
35639
35640         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35641         * modules/ucs4-utf8: Turn into a symbolic link to module
35642         unistr/u8-ubtomb.
35643
35644         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35645         * modules/ucs4-utf16: Turn into a symbolic link to module
35646         unistr/u16-ubtomb.
35647
35648 2007-03-24  Bruno Haible  <bruno@clisp.org>
35649
35650         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35651         Enable the function only if HAVE_INLINE.
35652         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35653         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35654         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35655         Enable the function only if HAVE_INLINE.
35656         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35657         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35658         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35659         Enable the function only if HAVE_INLINE.
35660         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35661         Enable the function only if HAVE_INLINE.
35662         * modules/utf8-ucs4: Update.
35663         * modules/utf8-ucs4-unsafe: Update.
35664         * modules/utf16-ucs4: Update.
35665         * modules/utf16-ucs4-unsafe: Update.
35666         * modules/ucs4-utf8: Update.
35667         * modules/ucs4-utf16: Update.
35668
35669 2007-03-24  Bruno Haible  <bruno@clisp.org>
35670
35671         * lib/utf8-ucs4.h: Remove file.
35672         * lib/utf8-ucs4-unsafe.h: Remove file.
35673         * lib/utf16-ucs4.h: Remove file.
35674         * lib/utf16-ucs4-unsafe.h: Remove file.
35675         * lib/ucs4-utf8.h: Remove file.
35676         * lib/ucs4-utf16.h: Remove file.
35677         * lib/unistr.h: Include their previous contents.
35678         * m4/utf-ucs4.m4: Remove file.
35679         * m4/ucs4-utf.m4: Remove file.
35680         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35681         (Depends-on): Add unistr/base.
35682         (configure.ac): Remove gl_UTF_UCS4.
35683         (Makefile.am): Update.
35684         (Include): Change to unistr.h.
35685         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35686         (Depends-on): Add unistr/base.
35687         (configure.ac): Remove gl_UTF_UCS4.
35688         (Makefile.am): Update.
35689         (Include): Change to unistr.h.
35690         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35691         (Depends-on): Add unistr/base.
35692         (configure.ac): Remove gl_UTF_UCS4.
35693         (Makefile.am): Update.
35694         (Include): Change to unistr.h.
35695         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35696         (Depends-on): Add unistr/base.
35697         (configure.ac): Remove gl_UTF_UCS4.
35698         (Makefile.am): Update.
35699         (Include): Change to unistr.h.
35700         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35701         (Depends-on): Add unistr/base.
35702         (configure.ac): Remove gl_UCS4_UTF.
35703         (Makefile.am): Update.
35704         (Include): Change to unistr.h.
35705         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35706         (Depends-on): Add unistr/base.
35707         (configure.ac): Remove gl_UCS4_UTF.
35708         (Makefile.am): Update.
35709         (Include): Change to unistr.h.
35710         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35711         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35712         utf8-ucs4-unsafe.h.
35713         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35714         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35715         utf16-ucs4-unsafe.h.
35716         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35717         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35718         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35719         * lib/unistr/u8-strchr.c: Likewise.
35720         * lib/unistr/u8-strrchr.c: Likewise.
35721         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35722         * lib/unistr/u16-strchr.c: Likewise.
35723         * lib/unistr/u16-strrchr.c: Likewise.
35724         * lib/striconveh.c: Update.
35725         * lib/linebreak.c: Update.
35726
35727 2007-03-24  Bruno Haible  <bruno@clisp.org>
35728
35729         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35730         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35731
35732 2007-03-22  Bruno Haible  <bruno@clisp.org>
35733
35734         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35735
35736 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35737
35738         * MODULES.html.sh (File system functions): New module write-any-file.
35739         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35740         * m4/write-any-file.m4: New files.
35741
35742 2007-03-23  Eric Blake  <ebb9@byu.net>
35743
35744         * gnulib-tool: Rearrange space-tab sequences, since some editors
35745         like to eat them.
35746
35747 2007-03-23  Eric Blake  <ebb9@byu.net>
35748
35749         * lib/version-etc.c (version_etc_va): Update license wording to
35750         be more concise.  Recommended by Richard Stallman.
35751
35752 2007-03-22  Bruno Haible  <bruno@clisp.org>
35753
35754         * lib/poll.c (MSG_PEEK): New fallback definition.
35755
35756 2007-03-22  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35759         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35760         (main): Update.
35761         Fixes a compilation error on BeOS.
35762
35763 2007-03-22  Bruno Haible  <bruno@clisp.org>
35764
35765         * modules/frexpl-tests: New file.
35766         * tests/test-frexpl.c: New file.
35767
35768         * modules/frexpl: New file.
35769         * m4/frexpl.m4: New file.
35770         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35771         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35773         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35774         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35775         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35776
35777 2007-03-22  Bruno Haible  <bruno@clisp.org>
35778
35779         * lib/frexpl.c: Share code with lib/frexp.c.
35780         * modules/mathl (Files): Add lib/frexp.c.
35781         (Depends-on): Add isnanl-nolibm.
35782
35783 2007-03-22  Bruno Haible  <bruno@clisp.org>
35784
35785         * modules/printf-frexp (Files): Add m4/frexp.m4.
35786         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35787         only if the found frexp function actually works.
35788
35789 2007-03-22  Bruno Haible  <bruno@clisp.org>
35790
35791         * lib/frexp.c: Remove older implementation that uses divisions.
35792
35793 2007-03-21  Bruno Haible  <bruno@clisp.org>
35794
35795         * modules/frexp-tests: New file.
35796         * tests/test-frexp.c: New file.
35797
35798         * modules/frexp: New file.
35799         * lib/frexp.c: New file.
35800         * m4/frexp.m4: New file.
35801         * lib/math_.h (frexp): New declaration.
35802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35803         REPLACE_FREXP.
35804         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35805
35806 2007-03-21  Bruno Haible  <bruno@clisp.org>
35807
35808         * modules/isnanl-tests: New file.
35809         * tests/test-isnanl.c: New file.
35810
35811         * modules/isnanl: New file.
35812         * lib/isnanl.h: New file.
35813         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35814         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35815         gl_FUNC_ISNANL_WORKS.
35816         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35817         New macros.
35818
35819 2007-03-21  Bruno Haible  <bruno@clisp.org>
35820
35821         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35822         lib/isnanl.h.
35823         (Include): Update.
35824         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35825         * lib/vasnprintf.c: Update.
35826         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35827         tests/test-isnanl.h, remove tests/test-isnanl.c.
35828         (Makefile.am): Update.
35829         * tests/test-isnanl-nolibm.c: New file.
35830         * tests/test-isnanl.h: New file.
35831         * tests/test-isnanl.c: Remove file.
35832
35833 2007-03-21  Jim Meyering  <jim@meyering.net>
35834
35835         When trying to open ".", treat ESTALE like EACCES.
35836         * lib/savewd.c (savewd_save): Resort to forking not just upon
35837         failure with EACCES, but also when errno is ESTALE.
35838
35839 2007-03-20  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35842         Needed on AIX 5.1. Reported by Matthew Woehlke.
35843
35844 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35845
35846         Suggestions by Bruno Haible:
35847         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35848         our own.
35849         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35850         * modules/acl (Depends-on): Add gettext.
35851
35852 2007-03-19  Bruno Haible  <bruno@clisp.org>
35853
35854         * modules/iconvme: Remove file.
35855         * lib/iconvme.h: Remove file.
35856         * lib/iconvme.c: Remove file.
35857         * m4/iconvme.m4: Remove file.
35858
35859 2007-03-19  Bruno Haible  <bruno@clisp.org>
35860
35861         * doc/relocatable-maint.texi: Break long shell script line.
35862         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35863
35864 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35865
35866         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35867         handle file_has_acl.
35868         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35869         * lib/acl.c: Move header inclusions and related macro defns into
35870         lib/acl-internal.h.
35871         (S_ISLNK): Remove defn, since that's now done for us.
35872         (file_has_acl): Move to lib/file-has-acl.c.
35873         Call acl_trivial if available.  This is the crucial part of the fix.
35874         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35875         shared within the library.  Rewrite a bit, partly to make it compatible
35876         with the GNU coding style.
35877         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35878         Remove unnecessary double-quotes.
35879         Don't test for acl_to_text; the build will catch that.
35880         Replace acl_entries if it doesn't exist and it is needed.
35881         Check for -lsec and acl_trivial (as used on Solaris 10).
35882         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35883         lib/file-has-acl.c.
35884         (Depends-on): Add sys_stat, for S_ISLNK.
35885
35886 2007-03-19  Ben Pfaff  <blp@gnu.org>
35887
35888         * doc/gnulib.texi: Fix typos.
35889         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35890
35891 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35892
35893         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35894         If size is zero here, buf must be zero.
35895
35896 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35897
35898         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35899         <bruno@clisp.org>.
35900
35901 2007-03-18  Bruno Haible  <bruno@clisp.org>
35902
35903         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35904         Suggested by Eric Blake.
35905
35906 2007-03-18  Ben Pfaff  <blp@gnu.org>
35907
35908         * doc/relocatable.texi: Recommend using as prefix a directory
35909         that does not exist and will never be created.  Based on
35910         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35911         and others.
35912
35913 2007-03-17  Bruno Haible  <bruno@clisp.org>
35914
35915         * lib/fchownat.c: Include lchown.h.
35916
35917 2007-03-17  Bruno Haible  <bruno@clisp.org>
35918
35919         Fix endless loop when the given allocated size was > INT_MAX.
35920         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35921         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35922         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35923         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35924         * lib/sprintf.c (sprintf): Likewise.
35925
35926 2007-03-17  Bruno Haible  <bruno@clisp.org>
35927
35928         * tests/test-argp-2.sh (func_compare): Output a context diff.
35929
35930 2007-03-17  Bruno Haible  <bruno@clisp.org>
35931
35932         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35933         locale's decimal-point character.
35934
35935 2007-03-17  Bruno Haible  <bruno@clisp.org>
35936
35937         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35938         before comparing it. Needed because on some platforms (e.g. x86) a
35939         'long double' occupies less bytes than sizeof (long double).
35940
35941 2007-03-17  Bruno Haible  <bruno@clisp.org>
35942
35943         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35944         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35945         * tests/test-getaddrinfo.c (simple): Likewise.
35946         * tests/test-read-file.c (main): Likewise.
35947
35948 2007-03-17  Bruno Haible  <bruno@clisp.org>
35949
35950         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35951
35952 2007-03-17  Bruno Haible  <bruno@clisp.org>
35953
35954         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35955         unused variable.
35956
35957 2007-03-17  Bruno Haible  <bruno@clisp.org>
35958
35959         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35960         * tests/test-c-strncasecmp.c: Likewise.
35961
35962 2007-03-17  Bruno Haible  <bruno@clisp.org>
35963
35964         * modules/stdlib (Depends-on): Add unistd.
35965         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35966         Needed for MacOS X 10.3.
35967
35968 2007-03-17  Bruno Haible  <bruno@clisp.org>
35969
35970         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35971
35972 2007-03-17  Bruno Haible  <bruno@clisp.org>
35973
35974         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35975
35976 2007-03-17  Bruno Haible  <bruno@clisp.org>
35977
35978         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35979         to reflect files copied from gnulib (with or without modifications).
35980         Suggested by Jim Meyering.
35981
35982 2007-03-17  Eric Blake  <ebb9@byu.net>
35983
35984         * NEWS: Document stdlib change from 2007-02-18.
35985
35986 2007-03-17  Jim Meyering  <jim@meyering.net>
35987
35988         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35989         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35990         someone uses a name containing shell meta-characters.
35991         Reported by Alfred M. Szmidt.
35992
35993         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35994
35995 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35996
35997         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35998         and copy gettext configuration files only if configure.ac contains
35999         a use of AM_GNU_GETTEXT_VERSION.
36000
36001 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36002
36003         * build-aux/bootstrap (gnulib_name): New variable.
36004         (gnulib_tool_options): Use it.
36005
36006 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36007
36008         * tests/test-des.c: Use new namespace.
36009
36010 2007-03-15  Bruno Haible  <bruno@clisp.org>
36011
36012         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36013         Reported by James Youngman <jay@gnu.org>.
36014
36015 2007-03-15  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36018         declared prototype. Needed with cc on OSF/1 5.1.
36019
36020 2007-03-15  Bruno Haible  <bruno@clisp.org>
36021
36022         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36023         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36024         (struct gl_list_implementation): Add dispose_fn argument to the
36025         'create_empty', 'create' methods.
36026         (struct gl_list_impl_base): Add field 'dispose_fn'.
36027         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36028         argument.
36029         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36030         dispose_fn argument.
36031         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36032         dispose_fn on the dropped values.
36033         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36034         dispose_fn argument.
36035         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36036         dropped values.
36037         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36038         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36039         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36040         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36041         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36042         argument.
36043         (gl_tree_list_free): Call dispose_fn on the dropped values.
36044         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36045         the dropped values.
36046         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36047         Add dispose_fn argument.
36048         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36049         Call dispose_fn on the dropped values.
36050         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36051         Add dispose_fn argument.
36052         (gl_sublist_create): Initialize the 'dispose_fn' field.
36053         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36054         * tests/test-array_list.c (main): Update.
36055         * tests/test-carray_list.c (main): Update.
36056         * tests/test-avltree_list.c (main): Update.
36057         * tests/test-rbtree_list.c (main): Update.
36058         * tests/test-avltreehash_list.c (main): Update.
36059         * tests/test-rbtreehash_list.c (main): Update.
36060         * tests/test-linked_list.c (main): Update.
36061         * tests/test-linkedhash_list.c (main): Update.
36062         * tests/test-array_oset.c (main): Update.
36063
36064 2007-03-15  Bruno Haible  <bruno@clisp.org>
36065
36066         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36067         (gl_oset_create_empty): Add dispose_fn argument.
36068         (struct gl_oset_implementation): Add dispose_fn argument to
36069         'create_empty' method.
36070         (struct gl_oset_impl_base): Add dispose_fn field.
36071         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36072         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36073         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36074         values.
36075         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36076         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36077         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36078         dropped value.
36079         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36080         dropped value.
36081         * tests/test-array_oset.c (main): Update.
36082         * tests/test-avltree_oset.c (main): Update.
36083         * tests/test-rbtree_oset.c (main): Update.
36084         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36085
36086 2007-03-13  Bruno Haible  <bruno@clisp.org>
36087
36088         * tests/test-stdbool.c (i): Update after last patch.
36089
36090 2007-03-12  Bruno Haible  <bruno@clisp.org>
36091
36092         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36093         the iswprint macro. Needed on Solaris 2.5.1.
36094
36095 2007-03-12  Bruno Haible  <bruno@clisp.org>
36096
36097         * tests/test-printf-frexp.c (main): Declare x as volatile.
36098
36099 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36100
36101         * doc/gnulib.texi (Build robot for gnulib): New section.
36102
36103 2007-03-12  Jim Meyering  <jim@meyering.net>
36104
36105         * build-aux/bootstrap: New file.
36106         * build-aux/bootstrap.conf: New file, from coreutils.
36107
36108 2007-03-11  Bruno Haible  <bruno@clisp.org>
36109
36110         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36111
36112 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36113
36114         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36115         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36116         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36117
36118 2007-03-11  Bruno Haible  <bruno@clisp.org>
36119
36120         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36121         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36122
36123 2007-03-11  Bruno Haible  <bruno@clisp.org>
36124
36125         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36126         formula. Needed for SunPRO C 5.0.
36127
36128 2007-03-11  Bruno Haible  <bruno@clisp.org>
36129
36130         * modules/long-options (Depends-on): Add getopt.
36131
36132 2007-03-11  Bruno Haible  <bruno@clisp.org>
36133
36134         * modules/modechange (Depends-on): Add stdbool.
36135
36136 2007-03-11  Bruno Haible  <bruno@clisp.org>
36137
36138         * modules/i-ring (Depends-on): Add stdbool.
36139
36140 2007-03-11  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/gc-des (Depends-on): Add stdbool.
36143
36144 2007-03-11  Bruno Haible  <bruno@clisp.org>
36145
36146         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36147
36148 2007-03-11  Bruno Haible  <bruno@clisp.org>
36149
36150         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36151
36152 2007-03-11  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36155
36156 2007-03-11  Bruno Haible  <bruno@clisp.org>
36157
36158         * lib/vasnprintf.c (sprintf): Undefine.
36159
36160 2007-03-11  Bruno Haible  <bruno@clisp.org>
36161
36162         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36163         initializers in SunPRO C and Compaq C compilers.
36164
36165 2007-03-11  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36168         decrementing code ANSI C compliant.
36169
36170 2007-03-11  Bruno Haible  <bruno@clisp.org>
36171
36172         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36173         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36174
36175 2007-03-11  Bruno Haible  <bruno@clisp.org>
36176
36177         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36178         <stdbool.h> substitute doesn't pass.
36179
36180 2007-03-11  Bruno Haible  <bruno@clisp.org>
36181
36182         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36183
36184 2007-03-11  Bruno Haible  <bruno@clisp.org>
36185
36186         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36187         script, for submission to autobuild.josefsson.org.
36188
36189 2007-03-10  Bruno Haible  <bruno@clisp.org>
36190
36191         * modules/canonicalize-lgpl-tests: New file.
36192         * tests/test-canonicalize-lgpl.sh: New file.
36193         * tests/test-canonicalize-lgpl.c: New file.
36194
36195         * modules/c-strcase-tests: New file.
36196         * tests/test-c-strcase.sh: New file.
36197         * tests/test-c-strcasecmp.c: New file.
36198         * tests/test-c-strncasecmp.c: New file.
36199
36200         * modules/atexit-tests: New file.
36201         * tests/test-atexit.sh: New file.
36202         * tests/test-atexit.c: New file.
36203
36204 2007-03-10  Bruno Haible  <bruno@clisp.org>
36205
36206         * tests/test-binary-io.sh: Use temporary filenames that are not so
36207         likely to clash with those of other tests (in a parallel make).
36208         * tests/test-binary-io.c: Likewise.
36209
36210 2007-03-10  Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36213         fallback; use #error instead.
36214         Suggested by Simon Josefsson.
36215
36216 2007-03-10  Bruno Haible  <bruno@clisp.org>
36217
36218         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36219         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36220         first and the last.
36221
36222 2007-03-10  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36225
36226 2007-03-10  Bruno Haible  <bruno@clisp.org>
36227
36228         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36229         "make distcheck".
36230         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36231         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36232         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36233
36234 2007-03-10  Bruno Haible  <bruno@clisp.org>
36235
36236         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36237         variable.
36238         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36239         variable.
36240
36241 2007-03-09  Eric Blake  <ebb9@byu.net>
36242         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36243
36244         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36245         types are not being provided by gnulib.
36246         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36247         types are supported.
36248
36249 2007-03-10  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/stdio_.h (__attribute__): New macro.
36252         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36253         vsprintf): Specify __attribute__ __format__ for GCC.
36254         Suggested by Eric Blake.
36255
36256 2007-03-09  Bruno Haible  <bruno@clisp.org>
36257
36258         * modules/printf-posix-tests: New file.
36259         * tests/test-printf-posix.sh: New file.
36260         * tests/test-printf-posix.c: New file.
36261
36262         * modules/printf-posix: New file.
36263         * lib/printf.c: New file.
36264         * m4/printf-posix-rpl.m4: New file.
36265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36266         REPLACE_PRINTF.
36267         * lib/stdio_.h (printf): New declaration.
36268         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36269         ____strfmon____): New macros.
36270         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36271         REPLACE_PRINTF.
36272
36273 2007-03-09  Bruno Haible  <bruno@clisp.org>
36274
36275         * tests/test-vasnprintf-posix2.sh: New file.
36276         * tests/test-vasnprintf-posix2.c: New file.
36277         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36278         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36279         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36280
36281         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36282         a locale dependent decimal point, rather than always '.'.
36283
36284 2007-03-09  Eric Blake  <ebb9@byu.net>
36285
36286         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36287         spite of platforms like Tandem/NSK that define it to -1.
36288
36289 2007-03-08  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/vprintf-posix-tests: New file.
36292         * tests/test-vprintf-posix.sh: New file.
36293         * tests/test-vprintf-posix.c: New file.
36294         * tests/test-printf-posix.h: New file.
36295
36296         * modules/vprintf-posix: New file.
36297         * lib/vprintf.c: New file.
36298         * m4/vprintf-posix.m4: New file.
36299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36300         REPLACE_VPRINTF.
36301         * lib/stdio_.h (vprintf): New declaration.
36302         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36303         REPLACE_VPRINTF.
36304
36305 2007-03-08  Bruno Haible  <bruno@clisp.org>
36306
36307         * modules/fprintf-posix-tests: New file.
36308         * tests/test-fprintf-posix.sh: New file.
36309         * tests/test-fprintf-posix.c: New file.
36310
36311         * modules/fprintf-posix: New file.
36312         * lib/fprintf.c: New file.
36313         * m4/fprintf-posix.m4: New file.
36314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36315         REPLACE_FPRINTF.
36316         * lib/stdio_.h (fprintf): New declaration.
36317         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36318         REPLACE_FPRINTF.
36319
36320 2007-03-08  Bruno Haible  <bruno@clisp.org>
36321
36322         * modules/vfprintf-posix-tests: New file.
36323         * tests/test-vfprintf-posix.sh: New file.
36324         * tests/test-vfprintf-posix.c: New file.
36325         * tests/test-fprintf-posix.h: New file.
36326         * tests/test-fprintf-posix.out: New file.
36327
36328         * modules/vfprintf-posix: New file.
36329         * lib/vfprintf.c: New file.
36330         * m4/vfprintf-posix.m4: New file.
36331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36332         REPLACE_VFPRINTF.
36333         * lib/stdio_.h (vfprintf): New declaration.
36334         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36335         REPLACE_VFPRINTF.
36336
36337 2007-03-08  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36340
36341 2007-03-08  Bruno Haible  <bruno@clisp.org>
36342
36343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36344         instead of 'expr' invocations.
36345         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36350         Suggested by Paul Eggert.
36351
36352 2007-03-08  Bruno Haible  <bruno@clisp.org>
36353
36354         * modules/fseterr-tests: New file.
36355         * tests/test-fseterr.c: New file.
36356
36357         * modules/fseterr: New file.
36358         * lib/fseterr.h: New file.
36359         * lib/fseterr.c: New file.
36360
36361 2007-03-08  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36364         * lib/getopt_.h: Likewise.
36365         * lib/mbswidth.h: Likewise.
36366         * lib/setenv.h: Likewise.
36367         * lib/vasnprintf.h: Likewise.
36368         * lib/vasprintf.h: Likewise.
36369         * lib/verror.h: Likewise.
36370         * lib/xsetenv.h: Likewise.
36371         * lib/xvasprintf.h: Likewise.
36372
36373 2007-03-08  Jim Meyering  <jim@meyering.net>
36374
36375         * users.txt: Add parted.
36376
36377         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36378
36379 2007-03-07  Bruno Haible  <bruno@clisp.org>
36380
36381         * m4/printf.m4: Make the shell script snippets copy&pastable.
36382
36383 2007-03-02  Bruno Haible  <bruno@clisp.org>
36384
36385         * lib/netinet_in_.h: New file.
36386         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36387         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36388         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36389         (Depends-on): Add absolute-header.
36390         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36391         into netinet/in.h.
36392
36393 2007-03-03  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/sys_select_.h: New file.
36396         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36397         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36398         * modules/sys_select (Files): Add lib/sys_select_.h.
36399         (Depends-on): Add absolute-header.
36400         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36401         into sys/select.h.
36402
36403 2007-03-02  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36406         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36407         values.
36408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36409         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36410         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36411         * modules/sys_socket (Depends-on): Add absolute-header.
36412         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36413         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36414         (Include): Remove requirement of inclusion of <sys/types.h>.
36415
36416 2007-03-02  Bruno Haible  <bruno@clisp.org>
36417
36418         * lib/byteswap_.h (bswap_32): Fix formula.
36419
36420 2007-03-06  Bruno Haible  <bruno@clisp.org>
36421
36422         * modules/sprintf-posix-tests: New file.
36423         * tests/test-sprintf-posix.c: New file.
36424
36425         * modules/sprintf-posix: New file.
36426         * lib/sprintf.c: New file.
36427         * m4/sprintf-posix.m4: New file.
36428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36429         REPLACE_SPRINTF.
36430         * lib/stdio_.h (sprintf): New declaration.
36431         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36432         REPLACE_SPRINTF.
36433
36434 2007-03-06  Bruno Haible  <bruno@clisp.org>
36435
36436         * modules/vsprintf-posix-tests: New file.
36437         * tests/test-vsprintf-posix.c: New file.
36438         * tests/test-sprintf-posix.h: New file.
36439
36440         * modules/vsprintf-posix: New file.
36441         * lib/vsprintf.c: New file.
36442         * m4/vsprintf-posix.m4: New file.
36443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36444         REPLACE_VSPRINTF.
36445         * lib/stdio_.h (vsprintf): New declaration.
36446         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36447         REPLACE_VSPRINTF.
36448
36449 2007-03-06  Bruno Haible  <bruno@clisp.org>
36450
36451         * modules/vsnprintf (Depend-on): Remove minmax.
36452
36453 2007-03-06  Bruno Haible  <bruno@clisp.org>
36454
36455         * modules/snprintf-posix-tests: New file.
36456         * tests/test-snprintf-posix.c: New file.
36457
36458         * modules/snprintf-posix: New file.
36459         * m4/snprintf-posix.m4: New file.
36460         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36461         gl_FUNC_SNPRINTF.
36462         (gl_FUNC_SNPRINTF): Invoke it.
36463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36464         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36465         is set.
36466         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36467
36468 2007-03-06  Bruno Haible  <bruno@clisp.org>
36469
36470         * modules/vsnprintf-posix-tests: New file.
36471         * tests/test-vsnprintf-posix.c: New file.
36472         * tests/test-snprintf-posix.h: New file.
36473
36474         * modules/vsnprintf-posix: New file.
36475         * m4/vsnprintf-posix.m4: New file.
36476         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36477         gl_FUNC_VSNPRINTF.
36478         (gl_FUNC_VSNPRINTF): Invoke it.
36479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36480         * lib/stdio_.h (vsnprintf): Define as a replacement if
36481         REPLACE_VSNPRINTF is set.
36482         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36483
36484 2007-03-06  Bruno Haible  <bruno@clisp.org>
36485
36486         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36488
36489 2007-03-06  Bruno Haible  <bruno@clisp.org>
36490
36491         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36492         (asinl): Declare also if HAVE_DECL_ASINL is set.
36493         (atanl): Declare also if HAVE_DECL_ATANL is set.
36494         (ceill): Declare also if HAVE_DECL_CEILL is set.
36495         (cosl): Declare also if HAVE_DECL_COSL is set.
36496         (expl): Declare also if HAVE_DECL_EXPL is set.
36497         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36498         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36499         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36500         (logl): Declare also if HAVE_DECL_LOGL is set.
36501         (sinl): Declare also if HAVE_DECL_SINL is set.
36502         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36503         (tanl): Declare also if HAVE_DECL_TANL is set.
36504         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36506         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36507         declaration of frexpl, ldexpl.
36508         * modules/printf-frexpl (Depends-on): Add math.
36509         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36510
36511 2007-03-05  Bruno Haible  <bruno@clisp.org>
36512
36513         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36514         frexpl and ldexpl are declared.
36515         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36516
36517 2007-03-05  Bruno Haible  <bruno@clisp.org>
36518
36519         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36520         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36521
36522 2007-03-05  Bruno Haible  <bruno@clisp.org>
36523
36524         * lib/stdio_.h: Include <stddef.h>.
36525
36526 2007-03-05  Bruno Haible  <bruno@clisp.org>
36527
36528         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36529
36530 2007-03-05  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36533         NetBSD 4, from Ralf Wildenhues.
36534
36535 2007-03-04  Bruno Haible  <bruno@clisp.org>
36536
36537         * lib/vasprintf.h: Update #if logic for the case when the functions
36538         exist but are overridden.
36539
36540 2007-03-04  Bruno Haible  <bruno@clisp.org>
36541
36542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36543         implementations: glibc-2.4 and MacOS X 10.3.
36544         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36545         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36546         * tests/test-vasprintf-posix.c (test_function): Likewise.
36547
36548 2007-03-04  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/vasprintf-posix-tests: New file.
36551         * tests/test-vasprintf-posix.c: New file.
36552
36553         * modules/vasprintf-posix: New file.
36554         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36555         defined.
36556         * m4/vasprintf-posix.m4: New file.
36557         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36558         gl_FUNC_VASPRINTF.
36559         (gl_FUNC_VASPRINTF): Invoke it.
36560         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36561         here.
36562         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36563
36564 2007-03-04  Bruno Haible  <bruno@clisp.org>
36565
36566         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36567         REPLACE_GETTIMEOFDAY.
36568         * modules/sys_time (Makefile.am): Likewise.
36569         * m4/sys_time_h.m4: Likewise.
36570         * m4/gettimeofday.m4: Likewise.
36571
36572 2007-03-04  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/vasnprintf-posix-tests: New file.
36575         * tests/test-vasnprintf-posix.c: New file.
36576
36577         * modules/vasnprintf-posix: New file.
36578         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36579         printf-frexpl.h.
36580         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36581         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36582         REPLACE_VASNPRINTF is defined.
36583         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36584         gl_FUNC_VASNPRINTF.
36585         (gl_FUNC_VASNPRINTF): Invoke it.
36586         * m4/vasnprintf-posix.m4: New file.
36587         * m4/printf.m4: New file.
36588
36589 2007-03-04  Bruno Haible  <bruno@clisp.org>
36590
36591         Compile progreloc.c only if --enable-relocatable is specified.
36592         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36593         if --enable-relocatable was specified.
36594         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36595         lib_SOURCES.
36596
36597 2007-03-04  Jim Meyering  <jim@meyering.net>
36598
36599         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36600         Use it consistently, rather than enumerating errno constants.
36601
36602 2007-03-04  Bruno Haible  <bruno@clisp.org>
36603
36604         * modules/xvasprintf-tests: New file.
36605         * tests/test-xvasprintf.c: New file.
36606
36607         * modules/vasprintf-tests: New file.
36608         * tests/test-vasprintf.c: New file.
36609
36610         * modules/vasnprintf-tests: New file.
36611         * tests/test-vasnprintf.c: New file.
36612
36613         * modules/vsnprintf-tests: New file.
36614         * tests/test-vsnprintf.c: New file.
36615
36616         * modules/snprintf-tests: New file.
36617         * tests/test-snprintf.c: New file.
36618
36619 2007-03-04  Bruno Haible  <bruno@clisp.org>
36620
36621         Compile relocatable.c only if --enable-relocatable is specified.
36622         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36623         gl_RELOCATABLE_LIBRARY.
36624         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36625         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36626         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36627         gl_RELOCATABLE_LIBRARY.
36628         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36629         (Makefile.am): Remove lib_SOURCES.
36630         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36631         gl_RELOCATABLE_LIBRARY.
36632         (Makefile.am): Remove lib_SOURCES.
36633         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36634         always.
36635         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36636         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36637
36638 2007-03-04  Bruno Haible  <bruno@clisp.org>
36639
36640         * modules/argmatch-tests: New file.
36641         * tests/test-argmatch.c: New file.
36642
36643         * tests/test-allocsa.c (main): Halve the number of loop runs.
36644
36645         * modules/alloca-opt-tests: New file.
36646         * tests/test-alloca-opt.c: New file.
36647
36648 2007-03-04  Jim Meyering  <jim@meyering.net>
36649
36650         Work around difference between Linux ACLs and Solaris 10 ZFS.
36651         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36652         for EINVAL.
36653
36654 2007-03-03  Bruno Haible  <bruno@clisp.org>
36655
36656         * modules/relocatable-prog (Depends-on): Add back progreloc's
36657         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36658
36659 2007-03-03  Bruno Haible  <bruno@clisp.org>
36660
36661         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36662         * modules/relocatable-lib: New file.
36663
36664 2007-03-03  Bruno Haible  <bruno@clisp.org>
36665
36666         * modules/relocatable-prog: Renamed from modules/relocatable.
36667         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36668
36669 2007-03-03  Bruno Haible  <bruno@clisp.org>
36670
36671         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36672         m4/relocatable-lib.m4.
36673         (Depends-on): Remove 'relocatable'.
36674         (configure.ac): Add gl_RELOCATABLE_NOP.
36675
36676 2007-03-03  Bruno Haible  <bruno@clisp.org>
36677
36678         * modules/relocatable-prog-wrapper: New file.
36679         * modules/relocatable (Depends-on): Add it. Remove all other
36680         dependencies except progname.
36681         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36682
36683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36684         (gl_FUNC_STRERROR): Nop.
36685         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36686
36687         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36688         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36689
36690         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36691         (gl_FUNC_READLINK): Update.
36692
36693         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36694
36695 2007-03-03  Bruno Haible  <bruno@clisp.org>
36696
36697         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36698         * modules/xreadlink (Depends-on): Add unistd.
36699         * modules/xreadlink-with-size (Depends-on): Likewise.
36700
36701 2007-03-03  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36704         extracted from gt_FUNC_SETENV.
36705         (gt_FUNC_SETENV): Remove macro.
36706         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36707         remove gt_FUNC_SETENV.
36708
36709 2007-03-03  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36712         ENABLE_RELOCATABLE here.
36713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36714
36715 2007-03-03  Bruno Haible  <bruno@clisp.org>
36716
36717         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36718         * tests/test-rbtreehash_list.c: Include progname.h.
36719         (main): Call set_program_name.
36720
36721         * modules/rbtree-oset-tests (Depends-on): Add progname.
36722         * tests/test-rbtree_oset.c: Include progname.h.
36723         (main): Call set_program_name.
36724
36725         * modules/rbtree-list-tests (Depends-on): Add progname.
36726         * tests/test-rbtree_list.c: Include progname.h.
36727         (main): Call set_program_name.
36728
36729         * modules/linked-list-tests (Depends-on): Add progname.
36730         * tests/test-linked_list.c: Include progname.h.
36731         (main): Call set_program_name.
36732
36733 2007-03-03  Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36736         All uses of __restrict changed to _Restrict_.
36737         * lib/glob_.h (__restrict): Remove macro.
36738
36739 2007-03-02  Bruno Haible  <bruno@clisp.org>
36740
36741         * modules/gettext (configure.ac): Require gettext infrastructure
36742         from version 0.16.1.
36743
36744 2007-03-02  Bruno Haible  <bruno@clisp.org>
36745
36746         * modules/linkedhash-list-tests (Depends-on): Add progname.
36747         * tests/test-linkedhash_list.c: Include progname.h.
36748         (main): Call set_program_name.
36749
36750         * modules/carray-list-tests (Depends-on): Add progname.
36751         * tests/test-carray_list.c: Include progname.h.
36752         (main): Call set_program_name.
36753
36754         * modules/avltreehash-list-tests (Depends-on): Add progname.
36755         * tests/test-avltreehash_list.c: Include progname.h.
36756         (main): Call set_program_name.
36757
36758         * modules/avltree-oset-tests (Depends-on): Add progname.
36759         * tests/test-avltree_oset.c: Include progname.h.
36760         (main): Call set_program_name.
36761
36762         * modules/avltree-list-tests (Depends-on): Add progname.
36763         * tests/test-avltree_list.c: Include progname.h.
36764         (main): Call set_program_name.
36765
36766         * modules/array-oset-tests (Depends-on): Add progname.
36767         * tests/test-array_oset.c: Include progname.h.
36768         (main): Call set_program_name.
36769
36770         * modules/array-list-tests (Depends-on): Add progname.
36771         * tests/test-array_list.c: Include progname.h.
36772         (main): Call set_program_name.
36773
36774         * modules/argp-tests (Depends-on): Add progname.
36775         * tests/test-argp.c: Include argp.h first. Include progname.h.
36776         (main): Call set_program_name.
36777
36778 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36779
36780         * doc/gnulib-tool.texi (Initial import): Reword description of
36781         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36782         limited effect even if defined after the first system include.
36783
36784 2007-03-01  Bruno Haible  <bruno@clisp.org>
36785
36786         * build-aux/config.libpath: Update to libtool-1.5.22.
36787         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36788
36789 2007-03-01  Bruno Haible  <bruno@clisp.org>
36790
36791         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36792         foo_CFLAGS.
36793         Reported by Ralf Wildenhues.
36794
36795 2007-03-01  Bruno Haible  <bruno@clisp.org>
36796
36797         * build-aux/install-reloc: Remove object files left over by some
36798         compilers.
36799         Reported by Ralf Wildenhues.
36800
36801 2007-03-01  Bruno Haible  <bruno@clisp.org>
36802
36803         * build-aux/install-reloc: Break long lines.
36804
36805 2007-03-01  Bruno Haible  <bruno@clisp.org>
36806
36807         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36808         Reported by Ralf Wildenhues.
36809
36810 2007-03-01  Bruno Haible  <bruno@clisp.org>
36811
36812         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36813         include ordering constraints.
36814
36815 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36816
36817         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36819         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36820         as another example.
36821         * lib/time_.h: Fix misspelling.
36822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36823         Require gl_HEADER_TIME_H_DEFAULTS.
36824         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36825         * m4/time_r.m4 (gl_TIME_R): Likewise.
36826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36827
36828 2007-03-01  Bruno Haible  <bruno@clisp.org>
36829
36830         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36831         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36832
36833 2007-03-01  Jim Meyering  <jim@meyering.net>
36834
36835         * modules/xreadlink (Maintainer): Add my name.
36836         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36837
36838 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36839             Bruno Haible  <bruno@clisp.org>
36840
36841         * build-aux/install-reloc: Compile also c-ctype.c.
36842         * build-aux/relocatable.sh.in: New file.
36843         * doc/relocatable.texi: New file.
36844         * doc/relocatable-maint.texi: New file.
36845         * doc/gnulib.texi: Include relocatable-maint.texi.
36846         * lib/progreloc.c: Include unistd.h unconditionally.
36847         * lib/relocwrapper.c: Include unistd.h unconditionally.
36848         Include c-ctype.h.
36849         (add_dotbin): Use c_tolower.
36850         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36851         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36852         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36853         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36854         to m4/relocatable-lib.m4.
36855         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36856         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36857         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36858         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36859         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36860         * modules/relocatable: New file.
36861         * modules/relocatable-lib: New file.
36862         * modules/relocatable-script: New file.
36863
36864 2007-02-28  Bruno Haible  <bruno@clisp.org>
36865
36866         Import --enable-relocatable infrastructure.
36867         * build-aux/config.libpath: New file, from GNU gettext.
36868         * build-aux/install-reloc: New file, from GNU gettext.
36869         * build-aux/reloc-ldflags: New file, from GNU gettext.
36870         * lib/relocatable.h: New file, from GNU gettext.
36871         * lib/relocatable.c: New file, from GNU gettext.
36872         * lib/relocwrapper.c: New file, from GNU gettext.
36873         * m4/relocatable.m4: New file, from GNU gettext.
36874
36875 2007-02-28  Bruno Haible  <bruno@clisp.org>
36876
36877         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36878
36879         * modules/xreadlink: New file, from GNU gettext with modifications.
36880         * lib/xreadlink.c: New file, from GNU gettext.
36881         * lib/xreadlink.h: Add comments.
36882         (xreadlink): New declaration.
36883
36884         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36885         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36886         lib/xreadlink-with-size.c.
36887         (configure.ac): Remove gl_XREADLINK invocation.
36888         (Makefile.am): Augment lib_SOURCES.
36889         * m4/xreadlink.m4: Remove file.
36890         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36891         (xreadlink_with_size): Renamed from xreadink.
36892         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36893         * modules/canonicalize (Depends-on): Replace xreadlink with
36894         xreadlink-with-size.
36895         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36896
36897 2007-02-25  Jim Meyering  <jim@meyering.net>
36898
36899         * build-aux/announce-gen: When complaining about excess arguments,
36900         list them.
36901
36902 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36903
36904         * README: Document signed integer overflow situation more
36905         accurately.
36906
36907 2007-02-25  Bruno Haible  <bruno@clisp.org>
36908
36909         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36910         'a' or 'A' conversion.
36911
36912 2007-02-25  Bruno Haible  <bruno@clisp.org>
36913
36914         * modules/filename: Renamed from modules/pathname.
36915         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36916         lib/concatpath.c with lib/concat-filename.c.
36917         (Makefile.am): Update.
36918         (Include): Replace pathname.h with filename.h.
36919         * lib/filename.h: Renamed from lib/pathname.h.
36920         (concatenated_filename): Renamed from concatenated_pathname.
36921         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36922         (concatenated_filename): Renamed from concatenated_pathname.
36923         * lib/findprog.c: Include filename.h instead of pathname.h.
36924         (find_in_path): Update.
36925         * lib/javacomp.c: Include filename.h instead of pathname.h.
36926         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36927         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36928         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36929         is_oldgcj_14_13_usable, is_javac_usable): Update.
36930         * lib/javaexec.c: Include filename.h instead of pathname.h.
36931         (execute_java_class): Update.
36932         * modules/findprog: Update.
36933         * modules/javacomp: Update.
36934         * modules/javaexec: Update.
36935         * MODULES.html.sh (File system functions): Add 'filename', remove
36936         'pathname'.
36937
36938 2007-02-25  Bruno Haible  <bruno@clisp.org>
36939
36940         * modules/printf-frexpl-tests: New file.
36941         * tests/test-printf-frexpl.c: New file.
36942
36943         * modules/printf-frexpl: New file.
36944         * lib/printf-frexpl.h: New file.
36945         * lib/printf-frexpl.c: New file.
36946         * m4/printf-frexpl.m4: New file.
36947
36948 2007-02-25  Bruno Haible  <bruno@clisp.org>
36949
36950         * modules/printf-frexp-tests: New file.
36951         * tests/test-printf-frexp.c: New file.
36952
36953         * modules/printf-frexp: New file.
36954         * lib/printf-frexp.h: New file.
36955         * lib/printf-frexp.c: New file.
36956         * m4/printf-frexp.m4: New file.
36957
36958 2007-02-25  Bruno Haible  <bruno@clisp.org>
36959
36960         Assume automake >= 1.10 for the tests.
36961         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36962         * modules/arctwo-tests: Likewise.
36963         * modules/argp-tests: Likewise.
36964         * modules/avltree-list-tests: Likewise.
36965         * modules/avltree-oset-tests: Likewise.
36966         * modules/avltreehash-list-tests: Likewise.
36967         * modules/carray-list-tests: Likewise.
36968         * modules/crc-tests: Likewise.
36969         * modules/des-tests: Likewise.
36970         * modules/gc-arcfour-tests: Likewise.
36971         * modules/gc-arctwo-tests: Likewise.
36972         * modules/gc-des-tests: Likewise.
36973         * modules/gc-hmac-md5-tests: Likewise.
36974         * modules/gc-hmac-sha1-tests: Likewise.
36975         * modules/gc-md2-tests: Likewise.
36976         * modules/gc-md4-tests: Likewise.
36977         * modules/gc-md5-tests: Likewise.
36978         * modules/gc-pbkdf2-sha1-tests: Likewise.
36979         * modules/gc-rijndael-tests: Likewise.
36980         * modules/gc-sha1-tests: Likewise.
36981         * modules/gc-tests: Likewise.
36982         * modules/getaddrinfo-tests: Likewise.
36983         * modules/hmac-md5-tests: Likewise.
36984         * modules/hmac-sha1-tests: Likewise.
36985         * modules/linked-list-tests: Likewise.
36986         * modules/linkedhash-list-tests: Likewise.
36987         * modules/lock-tests: Likewise.
36988         * modules/md2-tests: Likewise.
36989         * modules/md4-tests: Likewise.
36990         * modules/md5-tests: Likewise.
36991         * modules/rbtree-list-tests: Likewise.
36992         * modules/rbtree-oset-tests: Likewise.
36993         * modules/rbtreehash-list-tests: Likewise.
36994         * modules/read-file-tests: Likewise.
36995         * modules/rijndael-tests: Likewise.
36996         * modules/stdint-tests: Likewise.
36997         * modules/tls-tests: Likewise.
36998
36999 2007-02-24  Bruno Haible  <bruno@clisp.org>
37000
37001         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37002         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37003         function; instead check whether isnan with a double argument links.
37004         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37005         function; instead check whether isnan with a 'long double' argument
37006         links.
37007         Reported by Eric Blake <ebb9@byu.net>.
37008
37009 2007-02-24  Bruno Haible  <bruno@clisp.org>
37010
37011         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37012         defined.
37013         * lib/isnanl.c: Remove all code. Just include isnan.c.
37014         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37015
37016 2007-02-25  Jim Meyering  <jim@meyering.net>
37017
37018         Avoid conflicting types for 'unsetenv' on FreeBSD.
37019         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37020         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37021         in stdlib.h.
37022
37023 2007-02-24  Bruno Haible  <bruno@clisp.org>
37024
37025         * modules/isnanl-nolibm-tests: New file.
37026         * tests/test-isnanl.c: New file.
37027
37028         * modules/isnanl-nolibm: New file.
37029         * lib/isnanl.h: New file.
37030         * lib/isnanl.c: New file.
37031         * m4/isnanl.m4: New file.
37032
37033 2007-02-24  Bruno Haible  <bruno@clisp.org>
37034
37035         * modules/isnan-nolibm-tests: New file.
37036         * tests/test-isnan.c: New file.
37037
37038         * modules/isnan-nolibm: New file.
37039         * lib/isnan.h: New file.
37040         * lib/isnan.c: New file.
37041         * m4/isnan.m4: New file.
37042
37043 2007-02-24  Bruno Haible  <bruno@clisp.org>
37044
37045         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37046         assume that an exponent fits in 20 bits.
37047
37048 2007-02-24  Jim Meyering  <jim@meyering.net>
37049
37050         * m4/regex.m4: Update the description of the configure-time option,
37051         --without-included-regex, to state accurately what the defaults are,
37052         and perhaps to give people an idea why using this option is risky.
37053
37054 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37055
37056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37057         loops on small arguments.  This attempts to avoid the problem
37058         Bruno Haible reported for AIX 4.3.2 in
37059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37060
37061 2007-02-23  Bruno Haible  <bruno@clisp.org>
37062
37063         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37064         Needed for help2man.
37065
37066 2007-02-23  Karl Berry  <karl@gnu.org>
37067
37068         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37069         exists, foo.h should be cvs-ignored, not committed.
37070
37071 2007-02-23  Eric Blake  <ebb9@byu.net>
37072
37073         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37074         * lib/stat-time.h (includes): Likewise.
37075         * lib/utimecmp.c (includes): Likewise.
37076         * lib/utimens.h (includes): Likewise.
37077         * lib/getdate.y (includes): Also include "timespec.h" for use
37078         internal to the module.
37079         * modules/utimens (Depends-on): Revert yesterday's patch.
37080         * modules/nanosleep (Depends-on): Add missing dependency.
37081
37082 2007-02-22  Bruno Haible  <bruno@clisp.org>
37083
37084         * lib/glob.c: Don't include getlogin_r.h.
37085
37086 2007-02-22  Jim Meyering  <jim@meyering.net>
37087
37088         * modules/utimens (Depends-on): Add timespec, required for
37089         utimens.h's inclusion of timespec.h.
37090
37091 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37092
37093         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37094         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37095         Schwab in
37096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37097         I'll try to think of a better way to fix the Solaris problem.
37098
37099         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37100         like glibc; on Solaris 10, it fails with errno == EINVAL.
37101         POSIX says the behavior is unspecified if the first argument is NULL,
37102         so play it safe and never pass NULL to the system getcwd.
37103
37104 2007-02-21  Jim Meyering  <jim@meyering.net>
37105
37106         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37107         of gettimeofday.  It would conflict with the one now always
37108         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37109         an IRIX 6.5 build failure.
37110
37111 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37112
37113         Minor fixups to port to Solaris 10 with Sun C 5.8.
37114         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37115         * modules/getcwd (Depends-on): Add dirfd.
37116         * lib/putenv.c (putenv): #undef it.
37117         (rpl_putenv): New decl.
37118         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37119
37120 2007-02-20  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/stdio-tests: New file.
37123         * tests/test-stdio.c: New file.
37124
37125         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37126         (Depends-on): Add stdio.
37127         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37128         (Include): Use <stdio.h> instead of vsnprintf.h.
37129         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37130         HAVE_DECL_VSNPRINTF.
37131         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37132
37133         * modules/snprintf (Files): Remove lib/snprintf.h.
37134         (Depends-on): Add stdio.
37135         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37136         (Include): Use <stdio.h> instead of snprintf.h.
37137         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37138         HAVE_DECL_SNPRINTF.
37139         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37140         * lib/getaddrinfo.c: Likewise.
37141
37142         * modules/stdio: New file.
37143         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37144         * lib/snprintf.h: Remove file.
37145         * lib/vsnprintf.h: Remove file.
37146         * lib/.cppi-disable: Remove snprintf.h.
37147         * m4/stdio_h.m4: New file.
37148         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37149
37150 2007-02-20  Jim Meyering  <jim@meyering.net>
37151
37152         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37153         used by e.g., mingw.  From Bruno Haible.
37154
37155 2007-02-19  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37158         warnings.
37159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37160
37161 2007-02-19  Bruno Haible  <bruno@clisp.org>
37162
37163         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37164         from mingw users.
37165
37166 2007-02-19  Bruno Haible  <bruno@clisp.org>
37167
37168         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37169         warnings.
37170         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37171
37172 2007-02-19  Jim Meyering  <jim@meyering.net>
37173
37174         Don't use FD after a successful "fdopendir (fd)".
37175         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37176         Reset it by calling dirfd on the just-obtained DIR*.
37177
37178         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37179         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37180
37181 2007-02-18  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/readlink.c: Include <unistd.h>.
37184         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37185         HAVE_READLINK.
37186         * modules/readlink (Depends-on): Add unistd.
37187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37188         (Include): Add <unistd.h>.
37189
37190         * lib/getlogin_r.h: Remove file.
37191         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37192         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37193         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37194         HAVE_DECL_GETLOGIN_R.
37195         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37197         (Include): Use <unistd.h> instead of getlogin_r.h.
37198
37199         * lib/getcwd.h: Remove file.
37200         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37201         * lib/xgetcwd.c: Likewise.
37202         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37203         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37204         * modules/getcwd (Files): Remove lib/getcwd.h.
37205         (Depends-on): Add unistd.
37206         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37207         (Include): Use <unistd.h> instad of getcwd.h.
37208
37209         * lib/ftruncate.c: Include <unistd.h> first.
37210         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37211         Set HAVE_FTRUNCATE.
37212         * modules/ftruncate (Depends-on): Add unistd.
37213         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37214
37215         * lib/fchdir.c: Include <unistd.h> first.
37216         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37218         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37219         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37220         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37221
37222         * lib/dup2.c: Include <unistd.h> first.
37223         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37224         HAVE_DUP2.
37225         * modules/dup2 (Depends-on): Add unistd.
37226         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37227
37228         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37229         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37230         REPLACE_CHOWN. Don't define chown as a macro here.
37231         * modules/chown (Depends-on): Add unistd.
37232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37233
37234         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37235         Add definition for GL_LINK_WARNING.
37236         (chown, dup2): New declarations.
37237         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37238         link warning.
37239         (ftruncate): New declaration.
37240         (getcwd): New declaration, taken from old getcwd.h.
37241         (getlogin_r): New declaration, taken from old getlogin_r.h.
37242         (readlink): New declaration.
37243         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37244         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37245         (gl_PREREQ_UNISTD): Remove macro.
37246         (gl_UNISTD_MODULE_INDICATOR): New macro.
37247         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37248         many new variables. Don't set UNISTD_H.
37249         * modules/unistd (Description): Change.
37250         (Depends-on): Add link-warning.
37251         (configure.ac): Update.
37252         (Makefile.am): Create unistd.h always. Substitute many new variables
37253         into it.
37254
37255 2007-02-18  Bruno Haible  <bruno@clisp.org>
37256
37257         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37258         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37259         HAVE_GETSUBOPT.
37260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37261         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37262         * lib/getsubopt.h: Remove file.
37263         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37264         (Depends-on): Add stdlib.
37265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37266         (Includes): Use <stdlib.h> instead of getsubopt.h.
37267         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37268         Set HAVE_GETSUBOPT.
37269         * lib/getsubopt.c: Don't include getsubopt.h.
37270
37271 2007-02-18  Bruno Haible  <bruno@clisp.org>
37272
37273         * modules/fchdir (Depends-on): Add dup2.
37274
37275 2007-02-18  Bruno Haible  <bruno@clisp.org>
37276
37277         * lib/stdlib_.h: Handle glibc's special invocation convention
37278         specially.
37279
37280 2007-02-18  Bruno Haible  <bruno@clisp.org>
37281
37282         * modules/stdlib-tests: New file.
37283         * tests/test-stdlib.c: New file.
37284
37285         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37286         (Depends-on): Add stdlib.
37287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37288         (Includes): Use <stdlib.h> instead of mkstemp.h.
37289         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37290         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37291         * lib/mkstemp.c: Don't include mkstemp.h.
37292         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37293         * lib/stdlib--.h: Don't include mkstemp.h.
37294
37295         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37296         (Depends-on): Add stdlib.
37297         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37298         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37299         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37300         HAVE_MKDTEMP.
37301         * lib/mkdtemp.c: Don't include mkdtemp.h.
37302         * lib/clean-temp.c: Don't include mkdtemp.h.
37303
37304         * modules/exit (Files): Remove lib/exit.h.
37305         (Depends-on): Add stdlib.
37306         (Makefile.am): Remove lib_SOURCES.
37307         (Include): Use <stdlib.h> instead of exit.h.
37308         * lib/argmatch.c: Don't include exit.h.
37309         * lib/execute.c: Likewise.
37310         * lib/pagealign_alloc.c: Likewise.
37311         * lib/pipe.c: Likewise.
37312         * lib/wait-process.c: Likewise.
37313         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37314         * lib/exitfail.c: Likewise.
37315         * lib/savewd.c: Likewise.
37316         * lib/xsetenv.c: Likewise.
37317
37318         * modules/stdlib: New file.
37319         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37320         and extra comments about mkstemp().
37321         * lib/exit.h: Remove file.
37322         * lib/mkdtemp.h: Remove file.
37323         * lib/mkstemp.h: Remove file.
37324         * m4/stdlib_h.m4: New file.
37325         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37326
37327 2007-02-18  Bruno Haible  <bruno@clisp.org>
37328
37329         * modules/math-tests: New file.
37330         * tests/test-math.c: New file.
37331
37332         * modules/math: New file.
37333         * modules/mathl (Files): Remove lib/mathl.h.
37334         (Depends-on): Add math.
37335         (Makefile.am): Don't mention mathl.h.
37336         (Include): Use <math.h> instead of mathl.h.
37337         * lib/math_.h: New file.
37338         * lib/mathl.h: Remove file.
37339         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37340         mathl.h.
37341         * lib/asinl.c: Likewise.
37342         * lib/atanl.c: Likewise.
37343         * lib/ceill.c: Likewise.
37344         * lib/cosl.c: Likewise.
37345         * lib/expl.c: Likewise.
37346         * lib/floorl.c: Likewise.
37347         * lib/frexpl.c: Likewise.
37348         * lib/ldexpl.c: Likewise.
37349         * lib/logl.c: Likewise.
37350         * lib/sincosl.c: Likewise.
37351         * lib/sinl.c: Likewise.
37352         * lib/sqrtl.c: Likewise.
37353         * lib/tanl.c: Likewise.
37354         * lib/trigl.c: Likewise.
37355         * m4/math_h.m4: New file.
37356         * MODULES.html.sh (Mathematics): Add math.
37357
37358 2007-02-17  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/wctype-tests: New file.
37361         * tests/test-wctype.c: New file.
37362
37363         * modules/wchar-tests: New file.
37364         * tests/test-wchar.c: New file.
37365
37366         * modules/unistd-tests: New file.
37367         * tests/test-unistd.c: New file.
37368
37369         * modules/time-tests: New file.
37370         * tests/test-time.c: New file.
37371
37372         * modules/sysexits-tests: New file.
37373         * tests/test-sysexits.c: New file.
37374
37375         * modules/sys_time-tests: New file.
37376         * tests/test-sys_time.c: New file.
37377
37378         * modules/sys_stat-tests: New file.
37379         * tests/test-sys_stat.c: New file.
37380
37381         * modules/sys_socket-tests: New file.
37382         * tests/test-sys_socket.c: New file.
37383
37384         * modules/sys_select-tests: New file.
37385         * tests/test-sys_select.c: New file.
37386
37387         * modules/string-tests: New file.
37388         * tests/test-string.c: New file.
37389
37390         * modules/stdbool-tests: New file.
37391         * tests/test-stdbool.c: New file.
37392
37393         * modules/netinet_in-tests: New file.
37394         * tests/test-netinet_in.c: New file.
37395
37396         * modules/inttypes-tests: New file.
37397         * tests/test-inttypes.c: New file.
37398
37399         * modules/fcntl-tests: New file.
37400         * tests/test-fcntl.c: New file.
37401
37402         * modules/byteswap-tests: New file.
37403         * tests/test-byteswap.c: New file.
37404
37405         * modules/arpa_inet-tests: New file.
37406         * tests/test-arpa_inet.c: New file.
37407
37408 2007-02-17  Bruno Haible  <bruno@clisp.org>
37409
37410         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37411         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37412         if the corresponding module is not enabled. Emit link warnings if
37413         the function is used nevertheless.
37414         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37415         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37416         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37417         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37418         * modules/inttypes (Depends-on): Add link-warning.
37419         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37420         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37421         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37422         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37423         * modules/imaxdiv (configure.ac): Likewise.
37424         * modules/strtoimax (configure.ac): Likewise.
37425         * modules/strtoumax (configure.ac): Likewise.
37426
37427 2007-02-17  Bruno Haible  <bruno@clisp.org>
37428
37429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37430         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37431         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37432         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37433
37434 2007-02-17  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/link-warning: New file.
37437         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37438         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37439         * modules/string (Depends-on): Add link-warning.
37440         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37441         string.h.
37442         * MODULES.html.sh (Support for building libraries and executables): Add
37443         link-warning.
37444
37445 2007-02-17  Bruno Haible  <bruno@clisp.org>
37446
37447         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37448         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37449         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37450         long lines.
37451
37452 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37453             Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/tmpfile: New file.
37456         * lib/tmpfile.c: New file.
37457         * m4/tmpfile.m4: New file.
37458         * MODULES.html.sh (func_all_modules): New section "Input/output".
37459
37460 2007-02-15  Bruno Haible  <bruno@clisp.org>
37461
37462         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37463         (supports_delete_on_close): New function.
37464         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37465
37466 2007-02-14  Bruno Haible  <bruno@clisp.org>
37467
37468         * modules/mbspcasecmp-tests: New file.
37469         * tests/test-mbspcasecmp.sh: New file.
37470         * tests/test-mbspcasecmp.c: New file.
37471
37472         New module mbspcasecmp.
37473         * modules/mbspcasecmp: New file.
37474         * lib/mbspcasecmp.c: New file.
37475         * lib/string_.h (strncasecmp): Change warning message.
37476         (mbspcasecmp): New declaration.
37477         * m4/mbspcasecmp.m4: New file.
37478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37479         GNULIB_MBSPCASECMP.
37480         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37481         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37482
37483 2007-02-14  Bruno Haible  <bruno@clisp.org>
37484
37485         * modules/mbsncasecmp-tests: New file.
37486         * tests/test-mbsncasecmp.sh: New file.
37487         * tests/test-mbsncasecmp.c: New file.
37488
37489         New module mbsncasecmp.
37490         * modules/mbsncasecmp: New file.
37491         * lib/mbsncasecmp.c: New file.
37492         * lib/string_.h (mbsncasecmp): New declaration.
37493         * m4/mbsncasecmp.m4: New file.
37494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37495         GNULIB_MBSNCASECMP.
37496         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37497         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37498
37499 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37500
37501         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37502         Verify that it doesn't overlap with our flags.
37503         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37504         do not have the desired effect in multibyte locales; instead, use
37505         mbscasecmp.
37506         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37507         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37508         we don't require GNU fnmatch ourselves (if our users require it, they
37509         should do so explicitly).
37510
37511         Fix regex code so it doesn't rely on strcasecmp.
37512         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37513         Otherwise, include gnulib's langinfo.h.
37514         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37515         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37516         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37517         * modules/regex (FILES): Remove m4/codeset.m4.
37518         (Depends-on): Add localcharset.  Remove strcase.
37519
37520 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37521
37522         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37523         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37524
37525 2007-02-13  Bruno Haible  <bruno@clisp.org>
37526
37527         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37528         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37529
37530 2007-02-12  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37533         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37534         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37535         time warning rather than a link error.
37536
37537 2007-02-12  Bruno Haible  <bruno@clisp.org>
37538
37539         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37540         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37541         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37542
37543 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37544
37545         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37546         args, not 2.
37547
37548 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37549
37550         New module 'time', so that apps can include <time.h> as per
37551         POSIX and GNU instead of separate include files like time_r.h
37552         and timegm.h.  This implementation tries out a simpler approach
37553         for replacing decls in standard include files (as compared to
37554         the string module), somewhat as an experiment.
37555
37556         * config/srclist.txt: Comment out mktime.c for now.
37557         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37558         since it doesn't apply any more.  Use generic wording instead.
37559         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37560         'time'.
37561         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37562         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37563         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37564         Don't include <sys/types.h>; no longer needed since we assume C89.
37565         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37566         * lib/strftime.c: Likewise.
37567         * lib/time_r.c: Likewise.
37568         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37569         * lib/nanosleep.c: Include <time.h> first, to check interface.
37570         * lib/strptime.c: Likewise.
37571         * lib/time_r.c: Likewise.
37572         * lib/timegm.c: Likewise.
37573         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37574         needed.
37575         * lib/timegm.c: Don't include timegm.h; no longer needed.
37576         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37577         time.h now handles any problems in that area.
37578         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37579         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37580         that time.h defines struct timespec.
37581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37582         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37583         handles that.
37584         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37585         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37586         needed.  Set REPLACE_LOCALTIME.
37587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37588         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37589         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37590         nanosleep; time_h.m4 now does that.  Don't require
37591         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37592         module handles this now.
37593         * modules/getdate (Depends-on): Remove timespec.  Add time.
37594         * modules/nanosleep (Depends-on): Likewise.
37595         * modules/stat-time (Depends-on): Likewise.
37596         * modules/nanosleep (Include): Include time.h, not timespec.h.
37597         * modules/strptime (Files): Remove lib/strptime.h.
37598         (Depends-on): Add extensions, time.
37599         (Include): Include time.h, not strptime.h.
37600         * modules/time_r (Files): Remove lib/time_r.h.
37601         (Depends-on): Add time.
37602         (Include): Include time.h, not time_r.h.
37603         * modules/timegm: Likewise.
37604         * modules/timespec (Description): Now does timespec-related decls
37605         of our own, instead of struct timespec itself.
37606         (Depends-on): Add time; remove extensions.
37607         (Maintainer): Add self.
37608         * modules/utimecmp (Depends-on): Add time; remove timespec.
37609         * modules/utimens (Depends-on): Likewise.
37610         * modules/xnanosleep (Depends-on): Likewise.
37611
37612 2007-02-11  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/c-strstr.c: Include allocsa.h.
37615         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37616         * lib/c-strcasestr.c: Include allocsa.h.
37617         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37618         * lib/strcasestr.c: Include allocsa.h.
37619         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37620         * lib/mbsstr.c: Include allocsa.h.
37621         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37622         allocsa/freesa instead of malloc/free.
37623         * lib/mbscasestr.c: Include allocsa.h.
37624         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37625         allocsa/freesa instead of malloc/free.
37626         * modules/c-strstr (Depends-on): Add allocsa.
37627         * modules/c-strcasestr (Depends-on): Likewise.
37628         * modules/strcasestr (Depends-on): Likewise.
37629         * modules/mbsstr (Depends-on): Likewise.
37630         * modules/mbscasestr (Depends-on): Likewise.
37631
37632 2007-02-11  Bruno Haible  <bruno@clisp.org>
37633
37634         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37635
37636         * modules/mbsspn-tests: New file.
37637         * tests/test-mbsspn.sh: New file.
37638         * tests/test-mbsspn.c: New file.
37639
37640 2007-02-11  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37643
37644         * modules/mbspbrk-tests: New file.
37645         * tests/test-mbspbrk.sh: New file.
37646         * tests/test-mbspbrk.c: New file.
37647
37648 2007-02-11  Bruno Haible  <bruno@clisp.org>
37649
37650         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37651         unneeded cast.
37652
37653         * modules/mbscspn-tests: New file.
37654         * tests/test-mbscspn.sh: New file.
37655         * tests/test-mbscspn.c: New file.
37656
37657 2007-02-11  Bruno Haible  <bruno@clisp.org>
37658
37659         * modules/mbscasecmp-tests: New file.
37660         * tests/test-mbscasecmp.sh: New file.
37661         * tests/test-mbscasecmp.c: New file.
37662
37663 2007-02-11  Bruno Haible  <bruno@clisp.org>
37664
37665         Ensure O(n) worst-case complexity of mbscasestr.
37666         * lib/mbscasestr.c: Include stdbool.h.
37667         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37668         functions.
37669         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37670         the bookkeeping indicates that it's worth it.
37671         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37672
37673         * modules/mbscasestr-tests: New file.
37674         * tests/test-mbscasestr1.c: New file.
37675         * tests/test-mbscasestr2.sh: New file.
37676         * tests/test-mbscasestr2.c: New file.
37677         * tests/test-mbscasestr3.sh: New file.
37678         * tests/test-mbscasestr3.c: New file.
37679         * tests/test-mbscasestr4.sh: New file.
37680         * tests/test-mbscasestr4.c: New file.
37681         * m4/locale-tr.m4: New file.
37682
37683 2007-02-11  Bruno Haible  <bruno@clisp.org>
37684
37685         Ensure O(n) worst-case complexity of mbsstr.
37686         * lib/mbsstr.c: Include stdbool.h.
37687         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37688         functions.
37689         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37690         bookkeeping indicates that it's worth it.
37691         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37692
37693         * modules/mbsstr-tests: New file.
37694         * tests/test-mbsstr1.c: New file.
37695         * tests/test-mbsstr2.sh: New file.
37696         * tests/test-mbsstr2.c: New file.
37697         * tests/test-mbsstr3.sh: New file.
37698         * tests/test-mbsstr3.c: New file.
37699         * m4/locale-fr.m4: New file.
37700
37701 2007-02-11  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/mbsrchr.c (mbsrchr): Fix bug.
37704
37705         * modules/mbsrchr-tests: New file.
37706         * tests/test-mbsrchr.sh: New file.
37707         * tests/test-mbsrchr.c: New file.
37708
37709 2007-02-11  Bruno Haible  <bruno@clisp.org>
37710
37711         * lib/mbschr.c (mbschr): Fix bug.
37712
37713         * modules/mbschr-tests: New file.
37714         * tests/test-mbschr.sh: New file.
37715         * tests/test-mbschr.c: New file.
37716         * m4/locale-zh.m4: New file.
37717
37718 2007-02-11  Bruno Haible  <bruno@clisp.org>
37719
37720         Support for copying multibyte string iterators.
37721         * lib/mbiter.h: Include <string.h>.
37722         (mbiter_multi_copy): New function.
37723         (mbi_copy): New macro.
37724         * lib/mbuiter.h: Include <string.h>.
37725         (mbuiter_multi_copy): New function.
37726         (mbui_copy): New macro.
37727
37728 2007-02-11  Bruno Haible  <bruno@clisp.org>
37729
37730         New module mbslen.
37731         * modules/mbslen: New file.
37732         * lib/mbslen.c: New file.
37733         * lib/string_.h (mbslen): New declaration.
37734         * m4/mbslen.m4: New file.
37735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37736         GNULIB_MBSLEN.
37737         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37738         * MODULES.html.sh (Internationalization functions): Add mbslen.
37739
37740 2007-02-11  Bruno Haible  <bruno@clisp.org>
37741
37742         Ensure O(n) worst-case complexity of strcasestr substitute.
37743         * lib/strcasestr.c: Include stdbool.h.
37744         (knuth_morris_pratt): New function.
37745         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37746         bookkeeping indicates that it's worth it.
37747         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37748
37749         * modules/strcasestr-tests: New file.
37750         * tests/test-strcasestr.c: New file.
37751
37752 2007-02-11  Bruno Haible  <bruno@clisp.org>
37753
37754         Ensure O(n) worst-case complexity of c_strcasestr.
37755         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37756         (knuth_morris_pratt): New function.
37757         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37758         the bookkeeping indicates that it's worth it.
37759         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37760
37761         * modules/c-strcasestr-tests: New file.
37762         * tests/test-c-strcasestr.c: New file.
37763
37764 2007-02-11  Bruno Haible  <bruno@clisp.org>
37765
37766         Ensure O(n) worst-case complexity of c_strstr.
37767         * lib/c-strstr.c: Include stdbool.h, string.h.
37768         (knuth_morris_pratt): New function.
37769         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37770         bookkeeping indicates that it's worth it.
37771         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37772
37773         * lib/c-strstr.c: Complete rewrite for maintainability.
37774
37775         * modules/c-strstr-tests: New file.
37776         * tests/test-c-strstr.c: New file.
37777
37778 2007-02-11  Bruno Haible  <bruno@clisp.org>
37779
37780         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37781         5.2.1 and earlier, whereby \055 was treated just like the range
37782         delimiter '-'.
37783         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37784
37785 2007-02-08  Bruno Haible  <bruno@clisp.org>
37786
37787         * modules/regex (Depends-on): Add stdbool.
37788         Reported by Dalibor Topic <robilad@kaffe.org>.
37789
37790 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37791
37792         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37793         Prefer returning from main to exiting from it.
37794         Remove unnecessary parens after sizeof.
37795
37796 2007-02-05  Bruno Haible  <bruno@clisp.org>
37797
37798         New module mbssep.
37799         * modules/mbssep: New file.
37800         * lib/mbssep.c: New file.
37801         * lib/string_.h (strsep): Add a conditional link warning.
37802         (mbssep): New declaration.
37803         * m4/mbssep.m4: New file.
37804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37805         GNULIB_MBSSEP.
37806         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37807         * MODULES.html.sh (Internationalization functions): Add mbssep.
37808
37809 2007-02-05  Bruno Haible  <bruno@clisp.org>
37810
37811         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37812         Optimize search in case of 1 delimiter.
37813
37814 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37815
37816         * lib/acl.h: Include sys/types.h before sys/acl.h.
37817
37818 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37819
37820         Merge upstream fix for glibc bugzilla #3957:
37821
37822         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37823
37824         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37825         bit for RE_HAT_LISTS_NOT_NEWLINE.
37826         (build_charclass_op): Remove bogus comment.
37827
37828 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37829
37830         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37831
37832 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37833
37834         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37835         * lib/memmem.c [!defined _LIBC]: Include config.h.
37836
37837 2007-02-04  Bruno Haible  <bruno@clisp.org>
37838
37839         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37840         warning message.
37841
37842 2007-02-04  Bruno Haible  <bruno@clisp.org>
37843
37844         New module mbstok_r.
37845         * modules/mbstok_r: New file.
37846         * lib/mbstok_r.c: New file.
37847         * lib/string_.h (strtok_r): Change argument names to match the
37848         comments. Add a conditional link warning.
37849         (mbstok_r): New declaration.
37850         * m4/mbstok_r.m4: New file.
37851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37852         GNULIB_MBSTOK_R.
37853         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37854         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37855
37856 2007-02-04  Bruno Haible  <bruno@clisp.org>
37857
37858         New module mbsspn.
37859         * modules/mbsspn: New file.
37860         * lib/mbsspn.c: New file.
37861         * lib/string_.h (strspn): Add a conditional link warning.
37862         (mbsspn): New declaration.
37863         * m4/mbsspn.m4: New file.
37864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37865         GNULIB_MBSSPN.
37866         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37867         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37868
37869 2007-02-04  Bruno Haible  <bruno@clisp.org>
37870
37871         New module mbspbrk.
37872         * modules/mbspbrk: New file.
37873         * lib/mbspbrk.c: New file.
37874         * lib/string_.h (strpbrk): Add a conditional link warning.
37875         (mbspbrk): New declaration.
37876         * m4/mbspbrk.m4: New file.
37877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37878         GNULIB_MBSPBRK.
37879         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37880         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37881
37882 2007-02-04  Bruno Haible  <bruno@clisp.org>
37883
37884         New module mbscspn.
37885         * modules/mbscspn: New file.
37886         * lib/mbscspn.c: New file.
37887         * lib/string_.h (strcspn): Add a conditional link warning.
37888         (mbscspn): New declaration.
37889         * m4/mbscspn.m4: New file.
37890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37891         GNULIB_MBSCSPN.
37892         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37893         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37894
37895 2007-02-04  Bruno Haible  <bruno@clisp.org>
37896
37897         New module mbscasestr, reduced goal of strcasestr.
37898         * modules/mbscasestr: New file.
37899         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37900         (mbscasestr): Renamed from strcasestr.
37901         * lib/strcasestr.c: Don't include mbuiter.h.
37902         (strcasestr): Remove support for multibyte locales.
37903         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37904         Change the conditional link warning.
37905         (mbscasestr): New declaration.
37906         * m4/mbscasestr.m4: New file.
37907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37908         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37909         REPLACE_STRCASESTR.
37910         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37912         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37913         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37914         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37915         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37916         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37917         (Depends-on): Remove mbuiter.
37918         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37919
37920 2007-02-04  Bruno Haible  <bruno@clisp.org>
37921
37922         Simplify handling of strncasecmp.
37923         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37924         the conditional link warning.
37925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37926         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37928         * modules/strcase (configure.ac): Don't invoke
37929         gl_STRING_MODULE_INDICATOR.
37930         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37931
37932 2007-02-04  Bruno Haible  <bruno@clisp.org>
37933
37934         New module mbscasecmp, reduced goal of strcasecmp.
37935         * modules/mbscasecmp: New file.
37936         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37937         (mbscasecmp): Renamed from strcasecmp.
37938         * lib/strcasecmp.c: Don't include mbuiter.h.
37939         (strcasecmp): Remove support for multibyte locales.
37940         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37941         Change the conditional link warning.
37942         (mbscasecmp): New declaration.
37943         * m4/mbscasecmp.m4: New file.
37944         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37945         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37946         REPLACE_STRCASECMP.
37947         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37948         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37949         GNULIB_MBSCASECMP.
37950         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37951         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37952         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37953         (Depends-on): Remove mbuiter.
37954         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37955
37956 2007-02-04  Bruno Haible  <bruno@clisp.org>
37957
37958         New module mbsstr. Remove module strstr.
37959         * modules/mbsstr: New file.
37960         * modules/strstr: Remove file.
37961         * lib/mbsstr.c: Renamed from lib/strstr.c.
37962         (mbsstr): Renamed from strstr.
37963         * lib/string_.h (strstr): Remove declaration. Change the conditional
37964         link warning.
37965         (mbsstr): New declaration.
37966         * m4/mbsstr.m4: New file.
37967         * m4/strstr.m4: Remove file.
37968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37969         REPLACE_STRSTR.
37970         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37971         Don't initialize GNULIB_STRSTR.
37972         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37973         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37974         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37975         (Support for systems lacking ANSI C 89): Remove strstr.
37976
37977 2007-02-04  Bruno Haible  <bruno@clisp.org>
37978
37979         New module mbsrchr.
37980         * modules/mbsrchr: New file.
37981         * lib/mbsrchr.c: New file.
37982         * lib/string_.h (strrchr): Add a conditional link warning.
37983         (mbsrchr): New declaration.
37984         * m4/mbsrchr.m4: New file.
37985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37986         GNULIB_MBSRCHR.
37987         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37988         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37989
37990 2007-02-04  Bruno Haible  <bruno@clisp.org>
37991
37992         New module mbschr.
37993         * modules/mbschr: New file.
37994         * lib/mbschr.c: New file.
37995         * lib/string_.h (strchr): Add a conditional link warning.
37996         (mbschr): New declaration.
37997         * m4/mbschr.m4: New file.
37998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37999         GNULIB_MBSCHR.
38000         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38001         * MODULES.html.sh (Internationalization functions): Add mbschr.
38002
38003 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38004
38005         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38006
38007         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38008
38009 2007-02-04  Bruno Haible  <bruno@clisp.org>
38010
38011         New module description section 'configure.ac-early'.
38012         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38013         (func_get_autoconf_early_snippet): New function.
38014         (func_import, func_create_testdir): Use it. Remove special cases for
38015         modules 'extensions' and 'lock'.
38016         * modules/extensions (configure.ac-early): Require
38017         gl_USE_SYSTEM_EXTENSIONS.
38018         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38019
38020 2007-02-04  Bruno Haible  <bruno@clisp.org>
38021
38022         Make use of gcj-4.3's -fsource and -ftarget option.
38023         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38024         and if so try the options -fsource and -ftarget.
38025         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38026         source_version, ftarget_option, target_version arguments.
38027         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38028         (is_envjavac_oldgcj_14_14_usable): Renamed from
38029         is_envjavac_gcj_14_14_usable.
38030         (is_envjavac_oldgcj_14_13_usable): Renamed from
38031         is_envjavac_gcj_14_13_usable.
38032         (is_gcj_present): Update.
38033         (is_gcj_43, is_gcj43_usable): New functions.
38034         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38035         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38036         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38037         try the options -fsource and -ftarget.
38038
38039 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38040
38041         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38042         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38043         larger value.
38044
38045 2007-02-03  Jim Meyering  <jim@meyering.net>
38046
38047         Give tools a better chance to allocate space for very large buffers.
38048         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38049
38050         Make pwd and readlink work also when run with an unreadable parent dir
38051         on systems with openat support.
38052         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38053         provided getcwd function, even when we have openat support.
38054         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38055
38056 2007-02-02  Bruno Haible  <bruno@clisp.org>
38057
38058         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38059         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38060         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38061         portability problems if one of these functions is only used on specific
38062         platforms.
38063         Reported by Paul Eggert.
38064
38065 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38066
38067         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38068         is causing more trouble than it's curing.
38069         * lib/regex_internal.h (__mempcpy): Remove.
38070         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38071         (and make the code a tad smaller to boot).
38072         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38073
38074 2007-02-02  Jim Meyering  <jim@meyering.net>
38075
38076         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38077         section, not in the Makefile.am: one.
38078
38079 2007-02-02  Eric Blake  <ebb9@byu.net>
38080
38081         * lib/strchrnul.c: Always include config.h first.
38082
38083         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38084         gnulib strstr is not necessary here.
38085
38086 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38087
38088         * m4/socklen.m4: Fix typo.
38089
38090 2007-02-02  Eric Blake  <ebb9@byu.net>
38091
38092         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38093         * modules/netinet_in (Makefile.am): Likewise.
38094
38095 2007-02-01  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/string_.h (GL_LINK_WARNING): New macro.
38098         (strcasecmp, strstr, strcasestr): If provided by the system,
38099         conditionally define as a macro that leads to a warning instead of to
38100         an error.
38101         (strncasecmp): Conditionally define as a macro that leads to a warning.
38102
38103 2007-02-01  Karl Berry  <karl@gnu.org>
38104
38105         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38106
38107 2007-02-01  Bruno Haible  <bruno@clisp.org>
38108
38109         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38110         renamings.
38111
38112 2007-02-01  Eric Blake  <ebb9@byu.net>
38113
38114         * modules/regex (Depends-on): Revert dependence on mempcpy.
38115         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38116         module's definition of mempcpy.
38117         Reported by Paul Eggert.
38118
38119 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38120
38121         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38122         the symbol XYZ before redefining it.  This fixes a problem with
38123         programs that don't use XYZ, when compiled on systems that define
38124         XYZ to something else.
38125
38126 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38127
38128         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38129         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38130         writeable to group or other and (2) is intended to have a special
38131         mode bit that is set or cleared.  In such a case, the directory
38132         should be neither group- nor other-writeable until the special
38133         mode bits are right.
38134
38135 2007-01-31  Eric Blake  <ebb9@byu.net>
38136
38137         * modules/mountlist (Depends-on): Add strstr.
38138
38139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38140         bug.
38141         * modules/string (Makefile.am): Remove redundant replacement.
38142         * modules/regex (Depends-on): Add mempcpy.
38143
38144 2007-01-31  Bruno Haible  <bruno@clisp.org>
38145
38146         New module description field 'Link'.
38147         * gnulib-tool (func_usage): Document --extract-link-directive.
38148         (sed_extract_prog): Recognize 'Link' directive.
38149         (func_get_link_directive): New function.
38150         (func_import): Show summary of link directives.
38151         Handle --extract-link-directive option.
38152         * modules/acl (Link): New section.
38153         * modules/clock-time (Link): New section.
38154         * modules/euidaccess (Link): New section.
38155         * modules/gettext (Link): New section.
38156         * modules/iconv (Link): New section.
38157         * modules/lock (Link): New section.
38158         * modules/nanosleep (Link): New section.
38159         * modules/readline (Link): New section.
38160
38161 2007-01-27  Bruno Haible  <bruno@clisp.org>
38162
38163         Enforce the use of gnulib modules for unportable <string.h> functions.
38164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38165         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38166         (gl_HEADER_STRING_H_BODY): Require it.
38167         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38168         the symbol XYZ to one that gives a link error.
38169         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38170         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38171         * modules/mempcpy (configure.ac): Likewise.
38172         * modules/memrchr (configure.ac): Likewise.
38173         * modules/stpcpy (configure.ac): Likewise.
38174         * modules/stpncpy (configure.ac): Likewise.
38175         * modules/strcase (configure.ac): Likewise.
38176         * modules/strcasestr (configure.ac): Likewise.
38177         * modules/strchrnul (configure.ac): Likewise.
38178         * modules/strdup (configure.ac): Likewise.
38179         * modules/strndup (configure.ac): Likewise.
38180         * modules/strnlen (configure.ac): Likewise.
38181         * modules/strpbrk (configure.ac): Likewise.
38182         * modules/strsep (configure.ac): Likewise.
38183         * modules/strstr (configure.ac): Likewise.
38184         * modules/strtok_r (configure.ac): Likewise.
38185
38186 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38187
38188         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38189
38190 2007-01-30  Jim Meyering  <jim@meyering.net>
38191
38192         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38193
38194 2007-01-29  Bruno Haible  <bruno@clisp.org>
38195
38196         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38197         * lib/execute.c: Likewise.
38198         * lib/pipe.c: Likewise.
38199         * lib/printf-args.h: Likewise.
38200         * lib/printf-args.c: Likewise.
38201         * lib/printf-parse.c: Likewise.
38202         * lib/vasnprintf.c: Likewise.
38203
38204 2007-01-29  Eric Blake  <ebb9@byu.net>
38205
38206         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38207         declaration.
38208
38209 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38210
38211         * lib/strptime.h (strptime): Use 'restrict' for args where
38212         POSIX requires this.
38213         * lib/strptime.c (strptime): Likewise.
38214         Change license notice from LGPL to GPL, since gnulib-tool will
38215         change this as needed.
38216         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38217         defined.
38218         Include "strptime.h" first, to check interface.
38219         Do not #undef _LIBC and _NL_CURRENT.
38220         Do not include <stdlib.h>; no longer needed.
38221         Include "time_r.h" and declare ptime_locale_status
38222         only if _LIBC is not defined.
38223         (__P): Remove unused macro.
38224         (match_string): Bring back glibc version, but use it only if _LIBC
38225         is defined.
38226         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38227         Remove unnecessary assertion and abort() call.
38228         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38229         * m4/strptime.m4: Fix serial number comment.
38230         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38231         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38232         (Depends-on): Add time_r.
38233
38234 2007-01-29  Bruno Haible  <bruno@clisp.org>
38235
38236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38237         strptime.
38238         * modules/strptime (Depends-on): Add stdbool.
38239         * lib/strptime.h: Include <time.h> always. Add comments.
38240
38241 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38242
38243         * modules/strptime: New file.
38244         * lib/strptime.h: New file.
38245         * lib/strptime.c: New file.
38246         * m4/strptime.m4: New file.
38247
38248 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38249
38250         * MODULES.html.sh: New module mpsort.
38251         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38252
38253         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38254         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38256         All uses changed.
38257         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38258         All uses changed.
38259         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38260         to _Restrict_.
38261         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38262         the parameter matches the prototype.
38263
38264 2007-01-28  Jim Meyering  <jim@meyering.net>
38265
38266         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38267         sys/time.h here, reverting that part of the previous patch:
38268         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38269
38270 2007-01-28  Bruno Haible  <bruno@clisp.org>
38271
38272         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38273         value of $(SYS_TIME_H).
38274         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38275         remove it conditionally, too. [added by Jim Meyering]
38276         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38277         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38278         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38279         GETTIMEOFDAY_REPLACEMENT to 1.
38280
38281 2007-01-28  Bruno Haible  <bruno@clisp.org>
38282
38283         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38284         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38286         Set UNISTD_H instead of UNISTD_H2.
38287         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38288
38289 2007-01-28  Bruno Haible  <bruno@clisp.org>
38290
38291         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38292         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38293
38294 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38295
38296         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38297         (func_create_testdir): Ensure C locale for `grep' and `tr'
38298         character ranges.
38299         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38300         ACLOCAL_AMFLAGS parsing state machine.
38301
38302 2007-01-27  Bruno Haible  <bruno@clisp.org>
38303
38304         * modules/unistr/base: Update.
38305
38306 2007-01-27  Bruno Haible  <bruno@clisp.org>
38307
38308         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38309         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38310         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38311         modules/unistr/u32-mbtouc.
38312         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38313         * lib/unistr.h: Update.
38314         * lib/linebreak.c: Update.
38315         * modules/unistr/u32-mbtouc: Renamed from
38316         modules/unistr/u32-mbtouc-safe.
38317         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38318         * lib/unistr.h: Update.
38319         * lib/unistr/u32-to-u8.c: Update.
38320         * lib/unistr/u32-to-u16.c: Update.
38321
38322 2007-01-27  Bruno Haible  <bruno@clisp.org>
38323
38324         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38325         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38326         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38327         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38328         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38329         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38330         modules/unistr/u16-mbtouc.
38331         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38332         * lib/unistr.h: Update.
38333         * lib/linebreak.c: Update.
38334         * modules/linebreak: Update.
38335         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38336         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38337         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38338         * modules/unistr/u16-mbtouc: Renamed from
38339         modules/unistr/u16-mbtouc-safe.
38340         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38341         * lib/unistr.h: Update.
38342         * lib/unistr/u16-to-u8.c: Update.
38343         * modules/unistr/u16-to-u8: Update.
38344         * lib/unistr/u16-to-u32.c: Update.
38345         * modules/unistr/u16-to-u32: Update.
38346
38347 2007-01-27  Bruno Haible  <bruno@clisp.org>
38348
38349         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38350         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38351         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38352         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38353         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38354         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38355         modules/unistr/u8-mbtouc.
38356         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38357         * lib/unistr.h: Update.
38358         * lib/striconveh.c: Update.
38359         * modules/striconveh: Update.
38360         * lib/linebreak.c: Update.
38361         * modules/linebreak: Update.
38362         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38363         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38364         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38365         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38366         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38367         * lib/unistr.h: Update.
38368         * lib/striconveh.c: Update.
38369         * modules/striconveh: Update.
38370         * lib/unistr/u8-to-u16.c: Update.
38371         * modules/unistr/u8-to-u16: Update.
38372         * lib/unistr/u8-to-u32.c: Update.
38373         * modules/unistr/u8-to-u32: Update.
38374
38375 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38376
38377         Sync from Libtool.
38378         * lib/argz.c: Do not include strings.h nor memory.h, include
38379         string.h unconditionally.  Patch by Simon Josefsson.
38380
38381 2007-01-27  Bruno Haible  <bruno@clisp.org>
38382
38383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38384         from gl_HEADER_STRING_H_BODY.
38385         (gl_HEADER_STRING_H_BODY): Require it.
38386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38387         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38388         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38389         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38391         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38393         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38394         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38395         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38396         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38397         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38398         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38399         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38400         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38401
38402 2007-01-27  Bruno Haible  <bruno@clisp.org>
38403
38404         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38405         check_PROGRAMS into noinst_PROGRAMS.
38406         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38407         check_PROGRAMS in this case.
38408         (func_import): Set for_test to false.
38409         (func_create_testdir): Set for_test to true.
38410
38411 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38412             Bruno Haible  <bruno@clisp.org>
38413
38414         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38415         (Depends-on): Add string.
38416         (Includes): Use <string.h> instead of strcasestr.h.
38417         * modules/string (Makefile.am): Also substitute the value of
38418         REPLACE_STRCASESTR.
38419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38420         assume strcasestr is declared in <string.h> not <strings.h>. Also
38421         set REPLACE_STRCASESTR.
38422         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38423         REPLACE_STRCASESTR.
38424         * lib/strcasestr.h: Remove file.
38425         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38426         * lib/string_.h (strcasestr): New declaration.
38427
38428 2007-01-27  Bruno Haible  <bruno@clisp.org>
38429
38430         * lib/string_.h: Use 'extern'.
38431
38432 2007-01-27  Jim Meyering  <jim@meyering.net>
38433
38434         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38435         of set-but-not-used local, "q".
38436
38437         * lib/mempcpy.c: Include <config.h> before <string.h>.
38438         This fixes a compilation error on HP-UX, due to the system's
38439         "restrict"-using mempcpy prototype.
38440
38441 2007-01-26  Bruno Haible  <bruno@clisp.org>
38442
38443         Small optimization.
38444         * lib/javacomp.c: Include c-strstr.h.
38445          (is_envjavac_gcj): Use c_strstr instead of strstr.
38446         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38447
38448 2007-01-26  Bruno Haible  <bruno@clisp.org>
38449
38450         * MODULES.html.sh (Unicode string functions): Add the new modules.
38451
38452         * modules/uniconv/u32-strconv-to-locale: New file.
38453         * lib/uniconv/u32-strconv-to-locale.c: New file.
38454
38455         * modules/uniconv/u16-strconv-to-locale: New file.
38456         * lib/uniconv/u16-strconv-to-locale.c: New file.
38457
38458         * modules/uniconv/u8-strconv-to-locale: New file.
38459         * lib/uniconv/u8-strconv-to-locale.c: New file.
38460
38461         * modules/uniconv/u32-strconv-from-locale: New file.
38462         * lib/uniconv/u32-strconv-from-locale.c: New file.
38463
38464         * modules/uniconv/u16-strconv-from-locale: New file.
38465         * lib/uniconv/u16-strconv-from-locale.c: New file.
38466
38467         * modules/uniconv/u8-strconv-from-locale: New file.
38468         * lib/uniconv/u8-strconv-from-locale.c: New file.
38469
38470         * modules/uniconv/u32-strconv-to-enc: New file.
38471         * lib/uniconv/u32-strconv-to-enc.c: New file.
38472         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38473         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38474
38475         * modules/uniconv/u16-strconv-to-enc: New file.
38476         * lib/uniconv/u16-strconv-to-enc.c: New file.
38477         * lib/uniconv/u-strconv-to-enc.h: New file.
38478         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38479         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38480
38481         * modules/uniconv/u8-strconv-to-enc: New file.
38482         * lib/uniconv/u8-strconv-to-enc.c: New file.
38483         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38484         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38485
38486         * modules/uniconv/u32-strconv-from-enc: New file.
38487         * lib/uniconv/u32-strconv-from-enc.c: New file.
38488         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38489         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38490
38491         * modules/uniconv/u16-strconv-from-enc: New file.
38492         * lib/uniconv/u16-strconv-from-enc.c: New file.
38493         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38494         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38495
38496         * modules/uniconv/u8-strconv-from-enc: New file.
38497         * lib/uniconv/u8-strconv-from-enc.c: New file.
38498         * lib/uniconv/u-strconv-from-enc.h: New file.
38499         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38500         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38501
38502         * modules/uniconv/u32-conv-from-enc: New file.
38503         * lib/uniconv/u32-conv-from-enc.c: New file.
38504         * modules/uniconv/u32-conv-from-enc-tests: New file.
38505         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38506
38507         * modules/uniconv/u16-conv-from-enc: New file.
38508         * lib/uniconv/u16-conv-from-enc.c: New file.
38509         * lib/uniconv/u-conv-from-enc.h: New file.
38510         * modules/uniconv/u16-conv-from-enc-tests: New file.
38511         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38512
38513         * modules/uniconv/u8-conv-from-enc: New file.
38514         * lib/uniconv/u8-conv-from-enc.c: New file.
38515         * modules/uniconv/u8-conv-from-enc-tests: New file.
38516         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38517
38518         * modules/uniconv/base: New file.
38519         * lib/uniconv.h: New file.
38520
38521 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38522
38523         * doc/gnulib-tool.texi (Initial import): Update to match current
38524         behavior with strdup module.
38525         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38526         * lib/memmem.h: Remove; all uses removed.  This is now done
38527         by <string.h>.
38528         * lib/mempcpy.h: Likewise.
38529         * lib/memrchr.h: Likewise.
38530         * lib/stpcpy.h: Likewise.
38531         * lib/stpncpy.h: Likewise.
38532         * lib/strcase.h: Likewise.
38533         * lib/strchrnul.h: Likewise.
38534         * lib/strdup.h: Likewise.
38535         * lib/strndup.h: Likewise.
38536         * lib/strnlen.h: Likewise.
38537         * lib/strpbrk.h: Likewise.
38538         * lib/strsep.h: Likewise.
38539         * lib/strstr.h: Likewise.
38540         * lib/strtok_r.h: Likewise.
38541         * lib/string_.h: New file.
38542         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38543         Rely on <string.h> instead.
38544         * lib/canon-host.c: Likewise.
38545         * lib/chdir-long.c: Likewise.
38546         * lib/concatpath.c: Likewise.
38547         * lib/exclude.c: Likewise.
38548         * lib/fchdir.c: Likewise.
38549         * lib/getaddrinfo.c: Likewise.
38550         * lib/getcwd.c: Likewise.
38551         * lib/getsubopt.c: Likewise.
38552         * lib/glob.c: Likewise.
38553         * lib/hard-locale.c: Likewise.
38554         * lib/iconvme.c: Likewise.
38555         * lib/javacomp.c: Likewise.
38556         * lib/mempcpy.c: Likewise.
38557         * lib/memrchr.c: Likewise.
38558         * lib/regex_internal.h: Likewise.
38559         * lib/stpncpy.c: Likewise.
38560         * lib/strcasecmp.c: Likewise.
38561         * lib/strchrnul.c: Likewise.
38562         * lib/strdup.c: Likewise.
38563         * lib/striconv.c: Likewise.
38564         * lib/striconveh.c: Likewise.
38565         * lib/striconveha.c: Likewise.
38566         * lib/strncasecmp.c: Likewise.
38567         * lib/strndup.c: Likewise.
38568         * lib/strnlen.c: Likewise.
38569         * lib/strsep.c: Likewise.
38570         * lib/strstr.c: Likewise.
38571         * lib/strtok_r.c: Likewise.
38572         * lib/userspec.c: Likewise.
38573         * lib/w32spawn.h: Likewise.
38574         * lib/xstrndup.c: Likewise.
38575         * lib/mountlist.c (strstr): Remove decl.
38576         * m4/string_h.m4: New file.
38577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38578         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38579         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38580         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38581         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38582         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38583         Set REPLACE_STRCASECMP if necessary.
38584         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38585         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38586         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38588         HAVE_DECL_STRDUP if necessary.
38589         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38590         since gl_FUNC_STRNDUP does that now.
38591         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38592         Check for decl here...
38593         (gl_PREREQ_STRNLEN): ... not here.
38594         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38595         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38596         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38597         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38598         necessary.
38599         * modules/string: New file.
38600         * modules/memmem (Files): Remove special-purpose include file.
38601         (Depends-on): Add string.
38602         (Include): Include <string.h>, not the removed file.
38603         * modules/mempcpy: Likewise.
38604         * modules/memrchr: Likewise.
38605         * modules/stpcpy: Likewise.
38606         * modules/stpncpy: Likewise.
38607         * modules/strcase: Likewise.
38608         * modules/strchrnul: Likewise.
38609         * modules/strdup: Likewise.
38610         * modules/strndup: Likewise.
38611         * modules/strnlen: Likewise.
38612         * modules/strpbrk: Likewise.
38613         * modules/strsep: Likewise.
38614         * modules/strstr: Likewise.
38615         * modules/strtok_r: Likewise.
38616         * tests/test-dirname.c: Don't include "strdup.h", since
38617         <string.h> now suffices.
38618         * tests/test-memmem.c: Don't include "memmem.h", since
38619         <string.h> now suffices.
38620
38621 2007-01-25  Bruno Haible  <bruno@clisp.org>
38622
38623         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38624         *resultp is 0.
38625
38626         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38627         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38628         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38629         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38630
38631         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38632         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38633         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38634         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38635         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38636         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38637
38638 2007-01-24  Bruno Haible  <bruno@clisp.org>
38639
38640         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38642         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38643         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38644         gl_FUNC_FTS_CORE.
38645         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38646         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38647         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38648         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38649         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38650         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38651         gl_FUNC_FCHOWNAT.
38652         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38653         gl_FUNC_STRFTIME.
38654         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38655         Reported by Ralf Wildenhues.
38656
38657 2007-01-24  Bruno Haible  <bruno@clisp.org>
38658
38659         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38660         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38661         gl_GETADDRINFO.
38662         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38663         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38664         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38665
38666 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38667
38668         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38669         Don't use 'exit'; just return from 'main'.
38670         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38671
38672         * lib/fnmatch_.h: Readjust white space and comments to match
38673         glibc, to avoid spurious diffs.
38674
38675 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38676
38677         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38678         2004-12-01 change by Jakub Jelinek, since this code won't compile
38679         if !LIBC.  Problem reported by Bob Proulx.
38680
38681 2007-01-23  Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/striconveh.c: Include c-strcaseeq.h.
38684         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38685         * modules/striconveh (Depends-on): Add c-strcaseeq.
38686
38687 2007-01-23  Bruno Haible  <bruno@clisp.org>
38688
38689         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38690
38691         * modules/c-strcaseeq: New file.
38692         * lib/c-strcaseeq.h: New file.
38693
38694         * modules/streq: New file.
38695         * lib/streq.h: New file.
38696
38697 2007-01-23  Bruno Haible  <bruno@clisp.org>
38698
38699         * modules/striconveha-tests: New file.
38700         * tests/test-striconveha.c: New file.
38701
38702         * lib/striconveha.h: Include <stdbool.h>.
38703         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38704         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38705         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38706         (mem_iconveha): New function.
38707         (str_iconveha_notranslit): Renamed from str_iconveha.
38708         (str_iconveha): New function.
38709         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38710         c-strcase.
38711
38712 2007-01-23  Bruno Haible  <bruno@clisp.org>
38713
38714         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38715         encodings without forgiving before trying any encoding with handler.
38716         (str_iconveha): Try all encodings without forgiving before trying any
38717         encoding with handler.
38718
38719 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38720
38721         Import the following changes from libc.
38722
38723         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38724
38725         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38726
38727         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38728
38729         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38730         normal_bracket label.
38731
38732         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38733
38734         [BZ #361]
38735         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38736         to normal_bracket after fetching the next character.
38737
38738 2007-01-22  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38741         argument.
38742         * lib/striconveh.c (iconv_carefully_1): New function.
38743         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38744         argument.
38745         (str_cd_iconveh): Update.
38746         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38747         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38748         * tests/test-striconveh.c (MAGIC): New macro.
38749         (new_offsets): New function.
38750         (main): Test call with and without offsets.
38751
38752 2007-01-22  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38755         * modules/sys_select (Makefile.am): Likewise.
38756         * modules/sys_socket (Makefile.am): Likewise.
38757         * modules/sys_time (Makefile.am): Likewise.
38758
38759 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38760
38761         * modules/gettimeofday (License): Change from GPL to LGPL, since
38762         gettimeofday is a library function.
38763
38764 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38765
38766         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38767
38768 2007-01-21  Bruno Haible  <bruno@clisp.org>
38769
38770         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38771
38772 2007-01-21  Bruno Haible  <bruno@clisp.org>
38773
38774         * modules/striconveha: New file.
38775         * lib/striconveha.h: New file.
38776         * lib/striconveha.c: New file.
38777         * MODULES.html.sh (Internationalization functions): Add striconveha.
38778         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38779         string.
38780         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38781
38782 2007-01-21  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38785         * lib/striconveh.c (str_iconveh): Likewise.
38786
38787 2007-01-21  Bruno Haible  <bruno@clisp.org>
38788
38789         * lib/striconveh.h (mem_iconveh): New declaration.
38790         * lib/striconveh.c (mem_iconveh): New function.
38791         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38792
38793 2007-01-21  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38796
38797         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38798         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38799         original result buffer.
38800         (str_cd_iconveh): Update.
38801         * tests/test-striconveh.c (main): Update.
38802
38803         * lib/striconv.h (mem_cd_iconv): Change specification.
38804         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38805         result buffer.
38806         (str_cd_iconv): Update.
38807         * tests/test-striconv.c (main): Update.
38808
38809 2007-01-21  Bruno Haible  <bruno@clisp.org>
38810
38811         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38812
38813 2007-01-20  Jim Meyering  <jim@meyering.net>
38814
38815         * lib/userspec.c (parse_with_separator): If a user or group string
38816         starts with "+", skip the corresponding name-to-ID look-up, since
38817         such a look-up must fail: user and group names may not include "+".
38818
38819 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38820
38821         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38822         since we now assume the sys_time module.
38823         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38824         check for sys/time.h; no longer needed.
38825         * modules/poll (Depends-on): Depend on sys_time.
38826
38827 2007-01-18  Bruno Haible  <bruno@clisp.org>
38828
38829         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38830         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38831
38832         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38833         gettimeofday.
38834
38835         * tests/test-gettimeofday.c: Include <time.h>.
38836         (dummy): Remove variable.
38837
38838         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38839         gl_HEADER_SYS_TIME_H.
38840         (gl_HEADER_SYS_TIME_H): New macro.
38841
38842         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38843         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38845         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38846         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38847         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38848         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38849         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38850         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38851         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38852         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38853
38854         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38855         last change; it caused a compilation error when cross-compiling to
38856         Cygwin.
38857
38858 2007-01-18  Jim Meyering  <jim@meyering.net>
38859
38860         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38861         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38862         than the race-prone "test -d sys || mkdir sys".
38863         (configure.ac): Use AC_PROG_MKDIR_P.
38864         * modules/sys_select: Likewise.
38865         * modules/sys_socket: Likewise.
38866         * modules/sys_time: Likewise.
38867
38868 2007-01-18  Eric Blake  <ebb9@byu.net>
38869
38870         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38871         replace gettimeofday.
38872         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38873         name, to avoid infinite recursion.
38874
38875 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38876
38877         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38878         module sys_time.
38879         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38880         assume timespec.h defines struct timeval.
38881         * lib/settime.c: Likewise.
38882         * lib/utimens.c: Likewise.
38883         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38884         since we now assume the gettimeofday module.
38885         * lib/tempname.c (__gen_tempname): Likewise.
38886         * lib/gettimeofday.h: Remove.
38887         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38888         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38889         Include <time.h>, for 'time()'.
38890         (localtime_buffer_addr): Also use this workaround if
38891         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38892         to simplify the uses.  All uses changed.
38893         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38894         that #undef is inside {}, and 'const' follows type name consistently.
38895         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38896         (gettimeofday): Do not use the maximum possible value for
38897         tv->tv_usec, since that might break usages other than ls.c.
38898         Instead, we'll leave ls.c alone.  This undoes today's patch
38899         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38900         we've never observed the problem but might as well keep the
38901         canary.
38902         * lib/nanosleep.c: Include timespec.h first, for interface check.
38903         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38904         now assume the sys_time module.
38905         * lib/tempname.c: Likewise.
38906         * lib/timespec.h: Likewise.
38907         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38908         needed.
38909         * lib/strftime.c: Likewise.
38910         * lib/timespec.h: Likewise.
38911         * lib/posixtm.c: Include posixtm.h first, for interface check.
38912         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38913         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38914         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38915         * lib/sys_time_.h: New file.
38916         * lib/timespec.h (struct timespec): Use long int, not long.
38917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38918         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38919         Remove obsolescent call to AC_HEADER_TIME.
38920         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38922         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38923         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38924         Likewise.
38925         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38926         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38927         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38928         into the sys_time module.  Check for gettimeofday just once.
38929         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38930         for gettimeofday signature to just check the signature.  Merely
38931         compile it, since linking doesn't test signature.  Improve test for
38932         whether gettimeofday.o is actually needed.
38933         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38934         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38935         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38936         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38937         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38938         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38939         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38940         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38941         than worrying about sys/time.h.
38942         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38943         Don't bother worrying about TIME_WITH_SYS_TIME.
38944         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38945         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38946         * m4/sys_time_h.m4: New file.
38947         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38948         Don't include sys/time.h.  Return from main rather than exiting.
38949         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38950         all uses changed.
38951         * modules/gethrxtime (Depends-on): Add sys_time.
38952         * modules/gettime (Depends-on): Likewise.
38953         * modules/gettimeofday (Depends-on): Likewise.
38954         * modules/nanosleep (Depends-on): Likewise.
38955         * modules/settime (Depends-on): Likewise.
38956         * modules/tempname (Depends-on): Likewise.
38957         * modules/utimens (Depends-on): Likewise.
38958         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38959         (Include:) Change back to <sys/time.h>.
38960         (Maintainer:) Add self.
38961         * modules/sys_time: New file.
38962         * modules/tempname (Depends-on): Add gettimeofday.
38963         * tests/test-gettimeofday.c: Include <sys/time.h>
38964         rather than gettimeofday.h.
38965
38966 2007-01-17  Bruno Haible  <bruno@clisp.org>
38967
38968         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38969         the license default to GPL.
38970         (func_create_testdir): Don't complain if a module is LGPL and its
38971         tests module depends on GPLed modules.
38972
38973 2007-01-17  Bruno Haible  <bruno@clisp.org>
38974
38975         * lib/gettimeofday.c (gettimeofday): Add code for the case
38976         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38977         maximum possible value for tv->tv_usec, rather than the minimum one.
38978
38979 2005-10-08  Martin Lambers  <marlam@marlam.de>
38980 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38981 2007-01-16  Bruno Haible  <bruno@clisp.org>
38982
38983         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38984         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38985         gl_FUNC_GETTIMEOFDAY.
38986         (Include): Add gettimeofday.h.
38987         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38988         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38989         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38990         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38991         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38992         * lib/gettimeofday.h: New file.
38993         * lib/gettimeofday.c: Include <sys/timeb.h>.
38994         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38995         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38996         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38997         fall back on time().
38998
38999         * tests/test-gettimeofday.c: New file.
39000         * modules/gettimeofday-tests: New file.
39001
39002 2007-01-16  Eric Blake  <ebb9@byu.net>
39003
39004         * modules/fnmatch (Depends-on): Depend on wchar.
39005         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39006         * m4/fnmatch.m4: Likewise.
39007         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39008         * m4/mbchar.m4: Likewise.
39009         * modules/mbswidth (Depends-on): Depend on wchar.
39010         * lib/mbswidth.c: Assume <wchar.h>.
39011         * m4/mbswidth.m4: Likewise.
39012         * modules/quotearg (Depends-on): Depend on wchar.
39013         * lib/quotearg.c: Assume <wchar.h>.
39014         * m4/quotearg.m4: Likewise.
39015         * modules/regex (Depends-on): Depend on wchar.
39016         * lib/regex_internal.h: Assume <wchar.h>.
39017         * m4/regex.m4: Likewise.
39018         * modules/stdint (Depends-on): Depend on wchar.
39019         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39020         * m4/stdint.m4: Likewise.
39021         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39022         * modules/strftime (Depends-on): Depend on wchar.
39023         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39024         * modules/strtol (Depends-on): Depend on wchar.
39025         * lib/strtol.c: Assume <wchar.h>.
39026         * modules/wcwidth (Depends-on): Depend on wchar.
39027         * lib/wcwidth.h: Assume <wchar.h>.
39028         * m4/wcwidth.m4: Likewise.
39029
39030 2007-01-16  Bruno Haible  <bruno@clisp.org>
39031
39032         * modules/csharpexec-script: New, created from...
39033         * modules/csharpexec: ... this.
39034
39035 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39036
39037         * modules/javaexec-script: New, created from...
39038         * modules/javaexec: ... this.
39039
39040 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39041
39042         * modules/poll (Dependencies): Add sys_select.
39043
39044 2007-01-15  Jim Meyering  <jim@meyering.net>
39045
39046         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39047         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39048         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39049         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39050
39051 2007-01-15  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/striconveh: New file.
39054         * lib/striconveh.h: New file.
39055         * lib/striconveh.c: New file.
39056         * MODULES.html.sh (Internationalization functions): Add striconveh.
39057
39058         * modules/striconveh-tests: New file.
39059         * tests/test-striconveh.c: New file.
39060
39061 2007-01-15  Bruno Haible  <bruno@clisp.org>
39062
39063         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39064         not from GNU libiconv or GNU libc.
39065
39066 2007-01-15  Bruno Haible  <bruno@clisp.org>
39067
39068         * doc/gnulib-intro.texi (Copyright): Explain the different license
39069         terms for module descriptions, autoconf macros, tests, documentation.
39070
39071 2007-01-14  Bruno Haible  <bruno@clisp.org>
39072
39073         * modules/striconv-tests: New file.
39074         * tests/test-striconv.c: New file.
39075
39076 2007-01-14  Bruno Haible  <bruno@clisp.org>
39077
39078         * modules/iconv-tests: New file.
39079         * tests/test-iconv.c: New file.
39080
39081 2007-01-14  Bruno Haible  <bruno@clisp.org>
39082
39083         * gnulib-tool (func_get_license): For test modules, use the license of
39084         the main module.
39085
39086 2007-01-14  Bruno Haible  <bruno@clisp.org>
39087
39088         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39089         if iconv is found to exist.
39090
39091 2007-01-14  Bruno Haible  <bruno@clisp.org>
39092
39093         * modules/c-ctype-tests: New file.
39094         * tests/test-c-ctype.c: New file.
39095
39096 2007-01-14  Bruno Haible  <bruno@clisp.org>
39097
39098         * modules/binary-io-tests: New file.
39099         * tests/test-binary-io.sh: New file.
39100         * tests/test-binary-io.c: New file.
39101
39102 2007-01-14  Bruno Haible  <bruno@clisp.org>
39103
39104         * modules/array-oset-tests: New file.
39105         * tests/test-array_oset.c: New file.
39106
39107 2007-01-14  Bruno Haible  <bruno@clisp.org>
39108
39109         * modules/array-list-tests: New file.
39110         * tests/test-array_list.c: New file.
39111
39112 2007-01-14  Bruno Haible  <bruno@clisp.org>
39113
39114         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39115         and make.
39116         Reported by Simon Josefsson in
39117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39118
39119 2007-01-14  Bruno Haible  <bruno@clisp.org>
39120
39121         * modules/allocsa-tests: New file.
39122         * tests/test-allocsa.c: New file.
39123
39124 2007-01-14  Bruno Haible  <bruno@clisp.org>
39125
39126         * modules/fchdir (Depends-on): Add absolute-header.
39127         * modules/unistd (Depends-on): Likewise.
39128
39129 2006-12-30  Bruno Haible  <bruno@clisp.org>
39130
39131         * modules/fchdir: New file.
39132         * modules/unistd (Files): Add lib/unistd_.h.
39133         (Makefile.am): Generate unistd.h from unistd_.h.
39134         * lib/fchdir.c: New file.
39135         * lib/dirent_.h: New file.
39136         * lib/unistd_.h: New file.
39137         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39138         * m4/fchdir.m4: New file.
39139         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39140         (gl_HEADER_UNISTD): Invoke it.
39141         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39142         function.
39143         * lib/backupfile.c (opendir, closedir): Undefine.
39144         * lib/chown.c (open, close): Undefine.
39145         * lib/clean-temp.c (open, close): Undefine.
39146         * lib/copy-file.c (open, close): Undefine.
39147         * lib/execute.c (open, close): Undefine.
39148         * lib/fsusage.c (open, close): Undefine.
39149         * lib/gc-gnulib.c (open, close): Undefine.
39150         * lib/getcwd.c (opendir, closedir): Undefine.
39151         * lib/glob.c (opendir, closedir): Undefine.
39152         * lib/javacomp.c (open, close): Undefine.
39153         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39154         * lib/openat-proc.c (open, close): Undefine.
39155         * lib/pagealign_alloc.c (open, close): Undefine.
39156         * lib/pipe.c (open, close): Undefine.
39157         * lib/progreloc.c (open, close): Undefine.
39158         * lib/savedir.c (opendir, closedir): Undefine.
39159         * lib/utime.c (open, close): Undefine.
39160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39161
39162 2007-01-10  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39165
39166 2007-01-12  Eric Blake  <ebb9@byu.net>
39167
39168         Provide a robust <wchar.h>.  Further simplifications are now
39169         possible in other modules, but not included here.
39170         * modules/wchar: New module.
39171         * m4/wchar.m4: New file.
39172         * lib/wchar_.h: Likewise.
39173         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39174         of the new module.
39175         * MODULES.html.sh (Extended multibyte and wide character utilities):
39176         New section.
39177
39178 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39179
39180         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39181         to a reasonable default for memory allocation.
39182         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39183         file system that reports garbage st_size values for symlinks.
39184         Problem reported by Liyang Hu.
39185
39186 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39187
39188         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39189         Emacs .#* auto-save files).
39190
39191 2007-01-11  Bruno Haible  <bruno@clisp.org>
39192
39193         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39194         directory.
39195
39196 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39197
39198         Use @...@ consistently in lib/wctype_.h.
39199         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39200         on it being set to 1 or 0.
39201         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39202         go back to AC_SUBSTing it.
39203         * modules/wctype (Makefile.am): Undo previous change.
39204
39205 2007-01-10  Eric Blake  <ebb9@byu.net>
39206
39207         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39208         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39209         * modules/wctype (Makefile.am): Likewise.
39210         Reported by Chris McGuire.
39211
39212 2007-01-10  Jim Meyering  <jim@meyering.net>
39213
39214         fts.c: a small readability/maintainability improvement
39215         * lib/fts.c (fts_read): Make this code slightly more readable and
39216         maintainable by hoisting the "sp->fts_cur = p" assignments to
39217         immediately follow the statements that set P.  Derived from
39218         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39219
39220 2007-01-10  Eric Blake  <ebb9@byu.net>
39221
39222         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39223         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39225         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39226         Reported by Chris McGuire.
39227
39228 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39229
39230         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39231         in sed script.
39232
39233 2007-01-09  Bruno Haible  <bruno@clisp.org>
39234
39235         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39236         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39237         variables.
39238         (func_module): Use them.
39239
39240 2007-01-09  Bruno Haible  <bruno@clisp.org>
39241
39242         * modules/unistr/base: New file.
39243         * lib/unistr.h: New file.
39244
39245         * modules/unistr/u8-to-u16: New file.
39246         * lib/unistr/u8-to-u16.c: New file.
39247
39248         * modules/unistr/u8-to-u32: New file.
39249         * lib/unistr/u8-to-u32.c: New file.
39250
39251         * modules/unistr/u16-to-u8: New file.
39252         * lib/unistr/u16-to-u8.c: New file.
39253
39254         * modules/unistr/u16-to-u32: New file.
39255         * lib/unistr/u16-to-u32.c: New file.
39256
39257         * modules/unistr/u32-to-u8: New file.
39258         * lib/unistr/u32-to-u8.c: New file.
39259
39260         * modules/unistr/u32-to-u16: New file.
39261         * lib/unistr/u32-to-u16.c: New file.
39262
39263         * modules/unistr/u8-check: New file.
39264         * modules/unistr/u16-check: New file.
39265         * modules/unistr/u32-check: New file.
39266         * lib/unistr/u8-check.c: New file.
39267         * lib/unistr/u16-check.c: New file.
39268         * lib/unistr/u32-check.c: New file.
39269
39270         * modules/unistr/u8-chr: New file.
39271         * modules/unistr/u16-chr: New file.
39272         * modules/unistr/u32-chr: New file.
39273         * lib/unistr/u8-chr.c: New file.
39274         * lib/unistr/u16-chr.c: New file.
39275         * lib/unistr/u32-chr.c: New file.
39276
39277         * modules/unistr/u8-cmp: New file.
39278         * modules/unistr/u16-cmp: New file.
39279         * modules/unistr/u32-cmp: New file.
39280         * lib/unistr/u8-cmp.c: New file.
39281         * lib/unistr/u16-cmp.c: New file.
39282         * lib/unistr/u32-cmp.c: New file.
39283
39284         * modules/unistr/u8-cpy: New file.
39285         * modules/unistr/u16-cpy: New file.
39286         * modules/unistr/u32-cpy: New file.
39287         * lib/unistr/u8-cpy.c: New file.
39288         * lib/unistr/u16-cpy.c: New file.
39289         * lib/unistr/u32-cpy.c: New file.
39290         * lib/unistr/u-cpy.h: New file.
39291
39292         * modules/unistr/u8-cpy-alloc: New file.
39293         * modules/unistr/u16-cpy-alloc: New file.
39294         * modules/unistr/u32-cpy-alloc: New file.
39295         * lib/unistr/u8-cpy-alloc.c: New file.
39296         * lib/unistr/u16-cpy-alloc.c: New file.
39297         * lib/unistr/u32-cpy-alloc.c: New file.
39298         * lib/unistr/u-cpy-alloc.h: New file.
39299
39300         * modules/unistr/u8-endswith: New file.
39301         * modules/unistr/u16-endswith: New file.
39302         * modules/unistr/u32-endswith: New file.
39303         * lib/unistr/u8-endswith.c: New file.
39304         * lib/unistr/u16-endswith.c: New file.
39305         * lib/unistr/u32-endswith.c: New file.
39306         * lib/unistr/u-endswith.h: New file.
39307
39308         * modules/unistr/u8-mblen: New file.
39309         * modules/unistr/u16-mblen: New file.
39310         * modules/unistr/u32-mblen: New file.
39311         * lib/unistr/u8-mblen.c: New file.
39312         * lib/unistr/u16-mblen.c: New file.
39313         * lib/unistr/u32-mblen.c: New file.
39314
39315         * modules/unistr/u8-mbtouc: New file.
39316         * modules/unistr/u16-mbtouc: New file.
39317         * modules/unistr/u32-mbtouc: New file.
39318         * lib/unistr/u8-mbtouc.c: New file.
39319         * lib/unistr/u16-mbtouc.c: New file.
39320         * lib/unistr/u32-mbtouc.c: New file.
39321
39322         * modules/unistr/u8-mbtouc-safe: New file.
39323         * modules/unistr/u16-mbtouc-safe: New file.
39324         * modules/unistr/u32-mbtouc-safe: New file.
39325         * lib/unistr/u8-mbtouc-safe.c: New file.
39326         * lib/unistr/u16-mbtouc-safe.c: New file.
39327         * lib/unistr/u32-mbtouc-safe.c: New file.
39328
39329         * modules/unistr/u8-move: New file.
39330         * modules/unistr/u16-move: New file.
39331         * modules/unistr/u32-move: New file.
39332         * lib/unistr/u8-move.c: New file.
39333         * lib/unistr/u16-move.c: New file.
39334         * lib/unistr/u32-move.c: New file.
39335         * lib/unistr/u-move.h: New file.
39336
39337         * modules/unistr/u8-next: New file.
39338         * modules/unistr/u16-next: New file.
39339         * modules/unistr/u32-next: New file.
39340         * lib/unistr/u8-next.c: New file.
39341         * lib/unistr/u16-next.c: New file.
39342         * lib/unistr/u32-next.c: New file.
39343
39344         * modules/unistr/u8-prev: New file.
39345         * modules/unistr/u16-prev: New file.
39346         * modules/unistr/u32-prev: New file.
39347         * lib/unistr/u8-prev.c: New file.
39348         * lib/unistr/u16-prev.c: New file.
39349         * lib/unistr/u32-prev.c: New file.
39350
39351         * modules/unistr/u8-set: New file.
39352         * modules/unistr/u16-set: New file.
39353         * modules/unistr/u32-set: New file.
39354         * lib/unistr/u8-set.c: New file.
39355         * lib/unistr/u16-set.c: New file.
39356         * lib/unistr/u32-set.c: New file.
39357         * lib/unistr/u-set.h: New file.
39358
39359         * modules/unistr/u8-startswith: New file.
39360         * modules/unistr/u16-startswith: New file.
39361         * modules/unistr/u32-startswith: New file.
39362         * lib/unistr/u8-startswith.c: New file.
39363         * lib/unistr/u16-startswith.c: New file.
39364         * lib/unistr/u32-startswith.c: New file.
39365         * lib/unistr/u-startswith.h: New file.
39366
39367         * modules/unistr/u8-stpcpy: New file.
39368         * modules/unistr/u16-stpcpy: New file.
39369         * modules/unistr/u32-stpcpy: New file.
39370         * lib/unistr/u8-stpcpy.c: New file.
39371         * lib/unistr/u16-stpcpy.c: New file.
39372         * lib/unistr/u32-stpcpy.c: New file.
39373         * lib/unistr/u-stpcpy.h: New file.
39374
39375         * modules/unistr/u8-stpncpy: New file.
39376         * modules/unistr/u16-stpncpy: New file.
39377         * modules/unistr/u32-stpncpy: New file.
39378         * lib/unistr/u8-stpncpy.c: New file.
39379         * lib/unistr/u16-stpncpy.c: New file.
39380         * lib/unistr/u32-stpncpy.c: New file.
39381         * lib/unistr/u-stpncpy.h: New file.
39382
39383         * modules/unistr/u8-strcat: New file.
39384         * modules/unistr/u16-strcat: New file.
39385         * modules/unistr/u32-strcat: New file.
39386         * lib/unistr/u8-strcat.c: New file.
39387         * lib/unistr/u16-strcat.c: New file.
39388         * lib/unistr/u32-strcat.c: New file.
39389         * lib/unistr/u-strcat.h: New file.
39390
39391         * modules/unistr/u8-strchr: New file.
39392         * modules/unistr/u16-strchr: New file.
39393         * modules/unistr/u32-strchr: New file.
39394         * lib/unistr/u8-strchr.c: New file.
39395         * lib/unistr/u16-strchr.c: New file.
39396         * lib/unistr/u32-strchr.c: New file.
39397
39398         * modules/unistr/u8-strcmp: New file.
39399         * modules/unistr/u16-strcmp: New file.
39400         * modules/unistr/u32-strcmp: New file.
39401         * lib/unistr/u8-strcmp.c: New file.
39402         * lib/unistr/u16-strcmp.c: New file.
39403         * lib/unistr/u32-strcmp.c: New file.
39404
39405         * modules/unistr/u8-strcpy: New file.
39406         * modules/unistr/u16-strcpy: New file.
39407         * modules/unistr/u32-strcpy: New file.
39408         * lib/unistr/u8-strcpy.c: New file.
39409         * lib/unistr/u16-strcpy.c: New file.
39410         * lib/unistr/u32-strcpy.c: New file.
39411         * lib/unistr/u-strcpy.h: New file.
39412
39413         * modules/unistr/u8-strcspn: New file.
39414         * modules/unistr/u16-strcspn: New file.
39415         * modules/unistr/u32-strcspn: New file.
39416         * lib/unistr/u8-strcspn.c: New file.
39417         * lib/unistr/u16-strcspn.c: New file.
39418         * lib/unistr/u32-strcspn.c: New file.
39419         * lib/unistr/u-strcspn.h: New file.
39420
39421         * modules/unistr/u8-strdup: New file.
39422         * modules/unistr/u16-strdup: New file.
39423         * modules/unistr/u32-strdup: New file.
39424         * lib/unistr/u8-strdup.c: New file.
39425         * lib/unistr/u16-strdup.c: New file.
39426         * lib/unistr/u32-strdup.c: New file.
39427         * lib/unistr/u-strdup.h: New file.
39428
39429         * modules/unistr/u8-strlen: New file.
39430         * modules/unistr/u16-strlen: New file.
39431         * modules/unistr/u32-strlen: New file.
39432         * lib/unistr/u8-strlen.c: New file.
39433         * lib/unistr/u16-strlen.c: New file.
39434         * lib/unistr/u32-strlen.c: New file.
39435         * lib/unistr/u-strlen.h: New file.
39436
39437         * modules/unistr/u8-strmblen: New file.
39438         * modules/unistr/u16-strmblen: New file.
39439         * modules/unistr/u32-strmblen: New file.
39440         * lib/unistr/u8-strmblen.c: New file.
39441         * lib/unistr/u16-strmblen.c: New file.
39442         * lib/unistr/u32-strmblen.c: New file.
39443
39444         * modules/unistr/u8-strmbtouc: New file.
39445         * modules/unistr/u16-strmbtouc: New file.
39446         * modules/unistr/u32-strmbtouc: New file.
39447         * lib/unistr/u8-strmbtouc.c: New file.
39448         * lib/unistr/u16-strmbtouc.c: New file.
39449         * lib/unistr/u32-strmbtouc.c: New file.
39450
39451         * modules/unistr/u8-strncat: New file.
39452         * modules/unistr/u16-strncat: New file.
39453         * modules/unistr/u32-strncat: New file.
39454         * lib/unistr/u8-strncat.c: New file.
39455         * lib/unistr/u16-strncat.c: New file.
39456         * lib/unistr/u32-strncat.c: New file.
39457         * lib/unistr/u-strncat.h: New file.
39458
39459         * modules/unistr/u8-strncmp: New file.
39460         * modules/unistr/u16-strncmp: New file.
39461         * modules/unistr/u32-strncmp: New file.
39462         * lib/unistr/u8-strncmp.c: New file.
39463         * lib/unistr/u16-strncmp.c: New file.
39464         * lib/unistr/u32-strncmp.c: New file.
39465
39466         * modules/unistr/u8-strncpy: New file.
39467         * modules/unistr/u16-strncpy: New file.
39468         * modules/unistr/u32-strncpy: New file.
39469         * lib/unistr/u8-strncpy.c: New file.
39470         * lib/unistr/u16-strncpy.c: New file.
39471         * lib/unistr/u32-strncpy.c: New file.
39472         * lib/unistr/u-strncpy.h: New file.
39473
39474         * modules/unistr/u8-strnlen: New file.
39475         * modules/unistr/u16-strnlen: New file.
39476         * modules/unistr/u32-strnlen: New file.
39477         * lib/unistr/u8-strnlen.c: New file.
39478         * lib/unistr/u16-strnlen.c: New file.
39479         * lib/unistr/u32-strnlen.c: New file.
39480         * lib/unistr/u-strnlen.h: New file.
39481
39482         * modules/unistr/u8-strpbrk: New file.
39483         * modules/unistr/u16-strpbrk: New file.
39484         * modules/unistr/u32-strpbrk: New file.
39485         * lib/unistr/u8-strpbrk.c: New file.
39486         * lib/unistr/u16-strpbrk.c: New file.
39487         * lib/unistr/u32-strpbrk.c: New file.
39488         * lib/unistr/u-strpbrk.h: New file.
39489
39490         * modules/unistr/u8-strrchr: New file.
39491         * modules/unistr/u16-strrchr: New file.
39492         * modules/unistr/u32-strrchr: New file.
39493         * lib/unistr/u8-strrchr.c: New file.
39494         * lib/unistr/u16-strrchr.c: New file.
39495         * lib/unistr/u32-strrchr.c: New file.
39496
39497         * modules/unistr/u8-strspn: New file.
39498         * modules/unistr/u16-strspn: New file.
39499         * modules/unistr/u32-strspn: New file.
39500         * lib/unistr/u8-strspn.c: New file.
39501         * lib/unistr/u16-strspn.c: New file.
39502         * lib/unistr/u32-strspn.c: New file.
39503         * lib/unistr/u-strspn.h: New file.
39504
39505         * modules/unistr/u8-strstr: New file.
39506         * modules/unistr/u16-strstr: New file.
39507         * modules/unistr/u32-strstr: New file.
39508         * lib/unistr/u8-strstr.c: New file.
39509         * lib/unistr/u16-strstr.c: New file.
39510         * lib/unistr/u32-strstr.c: New file.
39511         * lib/unistr/u-strstr.h: New file.
39512
39513         * modules/unistr/u8-strtok: New file.
39514         * modules/unistr/u16-strtok: New file.
39515         * modules/unistr/u32-strtok: New file.
39516         * lib/unistr/u8-strtok.c: New file.
39517         * lib/unistr/u16-strtok.c: New file.
39518         * lib/unistr/u32-strtok.c: New file.
39519         * lib/unistr/u-strtok.h: New file.
39520
39521         * modules/unistr/u8-uctomb: New file.
39522         * modules/unistr/u16-uctomb: New file.
39523         * modules/unistr/u32-uctomb: New file.
39524         * lib/unistr/u8-uctomb.c: New file.
39525         * lib/unistr/u16-uctomb.c: New file.
39526         * lib/unistr/u32-uctomb.c: New file.
39527
39528         * MODULES.html.sh (Unicode string functions): Add the new modules.
39529
39530 2007-01-08  Bruno Haible  <bruno@clisp.org>
39531
39532         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39533         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39534         subdirectories.
39535
39536 2007-01-08  Karl Berry  <karl@gnu.org>
39537
39538         * doc/error.texi: mention that main() fns must set program_name
39539         when progname is used.
39540
39541 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39542
39543         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39544         WCTYPE_H is empty, for the benefit of builds from non-distclean
39545         directories.  Problem reported by Eric Blake in
39546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39547
39548 2007-01-08  Bruno Haible  <bruno@clisp.org>
39549
39550         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39551         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39552         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39553         PROVIDE_CANONICALIZE_FILENAME_MODE.
39554         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39555
39556 2007-01-08  Bruno Haible  <bruno@clisp.org>
39557
39558         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39559         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39560         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39561         * lib/fts.c: Likewise.
39562         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39563
39564 2006-12-25  Bruno Haible  <bruno@clisp.org>
39565
39566         * modules/utf8-ucs4-safe: New file.
39567         * lib/utf8-ucs4-safe.h: New file.
39568         * lib/unistr/utf8-ucs4-safe.c: New file.
39569
39570         * modules/utf16-ucs4-safe: New file.
39571         * lib/utf16-ucs4-safe.h: New file.
39572         * lib/unistr/utf16-ucs4-safe.c: New file.
39573
39574         * MODULES.html.sh (Unicode string functions): Add the new modules.
39575
39576 2007-01-08  Bruno Haible  <bruno@clisp.org>
39577
39578         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39579         (Depends-on): Add unitypes.
39580         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39581         (u8_mbtouc_aux): Move out to separate file.
39582         (u8_mbtouc): Use ucs4_t, uint8_t types.
39583         * lib/unistr/utf8-ucs4.c: New file.
39584
39585         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39586         (Depends-on): Add unitypes.
39587         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39588         (u16_mbtouc_aux): Move out to separate file.
39589         (u16_mbtouc): Use ucs4_t, uint16_t types.
39590         * lib/unistr/utf16-ucs4.c: New file.
39591
39592         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39593         (Depends-on): Add unitypes.
39594         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39595         (u8_uctomb_aux): Move out to separate file.
39596         (u8_uctomb): Use ucs4_t, uint8_t types.
39597         * lib/unistr/ucs4-utf8.c: New file.
39598
39599         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39600         (Depends-on): Add unitypes.
39601         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39602         (u16_uctomb_aux): Move out to separate file.
39603         (u16_uctomb): Use ucs4_t, uint16_t types.
39604         * lib/unistr/ucs4-utf16.c: New file.
39605
39606 2006-12-25  Bruno Haible  <bruno@clisp.org>
39607
39608         * modules/unitypes: New file.
39609         * lib/unitypes.h: New file.
39610         * MODULES.html.sh (func_all_modules): New section "Unicode string
39611         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39612         this section. Add unitypes.
39613
39614 2007-01-08  Bruno Haible  <bruno@clisp.org>
39615
39616         Avoid variable names that conflict with those from libtool.
39617         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39618         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39619         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39620         library_names_spec to acl_library_names_spec, hardcode_* to
39621         acl_hardcode_*.
39622         Reported by Ralf Wildenhues.
39623
39624 2007-01-08  Bruno Haible  <bruno@clisp.org>
39625
39626         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39627         definition.
39628         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39629         definition.
39630         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39631         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39632         definition.
39633         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39634         definition.
39635         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39636         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39637         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39638         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39639         definition.
39640         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39641         definition.
39642         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39643         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39644         GC_USE_<algorithm>.
39645         * lib/gc-libgcrypt.c: Likewise.
39646         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39647         * modules/gc-arctwo (configure.ac): Likewise.
39648         * modules/gc-des (configure.ac): Likewise.
39649         * modules/gc-hmac-md5 (configure.ac): Likewise.
39650         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39651         * modules/gc-md2 (configure.ac): Likewise.
39652         * modules/gc-md4 (configure.ac): Likewise.
39653         * modules/gc-md5 (configure.ac): Likewise.
39654         * modules/gc-random (configure.ac): Likewise.
39655         * modules/gc-rijndael (configure.ac): Likewise.
39656         * modules/gc-sha1 (configure.ac): Likewise.
39657
39658 2007-01-08  Bruno Haible  <bruno@clisp.org>
39659
39660         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39661         macro definition.
39662         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39663         definition.
39664         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39665         definition.
39666         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39667         * modules/fcntl-safer (configure.ac): Likewise.
39668         * modules/fopen-safer (configure.ac): Likewise.
39669         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39670         GNULIB_FWRITEERROR macro definition.
39671
39672 2007-01-08  Bruno Haible  <bruno@clisp.org>
39673
39674         * m4/gnulib-common.m4: New file.
39675         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39676         (func_get_filelist): Add m4/gnulib-common.m4.
39677
39678 2007-01-08  Bruno Haible  <bruno@clisp.org>
39679
39680         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39681         command.
39682
39683 2007-01-08  Jim Meyering  <jim@meyering.net>
39684
39685         Use a more robust test for a "can't happen" condition.
39686         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39687         narrowed the st_size value.  Presuming the "can't happen" condition
39688         is true, that narrowing could conceivably convert an invalid st_size
39689         value into a valid one.  Instead, use a change based on Matthew
39690         Woehlke's original patch.
39691
39692         Slight readability improvement: use an assert-like macro
39693         in place of literal "abort ()" uses.
39694         * lib/fts.c (fts_assert): Define.
39695         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39696         Use this macro instead of a bare 'abort'.
39697
39698 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39699
39700         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39701         simply work around them.
39702         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39703         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39704         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39705         declaring.
39706         Don't bother to define as macros, since the standard doesn't require it.
39707         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39708         longer worry about IRIX 5.3.
39709         (HAVE_WCTYPE_CTMP_BUG): Remove.
39710
39711 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39712
39713         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39714         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39715         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39716         Problems reported by Georg Schwarz for IRIX 5.3.
39717
39718         * gnulib-tool (autoconf_minversion): Take the maximum version number
39719         found, not the minimum.  Problem reported by James Youngman.
39720
39721 2007-01-03  Karl Berry  <karl@gnu.org>
39722
39723         * doc/error.texi: new file, explaining interaction with progname.
39724         * doc/gnulib.texi: include it.  Update copyright.
39725
39726 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39727
39728         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39729         AC_CANONICAL_HOST, to improve autobuild outputs.
39730
39731 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39732             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39733
39734         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39735         sockets, server sockets, and other file descriptors.  Count errors
39736         to compute the return value.  Reorder the code a bit to be easier
39737         to follow.  Don't set event bits that were not requested (except
39738         POLLERR and POLLHUP).
39739
39740 2007-01-01  Bruno Haible  <bruno@clisp.org>
39741
39742         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39743
39744 2007-01-03  Jim Meyering  <jim@meyering.net>
39745
39746         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39747
39748 2007-01-02  Bruno Haible  <bruno@clisp.org>
39749
39750         * modules/settime (Include): Require timespec.h.
39751         * modules/nanosleep (Include): Likewise.
39752
39753 2007-01-01  Bruno Haible  <bruno@clisp.org>
39754
39755         * gnulib-tool (func_emit_copyright_notice): Bump year.
39756         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39757
39758 2007-01-01  Bruno Haible  <bruno@clisp.org>
39759
39760         Improve support for OpenBSD.
39761         * build-aux/config.rpath (libname_spec): Export.
39762         (library_names_spec): New variable. Export.
39763         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39764         library_names_spec from the config.rpath output. Locate shared library
39765         through the name pattern in library_names_spec.
39766
39767 2007-01-01  Eric Blake  <ebb9@byu.net>
39768
39769         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39770
39771 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39772
39773         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39774         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39775         assume the C locale, and avoid an "eval" that could cause trouble.
39776         Problem with SORT reported by Bob Proulx.
39777
39778         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39779         Define.  Trivial patch from Henning Nielsen Lund, originally
39780         sent to bug-grep@gnu.org today.
39781
39782 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39785         struct stat.  Problem reported by Henning Nielsen Lund.
39786         * lib/acl.c: Include acl.h first, to check interface.  Don't
39787         bother to include sys/types.h and sys/stat.h again.
39788
39789 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39790
39791         Import the following change from libc; problem reported by
39792         Sven Verdoolaege.
39793
39794         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39795
39796         [BZ #1373]
39797         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39798
39799 2006-12-28  Jim Meyering  <jim@meyering.net>
39800
39801         * build-aux/announce-gen: Do not assume that the package
39802         builds any of tar.gz, tar.bz2, and .xdelta files.
39803         Suggestion from Simon Josefsson.
39804
39805 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39806
39807         * modules/announce-gen: New file.
39808
39809 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39810
39811         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39812         handles its gotchas now.
39813         * lib/mbswidth.c: Likewise.
39814         * lib/wcwidth.h: Likewise.
39815         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39816         and iswcntrl; the wctype module does this stuff now.
39817         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39819         * modules/mbchar (Depends-on): Add wctype.
39820         * modules/mbswidth (Depends-on): Likewise.
39821         * modules/wcwidth (Depends-on): Likewise.
39822
39823 2006-12-27  Eric Blake  <ebb9@byu.net>
39824
39825         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39826         module uses more than what <wctype.h> is required to provide.
39827
39828 2006-12-26  Eric Blake  <ebb9@byu.net>
39829
39830         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39831
39832 2006-12-26  Eric Blake  <ebb9@byu.net>
39833
39834         * modules/absolute-header: New module.
39835         * modules/fcntl (Depends-on): Depend on it.
39836         * modules/inttypes (Depends-on): Likewise.
39837         * modules/stdint (Depends-on): Likewise.
39838         * modules/sys_stat (Depends-on): Likewise.
39839         * modules/wctype (Depends-on): Likewise.
39840         * MODULES.html.sh (Support for building libraries and
39841         executables): Document it.
39842
39843 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39844
39845         * gnulib-tool (SED): Remove, undoing previous change.
39846         The problem was that it broke coreutils on Solaris, because
39847         "sed --posix" leaked into a makefile.
39848         (sed): New alias, if 'alias' and GNU sed.
39849
39850 2006-12-24  Jim Meyering  <jim@meyering.net>
39851
39852         Work around an fchownat bug in glibc-2.4:
39853         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39854         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39855         in spite of the -P option.
39856         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39857         New macros.
39858         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39859         * modules/openat (Files): Add lib/fchownat.c.
39860         * lib/openat.c (fchownat): Don't define here.  Move to...
39861         * lib/fchownat.c: ...this new file.
39862
39863 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39864
39865         Fix bug reported by Bruno Haible in
39866         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39867         where quotearg.c didn't compile on Mac OS X 10.2 because it
39868         lacks <wchar.h> and wint_t.
39869         * lib/wctype_.h (__wctype_wint_t): New type.
39870         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39871         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39872         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39873         Arg is now of type __wctype_wint_t, not wint_t.
39874         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39875         substitute HAVE_WINT_T.
39876         * modules/wctype (Files): Add m4/wint_t.m4.
39877         (wctype.h): Substitute HAVE_WINT_T.
39878
39879 2006-12-23  Bruno Haible  <bruno@clisp.org>
39880
39881         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39882
39883 2006-12-23  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39886         S_ISLNK.
39887         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39888         mingw.
39889
39890 2006-12-22  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/copy-file.c: Include acl.h.
39893         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39894         Close the file descriptors only after being done with copy_acl.
39895         * modules/copy-file (Depends-on): Add acl.
39896
39897 2006-12-22  Bruno Haible  <bruno@clisp.org>
39898
39899         * gnulib-tool (SED): New variable.
39900         Use $SED instead of sed everywhere.
39901
39902 2006-12-22  Bruno Haible  <bruno@clisp.org>
39903
39904         * modules/no-c++: New file.
39905         * m4/no-c++.m4: New file.
39906         * MODULES.html.sh (Support for building libraries and executables):
39907         Add no-c++.
39908
39909 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39910
39911         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39912         Include <limits.h>, and use its INT_MAX to rewrite the
39913         j loop so that it does not overflow 'int'.  Problem reported by
39914         Ralf Wildenhues in
39915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39916         Play it safe by shifting left by 1 rather than multiplying by 2,
39917         as GCC is less likely to optimize this away when the value
39918         is signed (when it assumes overflow leads to undefined behavior).
39919         Also, don't assume time_t uses two's complement.
39920
39921 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39922
39923         * MODULES.html.sh: New module wctype.
39924         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39925         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39926         <wctype.h>, since the new wctype module should fix this.
39927         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39928         the wctype module should arrange for it.
39929         * lib/regex_internal.h: Likewise.
39930         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39931         since the wctype module should handle this now.
39932         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39933         * modules/fnmatch (Depends-on): Add wctype.
39934         * modules/quotearg (Depends-on): Likewise.
39935         * modules/regex (Depends-on): Likewise.
39936
39937 2006-12-19  Bruno Haible  <bruno@clisp.org>
39938
39939         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39940         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39941
39942 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39943
39944         * modules/savewd (Depends-on): Fix dependency on fcntl.
39945
39946 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39947
39948         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39949         conforms to C99, rather than relying on the user's environment
39950         setting of STDINT_H.
39951
39952 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39953         and Eric Blake  <ebb9@byu.net>
39954
39955         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39956         This is more consistent with the other defines here.
39957         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39958         Port to z/OS.  Problem reported by Paul Gilmartin.
39959         Change local vars to use gl_ prefix rather than ac_.
39960         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39961         with other defines.
39962         * modules/double-slash-root: New module.
39963         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39964         (Depends-on): Add double-slash-root.
39965         * MODULES.html.sh (File system functions): Mention new module.
39966
39967 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39968
39969         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39970         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39971         This is for the benefit of gzip, which doesn't do i18n.
39972
39973 2006-12-12  Jim Meyering  <jim@meyering.net>
39974
39975         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39976         Reported by Andreas Schwab <schwab@suse.de>.
39977
39978 2006-12-12  Bruno Haible  <bruno@clisp.org>
39979
39980         Merge these changes.
39981         2006-09-05  Bruno Haible  <bruno@clisp.org>
39982         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39983         iconv_alloc succeeded.
39984         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39985         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39986         test for " && dest " at the end - dest is always != NULL there. Call
39987         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39988         with 2xNULL arguments, also to flush the state storage. Handle the
39989         IRIX iconv behaviour. Realloc the final result, to throw away unused
39990         memory.
39991
39992 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39993
39994         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39995         and fchmodat unconditionally, since glibc 2.4 has them.
39996         Problem reported by Arkadiusz Miskiewicz.
39997
39998 2006-12-10  Bruno Haible  <bruno@clisp.org>
39999
40000         * gnulib-tool (func_import): Show the include files only for those
40001         modules that are copied and specified.
40002         Reported by Karl Berry.
40003
40004 2006-12-08  Jim Meyering  <jim@meyering.net>
40005
40006         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40007         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40008
40009         * build-aux/announce-gen: Add two new options, both optional:
40010         --bootstrap-tools=TOOL_LIST
40011               a comma-separated list of tools, e.g.,
40012               autoconf,automake,bison,gnulib
40013         --gnulib-snapshot-date=DATE
40014               if gnulib is in the bootstrap tool list,
40015               then report this as the snapshot date.
40016               If not specified, use the current date/time.
40017               If you specify a date here, be sure it's UTC.
40018
40019 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40020
40021         * tests/test-argp-2.sh: Fix test to match actual output.
40022         (func_compare): Fix sed script to be portable.
40023
40024 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40025
40026         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40027         workaround for this case.  It is not autoconfigured now; offhand
40028         it's hard to see how to autoconfigure it.
40029
40030 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40031
40032         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40033         a directory that is about to be chowned.  Such a directory's
40034         initial file permissions should permit the owner only and this
40035         should not be changed until after the chown, since the group and
40036         other bits would be incorrect if they granted permission before
40037         the chown.
40038
40039         Fix porting problem for iswctype reported by Georg Schwarz in:
40040         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40041         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40042         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40043         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40044         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40045
40046 2006-12-03  Jim Meyering  <jim@meyering.net>
40047
40048         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40049         p->fts_statp may not yet be defined.
40050         (fts_read): Instead, set it in the caller, once p->fts_statp is
40051         sure to be defined, and corresponds to a top-level directory.
40052         This bug made du -x fail.  Here's the coreutils test case:
40053         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40054         Reported by Mike Frysinger.
40055
40056 2006-12-01  Jim Meyering  <jim@meyering.net>
40057
40058         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40059         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40060         Reported by Simon Josefsson.
40061
40062 2006-11-30  Jim Meyering  <jim@meyering.net>
40063
40064         * m4/warning.m4: Use the all-permissive copyright notice
40065         recommended by RMS (rather than LGPL).
40066         * m4/vararrays.m4: Likewise.
40067         * m4/flexmember.m4: Likewise.
40068
40069 2006-11-29  Bruno Haible  <bruno@clisp.org>
40070
40071         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40072         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40073         using +=.
40074         Reported by Simon Josefsson <simon@josefsson.org>.
40075
40076 2006-11-28  James Youngman <jay@gnu.org>
40077
40078         * README: Advise users that they might find the bug-gnulib@gnu.org
40079         and autotools-announce@gnu.org mailing lists useful.
40080
40081 2006-11-28  Bruno Haible  <bruno@clisp.org>
40082
40083         * m4/ptrdiff_max.m4: Remove file.
40084
40085 2006-11-21  Bruno Haible  <bruno@clisp.org>
40086
40087         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40088         _AC_COMPUTE_INT.
40089         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40090         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40091         _AC_COMPUTE_INT.
40092         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40093         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40094         _AC_COMPUTE_INT.
40095         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40096
40097 2006-11-28  Jim Meyering  <jim@meyering.net>
40098
40099         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40100         warning from "gcc -Wshadow" about shadowing the builtin.
40101
40102 2006-11-27  Bruno Haible  <bruno@clisp.org>
40103
40104         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40105         _AC_COMPUTE_INT.
40106         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40107
40108 2006-11-27  Bruno Haible  <bruno@clisp.org>
40109             Paul Eggert  <eggert@cs.ucla.edu>
40110
40111         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40112
40113 2006-11-26  Bruno Haible  <bruno@clisp.org>
40114
40115         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40116         noinst_LTLIBRARIES.
40117
40118 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40119             Bruno Haible  <bruno@clisp.org>
40120
40121         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40122         if compiling with "gcc -ansi".
40123
40124 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40125
40126         Fix some incompatibilities with gcc -ansi -pedantic.
40127         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40128         if compiling pedantically with GCC, unless it's C99 or later.
40129         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40130         it mishandles gcc -ansi -pedantic as well.
40131         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40132         if gcc -pedantic.
40133         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40134         initializers for struct if -pedantic, unless it's C99 or later.
40135
40136 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40137
40138         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40139         Don't close an fd more than once. Identical atimes indicate
40140         success, not failure.
40141
40142 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40143
40144         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40145
40146 2006-11-23  Jim Meyering  <jim@meyering.net>
40147
40148         * build-aux/announce-gen: New file.  From coreutils.
40149
40150 2006-11-22  Jim Meyering  <jim@meyering.net>
40151
40152         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40153         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40154         (fts_read): Use a temporary to narrow the overused st_size member
40155         before using it in a switch statement.  Reported by Matthew Woehlke.
40156
40157         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40158         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40159
40160 2006-11-20  Bruno Haible  <bruno@clisp.org>
40161
40162         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40163         changequote instead of pairs of brackets.
40164         Reported by Andreas Schwab <schwab@suse.de>.
40165
40166 2006-11-21  Jim Meyering  <jim@meyering.net>
40167
40168         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40169         so as to remain compatible with older compilers.
40170         Patch from Michael Deutschmann.
40171
40172 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40173
40174         * MODULES.html.sh (File system functions): Add openat.
40175
40176         * lib/openat.h (rpl_fstatat): New macro, if
40177         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40178         (fstatat): Define to rpl_fstatat under the same conditions,
40179         unless COMPILING_FSTATAT.
40180         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40181         seems to have the bug.
40182         * lib/fstatat.c: New file.
40183         * modules/openat (Files): Add it.
40184
40185 2006-11-20  Bruno Haible  <bruno@clisp.org>
40186
40187         * Makefile: New file.
40188
40189 2006-11-20  Jim Meyering  <jim@meyering.net>
40190
40191         The beginnings of syntax-related checks for gnulib.
40192         * lib/Makefile: New file.
40193         * lib/t-idcache: New script.  Ensure that the two halves of
40194         idcache.c stay in sync.
40195
40196         * lib/idcache.c: Adjust comments in user- and group- portions to
40197         be more accurate, and to be consistent with one another.
40198
40199 2006-11-20  Jim Meyering  <jim@meyering.net>
40200
40201         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40202         continue using the flexible array member (thus, this module performs
40203         half as many malloc calls), with the addition that...
40204         (getgroup, getuser): Consistently record a non-match via an empty
40205         "name" string, and map an empty string match to a NULL return value.
40206         * modules/idcache (Depends-on): Re-add flexmember.
40207
40208         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40209         (getuidbyname, getgroup, getgidbyname): Likewise.
40210
40211         Use cleaner syntax: NULL rather than 0.
40212         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40213
40214 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40215
40216         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40217         It mishandled the case where the group was missing.
40218         Problem reported by Greg Schafer.
40219         * modules/idcache: Likewise.
40220
40221 2006-11-18  Jim Meyering  <jim@meyering.net>
40222
40223         * check-module (%exempt_header): Add exception for some
40224         conditionally-included headers.
40225
40226         * modules/i-ring (Depends-on): Add verify.
40227         (License): Change to LGPL.
40228
40229 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40230
40231         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40232         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40233         and inttostr.h.  Use snprintf rather than uinttostr, so that
40234         LGPLed code doesn't depend on GPLed.
40235
40236 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40237
40238         * modules/inline (License): Change from GPL to LGPL.
40239
40240 2006-11-17  Jim Meyering  <jim@meyering.net>
40241
40242         * modules/d-type (License): Switch to LGPL.
40243
40244 2006-11-15  Bruno Haible  <bruno@clisp.org>
40245
40246         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40247
40248 2006-11-15  Eric Blake  <ebb9@byu.net>
40249
40250         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40251         the module dependency.
40252
40253 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40254             Bruno Haible  <bruno@clisp.org>
40255
40256         * gnulib-tool (func_create_testdir): Add license consistency check.
40257
40258 2006-11-15  Eric Blake  <ebb9@byu.net>
40259
40260         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40261         random "(cached)" in configure output.
40262
40263 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40264
40265         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40266         test for conforming inttypes.h is both announced and cached.
40267
40268         * MODULES.html.sh (seen_modules, seen_files): New variables.
40269         (func_module): Rewrite to use a few less gnulib-tool and sed
40270         invocations.  Avoid a couple of quadratic algorithms for ...
40271         (missed_modules, missed_files): ... these, with ...
40272         (func_append, func_tmpdir): ... these new functions, from
40273         gnulib-tool.  Analogously, install traps for cleanup.
40274
40275         * tests/test-gc.c (main): Remove unused variables.
40276         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40277
40278 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40279
40280         * modules/inttostr (License): Change to LGPL.
40281
40282 2006-11-14  Eric Blake  <ebb9@byu.net>
40283
40284         * modules/tempname (License): Change to LGPL.
40285
40286 2006-11-14  Eric Blake  <ebb9@byu.net>
40287
40288         * doc/functions.texi (Function Portability): *printf functions on
40289         Cygwin now understand all POSIX size specifiers.
40290
40291 2006-11-14  Bruno Haible  <bruno@clisp.org>
40292
40293         * modules/c-ctype (License): Change to LGPL.
40294
40295 2006-11-12  Bruno Haible  <bruno@clisp.org>
40296
40297         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40298         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40299         for GNOME libraries, for which the include files are installed in
40300         subdirectories of $prefix/include.
40301
40302 2006-11-12  Bruno Haible  <bruno@clisp.org>
40303
40304         * m4/lib-link.m4: Require at least autoconf-2.54.
40305         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40306         name to underscores for the --with option.
40307
40308 2006-11-13  Bruno Haible  <bruno@clisp.org>
40309
40310         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40311         the tests directory.
40312         Reported by Ralf Wildenhues.
40313
40314 2006-11-13  Bruno Haible  <bruno@clisp.org>
40315
40316         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40317         (func_emit_initmacro_end): Undo the override here.
40318         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40319         Works around the famous automake error in coreutils.
40320
40321 2006-11-13  Eric Blake  <ebb9@byu.net>
40322
40323         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40324         element, not its node.
40325
40326 2006-11-12  Bruno Haible  <bruno@clisp.org>
40327
40328         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40329         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40330
40331 2006-11-12  Bruno Haible  <bruno@clisp.org>
40332
40333         * gnulib-tool: New option --local-symlink.
40334         (func_usage): Document it.
40335         (lsymbolic): New variable.
40336         (func_import, func_create_testdir): If --symlink was not specified,
40337         test whether --local-symlink was specified and the file comes from
40338         the local_gnulib_dir.
40339
40340 2006-11-12  Bruno Haible  <bruno@clisp.org>
40341
40342         * gnulib-tool (func_ln): New function.
40343         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40344
40345 2006-11-12  Bruno Haible  <bruno@clisp.org>
40346
40347         Finish support for source files in subdirectories.
40348         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40349         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40350         AUTOMAKE_OPTIONS.
40351         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40352
40353 2006-11-12  Bruno Haible  <bruno@clisp.org>
40354
40355         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40356         EXTRA_lib_SOURCES augmentation.
40357         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40358
40359 2006-11-12  Jim Meyering  <jim@meyering.net>
40360
40361         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40362         file descriptors.  This also averts a failure on systems with
40363         native openat support when a traversed directory lacks "x" access.
40364         * lib/fts_.h: Include "i-ring.h"
40365         (struct FTS) [fts_fd_ring]: New member.
40366         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40367         (FCHDIR): Add parentheses.
40368         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40369         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40370         When descending, rather than simply closing the previous
40371         fts_cwd_fd value, push that file descriptor onto the ring.
40372         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40373         (fts_open): Initialize the new fd_ring member.
40374         (fts_close): Clear the ring.
40375         (fts_safe_changedir): When possible, use our new fd_ring to skip
40376         the diropen and fstat and dev/ino comparison that would normally
40377         accompany a virtual `chdir ("..")'.
40378
40379         * modules/fts (Depends-on): Add i-ring.
40380         * modules/i-ring: New module.
40381         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40382         * m4/i-ring.m4: New file.
40383
40384 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40385
40386         * gnulib-tool (func_create_testdir): Fix replacement of
40387         `build-aux' in configure.ac.  Run autotools in gltests
40388         subdirectory.
40389         (func_create_testdir, func_create_megatestdir, test): There is
40390         no need for '--force' in most autotool invocations in a new
40391         tree.  Actually fail the whole test if any of the tools, or the
40392         configure or make stages fail.
40393
40394         Sync from Automake.
40395         * build-aux/gnupload: Revert last change.  Add pointer to upload
40396         instructions of the GNU Maintenance Instructions.
40397         Suggestion by Karl Berry.
40398
40399 2006-11-10  Jim Meyering  <jim@meyering.net>
40400
40401         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40402
40403 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40404
40405         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40406         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40407         (bind_textdomain_codeset) [! ENABLE_NLS]:
40408         Evaluate all the arguments.  That way, callers get compatible behavior
40409         if the arguments have side effects.  Also, it avoids some GCC
40410         diagnostics in some cases; Joel E. Denny reported problems when Bison
40411         was configured with --enable-gcc-warnigs.
40412
40413 2006-11-10  Jim Meyering  <jim@meyering.net>
40414
40415         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40416         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40417         account.
40418
40419 2006-11-10  Jim Meyering  <jim@meyering.net>
40420
40421         * modules/inline: New file/module.
40422         * modules/xalloc (Files): Remove m4/inline.m4.
40423         (Depends-on): Add inline, instead.
40424         * modules/oset: Likewise.
40425         * modules/list: Likewise.
40426
40427 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40428
40429         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40430         Problem reported by Matthew Woehlke.
40431
40432 2006-11-09  Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/tempname.c (gen_tempname): Remove variant that invokes
40435         __gen_tempname.
40436         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40437         __gen_tempname.
40438
40439 2006-11-08  Bruno Haible  <bruno@clisp.org>
40440
40441         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40442         to 'yes' instead of 'cross-compiling'.
40443
40444 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40445
40446         * lib/quotearg.h (quotearg_free): New decl.
40447         * lib/quotearg.c (quotearg_free): New function.
40448         (slot0, nslots, slotvec0, slotvec):
40449         Now file-scope so that quotearg_free can get at them.
40450
40451 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40452
40453         Sync from Automake.
40454         * build-aux/gnupload: Add missing 'gnu' to example URL.
40455         Report by Karl Berry.
40456
40457 2006-11-08  Bruno Haible  <bruno@clisp.org>
40458
40459         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40460         Suggested by Paul Eggert.
40461
40462 2006-11-08  Jim Meyering  <jim@meyering.net>
40463
40464         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40465         It's already included if !_LIBC.
40466         (fts_safe_changedir): Add a comment.
40467
40468 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40469
40470         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40471         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40472         Matthew Woehlke.
40473
40474         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40475         definitions up, to avoid colliding with change below.
40476         (static_inline) [HAVE_INLINE]: New macro.
40477         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40478         Provide extern decls when !HAVE_INLINE.  Do not define unless
40479         static_inline is defined, either by us or by xmalloc.c.  Use
40480         static_inline rather than static inline.
40481         (XCALLOC): Optimize sizeof(T) = 1 case.
40482         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40483
40484 2006-11-07  Bruno Haible  <bruno@clisp.org>
40485
40486         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40487         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40488         AC_C_INLINE.
40489         * modules/xalloc (Files): Add m4/inline.m4.
40490
40491 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40492
40493         * README: Fix typo.
40494         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40495         (Miscellanous Notes): ...from this.
40496
40497 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40498
40499         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40500         Mention that offsetof should be used instead of sizeof.
40501         From Bruno Haible.
40502
40503 2006-11-07  Bruno Haible  <bruno@clisp.org>
40504
40505         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40506
40507 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40508
40509         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40510         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40511         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40512         (gl_tree_add_before, gl_tree_add_after):
40513         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40514         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40515         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40516         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40517         (gl_linked_add_after, gl_linked_add_at): Likewise.
40518         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40519         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40520         (gl_tree_add_before, gl_tree_add_after): Likewise.
40521         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40522         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40523         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40524
40525 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40526
40527         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40528
40529 2006-11-06  Bruno Haible  <bruno@clisp.org>
40530
40531         * m4/inline.m4: New file.
40532         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40533         * modules/list (Files): Add m4/inline.m4.
40534         * modules/oset (Files): Likewise.
40535
40536 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40537
40538         * lib/idcache.c: Include <stddef.h>, for offsetof.
40539         (struct userid.name): Change from char * to a flexible array member.
40540         All uses changed.
40541         * modules/idcache (Depends-on): Add flexmember.
40542
40543         * MODULES.html.sh (Core language properties): New module flexmember.
40544         * modules/flexmember, m4/flexmember.m4: New files.
40545
40546         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40547         inline functions that are identical with the old xnmalloc_inline,
40548         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40549         that we can avoid some unnecessary integer multiplications and
40550         divisions in the common case where the element size is known at
40551         compile time.
40552         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40553         needed.
40554         (xnboundedmalloc): Remove.
40555         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40556         arguments, for consistency with rest of this header.
40557         (xcharalloc): Rewrite using XNMALLOC.
40558         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40559         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40560         versions have been moved to lib/xalloc.h and renamed to be the
40561         non-*_inline versions.
40562         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40563         and xnrealloc functions, since those functions are now inline and
40564         now call us.
40565         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40566         renaming described above.
40567         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40568         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40569         captures the dependency in AC_C_INLINE.
40570
40571         New module canonicalize-lgpl, proposed by Charles Wilson in
40572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40573         with a few small changes afterwards.
40574         * MODULES.html.sh (File system functions): New module
40575         canonicalize-lgpl.
40576         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40577         and canonicalize_file_name.
40578         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40579         * modules/canonicalize-lgpl: New files.
40580
40581 2006-11-05  Bruno Haible  <bruno@clisp.org>
40582
40583         * gnulib-tool (func_import, func_create_testdir): Create directories
40584         also for files in subdirectories of lib/.
40585
40586 2006-11-05  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40589         ANSI C compliant.
40590
40591 2006-11-03  Bruno Haible  <bruno@clisp.org>
40592
40593         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40594         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40595         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40596         (xnboundedmalloc): New inline function.
40597         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40598         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40599         xmalloc.
40600         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40601         xmalloc.
40602         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40603         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40604         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40605         xmalloc.
40606         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40607         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40608         xmalloc.
40609         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40610         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40611         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40612         xmalloc.
40613         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40614         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40615         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40616         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40617         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40618         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40619         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40620
40621 2006-11-03  Bruno Haible  <bruno@clisp.org>
40622
40623         * lib/c-ctype.h [C++]: Define functions without name mangling.
40624         * lib/fwriteerror.h [C++]: Likewise.
40625         * lib/gcd.h [C++]: Likewise.
40626         * lib/linebreak.h [C++]: Likewise.
40627
40628 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40629
40630         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40631         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40632         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40633         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40634         Check for functions and headers just once.
40635         Check for declaration of canonicalize_file_name.
40636         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40637
40638 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40639
40640         * gnulib-tool (func_import): Fix typo in actioncmd.
40641
40642 2006-11-02  Bruno Haible  <bruno@clisp.org>
40643
40644         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40645         newline sequence in the Makefile.am snippet as a space, like "make"
40646         does.
40647         Reported by Roger Persson <perrog@gmail.com>.
40648
40649 2006-11-01  Bruno Haible  <bruno@clisp.org>
40650
40651         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40652         already declared in <string.h>.
40653         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40654
40655 2006-11-01  Bruno Haible  <bruno@clisp.org>
40656
40657         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40658         * lib/strcase.h: Include <string.h>.
40659         (strcasecmp): Define to rpl_strcasecmp here.
40660
40661 2006-11-01  Bruno Haible  <bruno@clisp.org>
40662
40663         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40664
40665 2006-11-01  Eric Blake  <ebb9@byu.net>
40666
40667         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40668
40669         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40670
40671 2006-10-29  Bruno Haible  <bruno@clisp.org>
40672
40673         Make it compile in C++ mode.
40674         * lib/full-write.c (full_rw): Add a cast.
40675
40676 2006-11-01  Bruno Haible  <bruno@clisp.org>
40677
40678         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40679         be POSIX compliant.
40680         Reported by Roger Persson <perrog@gmail.com>.
40681
40682 2006-11-01  Eric Blake  <ebb9@byu.net>
40683
40684         * lib/getopt_.h: Fix comments.
40685
40686 2006-10-31  Eric Blake  <ebb9@byu.net>
40687
40688         * modules/tmpdir (Depends-on): Add sys_stat.
40689         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40690         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40691         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40692         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40693         tempname.
40694
40695 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40696
40697         Avoid some C++ diagnostics reported by Bruno Haible.
40698         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40699         xmalloc.
40700         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40701         (struct slotvec): Move to top level.
40702         (quotearg_n_options): Rewrite to avoid xmalloc.
40703         * lib/xalloc.h (xcharalloc): New function.
40704         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40705         [defined __cplusplus]: Add function template that provides result
40706         type propagation.  This part of the change is from Bruno Haible.
40707
40708 2006-10-29  Bruno Haible  <bruno@clisp.org>
40709
40710         Make it compile in C++ mode.
40711         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40712         * lib/strnlen1.c (strnlen1): Cast memchr result.
40713         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40714         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40715         (create_temp_dir): Rename local variable 'template'.
40716         (compile_csharp_using_sscli): Add cast.
40717         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40718         * lib/findprog.c (find_in_path): Likewise.
40719         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40720         * lib/wait-process.c (register_slave_subprocess): Likewise.
40721
40722 2006-10-22  Bruno Haible  <bruno@clisp.org>
40723
40724         * modules/tsearch: New file.
40725         * lib/tsearch.h: New file.
40726         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40727         * m4/tsearch.m4: New file.
40728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40729
40730 2006-10-29  Eric Blake  <ebb9@byu.net>
40731
40732         * lib/arcfour.c: Assume config.h.
40733         * lib/arctwo.c: Likewise.
40734         * lib/base64.c: Likewise.
40735         * lib/check-version.c: Likewise.
40736         * lib/crc.c: Likewise.
40737         * lib/des.c: Likewise.
40738         * lib/gc-gnulib.c: Likewise.
40739         * lib/gc-libgcrypt.c: Likewise.
40740         * lib/gc-pbkdf2-sha1.c: Likewise.
40741         * lib/getaddrinfo.c: Likewise.
40742         * lib/getdelim.c: Likewise.
40743         * lib/getline.c: Likewise.
40744         * lib/hmac-md5.c: Likewise.
40745         * lib/hmac-sha1.c: Likewise.
40746         * lib/iconvme.c: Likewise.
40747         * lib/md2.c: Likewise.
40748         * lib/md4.c: Likewise.
40749         * lib/memxor.c: Likewise.
40750         * lib/read-file.c: Likewise.
40751         * lib/readline.c: Likewise.
40752         * lib/rijndael-alg-fst.c: Likewise.
40753         * lib/rijndael-api-fst.c: Likewise.
40754         * lib/xgetdomainname.c: Likewise.
40755
40756 2006-10-28  Eric Blake  <ebb9@byu.net>
40757
40758         * lib/xstrndup.c: Assume config.h.
40759
40760 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40761
40762         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40763         stat-macros.h is now for our own macros, whereas stat_h is for
40764         macros in the <sys/stat.h> name space.
40765         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40766         (STAT_MACROS_H): Remove.
40767         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40768         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40769         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40770         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40771         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40772         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40773         Move these macros to ...
40774         * lib/stat_.h: here.  Don't include stat-macros.h.
40775         * lib/canonicalize.c: Don't include stat-macros.h.
40776         * lib/chown.c: Likewise.
40777         * lib/euidaccess.c: Likewise.
40778         * lib/file-type.c: Likewise.
40779         * lib/filemode.c: Likewise.
40780         * lib/glob.c: Likewise.
40781         * lib/isapipe.c: Likewise.
40782         * lib/lchown.c: Likewise.
40783         * lib/lstat.c: Likewise.
40784         * lib/mkdir-p.c: Likewise.
40785         * lib/rmdir.c: Likewise.
40786         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40788         unless mkdir isn't declared, to speed up 'configure'.
40789         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40790         would define all the S_* symbols.
40791         * modules/canonicalize (Depends-on):
40792         Depend on sys_stat, not stat-macros.
40793         * modules/chown: Likewise.
40794         * modules/euidaccess: Likewise.
40795         * modules/filemode: Likewise.
40796         * modules/file-type: Likewise.
40797         * modules/glob: Likewise.
40798         * modules/isapipe: Likewise.
40799         * modules/lchown: Likewise.
40800         * modules/lstat: Likewise.
40801         * modules/mkancesdirs: Likewise.
40802         * modules/rmdir: Likewise.
40803         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40804         * modules/modechange: Likewise.
40805         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40806         (configure.ac): Remove gl_STAT_MACROS.
40807         * modules/sys_stat (Depends-on): Remove stat-macros.
40808
40809 2006-10-27  Bruno Haible  <bruno@clisp.org>
40810
40811         * m4/signed.m4: Remove file.
40812         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40813         invocation.
40814         * modules/vasnprintf (Files): Remove m4/signed.m4.
40815
40816 2006-10-27  Bruno Haible  <bruno@clisp.org>
40817
40818         Update to GNU gettext 0.16.
40819         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40820         m4/inttypes-h.m4, m4/signed.m4.
40821         * m4/gettext.m4: Update to GNU gettext 0.16.
40822         * m4/intl.m4: New file, from GNU gettext.
40823         * m4/intldir.m4: New file, from GNU gettext.
40824         * config/srclist.txt: Update
40825
40826 2006-10-27  Eric Blake  <ebb9@byu.net>
40827
40828         * MODULES.html.sh: Document tempname.
40829         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40830         dependencies.
40831         (Files): Move lib/tempname.c...
40832         * modules/tempname: ...to this new module.
40833         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40834         (gl_PREREQ_TEMPNAME): Move...
40835         * m4/tempname.m4: ...to this new file.
40836         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40837         * modules/sys_stat (Depends-on): Add stat-macros.
40838         * lib/stat_.h (includes): Pick up stat macros.
40839         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40840         if stat macros are broken.
40841         * lib/tempname.c (includes): No need to include "stat-macros.h".
40842         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40843         (direxists, __path_search) [!_LIBC]: Don't compile these in
40844         gnulib; the tmpdir module covers that.
40845         * lib/tempname.h: New file.
40846
40847 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40848
40849         * COPYING: Explain how gnulib-tool converts licence headers.
40850         Almost all wording by Eric Blake.
40851
40852 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40853
40854         * lib/mbchar.h (is_basic_table): Make read-only.
40855         * lib/mbchar.c (is_basic_table): Likewise.
40856         Reported by John Darrington.
40857
40858 2006-10-25  Bruno Haible  <bruno@clisp.org>
40859
40860         * lib/progname.h (set_program_name): Undefine before defining.
40861
40862 2006-10-25  Bruno Haible  <bruno@clisp.org>
40863
40864         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40865         false for non-gcc C++ compilers.
40866         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40867
40868 2006-10-24  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40871         iconv implementations like Irix iconv.
40872
40873 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40874
40875         * modules/vararrays: New file.
40876         * m4/vararrays.m4: New file, taken from diffutils.
40877         * MODULES.html.sh: New module vararrays.
40878
40879 2006-10-24  Karl Berry  <karl@gnu.org>
40880
40881         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40882         Don't call GNU Unix.
40883
40884 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40885
40886         * users.txt: Add Libtool.
40887
40888         Sync from Libtool:
40889
40890         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40891
40892         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40893         to gnulib's policy of including config.h unconditionally.
40894
40895 2006-10-24  Bruno Haible  <bruno@clisp.org>
40896
40897         * modules/wcwidth (Files): Add m4/wint_t.m4.
40898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40899         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40900
40901 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40902
40903         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40904         to pacify GCC with some -W flags enabled.  Problem reported by
40905         Bruno Haible.
40906
40907 2006-10-24  Jim Meyering  <jim@meyering.net>
40908
40909         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40910         Reported by Karl Berry.
40911
40912 2006-10-23  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40915
40916 2006-10-24  Bruno Haible  <bruno@clisp.org>
40917
40918         * lib/gl_list.h: Use C comment style, not C++ comment style.
40919
40920 2006-10-23  Eric Blake  <ebb9@byu.net>
40921
40922         * lib/getaddrinfo.c (includes): Add missing include.
40923
40924 2006-10-23  Bruno Haible  <bruno@clisp.org>
40925             Paul Eggert  <eggert@cs.ucla.edu>
40926
40927         Ability to rename obstack_free.
40928         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40929         obstack_free.
40930         (obstack_free): Invoke the __obstack_free macro.
40931         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40932
40933 2006-10-23  Bruno Haible  <bruno@clisp.org>
40934             Paul Eggert  <eggert@cs.ucla.edu>
40935
40936         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40937         __argc, __argv from the declaration. (They are defined as macros on
40938         mingw.)
40939
40940 2006-10-22  Bruno Haible  <bruno@clisp.org>
40941
40942         * doc/gnulib-intro.texi: New file.
40943         * doc/gnulib.texi: Include it.
40944
40945 2006-10-21  Bruno Haible  <bruno@clisp.org>
40946
40947         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40948         "Introduction", "Miscellanous Notes", "Particular Modules".
40949
40950 2006-10-21  Bruno Haible  <bruno@clisp.org>
40951
40952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40953         Change mostlyclean-local rule to avoid sh syntax error from bash
40954         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40955
40956 2006-10-23  Jim Meyering  <jim@meyering.net>
40957
40958         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40959         in place of snprintf.
40960
40961         * modules/inttostr (Files): Add lib/uinttostr.c.
40962         * lib/uinttostr.c (inttostr): New file/function.
40963         * lib/inttostr.h (uinttostr): Declare.
40964         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40965         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40966         Add uinttostr.
40967         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40968
40969 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40970
40971         * lib/canonicalize.c (ELOOP): Define if not already defined.
40972         Problem reported by Bruno Haible in
40973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40974
40975 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40976
40977         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40978         Problem reported by Perry Smith and Ville Laurikari.
40979
40980         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40981         uses.
40982
40983 2006-10-19  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40986         for mingw.
40987
40988 2006-10-19  Bruno Haible  <bruno@clisp.org>
40989
40990         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40991         Needed for mingw.
40992
40993 2006-10-19  Bruno Haible  <bruno@clisp.org>
40994
40995         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40996
40997 2006-10-19  Bruno Haible  <bruno@clisp.org>
40998
40999         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41000         it.
41001
41002 2006-10-19  Bruno Haible  <bruno@clisp.org>
41003
41004         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41005         invocation.
41006
41007 2006-10-19  Bruno Haible  <bruno@clisp.org>
41008
41009         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41010         mountlist by default.
41011
41012 2006-10-16  Bruno Haible  <bruno@clisp.org>
41013
41014         * lib/c-strstr.c: Include c-strstr.h.
41015
41016 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41017
41018         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41019         in a slash.
41020
41021 2006-10-18  Bruno Haible  <bruno@clisp.org>
41022
41023         * lib/lock.h [C++]: Wrap definitions in extern "C".
41024
41025 2006-10-18  Bruno Haible  <bruno@clisp.org>
41026
41027         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41028         gl_LIBOBJS list.
41029
41030 2006-10-18  Bruno Haible  <bruno@clisp.org>
41031
41032         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41033
41034 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41035
41036         * lib/xstrtol.h: Include gettext.h.
41037         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41038         Problem reported by Eric Blake.
41039         * modules/xstrtol (Depends-on): Add gettext-h.
41040
41041 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41042
41043         * lib/strftime.c (advance): New macro.
41044         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41045         incomplete type, so you can't add 0 to it.  Problem and patch
41046         reported by Eelco Dolstra for dietlibc.
41047
41048 2006-10-18  Jim Meyering  <jim@meyering.net>
41049
41050         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41051         type for a local, and rename it: s/up/user_proc/.
41052
41053 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41054
41055         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41056         READ_UTMP_USER_PROCESS.
41057         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41058
41059 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41060
41061         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41062         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41063
41064 2006-10-17  Eric Blake  <ebb9@byu.net>
41065
41066         * lib/sigprocmask.c (sigprocmask): Fix typo.
41067
41068         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41069
41070         * modules/clean-temp (Makefile.am): Don't add to make output...
41071         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41072         config.h.
41073
41074 2006-10-17  Bruno Haible  <bruno@clisp.org>
41075
41076         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41077         differently if DEFAULT_TEXT_DOMAIN is set.
41078
41079 2006-10-16  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/clean-temp.c: Include fwriteerror.h.
41082
41083 2006-10-16  Bruno Haible  <bruno@clisp.org>
41084
41085         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41086
41087 2006-10-16  Bruno Haible  <bruno@clisp.org>
41088
41089         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41090         * lib/sigprocmask.h: Include <sys/types.h>.
41091         (sigset_t): Use the system's definition if present.
41092
41093 2006-10-17  Eric Blake  <ebb9@byu.net>
41094
41095         * lib/xvasprintf.c (includes): Assume config.h.
41096         * lib/xasprintf.c (includes): Likewise.
41097
41098 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41099
41100         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41101         at least as wide as intmax_t.
41102
41103 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41104
41105         (Imported from Automake.)
41106         * build-aux/gnupload: Update to version 1.1 of directive file.
41107
41108 2006-10-16  Eric Blake  <ebb9@byu.net>
41109
41110         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41111         match Automake 1.10a.
41112
41113 2006-10-14  Bruno Haible  <bruno@clisp.org>
41114
41115         * modules/sigprocmask: New file.
41116         * lib/sigprocmask.h: New file.
41117         * lib/sigprocmask.c: New file.
41118         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41119         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41120         request sigprocmask.o.
41121         (gl_PREREQ_SIGPROCMASK): New macro.
41122         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41123         (Depends-on): Add sigprocmask.
41124         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41125         gt_SIGNALBLOCKING. Test for 'raise' only once.
41126         * lib/fatal-signal.c: Include sigprocmask.h.
41127         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41128         unblock_fatal_signals): Define always.
41129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41130         sigprocmask.
41131
41132 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41133
41134         Sync from Automake.
41135         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41136         which incorrectly sets the mode of an existing destination
41137         directory.  In some cases the unpatched install-sh could do the
41138         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41139         system.  We hope this is rare in practice, but it's clearly worth
41140         fixing.  Problem reported by Alex Unleashed in
41141         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41142         Also, don't bother to check for -m bugs unless we're using -m;
41143         suggested by Stepan Kasal.
41144
41145 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41146
41147         Sync from Automake.
41148         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41149         `-c' flag, so they appear at the same position as in %FASTDEP%
41150         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41151         which ignores unknown options only after the first non-option.
41152         Bug report against M4 by Nelson H. F. Beebe.
41153
41154 2006-10-13  Jim Meyering  <jim@meyering.net>
41155
41156         Fix a bug in yesterday's change.
41157         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41158         p->fts_statp->st_dev would be used uninitialized.
41159         Ensures that we always call fts_stat on the very first entry.
41160         Miklos Szeredi reported that find -xdev stopped working.
41161
41162 2006-10-12  Bruno Haible  <bruno@clisp.org>
41163
41164         * gnulib-tool (func_get_automake_snippet): Append an automatically
41165         computed EXTRA_DIST augmentation.
41166         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41167         * modules/alloca-opt (Makefile.am): Likewise.
41168         * modules/allocsa (Makefile.am): Likewise.
41169         * modules/arcfour (Makefile.am): Likewise.
41170         * modules/arctwo (Makefile.am): Likewise.
41171         * modules/argmatch (Makefile.am): Likewise.
41172         * modules/argz (Makefile.am): Likewise.
41173         * modules/atexit (Makefile.am): Likewise.
41174         * modules/backupfile (Makefile.am): Likewise.
41175         * modules/byteswap (Makefile.am): Likewise.
41176         * modules/c-strtod (Makefile.am): Likewise.
41177         * modules/c-strtold (Makefile.am): Likewise.
41178         * modules/calloc (Makefile.am): Likewise.
41179         * modules/canon-host (Makefile.am): Likewise.
41180         * modules/canonicalize (Makefile.am): Likewise.
41181         * modules/chdir-long (Makefile.am): Likewise.
41182         * modules/chdir-safer (Makefile.am): Likewise.
41183         * modules/check-version (Makefile.am): Likewise.
41184         * modules/chown (Makefile.am): Likewise.
41185         * modules/cloexec (Makefile.am): Likewise.
41186         * modules/close-stream (Makefile.am): Likewise.
41187         * modules/closeout (Makefile.am): Likewise.
41188         * modules/crc (Makefile.am): Likewise.
41189         * modules/csharpexec (Makefile.am): Likewise.
41190         * modules/cycle-check (Makefile.am): Likewise.
41191         * modules/des (Makefile.am): Likewise.
41192         * modules/dev-ino (Makefile.am): Likewise.
41193         * modules/dirfd (Makefile.am): Likewise.
41194         * modules/dirname (Makefile.am): Likewise.
41195         * modules/dup2 (Makefile.am): Likewise.
41196         * modules/eealloc (Makefile.am): Likewise.
41197         * modules/error (Makefile.am): Likewise.
41198         * modules/euidaccess (Makefile.am): Likewise.
41199         * modules/exclude (Makefile.am): Likewise.
41200         * modules/exitfail (Makefile.am): Likewise.
41201         * modules/fcntl-safer (Makefile.am): Likewise.
41202         * modules/fcntl (Makefile.am): Likewise.
41203         * modules/file-type (Makefile.am): Likewise.
41204         * modules/fileblocks (Makefile.am): Likewise.
41205         * modules/filemode (Makefile.am): Likewise.
41206         * modules/filenamecat (Makefile.am): Likewise.
41207         * modules/fnmatch (Makefile.am): Likewise.
41208         * modules/fopen-safer (Makefile.am): Likewise.
41209         * modules/fpending (Makefile.am): Likewise.
41210         * modules/fprintftime (Makefile.am): Likewise.
41211         * modules/free (Makefile.am): Likewise.
41212         * modules/fsusage (Makefile.am): Likewise.
41213         * modules/ftruncate (Makefile.am): Likewise.
41214         * modules/fts (Makefile.am): Likewise.
41215         * modules/gc-arcfour (Makefile.am): Likewise.
41216         * modules/gc-des (Makefile.am): Likewise.
41217         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41218         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41219         * modules/gc-md4 (Makefile.am): Likewise.
41220         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41221         * modules/gc-sha1 (Makefile.am): Likewise.
41222         * modules/gc (Makefile.am): Likewise.
41223         * modules/getaddrinfo (Makefile.am): Likewise.
41224         * modules/getcwd (Makefile.am): Likewise.
41225         * modules/getdelim (Makefile.am): Likewise.
41226         * modules/getdomainname (Makefile.am): Likewise.
41227         * modules/getgroups (Makefile.am): Likewise.
41228         * modules/gethostname (Makefile.am): Likewise.
41229         * modules/gethrxtime (Makefile.am): Likewise.
41230         * modules/getline (Makefile.am): Likewise.
41231         * modules/getloadavg (Makefile.am): Likewise.
41232         * modules/getlogin_r (Makefile.am): Likewise.
41233         * modules/getndelim2 (Makefile.am): Likewise.
41234         * modules/getopt (Makefile.am): Likewise.
41235         * modules/getpagesize (Makefile.am): Likewise.
41236         * modules/getpass-gnu (Makefile.am): Likewise.
41237         * modules/getpass (Makefile.am): Likewise.
41238         * modules/getsubopt (Makefile.am): Likewise.
41239         * modules/gettime (Makefile.am): Likewise.
41240         * modules/gettimeofday (Makefile.am): Likewise.
41241         * modules/getugroups (Makefile.am): Likewise.
41242         * modules/getusershell (Makefile.am): Likewise.
41243         * modules/glob (Makefile.am): Likewise.
41244         * modules/group-member (Makefile.am): Likewise.
41245         * modules/hard-locale (Makefile.am): Likewise.
41246         * modules/hash (Makefile.am): Likewise.
41247         * modules/hmac-md5 (Makefile.am): Likewise.
41248         * modules/hmac-sha1 (Makefile.am): Likewise.
41249         * modules/human (Makefile.am): Likewise.
41250         * modules/idcache (Makefile.am): Likewise.
41251         * modules/imaxabs (Makefile.am): Likewise.
41252         * modules/imaxdiv (Makefile.am): Likewise.
41253         * modules/inet_ntop (Makefile.am): Likewise.
41254         * modules/inet_pton (Makefile.am): Likewise.
41255         * modules/intprops (Makefile.am): Likewise.
41256         * modules/inttostr (Makefile.am): Likewise.
41257         * modules/inttypes (Makefile.am): Likewise.
41258         * modules/isapipe (Makefile.am): Likewise.
41259         * modules/javaversion (Makefile.am): Likewise.
41260         * modules/lchmod (Makefile.am): Likewise.
41261         * modules/lchown (Makefile.am): Likewise.
41262         * modules/localcharset (Makefile.am): Likewise.
41263         * modules/long-options (Makefile.am): Likewise.
41264         * modules/lstat (Makefile.am): Likewise.
41265         * modules/malloc (Makefile.am): Likewise.
41266         * modules/mathl (Makefile.am): Likewise.
41267         * modules/mbchar (Makefile.am): Likewise.
41268         * modules/md2 (Makefile.am): Likewise.
41269         * modules/md4 (Makefile.am): Likewise.
41270         * modules/md5 (Makefile.am): Likewise.
41271         * modules/memcasecmp (Makefile.am): Likewise.
41272         * modules/memchr (Makefile.am): Likewise.
41273         * modules/memcmp (Makefile.am): Likewise.
41274         * modules/memcoll (Makefile.am): Likewise.
41275         * modules/memcpy (Makefile.am): Likewise.
41276         * modules/memmem (Makefile.am): Likewise.
41277         * modules/memmove (Makefile.am): Likewise.
41278         * modules/mempcpy (Makefile.am): Likewise.
41279         * modules/memrchr (Makefile.am): Likewise.
41280         * modules/memset (Makefile.am): Likewise.
41281         * modules/memxor (Makefile.am): Likewise.
41282         * modules/mkancesdirs (Makefile.am): Likewise.
41283         * modules/mkdir-p (Makefile.am): Likewise.
41284         * modules/mkdir (Makefile.am): Likewise.
41285         * modules/mkdtemp (Makefile.am): Likewise.
41286         * modules/mkstemp (Makefile.am): Likewise.
41287         * modules/mktime (Makefile.am): Likewise.
41288         * modules/modechange (Makefile.am): Likewise.
41289         * modules/mountlist (Makefile.am): Likewise.
41290         * modules/nanosleep (Makefile.am): Likewise.
41291         * modules/obstack (Makefile.am): Likewise.
41292         * modules/openat (Makefile.am): Likewise.
41293         * modules/pagealign_alloc (Makefile.am): Likewise.
41294         * modules/pathmax (Makefile.am): Likewise.
41295         * modules/physmem (Makefile.am): Likewise.
41296         * modules/poll (Makefile.am): Likewise.
41297         * modules/posixtm (Makefile.am): Likewise.
41298         * modules/posixver (Makefile.am): Likewise.
41299         * modules/putenv (Makefile.am): Likewise.
41300         * modules/quote (Makefile.am): Likewise.
41301         * modules/quotearg (Makefile.am): Likewise.
41302         * modules/raise (Makefile.am): Likewise.
41303         * modules/read-file (Makefile.am): Likewise.
41304         * modules/readline (Makefile.am): Likewise.
41305         * modules/readlink (Makefile.am): Likewise.
41306         * modules/readtokens (Makefile.am): Likewise.
41307         * modules/readutmp (Makefile.am): Likewise.
41308         * modules/realloc (Makefile.am): Likewise.
41309         * modules/regex (Makefile.am): Likewise.
41310         * modules/rename-dest-slash (Makefile.am): Likewise.
41311         * modules/rename (Makefile.am): Likewise.
41312         * modules/rijndael (Makefile.am): Likewise.
41313         * modules/rmdir (Makefile.am): Likewise.
41314         * modules/rpmatch (Makefile.am): Likewise.
41315         * modules/safe-read (Makefile.am): Likewise.
41316         * modules/safe-write (Makefile.am): Likewise.
41317         * modules/same-inode (Makefile.am): Likewise.
41318         * modules/same (Makefile.am): Likewise.
41319         * modules/save-cwd (Makefile.am): Likewise.
41320         * modules/savedir (Makefile.am): Likewise.
41321         * modules/setenv (Makefile.am): Likewise.
41322         * modules/settime (Makefile.am): Likewise.
41323         * modules/sha1 (Makefile.am): Likewise.
41324         * modules/sig2str (Makefile.am): Likewise.
41325         * modules/snprintf (Makefile.am): Likewise.
41326         * modules/stat-macros (Makefile.am): Likewise.
41327         * modules/stat-time (Makefile.am): Likewise.
41328         * modules/stdbool (Makefile.am): Likewise.
41329         * modules/stdint (Makefile.am): Likewise.
41330         * modules/stdlib-safer (Makefile.am): Likewise.
41331         * modules/stpcpy (Makefile.am): Likewise.
41332         * modules/stpncpy (Makefile.am): Likewise.
41333         * modules/strcase (Makefile.am): Likewise.
41334         * modules/strcasestr (Makefile.am): Likewise.
41335         * modules/strchrnul (Makefile.am): Likewise.
41336         * modules/strcspn (Makefile.am): Likewise.
41337         * modules/strdup (Makefile.am): Likewise.
41338         * modules/strerror (Makefile.am): Likewise.
41339         * modules/strftime (Makefile.am): Likewise.
41340         * modules/strndup (Makefile.am): Likewise.
41341         * modules/strnlen (Makefile.am): Likewise.
41342         * modules/strpbrk (Makefile.am): Likewise.
41343         * modules/strsep (Makefile.am): Likewise.
41344         * modules/strstr (Makefile.am): Likewise.
41345         * modules/strtod (Makefile.am): Likewise.
41346         * modules/strtoimax (Makefile.am): Likewise.
41347         * modules/strtok_r (Makefile.am): Likewise.
41348         * modules/strtol (Makefile.am): Likewise.
41349         * modules/strtoll (Makefile.am): Likewise.
41350         * modules/strtoul (Makefile.am): Likewise.
41351         * modules/strtoull (Makefile.am): Likewise.
41352         * modules/strtoumax (Makefile.am): Likewise.
41353         * modules/strverscmp (Makefile.am): Likewise.
41354         * modules/sys_socket (Makefile.am): Likewise.
41355         * modules/sys_stat (Makefile.am): Likewise.
41356         * modules/sysexits (Makefile.am): Likewise.
41357         * modules/time_r (Makefile.am): Likewise.
41358         * modules/timegm (Makefile.am): Likewise.
41359         * modules/timespec (Makefile.am): Likewise.
41360         * modules/tmpfile-safer (Makefile.am): Likewise.
41361         * modules/trim (Makefile.am): Likewise.
41362         * modules/unistd-safer (Makefile.am): Likewise.
41363         * modules/unlinkdir (Makefile.am): Likewise.
41364         * modules/unlocked-io (Makefile.am): Likewise.
41365         * modules/userspec (Makefile.am): Likewise.
41366         * modules/utime (Makefile.am): Likewise.
41367         * modules/utimecmp (Makefile.am): Likewise.
41368         * modules/utimens (Makefile.am): Likewise.
41369         * modules/vasnprintf (Makefile.am): Likewise.
41370         * modules/vasprintf (Makefile.am): Likewise.
41371         * modules/vsnprintf (Makefile.am): Likewise.
41372         * modules/xalloc (Makefile.am): Likewise.
41373         * modules/xgetcwd (Makefile.am): Likewise.
41374         * modules/xnanosleep (Makefile.am): Likewise.
41375         * modules/xreadlink (Makefile.am): Likewise.
41376         * modules/xstrtod (Makefile.am): Likewise.
41377         * modules/xstrtol (Makefile.am): Likewise.
41378         * modules/xstrtold (Makefile.am): Likewise.
41379         * modules/yesno (Makefile.am): Likewise.
41380         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41381
41382 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41383
41384         * modules/error (Makefile.am): Distribute files through
41385         EXTRA_DIST, not lib_SOURCES.
41386
41387 2006-10-12  Eric Blake  <ebb9@byu.net>
41388
41389         * modules/error (Makefile.am): Distribute files in /lib.
41390         * modules/obstack (Makefile.am): Likewise.
41391
41392 2006-10-12  Bruno Haible  <bruno@clisp.org>
41393
41394         * modules/acl (Makefile.am): Distribute all files in lib/ through
41395         EXTRA_DIST.
41396         * modules/arcfour (Makefile.am): Likewise.
41397         * modules/arctwo (Makefile.am): Likewise.
41398         * modules/argmatch (Makefile.am): Likewise.
41399         * modules/argz (Makefile.am): Likewise.
41400         * modules/atexit (Makefile.am): Likewise.
41401         * modules/backupfile (Makefile.am): Likewise.
41402         * modules/c-strtod (Makefile.am): Likewise.
41403         * modules/c-strtold (Makefile.am): Likewise.
41404         * modules/calloc (Makefile.am): Likewise.
41405         * modules/canon-host (Makefile.am): Likewise.
41406         * modules/canonicalize (Makefile.am): Likewise.
41407         * modules/chdir-long (Makefile.am): Likewise.
41408         * modules/chdir-safer (Makefile.am): Likewise.
41409         * modules/check-version (Makefile.am): Likewise.
41410         * modules/chown (Makefile.am): Likewise.
41411         * modules/cloexec (Makefile.am): Likewise.
41412         * modules/close-stream (Makefile.am): Likewise.
41413         * modules/closeout (Makefile.am): Likewise.
41414         * modules/crc (Makefile.am): Likewise.
41415         * modules/cycle-check (Makefile.am): Likewise.
41416         * modules/des (Makefile.am): Likewise.
41417         * modules/dirfd (Makefile.am): Likewise.
41418         * modules/dirname (Makefile.am): Likewise.
41419         * modules/dup2 (Makefile.am): Likewise.
41420         * modules/euidaccess (Makefile.am): Likewise.
41421         * modules/exclude (Makefile.am): Likewise.
41422         * modules/exitfail (Makefile.am): Likewise.
41423         * modules/fcntl-safer (Makefile.am): Likewise.
41424         * modules/file-type (Makefile.am): Likewise.
41425         * modules/fileblocks (Makefile.am): Likewise.
41426         * modules/filemode (Makefile.am): Likewise.
41427         * modules/filenamecat (Makefile.am): Likewise.
41428         * modules/fnmatch (Makefile.am): Likewise.
41429         * modules/fopen-safer (Makefile.am): Likewise.
41430         * modules/fpending (Makefile.am): Likewise.
41431         * modules/fprintftime (Makefile.am): Likewise.
41432         * modules/free (Makefile.am): Likewise.
41433         * modules/fsusage (Makefile.am): Likewise.
41434         * modules/ftruncate (Makefile.am): Likewise.
41435         * modules/fts (Makefile.am): Likewise.
41436         * modules/gc (Makefile.am): Likewise.
41437         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41438         * modules/getaddrinfo (Makefile.am): Likewise.
41439         * modules/getcwd (Makefile.am): Likewise.
41440         * modules/getdelim (Makefile.am): Likewise.
41441         * modules/getdomainname (Makefile.am): Likewise.
41442         * modules/getgroups (Makefile.am): Likewise.
41443         * modules/gethostname (Makefile.am): Likewise.
41444         * modules/gethrxtime (Makefile.am): Likewise.
41445         * modules/getline (Makefile.am): Likewise.
41446         * modules/getloadavg (Makefile.am): Likewise.
41447         * modules/getlogin_r (Makefile.am): Likewise.
41448         * modules/getopt (Makefile.am): Likewise.
41449         * modules/getpass (Makefile.am): Likewise.
41450         * modules/getpass-gnu (Makefile.am): Likewise.
41451         * modules/getsubopt (Makefile.am): Likewise.
41452         * modules/gettime (Makefile.am): Likewise.
41453         * modules/gettimeofday (Makefile.am): Likewise.
41454         * modules/getugroups (Makefile.am): Likewise.
41455         * modules/getusershell (Makefile.am): Likewise.
41456         * modules/glob (Makefile.am): Likewise.
41457         * modules/group-member (Makefile.am): Likewise.
41458         * modules/hard-locale (Makefile.am): Likewise.
41459         * modules/hash (Makefile.am): Likewise.
41460         * modules/hmac-md5 (Makefile.am): Likewise.
41461         * modules/hmac-sha1 (Makefile.am): Likewise.
41462         * modules/human (Makefile.am): Likewise.
41463         * modules/idcache (Makefile.am): Likewise.
41464         * modules/imaxabs (Makefile.am): Likewise.
41465         * modules/imaxdiv (Makefile.am): Likewise.
41466         * modules/inet_ntop (Makefile.am): Likewise.
41467         * modules/inet_pton (Makefile.am): Likewise.
41468         * modules/inttostr (Makefile.am): Likewise.
41469         * modules/isapipe (Makefile.am): Likewise.
41470         * modules/lchown (Makefile.am): Likewise.
41471         * modules/long-options (Makefile.am): Likewise.
41472         * modules/lstat (Makefile.am): Likewise.
41473         * modules/malloc (Makefile.am): Likewise.
41474         * modules/mathl (Makefile.am): Likewise.
41475         * modules/mbchar (Makefile.am): Likewise.
41476         * modules/md2 (Makefile.am): Likewise.
41477         * modules/md4 (Makefile.am): Likewise.
41478         * modules/md5 (Makefile.am): Likewise.
41479         * modules/memcasecmp (Makefile.am): Likewise.
41480         * modules/memchr (Makefile.am): Likewise.
41481         * modules/memcmp (Makefile.am): Likewise.
41482         * modules/memcoll (Makefile.am): Likewise.
41483         * modules/memcpy (Makefile.am): Likewise.
41484         * modules/memmem (Makefile.am): Likewise.
41485         * modules/memmove (Makefile.am): Likewise.
41486         * modules/mempcpy (Makefile.am): Likewise.
41487         * modules/memrchr (Makefile.am): Likewise.
41488         * modules/memset (Makefile.am): Likewise.
41489         * modules/memxor (Makefile.am): Likewise.
41490         * modules/mkancesdirs (Makefile.am): Likewise.
41491         * modules/mkdir (Makefile.am): Likewise.
41492         * modules/mkdir-p (Makefile.am): Likewise.
41493         * modules/mkdtemp (Makefile.am): Likewise.
41494         * modules/mkstemp (Makefile.am): Likewise.
41495         * modules/mktime (Makefile.am): Likewise.
41496         * modules/modechange (Makefile.am): Likewise.
41497         * modules/mountlist (Makefile.am): Likewise.
41498         * modules/nanosleep (Makefile.am): Likewise.
41499         * modules/openat (Makefile.am): Likewise.
41500         * modules/pagealign_alloc (Makefile.am): Likewise.
41501         * modules/physmem (Makefile.am): Likewise.
41502         * modules/poll (Makefile.am): Likewise.
41503         * modules/posixtm (Makefile.am): Likewise.
41504         * modules/posixver (Makefile.am): Likewise.
41505         * modules/putenv (Makefile.am): Likewise.
41506         * modules/quote (Makefile.am): Likewise.
41507         * modules/quotearg (Makefile.am): Likewise.
41508         * modules/raise (Makefile.am): Likewise.
41509         * modules/read-file (Makefile.am): Likewise.
41510         * modules/readline (Makefile.am): Likewise.
41511         * modules/readlink (Makefile.am): Likewise.
41512         * modules/readtokens (Makefile.am): Likewise.
41513         * modules/readutmp (Makefile.am): Likewise.
41514         * modules/realloc (Makefile.am): Likewise.
41515         * modules/regex (Makefile.am): Likewise.
41516         * modules/rename (Makefile.am): Likewise.
41517         * modules/rename-dest-slash (Makefile.am): Likewise.
41518         * modules/rijndael (Makefile.am): Likewise.
41519         * modules/rmdir (Makefile.am): Likewise.
41520         * modules/rpmatch (Makefile.am): Likewise.
41521         * modules/safe-read (Makefile.am): Likewise.
41522         * modules/safe-write (Makefile.am): Likewise.
41523         * modules/same (Makefile.am): Likewise.
41524         * modules/save-cwd (Makefile.am): Likewise.
41525         * modules/savedir (Makefile.am): Likewise.
41526         * modules/setenv (Makefile.am): Likewise.
41527         * modules/settime (Makefile.am): Likewise.
41528         * modules/sha1 (Makefile.am): Likewise.
41529         * modules/sig2str (Makefile.am): Likewise.
41530         * modules/snprintf (Makefile.am): Likewise.
41531         * modules/stdlib-safer (Makefile.am): Likewise.
41532         * modules/stpcpy (Makefile.am): Likewise.
41533         * modules/stpncpy (Makefile.am): Likewise.
41534         * modules/strcase (Makefile.am): Likewise.
41535         * modules/strcasestr (Makefile.am): Likewise.
41536         * modules/strchrnul (Makefile.am): Likewise.
41537         * modules/strcspn (Makefile.am): Likewise.
41538         * modules/strdup (Makefile.am): Likewise.
41539         * modules/strerror (Makefile.am): Likewise.
41540         * modules/strftime (Makefile.am): Likewise.
41541         * modules/strndup (Makefile.am): Likewise.
41542         * modules/strnlen (Makefile.am): Likewise.
41543         * modules/strpbrk (Makefile.am): Likewise.
41544         * modules/strsep (Makefile.am): Likewise.
41545         * modules/strstr (Makefile.am): Likewise.
41546         * modules/strtod (Makefile.am): Likewise.
41547         * modules/strtoimax (Makefile.am): Likewise.
41548         * modules/strtok_r (Makefile.am): Likewise.
41549         * modules/strtol (Makefile.am): Likewise.
41550         * modules/strtoll (Makefile.am): Likewise.
41551         * modules/strtoul (Makefile.am): Likewise.
41552         * modules/strtoull (Makefile.am): Likewise.
41553         * modules/strtoumax (Makefile.am): Likewise.
41554         * modules/strverscmp (Makefile.am): Likewise.
41555         * modules/time_r (Makefile.am): Likewise.
41556         * modules/timegm (Makefile.am): Likewise.
41557         * modules/tmpfile-safer (Makefile.am): Likewise.
41558         * modules/unistd-safer (Makefile.am): Likewise.
41559         * modules/unlinkdir (Makefile.am): Likewise.
41560         * modules/userspec (Makefile.am): Likewise.
41561         * modules/utime (Makefile.am): Likewise.
41562         * modules/utimecmp (Makefile.am): Likewise.
41563         * modules/utimens (Makefile.am): Likewise.
41564         * modules/vasnprintf (Makefile.am): Likewise.
41565         * modules/vasprintf (Makefile.am): Likewise.
41566         * modules/vsnprintf (Makefile.am): Likewise.
41567         * modules/xalloc (Makefile.am): Likewise.
41568         * modules/xgetcwd (Makefile.am): Likewise.
41569         * modules/xnanosleep (Makefile.am): Likewise.
41570         * modules/xreadlink (Makefile.am): Likewise.
41571         * modules/xstrtod (Makefile.am): Likewise.
41572         * modules/xstrtol (Makefile.am): Likewise.
41573         * modules/xstrtold (Makefile.am): Likewise.
41574         * modules/yesno (Makefile.am): Likewise.
41575
41576 2006-10-12  Jim Meyering  <jim@meyering.net>
41577
41578         * m4/getloadavg.m4: Revert the change below.
41579
41580         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41581         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41582         fail with a symlink, which is what coreutils' ./bootstrap now
41583         creates by default.
41584
41585 2006-10-12  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41588         mingw.
41589         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41590         MSVC and mingw explicitly.
41591
41592 2006-10-11  Simon Josefsson  <jas@extundo.com>
41593             Bruno Haible  <bruno@clisp.org>
41594
41595         Add support for multiple gnulib-tool invocations in the scope of a
41596         single configure.ac file.
41597         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41598         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41599         with the same contents as the _LIBADD variable.
41600         (func_emit_initmacro_start, func_emit_initmacro_end,
41601         func_emit_initmacro_done): New functions.
41602         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41603         gl_LIBOBJS and gl_LTLIBOBJS.
41604
41605 2006-10-11  Bruno Haible  <bruno@clisp.org>
41606
41607         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41608         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41609         autoreconf. Instead, invoke autopoint explicitly but move back the
41610         *.m4 files from gnulib.
41611
41612 2006-10-11  Bruno Haible  <bruno@clisp.org>
41613
41614         * gnulib-tool (func_usage): Make module names after --create-testdir
41615         optional.
41616         (func_create_testdir): If no module was specified, use nearly all
41617         modules.
41618
41619 2006-10-12  Jim Meyering  <jim@meyering.net>
41620
41621         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41622         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41623         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41624         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41625         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41626         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41627         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41628         (fts_set_stat_required): New function.
41629         (fts_open): Defer the calls to fts_stat, if possible or requested.
41630         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41631         into fts_stat itself.
41632         (fts_read): Perform any required (deferred) fts_stat call.
41633         (fts_build): Likewise, for the directory we're about to open and read.
41634         In the readdir loop, carefully decide whether each entry will require
41635         an eventual call to fts_stat, using dirent.d_type info if available.
41636         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41637         a command line argument into this function.  Update all callers.
41638         Map a return value of FTS_DOT to FTS_D for a command line argument.
41639         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41640         Thanks to Miklos Szeredi for his tenacity and for the initial
41641         bug report about "find" failing on a FUSE-based file system.
41642
41643         * lib/fts.c (fts_open): Use consistent indentation.
41644
41645 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41646
41647         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41648         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41649         reported by Jim Meyering.  All uses of cache variables renamed
41650         to match Autoconf's.
41651         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41652         the other one.
41653
41654         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41655         Fix misspelling in diagnostic.
41656
41657 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41658
41659         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41660         defined.  Problem reported by Matthew Woehlke.
41661
41662         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41663         Add support for Tandem NonStop R series.
41664         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41665         Use new macro.
41666
41667         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41668         (has_trailing_slash): Omit size arg; all callers changed.
41669         Omit 'inline', since it doesn't help performance and we'd
41670         need to configure it.
41671         Don't count //, ///, etc. as having a trailing slash.
41672         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41673         (rpl_rename_dest_slash): On failure, use rename's errno rather
41674         than (in some cases) an incorrect or junk errno.
41675         Simplify code by removing need to compute length; this does
41676         cause it to make two passes instead of one over the file name,
41677         but it's worth it.
41678
41679         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41680         change, since Autoconf's version may no longer be appropriate now
41681         that we are using CVS Autoconf's version.  Add support for Tandem.
41682
41683 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41684             Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41687         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41688         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41689         gl_AC_TYPE_LONG_LONG.
41690
41691         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41692         instead of HAVE_LONG_LONG.
41693         * lib/printf-args.c (printf_fetchargs): Likewise.
41694         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41695         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41696         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41697         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41698         gl_AC_TYPE_LONG_LONG.
41699
41700 2006-10-11  Bruno Haible  <bruno@clisp.org>
41701
41702         * m4/longlong.m4: Add comments.
41703         * m4/ulonglong.m4: Likewise.
41704
41705 2006-10-10  Bruno Haible  <bruno@clisp.org>
41706
41707         Make it possible to #define stpcpy, strdup to aliases.
41708         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41709         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41710
41711 2006-10-10  Bruno Haible  <bruno@clisp.org>
41712
41713         Make it possible to #define gcd to an alias.
41714         * lib/gcd.c: Include config.h.
41715
41716 2006-10-10  Bruno Haible  <bruno@clisp.org>
41717
41718         Make it possible to #define c_isascii to an alias.
41719         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41720         defined. Undefine the macros before defining them, to avoid gcc
41721         warnings.
41722         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41723         define NO_C_CTYPE_MACROS early.
41724
41725 2006-10-10  Bruno Haible  <bruno@clisp.org>
41726
41727         Make it possible to #define set_program_name to an alias.
41728         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41729         ENABLE_RELOCATABLE early.
41730
41731 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41732
41733         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41734         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41735         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41736         More generally, don't assume that 64-bit signed int is available
41737         if unsigned int is, and vice versa.
41738         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41739         unsigned symbols, not on their signed counterparts.
41740         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41741         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41742         (UINT64_C, UINTMAX_C):
41743         Likewise.
41744         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41745         unsigned counterparts.
41746         (Have_long_long, Unsigned): New macros.
41747         (Int): Renamed from INT.
41748         (strtoimax): Use the new macros.
41749         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41750         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41751         * modules/inttypes (inttypes.h): Substitute
41752         HAVE_UNSIGNED_LONG_LONG_INT.
41753         * modules/stdint (stdint.h): Likewise.
41754         (Files): Add m4/ulonglong.m4.
41755
41756 2006-10-10  Bruno Haible  <bruno@clisp.org>
41757
41758         Fix a gcc -Wshadow warning.
41759         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41760         to 'bucket'.
41761         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41762         gl_linked_indexof_from_to): Likewise.
41763         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41764         Likewise.
41765         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41766         Likewise.
41767         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41768         Reported by Eric Blake.
41769
41770 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41771
41772         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41773         for NetBSD.  Problem reported by Bruno Haible.
41774
41775 2006-10-09  Jim Meyering  <jim@meyering.net>
41776
41777         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41778         Patch from Bruno Haible.
41779
41780 2006-10-09  Jim Meyering  <jim@meyering.net>
41781
41782         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41783         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41784         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41785
41786 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41787
41788         Don't include <config.h> twice; this doesn't work in some cases,
41789         e.g., when config.h has "#define intmax_t long long int" and
41790         we include <config.h>, <inttypes.h>, <config.h> in that order.
41791         Problem reported by Matthew Woehlke in:
41792         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41793         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41794         * lib/fts-cycle.c: Don't include config.h.
41795         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41796         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41797         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41798         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41799         inttypes.h.
41800         * lib/xstrtoumax.c: Likewise.
41801         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41802         __strtol and the like, so that this module is more like its siblings.
41803         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41804         Remove; no longer needed now that we assume gnulib inttypes.h.
41805
41806 2006-10-08  Bruno Haible  <bruno@clisp.org>
41807
41808         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41809         option.
41810
41811 2006-10-07  Jim Meyering  <jim@meyering.net>
41812
41813         * modules/inttypes (inttypes.h): Revert what seems to have been
41814         an inadvertent part of today's change: use "|", not "/" in the
41815         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41816
41817 2006-10-07  Bruno Haible  <bruno@clisp.org>
41818
41819         * modules/sublist: New file.
41820
41821 2006-10-07  Bruno Haible  <bruno@clisp.org>
41822
41823         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41824         * modules/argz (argz.h): Likewise.
41825         * modules/arpa_inet (arpa/inet.h): Likewise.
41826         * modules/byteswap (byteswap.h): Likewise.
41827         * modules/configmake (configmake.h): Likewise.
41828         * modules/fcntl (fcntl.h): Likewise.
41829         * modules/fnmatch (fnmatch.h): Likewise.
41830         * modules/getopt (getopt.h): Likewise.
41831         * modules/glob (glob.h): Likewise.
41832         * modules/inttypes (inttypes.h): Likewise.
41833         * modules/netinet_in (netinet/in.h): Likewise.
41834         * modules/poll (poll.h): Likewise.
41835         * modules/stdbool (stdbool.h): Likewise.
41836         * modules/stdint (stdint.h): Likewise.
41837         * modules/sys_select (sys/select.h): Likewise.
41838         * modules/sys_socket (sys/socket.h): Likewise.
41839         * modules/sys_stat (sys/stat.h): Likewise.
41840         * modules/sysexits (sysexits.h): Likewise.
41841         * modules/unistd (unistd.h): Likewise.
41842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41843         Add a "DO NOT EDIT" comment to the generated file.
41844         (func_import): Likewise for gnulib-comp.m4.
41845
41846 2006-10-07  Bruno Haible  <bruno@clisp.org>
41847
41848         * lib/gl_sublist.h: New file.
41849         * lib/gl_sublist.c: New file.
41850
41851 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41852
41853         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41854         name (relative to the original working directory) and the file
41855         name component (relative to the temporary working directory).  All
41856         callers changed.
41857         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41858         * lib/mkdir-p.c (make_dir_parents): Likewise.
41859         * lib/mkdir-p.h (make_dir_parents): Likewise.
41860
41861 2006-10-06  Eric Blake  <ebb9@byu.net>
41862
41863         Define several macros for use by the clean-temp module.
41864         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41865         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41866         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41867
41868         * lib/clean-temp.h (close_stream_temp): New declaration.
41869         * lib/clean-temp.c (includes): Pull in headers according to what
41870         other modules are in use.
41871         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41872
41873 2006-10-06  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41876         instead of fopen, fwriteerror.
41877
41878 2006-10-06  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41881         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41882         int.
41883         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41884         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41885         Return an error indicator.
41886         Suggested by Eric Blake.
41887
41888 2006-10-06  Bruno Haible  <bruno@clisp.org>
41889
41890         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41891         Reported by Eric Blake.
41892
41893 2006-10-06  Bruno Haible  <bruno@clisp.org>
41894
41895         * modules/closeout (Description): Mention stderr too.
41896
41897 2006-10-06  Bruno Haible  <bruno@clisp.org>
41898         and Paul Eggert  <eggert@cs.ucla.edu>
41899
41900         * lib/closeout.c (close_stdout): Also close stderr.
41901         * lib/closeout.h: Update comment.
41902
41903 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41904
41905         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41906         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41907         * lib/dirchownmod.c: Include lchown.h.
41908         * lib/lchown.c: Don't include files that lchown.h now includes.
41909         Don't declare chown, since lchown.h now does that.
41910         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41911         (lchown): Define to rpl_chown if lchown is declared but
41912         does not exist.  Declare using a prototype if lchown is not
41913         declared.  Add a copyright notice.
41914         * lib/mkstemp.h: Include <unistd.h>.
41915         * lib/openat.c: Include lchown.h.
41916
41917         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41918         we now test for that separately.
41919         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41920         rather than O_NOFOLLOW, when testing whether it's possible to
41921         avoid a race condition reliably.
41922         * lib/savewd.c (savewd_chdir): Likewise.
41923
41924         Remove macros that are no longer needed now that stdint.h is
41925         reliable.
41926         * lib/fsusage.c (UINTMAX_MAX): Remove.
41927         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41928         * lib/utimecmp.c (SIZE_MAX): Remove.
41929
41930         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41931
41932         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41933         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41934         O_NOATIME works.
41935
41936 2006-10-05  Bruno Haible  <bruno@clisp.org>
41937
41938         * lib/gl_list.h (gl_sortedlist_search_from_to,
41939         gl_sortedlist_indexof_from_to): New declarations.
41940         (gl_list_implementation): New fields sortedlist_search_from_to,
41941         sortedlist_indexof_from_to.
41942         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41943         inline functions.
41944         * lib/gl_list.c (gl_sortedlist_search_from_to,
41945         gl_sortedlist_indexof_from_to): New functions.
41946         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41947         function.
41948         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41949         (gl_array_sortedlist_search_from_to): New function.
41950         (gl_array_list_implementation): Update.
41951         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41952         function.
41953         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41954         (gl_carray_sortedlist_search_from_to): New function.
41955         (gl_carray_list_implementation): Update.
41956         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41957         gl_linked_sortedlist_indexof_from_to): New functions.
41958         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41959         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41960         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41961         gl_tree_sortedlist_indexof_from_to): New functions.
41962         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41963         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41964         Update.
41965         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41966         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41967         Update.
41968
41969 2006-10-05  Bruno Haible  <bruno@clisp.org>
41970
41971         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41972         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41973         (struct gl_list_implementation): Add fields search_from_to,
41974         indexof_from_to. Remove fields search, indexof.
41975         (gl_list_search): Use the search_from_to method.
41976         (gl_list_search_from, gl_list_search_from_to): New functions.
41977         (gl_list_indexof): Use the indexof_from_to method.
41978         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41979         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41980         (gl_list_search_from, gl_list_search_from_to): New functions.
41981         (gl_list_indexof): Use the indexof_from_to method.
41982         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41983         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41984         gl_array_indexof. Add start_index, end_index arguments.
41985         (gl_array_search_from_to): Renamed from gl_array_search. Add
41986         start_index, end_index arguments.
41987         (gl_array_remove, gl_array_list_implementation): Update.
41988         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41989         gl_carray_indexof. Add start_index, end_index arguments.
41990         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41991         start_index, end_index arguments.
41992         (gl_carray_remove, gl_carray_list_implementation): Update.
41993         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41994         gl_linked_search. Add start_index, end_index arguments.
41995         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41996         start_index, end_index arguments.
41997         (gl_linked_remove): Update.
41998         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41999         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42000         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42001         field to 'size_t'.
42002         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42003         gl_tree_search. Add start_index, end_index arguments.
42004         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42005         start_index, end_index arguments.
42006         (gl_tree_remove): Update.
42007         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42008         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42009         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42010         function.
42011         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42012         gl_tree_search. Add start_index, end_index arguments.
42013         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42014         start_index, end_index arguments.
42015         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42016         Update.
42017         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42018
42019 2006-10-05  Bruno Haible  <bruno@clisp.org>
42020
42021         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42022
42023         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42024         fwriteerror_temp): New declarations.
42025         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42026         (descriptors): New variable.
42027         (cleanup): First, close the descriptors.
42028         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42029         fclose_temp, fwriteerror_temp): New functions.
42030
42031 2006-10-04  Jim Meyering  <jim@meyering.net>
42032
42033         * lib/fts.c (fts_open): Tiny comment change.
42034
42035 2006-10-04  Bruno Haible  <bruno@clisp.org>
42036
42037         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42038         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42039         gl_LOCK_BODY.
42040         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42041         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42042         gl_LOCK_EARLY_BODY.
42043         (gl_LOCK): Require gl_LOCK_BODY.
42044
42045 2006-10-04  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42048         (gl_oset_search_atleast): New declaration.
42049         (struct gl_oset_implementation): Add field 'search_atleast'.
42050         (gl_oset_search_atleast): New inline function.
42051         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42052         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42053         (gl_array_oset_implementation): Update.
42054         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42055         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42056         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42057
42058 2006-10-04  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42061
42062 2006-10-03  Bruno Haible  <bruno@clisp.org>
42063
42064         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42065         from gl_avltreehash_list_implementation.
42066
42067 2006-10-03  Bruno Haible  <bruno@clisp.org>
42068
42069         * lib/gl_oset.c (gl_oset_add): Fix return type.
42070
42071 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42072
42073         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42074
42075 2006-10-02  Eric Blake  <ebb9@byu.net>
42076
42077         * modules/strnlen (Depends-on): Add extensions.
42078
42079 2006-10-02  Eric Blake  <ebb9@byu.net>
42080
42081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42082         definition in 2.60+.
42083
42084 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42085
42086         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42087         checks.
42088
42089 2006-10-02  Bruno Haible  <bruno@clisp.org>
42090
42091         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42092         to the AUTOMAKE_OPTIONS.
42093         Reported by Jim Meyering.
42094
42095 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42096
42097         Work around bug in Solaris 10 /proc file system:
42098         /proc/self/fd/NNN/.. isn't the parent directory of
42099         the directory whose file descriptor is NNN.  This needs to
42100         be worked around at run time, not compile time, since a
42101         program might be built on Solaris 8, where things work, and
42102         run on Solaris 10.
42103         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42104         to use the following interface instead:
42105         (OPENAT_BUFFER_SIZE): New macro.
42106         (openat_proc_name): New function.
42107         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42108         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42109         Likewise.
42110         * lib/openat-proc.c: New file.
42111         * modules/openat (Files): Add lib/openat-proc.c.
42112         (Depends-on): Add same-inode, stdbool.
42113         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42114
42115 2006-09-29  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42118         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42119         argument. Set stdout_closed before testing for ferror, not after.
42120         (fwriteerror, fwriteerror_no_ebadf): New functions.
42121
42122 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42123
42124         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42125
42126 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42127
42128         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42129         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42130
42131 2006-09-28  Jim Meyering  <jim@meyering.net>
42132
42133         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42134         Include <unistd.h>.
42135
42136 2006-09-28  Bruno Haible  <bruno@clisp.org>
42137
42138         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42139         * modules/linkedhash-list (Depends-on): Likewise.
42140         * modules/rbtreehash-list (Depends-on): Likewise.
42141
42142 2006-09-28  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/strndup.h: Simplify the redefinition of strndup.
42145         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42147
42148 2006-09-28  Bruno Haible  <bruno@clisp.org>
42149
42150         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42151         * lib/gl_linkedhash_list.c: Likewise.
42152         * lib/gl_rbtreehash_list.c: Likewise.
42153
42154 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42155
42156         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42157         getaddrinfo.
42158
42159         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42160         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42161         it causes <stdio_ext.h> to cause a compile-time error.
42162         Problem reported by Nelson H. F. Beebe.
42163         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42164         of HAVE_DECL___PENDING.
42165
42166         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42167         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42168         declaration.
42169
42170 2006-09-27  Jim Meyering  <jim@meyering.net>
42171
42172         This file could end up with a definition for a function
42173         named __strndup, rather than rpl_strndup on a system with
42174         incomplete weak_alias support.
42175         * lib/strndup.c (strndup): Rename from __strndup.
42176         Remove #defines that used to map __strndup to strndup.
42177         Don't use K&R prototypes.
42178         Remove LIBC-related code, since this file is not sync'd with glibc.
42179         * lib/strndup.h: Revamp, accordingly.
42180         * m4/strndup.m4: Modernize.
42181
42182 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42183
42184         * modules/savewd (Depends-on): Add 'raise'.
42185         * lib/savewd.c: Include <signal.h>, for 'raise'.
42186
42187 2006-09-26  Jim Meyering  <jim@meyering.net>
42188
42189         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42190         when we detect Darwin 8.7.0's acl_get_file bug.
42191         Rearrange to perform the new (below) run-test while $LIBS
42192         contains any acl-related library.  Set USE_ACL at the end.
42193         (gl_ACL_GET_FILE): New function.
42194
42195 2006-09-26  Eric Blake  <ebb9@byu.net>
42196
42197         * lib/verror.c: Include <config.h> unconditionally.
42198
42199 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42200
42201         * modules/clock-time (Maintainer): Add self.
42202         * modules/getlogin_r (Depends-on): Add extensions.
42203
42204 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42205
42206         * modules/clock-time: New module.
42207         * modules/nanosleep (Depends-on): Add clock-time.
42208         * modules/gethrxtime (Depends-on): Likewise.
42209         * modules/gettime (Depends-on): Likewise.
42210         * modules/settime (Depends-on): Likewise.
42211
42212         * modules/fts-lgpl: Depend on openat.
42213         * modules/mkancesdirs: Depend on savewd.
42214         * modules/mkdir-p: Likewise.
42215
42216 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42217
42218         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42219
42220         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42221         `gl_have_arbitrary_file_name_length_limit' to
42222         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42223         actually works between configure runs.
42224
42225 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42226             Bruno Haible  <bruno@clisp.org>
42227
42228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42229
42230 2006-09-25  Jim Meyering  <jim@meyering.net>
42231
42232         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42233         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42234
42235 2006-09-25  Eric Blake  <ebb9@byu.net>
42236
42237         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42238         exec's in 2006-09-18 patch when shuffling fds.
42239
42240 2006-09-25  Bruno Haible  <bruno@clisp.org>
42241
42242         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42243         Reported by Jim Meyering.
42244
42245 2006-09-24  Jim Meyering  <jim@meyering.net>
42246
42247         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42248         compare a pointer against a literal "0".  That caused failures with
42249         at least HP-UX's hpcc.
42250
42251 2006-09-22  Simon Josefsson  <jas@extundo.com>
42252
42253         * modules/gc-sha1:
42254         * modules/gc-md4:
42255         * modules/gc-hmac-sha1:
42256         * modules/gc-hmac-md5:
42257         * modules/gc-des:
42258         * modules/gc-arcfour: Distribute more files.
42259
42260 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42261
42262         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42263         (gl_linked_iterator_from_to): Initialize struct completely.
42264         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42265         (gl_tree_iterator_from_to): Likewise
42266         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42267         * lib/gl_array_list.c [lint] (gl_array_iterator)
42268         (gl_array_iterator_from_to): Likewise.
42269         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42270         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42271         (gl_carray_iterator_from_to): Likewise.
42272
42273         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42274         * lib/md4.c (md4_process_block): Remove unused variable.
42275         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42276         parentheses for clarity.
42277
42278 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42279
42280         * modules/bison-i18n (Depends-on): Add gettext.
42281
42282 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42283
42284         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42285         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42286         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42287         also add missing comma that caused broken test.
42288         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42289         stdlib.h, for `abort'.
42290         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42291         variables.
42292         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42293         include unistd.h if present, for `rmdir'.
42294         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42295         variables.
42296         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42297         in the process include standard headers for prototypes.
42298         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42299         gets declared on GNU/Linux.
42300         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42301         unistd.h, for `rmdir'.
42302         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42303
42304         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42305         always true.
42306         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42307
42308         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42309
42310 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42311
42312         * gnulib-tool (func_version): Create output all at once.  This
42313         may help avoid triggering unnecessary SIGPIPEs, and at any
42314         rate it doesn't hurt.
42315
42316 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42317             Bruno Haible  <bruno@clisp.org>
42318
42319         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42320         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42321         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42322
42323         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42324         (gl_FUNC_VASPRINTF): Invoke it.
42325
42326 2006-09-22  Bruno Haible  <bruno@clisp.org>
42327
42328         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42329         getloadavg.c as first argument.
42330
42331 2006-09-22  Bruno Haible  <bruno@clisp.org>
42332
42333         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42334         at the beginning of the gl_INIT macro.
42335         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42336         gl_GETLOADAVG.
42337
42338 2006-09-22  Bruno Haible  <bruno@clisp.org>
42339
42340         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42341         module.
42342         Suggested by Ralf Wildenhues.
42343
42344 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42345
42346         Import this patch from libc:
42347
42348         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42349
42350         * lib/regex_internal.c (re_string_reconstruct): Handle
42351         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42352         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42353         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42354         re_string_context_at.
42355
42356         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42357         now requires it.
42358         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42359         gl_REGEX now does it for us.
42360         (gl_REGEX): Add test taken from
42361         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42362
42363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42364         Check that large offsets work.  Modernize Autoconf usages.
42365         Prefer "yes" to mean a good thing rather than a bad.
42366         Don't put "#define mkstemp" in config.h, as this might interfere
42367         with standard system headers that "#define mkstemp mkstemp64".
42368
42369         * modules/mkstemp (Depends-on): Add extensions, so that
42370         mkstemp is visible on some platforms.
42371         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42372         (Include): Change to "mkstemp.h" from <stdlib.h>.
42373         (Files): Add mkstemp.h.
42374
42375         * lib/mkstemp.h: New file, since some standard headers
42376         #define mkstemp.
42377         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42378         Include "mkstemp.h".
42379         Make the _LIBC code resemble glibc original more,
42380         e.g., use K&R style.
42381         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42382         (mkstemp): Remove, since mkstemp.h does this for us.
42383         * lib/stdlib--.h: Include mkstemp.h.
42384
42385         Import this patch from libc:
42386
42387         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42388
42389         * lib/tempname.c (__gen_tempname): Change attempts_min
42390         into a macro.  Use preprocessor to decide how to initialize
42391         attempts [Coverity CID 67].
42392
42393 2006-09-20  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/mkdtemp.c: Import from libc.
42396         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42397                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42398                 attempts_min into a macro.  Use preprocessor to decide how to
42399                 initialize attempts [Coverity CID 67].
42400         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42401                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42402                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42403
42404 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42405
42406         * gnulib-tool (func_exit): New function, to allow to pass the
42407         exit status portably through the trap.  Use everywhere.
42408         (--help, --version): Signal a write error.
42409         (trap): catch SIGPIPE, for write errors.
42410         Exit at the end of the trap, with the correct exit status.
42411
42412 2006-09-19  Karl Berry  <karl@gnu.org>
42413
42414         * doc/gnulib.texi: note about the license texinfo files.
42415
42416 2006-09-19  Eric Blake  <ebb9@byu.net>
42417
42418         * gnulib-tool: Avoid space-tab.
42419
42420 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42421
42422         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42423         that prevented coreutils 6.1 from building.  Problem reported
42424         by Petter Reinholdtsen.
42425
42426 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42427
42428         * gnulib-tool (avoidlist): Fix typo that broke options like
42429         --avoid=lock that are used by coreutils bootstrap.
42430
42431 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42432
42433         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42434         more systematically.
42435
42436 2006-09-18  Jim Meyering  <jim@meyering.net>
42437
42438         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42439
42440 2006-09-18  Bruno Haible  <bruno@clisp.org>
42441
42442         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42443
42444 2006-09-18  Bruno Haible  <bruno@clisp.org>
42445
42446         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42447         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42448         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42449         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42450         * m4/gettext.m4: Require autoconf >= 2.52.
42451         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42452         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42453         of gl_cv_header_inttypes_h.
42454
42455 2006-09-18  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/javaversion.c: Include configmake.h.
42458
42459 2006-09-18  Bruno Haible  <bruno@clisp.org>
42460
42461         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42462         avoid that the while loops be executed in a subshell.
42463
42464 2006-09-18  Bruno Haible  <bruno@clisp.org>
42465
42466         * MODULES.html.sh (func_module): Break long lines.
42467         Suggested by Bruce Korb <bkorb@gnu.org>.
42468
42469 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42470
42471         Speed up by a factor of 1.12.
42472         * gnulib-tool (nl): New variable.
42473         (func_import): Rewrite include directive extraction to only read each
42474         directive once.
42475
42476 2006-09-17  Bruno Haible  <bruno@clisp.org>
42477
42478         * modules/javaversion (Makefile.am): Remove DEFS setting.
42479         (Depends-on): Add configmake, for PKGDATADIR definition.
42480
42481 2006-09-17  Bruno Haible  <bruno@clisp.org>
42482
42483         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42484
42485 2006-09-17  Bruno Haible  <bruno@clisp.org>
42486
42487         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42488         (func_modules_transitive_closure, func_modules_add_dummy,
42489         func_modules_to_filelist, func_import, func_create_testdir,
42490         func_create_megatestdir, ...): Use it wherever possible.
42491         Suggested by Ralf Wildenhues.
42492
42493 2006-09-16  Karl Berry  <karl@gnu.org>
42494
42495         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42496         to avoid sectioning errors.
42497         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42498         [ifinfo]: blank line after @center-ed titles.
42499         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42500         Spell FSF address consistently with others.
42501         (These changes approved by rms.)
42502
42503 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42504
42505         Speed up by a factor of 1.61.
42506         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42507         already checked module names again.
42508
42509 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42510
42511         Speed up by a factor of 1.13.
42512         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42513         for new_files, and the input to func_add_or_update.
42514
42515 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42516
42517         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42518         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42519
42520 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42521
42522         * modules/mkancesdirs (Depends-on): Add fcntl.
42523         * modules/savewd: New file.
42524         * MODULES.html.sh (File system functions): Add savewd.
42525
42526         * modules/configmake (Makefile.am): Add support for the
42527         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42528
42529 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42530
42531         * m4/savewd.m4: New file.
42532
42533 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42534
42535         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42536         (dirchownmod): New arg FD.  All callers changed.
42537         Use FD rather than opening the directory ourself, as opening is
42538         now the caller's responsibility.
42539         * lib/dirchownmod.h: Likewise.
42540         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42541         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42542         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42543         (test_dir): Remove.
42544         (mkancesdirs): Return length of prefix of FILE that has already
42545         been made, or -2 if there is a child doing the work.  Redo
42546         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42547         ".", and treat ".." specially since it might stray back into
42548         already-created areas.  Use a subprocess if necessary.  New arg
42549         WD; all users changed.  MAKE_DIR function should now return 1
42550         if it creates a directory that is not readable.  Return -2 if
42551         a child process is spun off.
42552         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42553         Adjust signature to match code.
42554         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42555         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42556         all users changed.
42557         * lib/savewd.c, lib/savewd.h: New files.
42558
42559 2006-09-15  Jim Meyering  <jim@meyering.net>
42560
42561         * modules/rename-dest-slash: New module.
42562         * MODULES.html.sh (posix_compat): Add it here.
42563
42564         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42565
42566 2006-09-15  Jim Meyering  <jim@meyering.net>
42567
42568         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42569         file.
42570
42571         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42572
42573 2006-09-15  Jim Meyering  <jim@meyering.net>
42574
42575         * lib/rename-dest-slash.c (has_trailing_slash): Use
42576         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42577         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42578         test before testing whether SRC is a directory.
42579         Suggestions from Bruno Haible.
42580
42581         Avoid a warning about an unused variable.
42582         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42583         into the #ifdef block where it's used.
42584
42585         * lib/rename-dest-slash.c: New file.
42586
42587 2006-09-14  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/allocsa.c: Include <config.h> unconditionally.
42590         * lib/asnprintf.c: Likewise.
42591         * lib/asprintf.c: Likewise.
42592         * lib/c-strcasecmp.c: Likewise.
42593         * lib/c-strcasestr.c: Likewise.
42594         * lib/c-strncasecmp.c: Likewise.
42595         * lib/c-strstr.c: Likewise.
42596         * lib/classpath.c: Likewise.
42597         * lib/clean-temp.c: Likewise.
42598         * lib/concatpath.c: Likewise.
42599         * lib/copy-file.c: Likewise.
42600         * lib/csharpcomp.c: Likewise.
42601         * lib/csharpexec.c: Likewise.
42602         * lib/execute.c: Likewise.
42603         * lib/fatal-signal.c: Likewise.
42604         * lib/findprog.c: Likewise.
42605         * lib/fwriteerror.c: Likewise.
42606         * lib/gl_array_list.c: Likewise.
42607         * lib/gl_array_oset.c: Likewise.
42608         * lib/gl_avltree_list.c: Likewise.
42609         * lib/gl_avltree_oset.c: Likewise.
42610         * lib/gl_avltreehash_list.c: Likewise.
42611         * lib/gl_carray_list.c: Likewise.
42612         * lib/gl_linked_list.c: Likewise.
42613         * lib/gl_linkedhash_list.c: Likewise.
42614         * lib/gl_list.c: Likewise.
42615         * lib/gl_oset.c: Likewise.
42616         * lib/gl_rbtree_list.c: Likewise.
42617         * lib/gl_rbtree_oset.c: Likewise.
42618         * lib/gl_rbtreehash_list.c: Likewise.
42619         * lib/imaxabs.c: Likewise.
42620         * lib/imaxdiv.c: Likewise.
42621         * lib/javacomp.c: Likewise.
42622         * lib/javaexec.c: Likewise.
42623         * lib/javaversion.c: Likewise.
42624         * lib/linebreak.c: Likewise.
42625         * lib/localcharset.c: Likewise.
42626         * lib/lock.c: Likewise.
42627         * lib/mbchar.c: Likewise.
42628         * lib/mbswidth.c: Likewise.
42629         * lib/mkdtemp.c: Likewise.
42630         * lib/pipe.c: Likewise.
42631         * lib/printf-args.c: Likewise.
42632         * lib/printf-parse.c: Likewise.
42633         * lib/progname.c: Likewise.
42634         * lib/progreloc.c: Likewise.
42635         * lib/readlink.c: Likewise.
42636         * lib/sh-quote.c: Likewise.
42637         * lib/stpcpy.c: Likewise.
42638         * lib/stpncpy.c: Likewise.
42639         * lib/strcasecmp.c: Likewise.
42640         * lib/strcasestr.c: Likewise.
42641         * lib/strcspn.c: Likewise.
42642         * lib/striconv.c: Likewise.
42643         * lib/strncasecmp.c: Likewise.
42644         * lib/strnlen1.c: Likewise.
42645         * lib/strstr.c: Likewise.
42646         * lib/strtok_r.c: Likewise.
42647         * lib/tls.c: Likewise.
42648         * lib/tmpdir.c: Likewise.
42649         * lib/unicodeio.c: Likewise.
42650         * lib/unsetenv.c: Likewise.
42651         * lib/vasnprintf.c: Likewise.
42652         * lib/vasprintf.c: Likewise.
42653         * lib/wait-process.c: Likewise.
42654         * lib/xallocsa.c: Likewise.
42655         * lib/xsetenv.c: Likewise.
42656         * lib/xstriconv.c: Likewise.
42657
42658 2006-09-13  Simon Josefsson  <jas@extundo.com>
42659
42660         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42661         that internally, suggested by Ralf Wildenhues
42662         <Ralf.Wildenhues@gmx.de>.
42663
42664 2006-09-13  Simon Josefsson  <jas@extundo.com>
42665
42666         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42667         @LIBOBJS@.
42668         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42669
42670 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42671
42672         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42673         longer worry about uses that don't define HAVE_CONFIG_H.
42674         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42675         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42676         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42677         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42678         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42679         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42680         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42681         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42682         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42683         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42684         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42685         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42686         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42687         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42688         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42689         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42690         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42691         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42692         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42693         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42694         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42695         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42696         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42697         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42698         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42699         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42700         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42701         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42702         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42703         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42704         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42705         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42706         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42707         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42708         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42709         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42710         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42711         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42712         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42713         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42714         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42715         Likewise.
42716
42717 2006-09-13  Eric Blake  <ebb9@byu.net>
42718
42719         * lib/getopt.c: Fix typo in last commit.
42720
42721 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42722
42723         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42724         dgettext.
42725
42726 2006-09-12  Jim Meyering  <jim@meyering.net>
42727
42728         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42729         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42730         Reported by Nelson H. F. Beebe.
42731
42732 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42733
42734         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42735         program_invocation_name and program_invocation_short_name are
42736         initialized.
42737         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42738         and program_invocation_short_name to argp.h, so they are visible
42739         to user programs.
42740         * lib/argp.h: Likewise
42741
42742 2006-09-10  Bruno Haible  <bruno@clisp.org>
42743
42744         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42745         m4/inttypes_h.m4, m4/uintmax_t.m4.
42746
42747 2006-09-10  Bruno Haible  <bruno@clisp.org>
42748
42749         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42750         gl_AC_TYPE_UINTMAX_T.
42751
42752 2006-09-10  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42755
42756 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42757
42758         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42759         convention.  Text proposed by Bruno Haible.
42760         (struct argp_option): Document the use of N_() wrappers.
42761
42762         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42763         '\v', and translate the two parts separately, instead of feeding
42764         the whole string to gettext.  This allows to exclude
42765         '\v' from the strings visible to the translator by writing doc
42766         strings as N_("..") "\v" N_("..").
42767
42768 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42769
42770         * config/srclist.txt: Undo latest change; the bug was fixed.
42771
42772 2006-09-09  Bruno Haible  <bruno@clisp.org>
42773
42774         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42775         assignments if building a library without libtool.
42776         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42777         in func_emit_lib_Makefile_am.
42778         (func_import): When building a static library libfoo.a, arrange to
42779         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42780         (func_create_testdir): Likewise.
42781         * modules/gc (configure.ac, Makefile.am): If building statically,
42782         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42783         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42784         * modules/striconv (configure.ac, Makefile.am): Likewise.
42785         Based on a suggestion by Ralf Wildenhues.
42786
42787 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42788
42789         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42790         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42791         Also:
42792
42793         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42794         Add year_2050_test to catch glibc bug 2821
42795         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42796
42797         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42798         Prefer #ifdef to #if.
42799
42800         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42801         Return from 'main' instead of calling 'exit'.
42802
42803 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42804
42805         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42806         returned the maximum time_t value rather than (time_t) -1.
42807         Problem originally reported by William Bardwell
42808         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42809
42810         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42811         Moved to here ...
42812         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42813         ... from here.
42814
42815 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42816
42817         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42818         2821 is fixed.
42819
42820 2006-09-08  Jim Meyering  <jim@meyering.net>
42821
42822         Don't make generated files read-only.  That would bother too many
42823         people.  However, do retain the ability to work when targets are
42824         read-only: remove the destination and temporary files before writing
42825         them (when generated via sed or echo), or by using the -f option for
42826         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42827         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42828         * modules/byteswap, modules/configmake, modules/fcntl:
42829         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42830         * modules/localcharset, modules/netinet_in, modules/poll:
42831         * modules/stdbool, modules/stdint, modules/sys_select:
42832         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42833
42834 2006-09-08  Jim Meyering  <jim@meyering.net>
42835
42836         Avoid new build failure on FreeBSD 6.0.
42837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42838         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42839         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42840
42841 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42842
42843         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42844
42845 2006-09-07  Jim Meyering  <jim@meyering.net>
42846
42847         Fix global typo in last change: use chmod u-w, not chmod u-x.
42848         Spotted by Paul Eggert and Bruce Korb.
42849         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42850         * modules/byteswap, modules/configmake, modules/fcntl:
42851         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42852         * modules/localcharset, modules/netinet_in, modules/poll:
42853         * modules/stdbool, modules/stdint, modules/sys_select:
42854         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42855
42856 2006-09-06  Jim Meyering  <jim@meyering.net>
42857
42858         Make generated files be read-only.
42859         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42860         Ensure that each generated file is now read-only.
42861         * modules/argz: Likewise.
42862         * modules/arpa_inet: Likewise.
42863         * modules/byteswap: Likewise.
42864         * modules/configmake: Likewise.
42865         * modules/fcntl: Likewise.
42866         * modules/fnmatch: Likewise.
42867         * modules/getopt: Likewise.
42868         * modules/glob: Likewise.
42869         * modules/inttypes: Likewise.
42870         * modules/netinet_in: Likewise.
42871         * modules/poll: Likewise.
42872         * modules/stdbool: Likewise.
42873         * modules/stdint: Likewise.
42874         * modules/sys_select: Likewise.
42875         * modules/sys_socket: Likewise.
42876         * modules/sys_stat: Likewise.
42877         * modules/sysexits: Likewise.
42878         * modules/localcharset: Same as above, but continue using temporary
42879         file named "t-$@" (why different?) rather than the "$@-t" used
42880         everywhere else.
42881
42882         * modules/sysexits (Makefile.am): Replace literal occurrences
42883         of "sysexit.h" more readable, and more consistent, "$@".
42884
42885 2006-09-06  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/striconv: New file.
42888         * modules/xstriconv: New file.
42889         * MODULES.html.sh (Internationalization functions): Add striconv,
42890         xstriconv.
42891
42892 2006-09-06  Bruno Haible  <bruno@clisp.org>
42893
42894         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42895         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42896         not using libtool correctly.
42897
42898 2006-09-06  Bruno Haible  <bruno@clisp.org>
42899
42900         * lib/striconv.h: New file.
42901         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42902         iconvstring.c.
42903         * lib/xstriconv.h: New file.
42904         * lib/xstriconv.c: New file.
42905
42906 2006-09-06  Bruno Haible  <bruno@clisp.org>
42907
42908         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42909         lib_..._LDFLAGS.
42910
42911 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42912
42913         * lib/argz_.h: Sync from Libtool.
42914
42915         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42916                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42917
42918         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42919
42920 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42921
42922         * modules/trim: New file.
42923
42924 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42925
42926         * lib/trim.h: New file.
42927         * lib/trim.c: New file.
42928
42929 2006-09-05  Bruno Haible  <bruno@clisp.org>
42930
42931         * MODULES.html.sh (String handling): Add trim.
42932
42933 2006-09-04  Karl Berry  <karl@gnu.org>
42934
42935         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42936         until next release.
42937
42938 2006-09-03  Bruno Haible  <bruno@clisp.org>
42939
42940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42941         correctly.
42942
42943 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42944
42945         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42946         not gl_GETLOADAVG.  Omit unneeded semicolons.
42947         Problems reported by Ralf Wildenhues in
42948         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42949         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42950         at the end, which is the usual gnulib style.
42951
42952         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42953         of doing all the work ourselves.
42954         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42955         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42956
42957 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42958
42959         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42960         Problem reported by Ralf Wildenhues in
42961         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42962
42963         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42964         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42965
42966 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42967
42968         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42969         yesterday's patch by changing test -n to test -z.
42970
42971 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42972
42973         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42974         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42975         the former is now obsolescent.
42976
42977         * modules/chdir-long (Depends-on): Add fcntl.
42978
42979 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42980
42981         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42982         obsolescent, and programs should use gnulib instead.
42983         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42984         but with prefixes changed.
42985
42986 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42987
42988         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42989         or stdbool.h, because they might not exist while configuring.
42990
42991         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42992         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42993         does that for us.
42994         (O_DIRECTORY): Remove.
42995
42996 2006-08-31  Eric Blake  <ebb9@byu.net>
42997
42998         * gnulib-tool: Don't let emacs change spaces to TAB.
42999
43000 2006-08-31  Bruno Haible  <bruno@clisp.org>
43001
43002         * gnulib-tool: When calling func_import more than once, do it in a
43003         subshell.
43004         Reported by Eric Blake <ebb9@byu.net>.
43005
43006 2006-08-31  Bruno Haible  <bruno@clisp.org>
43007
43008         * gnulib-tool (nl): Remove variable.
43009         (sed_transform_lib_file): Use more robust test for config-h module.
43010         (func_import): Fix typo in 2006-08-25 patch.
43011
43012 2006-08-31  Bruno Haible  <bruno@clisp.org>
43013
43014         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43015         specified, augment Makefile.am variables instead of assigning them.
43016
43017 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43018
43019         Work around a bug in both the Linux and SunOS 64-bit kernels:
43020         nanosleep mishandles sleeps for longer than 2**31 seconds.
43021         Problem reported by Frank v Waveren in
43022         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43024         Check for nanosleep bug.
43025         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43026
43027 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43028
43029         Work around a bug in both the Linux and SunOS 64-bit kernels:
43030         nanosleep mishandles sleeps for longer than 2**31 seconds.
43031         Problem reported by Frank v Waveren in
43032         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43033         * lib/nanosleep.c (BILLION): New constant.
43034         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43035         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43036         implementation.
43037
43038 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43039
43040         * modules/nanosleep (Depends-on): Add gettime.
43041
43042 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43043         and Simon Josefsson  <jas@extundo.com>
43044         and Oskar Liljeblad  <oskar@osk.mine.nu>
43045
43046         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43047         * gnulib-tool (func_import): New license type 'unmodifiable license
43048         text'.
43049         * modules/fdl: Use it.  Longer description.
43050         * module/gpl, module/lgpl: New files.
43051
43052 2006-08-30  Jim Meyering  <jim@meyering.net>
43053
43054         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43055         shadowing the parameter.
43056
43057 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43058
43059         Sync from Libtool:
43060
43061         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43062
43063         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43064         sharing with gnulib.  Report by Eric Blake.
43065
43066 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43067
43068         * modules/isapipe: New file.
43069         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43070
43071 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43072
43073         * modules/configmake (Makefile.am): Add a comment, and omit
43074         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43075         by Bruno Haible.
43076
43077 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43078
43079         * m4/isapipe.m4: New file.
43080
43081 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43082
43083         * lib/isapipe.c, lib/isapipe.h: New files.
43084
43085 2006-08-29  Jim Meyering  <jim@meyering.net>
43086
43087         * modules/configmake (Makefile.am): Make configmake.h depend on
43088         Makefile.  Otherwise, a stale configmake.h could hang around.
43089
43090 2006-08-29  Eric Blake  <ebb9@byu.net>
43091
43092         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43093         resolution of upstream bug 3044.
43094
43095 2006-08-29  Bruno Haible  <bruno@clisp.org>
43096
43097         * modules/localcharset (Depends-on): Add configmake.
43098         (Makefile.am): Remove setting of LIBDIR through DEFS.
43099
43100 2006-08-29  Bruno Haible  <bruno@clisp.org>
43101
43102         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43103         defined.
43104
43105 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43106
43107         * modules/fcntl: New file.
43108         * modules/chdir-safer (Depends-on): Add fcntl.
43109         * modules/fts: Likewise.
43110         * modules/mkdir-p: Likewise.
43111
43112         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43113         This undoes the most recent change, since we're now addressing the
43114         problem in a different way.
43115
43116         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43117         into output, since the output might be called Makefile.am even
43118         if $makefile_name is something different.
43119         (func_import): Use $makefile_am rather than
43120         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43121         empty.
43122
43123         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43124
43125 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43126
43127         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43128         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43129         recent change to stdint.m4, since we're now addressing the problem in a
43130         different way.
43131
43132 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43133
43134         * m4/fcntl_h.m4: New file.
43135
43136 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43137
43138         * lib/fcntl_.h: New file.
43139         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43140         the fcntl module.
43141         * lib/dirchownmod.c: Likewise.
43142         * lib/fts.c: Likewise.
43143
43144         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43145         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43146         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43147         just before including <inttypes.h>, to avoid circular inclusion.
43148
43149 2006-08-28  Jim Meyering  <jim@meyering.net>
43150
43151         * doc/visibility.texi: Actually read and correct the grammar of the
43152         sentence affected by yesterday's change.
43153
43154 2006-08-28  Eric Blake  <ebb9@byu.net>
43155
43156         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43157         needs wrapper.
43158
43159 2006-08-28  Eric Blake  <ebb9@byu.net>
43160
43161         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43162
43163 2006-08-28  Eric Blake  <ebb9@byu.net>
43164
43165         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43166
43167 2006-08-28  Bruno Haible  <bruno@clisp.org>
43168
43169         * modules/c-strstr: New file, from GNU gettext.
43170         * MODULES.html.sh (String handling): Add c-strstr.
43171
43172 2006-08-28  Bruno Haible  <bruno@clisp.org>
43173
43174         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43175         macros.
43176         Reported by Eric Blake.
43177
43178 2006-08-28  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43181         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43182         * lib/vasprintf.c: Include errno.h, limits.h.
43183         (EOVERFLOW): New fallback definition.
43184         (vasprintf): Test here whether the string length is > INT_MAX.
43185         * lib/vsnprintf.c: Include errno.h, limits.h.
43186         (EOVERFLOW): New fallback definition.
43187         (vsnprintf): Fix bug when generated string was too long for the buffer.
43188         Test here whether the string length is > INT_MAX.
43189
43190 2006-08-28  Bruno Haible  <bruno@clisp.org>
43191
43192         * lib/inttypes_.h (SCNX*): Remove definitions.
43193         Reported by Eric Blake.
43194
43195 2006-08-28  Bruno Haible  <bruno@clisp.org>
43196
43197         * lib/c-strstr.h: New file, from GNU gettext.
43198         * lib/c-strstr.c: New file, from GNU gettext.
43199
43200 2006-08-28  Bruno Haible  <bruno@clisp.org>
43201
43202         * gnulib-tool: Reorder some statements.
43203
43204 2006-08-28  Bruno Haible  <bruno@clisp.org>
43205
43206         * gnulib-tool: New option --makefile-name.
43207         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43208         $makefile_name.
43209         (func_import): Write $makefile_name to the cache file, and read it from
43210         there unless explicitly specified. Use $makefile_name as file name
43211         instead of Makefile.am. Adjust the recommendations accordingly.
43212
43213 2006-08-28  Bruno Haible  <bruno@clisp.org>
43214
43215         * gnulib-tool (func_verify_module): Check against misapplying patch.
43216
43217 2006-08-28  Bruno Haible  <bruno@clisp.org>
43218
43219         * gnulib-tool (func_relativize, func_relconcat): New functions.
43220         Give an error if --local-dir is given with --update.
43221         Remove trailing slashes from $local_gnulib_dir.
43222         (func_import): Store the relativized $local_gnulib_dir in
43223         gnulib-cache.m4, and read it from there if not specified explicitly.
43224
43225 2006-08-28  Bruno Haible  <bruno@clisp.org>
43226
43227         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43228         is the current directory. Respect also $local_gnulib_dir.
43229
43230 2006-08-28  Bruno Haible  <bruno@clisp.org>
43231             Simon Josefsson  <jas@extundo.com>
43232
43233         BeOS portability.
43234         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43235
43236 2006-08-27  Jim Meyering  <jim@meyering.net>
43237
43238         * doc/visibility.texi: Remove duplicate word: "pointer".
43239
43240 2006-08-26  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43243         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43244         (Makefile.am): Create inttypes.h from inttypes_.h.
43245         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43246
43247         * modules/imaxabs: New file.
43248
43249         * modules/imaxdiv: New file.
43250
43251 2006-08-26  Bruno Haible  <bruno@clisp.org>
43252
43253         * m4/inttypes.m4: New file.
43254         * m4/_inttypes_h.m4: Remove file.
43255         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43256         PRI_MACROS_BROKEN.
43257         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43258
43259         * m4/imaxabs.m4: New file.
43260
43261         * m4/imaxdiv.m4: New file.
43262
43263 2006-08-26  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/inttypes_.h: New file.
43266         * lib/inttypes.h: Remove file.
43267         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43268
43269         * lib/imaxabs.c: New file.
43270
43271         * lib/imaxdiv.c: New file.
43272
43273 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43274
43275         New config-h module, so that "make" output needn't be cluttered
43276         by -DHAVE_CONFIG_H.
43277         * MODULES.html.sh (Support for building libraries and executables):
43278         Add config-h.
43279         * modules/config-h: New file.
43280         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43281         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43282         the config-h module is used.
43283
43284         New configmake module, so that "make" output needn't be cluttered
43285         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43286         * MODULES.html.sh (Support for building libraries and executables):
43287         Add configmake.
43288         * modules/configmake: New file.
43289
43290 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43291
43292         * m4/config-h.m4: New file.
43293
43294 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43295
43296         * config/srclist.txt: Add elisp-comp.
43297
43298 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43299
43300         * MODULES.html.sh (Support for building libraries and executables):
43301         Add elisp-comp.
43302         * build-aux/elisp-comp: New file.
43303         * modules/elisp-comp: New file.
43304
43305 2006-08-24  Bruno Haible  <bruno@clisp.org>
43306
43307         * gnulib-tool (func_create_testdir): Use non-default values of
43308         sourcebase and m4base.
43309
43310 2006-08-24  Bruno Haible  <bruno@clisp.org>
43311
43312         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43313         HTML structure.
43314
43315 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43316
43317         * modules/openat (Depends-on): Add lchown.
43318
43319 2006-08-23  Bruno Haible  <bruno@clisp.org>
43320
43321         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43322         of gl_LOCK_EARLY instead of gl_LOCK.
43323
43324 2006-08-23  Bruno Haible  <bruno@clisp.org>
43325
43326         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43327         on OSF/1 to no.
43328         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43329
43330 2006-08-23  Bruno Haible  <bruno@clisp.org>
43331
43332         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43333         as unusable.
43334
43335         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43336         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43337         (gl_LOCK): New macro.
43338
43339 2006-08-22  Simon Josefsson  <jas@extundo.com>
43340
43341         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43342         to md5 module.
43343
43344 2006-08-22  Simon Josefsson  <jas@extundo.com>
43345
43346         * MODULES.html.sh: Add "Support for maintaining and release
43347         projects".
43348
43349         * build-aux/gnupload: New file, from coreutils.
43350
43351 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43352
43353         Avoid the need for AC_LIBSOURCES in m4 macros.
43354         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43355         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43356         * modules/check-version (EXTRA_DIST): Add check-version.h.
43357         * modules/crc (EXTRA_DIST): Add crc.h.
43358         * modules/des (EXTRA_DIST): Add des.h.
43359         * modules/gc (EXTRA_DIST): Add gc.h.
43360         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43361         * modules/getline (EXTRA_DIST): Add getline.h.
43362         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43363         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43364         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43365         * modules/md2 (EXTRA_DIST): Add md2.h.
43366         * modules/md4 (EXTRA_DIST): Add md4.h.
43367         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43368         * modules/read-file (EXTRA_DIST): Add read-file.h.
43369         * modules/readline (EXTRA_DIST): Add readline.h.
43370         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43371         rijndael-api-fst.h.
43372
43373 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43374
43375         * m4/rijndael.m4 (gl_ARCFOUR):
43376         * m4/arctwo.m4 (gl_ARCTWO):
43377         * m4/check-version.m4 (gl_CHECK_VERSION):
43378         * m4/crc.m4 (gl_CRC):
43379         * m4/des.m4 (gl_DES):
43380         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43381         * m4/gc.m4 (gl_GC):
43382         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43383         * m4/getline.m4 (gl_FUNC_GETLINE):
43384         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43385         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43386         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43387         * m4/md2.m4 (gl_MD2):
43388         * m4/md4.m4 (gl_MD4):
43389         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43390         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43391         * m4/readline.m4 (gl_FUNC_READLINE):
43392         * m4/rijndael.m4 (gl_RIJNDAEL):
43393         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43394         to get the necessary .h files and whatnot.
43395
43396 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43397
43398         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43399         gnulib rather than the other way around.
43400         * config/srclistvars.sh (COREUTILS): Remove.
43401
43402 2006-08-22  Jim Meyering  <jim@meyering.net>
43403
43404         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43405
43406         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43407
43408 2006-08-22  Eric Blake  <ebb9@byu.net>
43409
43410         * modules/regexprops-generic: New file.
43411         * MODULES.html.sh (Support for building documentation): List it.
43412
43413 2006-08-22  Eric Blake  <ebb9@byu.net>
43414
43415         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43416         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43417         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43418         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43419
43420 2006-08-22  Bruno Haible  <bruno@clisp.org>
43421
43422         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43423         and lib_LTLIBRARIES like the other lib_* variables.
43424
43425 2006-08-22  Bruno Haible  <bruno@clisp.org>
43426
43427         * build-aux/x-to-1.in: New file, from GNU gettext.
43428
43429 2006-08-22  Bruno Haible  <bruno@clisp.org>
43430
43431         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43432         <utmpx.h> exists.
43433
43434 2006-08-22  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43437         <utmpx.h> exists.
43438
43439 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43440
43441         BeOS portability.
43442         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43443         exist.
43444         Problem reported by Bruno Haible.
43445
43446 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43447
43448         Avoid the need for AC_LIBSOURCES in m4 macros.
43449         * modules/acl (EXTRA_DIST): Add acl.h.
43450         * modules/argmatch (Files): Add m4/argmatch.m4.
43451         (configure.ac): Add gl_ARGMATCH.
43452         (EXTRA_DIST): Renamed from lib_SOURCES, for
43453         consistency with the other modules.  Remove argmatch.c.
43454         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43455         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43456         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43457         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43458         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43459         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43460         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43461         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43462         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43463         * modules/closeout (EXTRA_DIST): Add closeout.h.
43464         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43465         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43466         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43467         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43468         dirname.h; remove basename.c and stripslash.c.
43469         * modules/exclude (EXTRA_DIST): Add exclude.h.
43470         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43471         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43472         * modules/file-type (EXTRA_DIST): Add file-type.h.
43473         * modules/filemode (EXTRA_DIST): Add filemode.h.
43474         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43475         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43476         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43477         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43478         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43479         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43480         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43481         * modules/getdate (EXTRA_DIST): Add getdate.c.
43482         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43483         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43484         * modules/getpass (EXTRA_DIST): Add getpass.h.
43485         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43486         * modules/group-member (EXTRA_DIST): Add group-member.h.
43487         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43488         * modules/hash (EXTRA_DIST): Add hash.h.
43489         * modules/human (EXTRA_DIST): Add human.h.
43490         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43491         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43492         * modules/lchown (EXTRA_DIST): Add lchown.h.
43493         * modules/long-options (EXTRA_DIST): Add long-options.h.
43494         * modules/lstat (EXTRA_DIST): Add lstat.h.
43495         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43496         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43497         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43498         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43499         * modules/memxor (EXTRA_DIST): Add memxor.h.
43500         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43501         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43502         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43503         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43504         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43505         * modules/physmem (EXTRA_DIST): Add physmem.h.
43506         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43507         * modules/posixver (EXTRA_DIST): Add posixver.h.
43508         * modules/quote (EXTRA_DIST): Add quote.h.
43509         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43510         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43511         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43512         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43513         regex_internal.h regexec.c.
43514         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43515         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43516         * modules/same (EXTRA_DIST): Add same.h.
43517         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43518         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43519         * modules/savedir (EXTRA_DIST): Add savedir.h.
43520         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43521         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43522         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43523         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43524         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43525         * modules/strdup (EXTRA_DIST): Add strdup.h.
43526         * modules/strftime (EXTRA_DIST): Add strftime.h.
43527         * modules/strndup (EXTRA_DIST): Add strndup.h.
43528         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43529         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43530         * modules/time_r (EXTRA_DIST): Add time_r.h.
43531         * modules/timespec (EXTRA_DIST): Add timespec.h.
43532         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43533         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43534         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43535         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43536         * modules/userspec (EXTRA_DIST): Add userspec.h.
43537         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43538         * modules/utimens (EXTRA_DIST): Add utimens.h.
43539         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43540         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43541         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43542         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43543         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43544         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43545         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43546         * modules/yesno (EXTRA_DIST): Add yesno.h.
43547
43548 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43549
43550         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43551
43552         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43553         * m4/dev-ino.m4, same-inode.m4: Remove.
43554
43555         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43556         * m4/acl.m4 (AC_FUNC_ACL):
43557         * m4/backupfile.m4 (gl_BACKUPFILE):
43558         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43559         * m4/canon-host.m4 (gl_CANON_HOST):
43560         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43562         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43563         * m4/cloexec.m4 (gl_CLOEXEC):
43564         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43565         * m4/closeout.m4 (gl_CLOSEOUT):
43566         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43567         * m4/dirname.m4 (gl_DIRNAME):
43568         * m4/exclude.m4 (gl_EXCLUDE):
43569         * m4/exitfail.m4 (gl_EXITFAIL):
43570         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43571         * m4/file-type.m4 (gl_FILE_TYPE):
43572         * m4/filemode.m4 (gl_FILEMODE):
43573         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43574         * m4/fpending.m4 (gl_FUNC_FPENDING):
43575         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43576         * m4/fts.m4 (gl_FUNC_FTS):
43577         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43578         * m4/getdate.m4 (gl_GETDATE):
43579         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43580         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43581         * m4/getpass.m4 (gl_FUNC_GETPASS):
43582         * m4/gettime.m4 (gl_GETTIME):
43583         * m4/getugroups.m4 (gl_GETUGROUPS):
43584         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43585         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43586         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43587         * m4/hash.m4 (gl_HASH):
43588         * m4/idcache.m4 (gl_IDCACHE):
43589         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43590         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43591         * m4/long-options.m4 (gl_LONG_OPTIONS):
43592         * m4/lstat.m4 (gl_FUNC_LSTAT):
43593         * m4/md5.m4 (gl_MD5):
43594         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43595         * m4/memcoll.m4 (gl_MEMCOLL):
43596         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43597         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43598         * m4/memxor.m4 (gl_MEMXOR):
43599         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43600         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43601         * m4/modechange.m4 (gl_MODECHANGE):
43602         * m4/mountlist.m4 (gl_MOUNTLIST):
43603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43604         * m4/openat.m4 (gl_FUNC_OPENAT):
43605         * m4/pathmax.m4 (gl_PATHMAX):
43606         * m4/physmem.m4 (gl_PHYSMEM):
43607         * m4/posixtm.m4 (gl_POSIXTM):
43608         * m4/posixver.m4 (gl_POSIXVER):
43609         * m4/quote.m4 (gl_QUOTE):
43610         * m4/quotearg.m4 (gl_QUOTEARG):
43611         * m4/readtokens.m4 (gl_READTOKENS):
43612         * m4/readutmp.m4 (gl_READUTMP):
43613         * m4/regex.m4 (gl_REGEX):
43614         * m4/safe-read.m4 (gl_SAFE_READ):
43615         * m4/safe-write.m4 (gl_SAFE_WRITE):
43616         * m4/same.m4 (gl_SAME):
43617         * m4/save-cwd.m4 (gl_SAVE_CWD):
43618         * m4/savedir.m4 (gl_SAVEDIR):
43619         * m4/settime.m4 (gl_SETTIME):
43620         * m4/sha1.m4 (gl_SHA1):
43621         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43622         * m4/stat-macros.m4 (gl_STAT_MACROS):
43623         * m4/stat-time.m4 (gl_STAT_TIME):
43624         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43625         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43626         * m4/strdup.m4 (gl_FUNC_STRDUP):
43627         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43628         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43629         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43630         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43631         * m4/time_r.m4 (gl_TIME_R):
43632         * m4/timespec.m4 (gl_TIMESPEC):
43633         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43634         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43635         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43636         * m4/userspec.m4 (gl_USERSPEC):
43637         * m4/utimecmp.m4 (gl_UTIMECMP):
43638         * m4/utimens.m4 (gl_UTIMENS):
43639         * m4/xalloc.m4 (gl_XALLOC):
43640         * m4/xgetcwd.m4 (gl_XGETCWD):
43641         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43642         * m4/xreadlink.m4 (gl_XREADLINK):
43643         * m4/xstrtod.m4 (gl_XSTRTOD):
43644         * m4/yesno.m4 (gl_YESNO):
43645         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43646         to get the necessary .h files and whatnot.
43647
43648 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43649             Bruno Haible  <bruno@clisp.org>
43650
43651         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43652         /bin/sh understanding of '!' conditional negation.
43653
43654 2006-08-21  Jim Meyering  <jim@meyering.net>
43655
43656         * modules/openat (Depends-on): Really alphabetize.
43657
43658         * modules/acl (Depends-on): Add error and quote.
43659
43660         * check-module (find_included_lib_files): Add at-func.c to the
43661         ok-to-include-more-than-once white list.
43662
43663         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43664
43665 2006-08-21  Bruno Haible  <bruno@clisp.org>
43666
43667         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43668         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43669         Reported by Martin Lambers <marlam@marlam.de>.
43670
43671 2006-08-21  Bruno Haible  <bruno@clisp.org>
43672
43673         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43674         specify an installation location, don't emit a noinst_LIBRARIES or
43675         noinst_LTLIBRARIES assignment.
43676
43677 2006-08-21  Bruno Haible  <bruno@clisp.org>
43678
43679         BeOS portability.
43680         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43681         BeOS has mbrtowc() but no <wctype.h>.
43682
43683 2006-08-21  Bruno Haible  <bruno@clisp.org>
43684
43685         BeOS portability.
43686         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43687         exist.
43688
43689 2006-08-21  Bruno Haible  <bruno@clisp.org>
43690
43691         BeOS portability.
43692         * lib/mbchar.h: Include <wctype.h> only if it exists.
43693
43694 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43695
43696         Remove files that are no longer needed by their respective modules.
43697         * m4/obstack.m4: Remove.
43698         * m4/strerror_r.m4: Remove.
43699         * m4/uint32_t.m4: Remove.
43700         * m4/uintptr_t.m4: Remove.
43701         * m4/ullong_max.m4: Remove.
43702         * m4/xstrtoimax.m4: Remove.
43703         * m4/xstrtoumax.m4: Remove.
43704
43705         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43706         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43707         dependencies now capture this.
43708
43709         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43710         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43711         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43712         * m4/human.m4 (gl_HUMAN): Likewise.
43713         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43714         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43715
43716         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43717
43718         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43719         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43720         stdint.
43721         * m4/human.m4 (gl_HUMAN): Likewise.
43722         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43723         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43724         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43725         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43726         * m4/xstrtol (gl_XSTRTOL): Likewise.
43727
43728         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43729         AC_TYPE_LONG_LONG_INT.
43730         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43731         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43732         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43733         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43734
43735         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43736         on stdbool.
43737
43738         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43739         (gl_PREREQ_XSTRTOUL): Remove.
43740
43741         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43742
43743         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43744         mode.
43745
43746 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43747
43748         Add and change modules to make it easier for coreutils to use
43749         gnulib-tool.
43750         * modules/backupfile (Files): Remove m4/d-ino.m4.
43751         (Depends-on): Add d-ino.
43752         * modules/cycle-check (Depends-on): Add stdint.
43753         (lib_SOURCES): Add cycle-check.h.
43754         * modules/d-ino: New module.
43755         * modules/d-type: New module.
43756         * modules/error (Files): Remove m4/strerror_r.m4.
43757         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43758         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43759         m4/inttypes_h.m4, m4/uintmax_t.m4.
43760         (Depends-on): Add stdint.
43761         (lib_SOURCES): Add fsusage.h.
43762         * modules/getcwd (Files): Remove d-ino.m4.
43763         (Depends-on): Add d-ino.
43764         * modules/getndelim2 (Depends-on): Add stdint.
43765         * modules/glob (Files): Remove m4/d-type.m4.
43766         (Depends-on): Add d-type.
43767         * modules/host-os: New module.
43768         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43769         m4/inttypes_h.m4, m4/uintmax_t.m4.
43770         * Depends-on: Add stdint.
43771         (lib_SOURCES): Add human.h.
43772         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43773         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43774         m4/uintmax_t.m4, m4/ulonglong.m4.
43775         (Depends-on): Add stdint.
43776         (EXTRA_DIST): Add inttostr.h.
43777         * modules/lchmod: New module.
43778         * modules/link-follow: New module.
43779         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43780         (Depends-on): Add lchmod.
43781         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43782         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43783         (Depends-on): Add stdint.
43784         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43785         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43786         (Depends-on): Add stdint.
43787         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43788         * modules/perl: New module.
43789         * modules/regex (Depends-on): Add stdint.
43790         * modules/rmdir-errno: New module.
43791         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43792         m4/intmax_t.m4.
43793         (Depends-on): Add stdint.
43794         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43795         m4/uintmax_t.m4.
43796         (Depends-on): Add stdint.
43797         * modules/unlink-busy: New module.
43798         * modules/utimecmp (Depends-on): Add stdint.
43799         * modules/uptime: New module.
43800         * modules/winsz-ioctl: New module.
43801         * modules/winsz-termios: New module.
43802         * modules/xnanosleep (Depends-on): Add nanosleep.
43803         * modules/ullong_max: Remove.
43804         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43805         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43806         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43807         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43808         (Depends-on): Add inttypes.
43809         (lib_SOURCES): Add xstrtol.h.
43810         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43811         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43812         * MODULES.html.sh: Move 'assert' into the assert section.
43813         Move 'dummy' into the linking section.
43814         Remove ullong_max.
43815         Add section for compatibility checks for POSIX:2001 functions,
43816         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43817         winsz-ioctl, and winsz-termios into it.
43818         Add lchmod.
43819         Add top-level Misc section and put host-os, perl, and uptime
43820         into it.
43821
43822 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43823
43824         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43825         now assume the stdint module.  Do not include inttypes.h.
43826         * lib/fsusage.h: Likewise.
43827         * lib/getndelim2.c: Likewise.
43828         * lib/human.h: Likewise.
43829         * lib/inttostr.h: Likewise.
43830         * lib/obstack.c: Likewise.
43831         * lib/regex_internal.h: Likewise.
43832         * lib/tempname.c: Likewise.
43833         * lib/utimecmp.c: Likewise.
43834         * lib/xstrtol.h: Likewise.
43835
43836         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43837
43838         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43839         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43840         * lib/xtime.h: Likewise.
43841
43842 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43843
43844         * modules/openat (Files): Add lib/fchmodat.c.
43845         Fixes problem reported by Jay Youngman.
43846
43847 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43848
43849         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43850         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43851
43852 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43853             Bruno Haible  <bruno@clisp.org>
43854
43855         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43856         and is a script that invokes bison. Tighten the code. Add comments.
43857
43858 2006-08-18  Jim Meyering  <jim@meyering.net>
43859
43860         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43861         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43862         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43863         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43864
43865 2006-08-18  Bruno Haible  <bruno@clisp.org>
43866
43867         * modules/bison-i18n: New file.
43868         * MODULES.html.sh (Internationalization functions): Add it.
43869
43870 2006-08-18  Bruno Haible  <bruno@clisp.org>
43871
43872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43873         sys/statvfs.h. When getmntinfo was found, check its declaration and
43874         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43875
43876 2006-08-18  Bruno Haible  <bruno@clisp.org>
43877
43878         * m4/bison-i18n.m4: New file, from bison.
43879
43880 2006-08-18  Bruno Haible  <bruno@clisp.org>
43881
43882         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43883         (ME_DUMMY): Treat "kernfs" as a dummy.
43884         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43885
43886 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43887
43888         Update from coreutils.
43889
43890         2006-08-15  Jim Meyering  <jim@meyering.net>
43891
43892         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43893
43894         2006-01-17  Jim Meyering  <jim@meyering.net>
43895
43896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43897
43898         2006-01-11  Jim Meyering  <jim@meyering.net>
43899
43900         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43901         Check for the lchmod function.
43902
43903 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43904
43905         Update from coreutils.
43906
43907         * lib/__fpending.h: Add copyright notice.
43908         * lib/fprintftime.h: Likewise.
43909         * lib/savedir.c: Use (C) in copyright notice.
43910         * lib/savedir.h: Likewise.
43911
43912         2006-08-15  Jim Meyering  <jim@meyering.net>
43913
43914         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43915         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43916         in support of the EXPECTED_ERRNO macro.
43917         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43918         definitions.  Instead, define the appropriate symbols and include
43919         "at-func.c".
43920         * lib/mkdirat.c (mkdirat): Likewise.
43921         * lib/fchmodat.c (fchmodat): Likewise.
43922         (ENOSYS): Remove definition.
43923         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43924         it.  Don't include "unistd--.h" -- it wasn't ever used.
43925
43926         2006-01-17  Jim Meyering  <jim@meyering.net>
43927
43928         Rewrite fts.c not to change the current working directory,
43929         by using openat, fstatat, fdopendir, etc..
43930
43931         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43932         (HAVE_OPENAT_SUPPORT): Define.
43933         [_LIBC] (fchdir): Don't undef or define; no longer used.
43934         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43935         Now, this `function' always succeeds, and consumes its file descriptor
43936         parameter -- so callers must not close such FDs.  Update callers.
43937         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43938         (diropen): Add parameter, SP.  Adjust all callers.
43939         Implement using diropen_fd, rather than open.
43940         (fts_open): Initialize new member, fts_cwd_fd.
43941         Remove fts_rft-setting code.
43942         (fts_close): Close fts_cwd_fd, if necessary.
43943         (__opendir2): Define in terms of opendir or opendirat,
43944         depending on whether the FST_NOCHDIR flag is set.
43945         (fts_build): Since fts_safe_changedir consumes its FD, and since
43946         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43947         and close the dup'd file descriptor upon failure.
43948         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43949         (fts_safe_changedir): Tweak semantics to reflect that this function
43950         now calls cwd_advance_fd and hence consumes its FD argument.
43951         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43952         [struct FTS] (fts_rft): Remove now-unused member.
43953         [struct FTS] (fts_cycle.state): Improve comment.
43954
43955         * lib/openat.c (openat_needs_fchdir): New function.
43956         * lib/openat.h (openat_needs_fchdir): Declare it.
43957
43958 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43959
43960         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43961         Problem and fix reported by Pádraig Brady in
43962         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43963
43964 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43965
43966         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43967
43968 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43969
43970         * lib/memcoll.c (memcoll): Optimize for the common case where the
43971         arguments are bytewise equal.
43972
43973 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43974
43975         * doc/regexprops-generic.texi: Add a copyright notice.
43976
43977 2006-08-15  Bruno Haible  <bruno@clisp.org>
43978
43979         * modules/tmpdir (License): Change to LGPL.
43980
43981 2006-08-15  Bruno Haible  <bruno@clisp.org>
43982
43983         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43984         module.
43985
43986 2006-08-14  Simon Josefsson  <jas@extundo.com>
43987
43988         * config/srclist.txt: Add gnupload.
43989
43990 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43991
43992         Change copyright notice from LGPL 2 to GPL 2, since that's the
43993         standard form used in the gnulib repository.
43994         * tests/test-lock.c: Likewise.
43995         * tests/test-stdint.c: Likewise.
43996         * tests/test-tls.c: Likewise.
43997
43998         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43999         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44000         Add copyright notice.
44001
44002         * check-module: Add copyright notice.  Output a copyright
44003         notice if "--version" is specified.
44004         * modules/COPYING: New file.
44005         * tests/test-getaddrinfo.c: Add copyright notice.
44006         * tests/test-verify.c: Likewise.
44007
44008 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44009
44010         Change copyright notice from LGPL 2 to GPL 2, since that's the
44011         standard form used in the gnulib repository.
44012         * lib/lock.c: LGPL -> GPL.
44013         * lib/lock.h: Likewise.
44014         * lib/strnlen1.c: Likewise.
44015         * lib/strnlen1.h: Likewise.
44016         * lib/tls.c: Likewise.
44017         * lib/tls.h: Likewise.
44018         * lib/tmpdir.c: Likewise.
44019
44020         * lib/TODO: Remove; this belongs only in coreutils.
44021
44022 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44023
44024         Add copyright notices to long-enough files that lack them, since
44025         otherwise the files aren't clearly free.  Use the same notice that
44026         getdate.texi already uses.
44027         * doc/alloca-opt.texi: Add copyright notice.
44028         * doc/alloca.texi: Likewise.
44029         * doc/ctime.texi: Likewise.
44030         * doc/functions.texi: Likewise.
44031         * doc/gcd.texi: Likewise.
44032         * doc/gnulib-tool.texi: Likewise.
44033         * doc/inet_ntoa.texi: Likewise.
44034         * doc/visibility.texi: Likewise.
44035
44036         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44037         * doc/quote.texi: Add copyright notice.
44038
44039         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44040         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44041         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44042         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44043         is now obsolete, and give a pointer to the Sun list.
44044         Add copyright notice.
44045
44046 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44047
44048         * config/srclistvars.sh: Add copyright notice.
44049
44050 2006-08-14  Eric Blake  <ebb9@byu.net>
44051
44052         Import the following change from libc:
44053
44054         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44055
44056         Upstream bug 2997.
44057         * lib/misc/error.c: Add space between program name and message if file
44058         name is missing.
44059
44060 2006-08-12  Karl Berry  <karl@gnu.org>
44061
44062         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44063         remove, these originate in gnulib now.
44064
44065 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44066
44067         * doc/Makefile (standards.info standards.html standards.dvi):
44068         Also depend on make-stds.texi.
44069
44070 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44071
44072         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44073         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44074
44075         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44076         in wchar_t.  Problem reported by Eric Blake.
44077
44078         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44079         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44080         Also, help the compiler to keep LEN in a register.
44081
44082 2006-08-11  Eric Blake  <ebb9@byu.net>
44083
44084         * users.txt: Sort.  Add tar.
44085
44086 2006-08-11  Bruno Haible  <bruno@clisp.org>
44087
44088         * users.txt: New file.
44089
44090 2006-08-11  Bruno Haible  <bruno@clisp.org>
44091
44092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44093         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44094
44095 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44096
44097         * modules/snprintf (Depends-on): Remove minmax.
44098         (Maintainer): Add self and Bruno.
44099
44100 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44101
44102         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44103         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44104         (EOVERFLOW): Define if the system does not.
44105         Do not include "minmax.h"; it wasn't used.
44106         (snprintf): Don't assume size_t promotes to an unsigned type.
44107         Fix bug when generated string was too long for the buffer: the
44108         buffer's contents are supposed to be the initial prefix of the
44109         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44110         exceeds INT_MAX; do the check ourselves.
44111
44112         Import the following changes from libc:
44113
44114         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44115
44116         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44117         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44118         set wc to the byte which couldn't be converted.
44119         (re_string_reconstruct): Don't clear valid_raw_len before calling
44120         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44121         tip_context using re_string_context_at.
44122
44123         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44124
44125         * lib/posix/regex.h: g++ still cannot handled [restrict].
44126
44127         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44128
44129         * lib/posix/regex.h: Remove special handling for VMS.
44130
44131 2006-08-10  Jim Meyering  <jim@meyering.net>
44132
44133         * modules/same-inode: New module.
44134         * modules/dev-ino: New module.
44135         * modules/cycle-check: Depend on these modules, rather than simply
44136         including their .h files.
44137         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44138         required via m4/cycle-check.m4.
44139         * modules/same: Depend on new same-inode module, rather than
44140         including same-inode.h.
44141         * modules/chdir-safer: New file.
44142
44143         * modules/chown (Depends-on): Add stat-macros.
44144
44145 2006-08-10  Jim Meyering  <jim@meyering.net>
44146
44147         * m4/cycle-check.m4: New file.
44148         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44149         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44150
44151 2006-08-10  Eric Blake  <ebb9@byu.net>
44152
44153         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44154         in from original proposal.
44155
44156 2006-08-10  Eric Blake  <ebb9@byu.net>
44157         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44158
44159         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44160         namespace.
44161
44162 2006-08-10  Bruno Haible  <bruno@clisp.org>
44163
44164         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44165         as well.
44166
44167 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44168
44169         Sync from coreutils.
44170
44171         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44172
44173         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44174         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44175
44176 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44177
44178         * modules/restrict: Remove; no longer needed now that we assume
44179         Autoconf 2.59 or later.
44180         * MODULES.html.sh: Remove 'restrict'.
44181         * modules/argp (Depends-on): Remove 'restrict'.
44182         * modules/base64 (Depends-on): Likewise.
44183         * modules/gc (Depends-on): Likewise.
44184         * modules/getaddrinfo (Depends-on): Likewise.
44185         * modules/glob (Depends-on): Likewise.
44186         * modules/inet_ntop (Depends-on): Likewise.
44187         * modules/inet_pton (Depends-on): Likewise.
44188         * modules/memxor (Depends-on): Likewise.
44189         * modules/regex (Depends-on): Likewise.
44190         * modules/strtok_r (Depends-on): Likewise.
44191         * modules/time_r (Depends-on): Likewise.
44192
44193 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44194
44195         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44196         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44197         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44198         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44199         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44200         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44201         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44202         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44203
44204         Merge from coreutils.
44205         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44206         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44207         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44208         * m4/time_r.m4 (gl_TIME_R): Likewise.
44209
44210 2006-08-09  Karl Berry  <karl@gnu.org>
44211
44212         * config/srclist.txt: no more gettext-tools, per Bruno.
44213
44214 2006-08-08  Eric Blake  <ebb9@byu.net>
44215
44216         * modules/verror: New module.
44217         * MODULES.html.sh: Document it.
44218
44219 2006-08-08  Eric Blake  <ebb9@byu.net>
44220
44221         * lib/verror.h, lib/verror.c: New files.
44222
44223 2006-08-08  Eric Blake  <ebb9@byu.net>
44224
44225         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44226         verror_at_line output complies with GNU Coding Standards even when
44227         file is NULL.
44228
44229 2006-08-07  Bruno Haible  <bruno@clisp.org>
44230
44231         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44232         versions of AIX.
44233         Reported by Ralf Wildenhues.
44234
44235 2006-08-07  Bruno Haible  <bruno@clisp.org>
44236
44237         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44238         in an AC_DEFUN. Needed so that the autoconf snippets can use
44239         AC_REQUIRE.
44240
44241 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44242
44243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44244         Initialize pkgdata_DATA.
44245         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44246         overriding it.
44247
44248 2006-08-06  Eric Blake  <ebb9@byu.net>
44249
44250         * lib/error.h: Fold in some upstream changes from glibc.
44251         * lib/error.c: Likewise.
44252
44253 2006-08-04  Bruno Haible  <bruno@clisp.org>
44254
44255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44256         Make the mostlyclean-local rule depend on mostlyclean-generic.
44257         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44258
44259 2006-07-31  Bruno Haible  <bruno@clisp.org>
44260
44261         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44262         <stdlib.h>, <string.h>.
44263
44264 2006-07-30  Bruno Haible  <bruno@clisp.org>
44265
44266         * modules/readlink (License): Change to LGPL.
44267
44268 2006-07-30  Bruno Haible  <bruno@clisp.org>
44269
44270         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44271         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44272         set PKGDATADIR to point to it.
44273
44274 2006-07-30  Bruno Haible  <bruno@clisp.org>
44275
44276         * modules/csharpexec (configure.ac): Comment out macro invocation.
44277         * modules/javaexec (configure.ac): Likewise.
44278         * modules/javacomp-script (configure.ac): Likewise.
44279
44280         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44281
44282 2006-07-30  Bruno Haible  <bruno@clisp.org>
44283
44284         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44285         linked-list.
44286
44287 2006-07-30  Bruno Haible  <bruno@clisp.org>
44288
44289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44290
44291 2006-07-30  Bruno Haible  <bruno@clisp.org>
44292
44293         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44294         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44295         get removed.
44296
44297 2006-07-29  Bruno Haible  <bruno@clisp.org>
44298
44299         Make it possible for gnulib-tool to work with locally modified or
44300         augmented gnulib repositories.
44301         * gnulib-tool (func_usage): Document --local-dir option.
44302         (local_gnulib_dir): New variable.
44303         Handle --local-dir option.
44304         (func_lookup_file): New function.
44305         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44306         (func_get_description, func_get_filelist, func_get_description,
44307         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44308         func_get_automake_snippet, func_get_include_directive,
44309         func_get_license, func_get_maintainer): Use func_lookup_file.
44310         (func_import, func_create_testdir): Use func_lookup_file.
44311
44312 2006-07-29  Bruno Haible  <bruno@clisp.org>
44313
44314         * modules/setenv (Depends-on): Add unistd.
44315
44316 2006-07-29  Bruno Haible  <bruno@clisp.org>
44317
44318         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44319
44320 2006-07-29  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44323
44324 2006-07-29  Bruno Haible  <bruno@clisp.org>
44325
44326         * gnulib-tool (import, update): If there is no Makefile.am, look at
44327         aclocal.m4, instead of bailing out.
44328
44329 2006-07-29  Bruno Haible  <bruno@clisp.org>
44330
44331         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44332         Categorize the options by when they are useful.
44333
44334 2006-07-29  Bruno Haible  <bruno@clisp.org>
44335
44336         * gnulib-tool (func_usage): Document option --no-libtool.
44337         Handle option --no-libtool.
44338         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44339         for changed semantics of $libtool variable.
44340         (func_import): Likewise. If libtool is not used, show this through
44341         an option --no-libtool.
44342         (func_create_testdir): Update.
44343
44344 2006-07-29  Bruno Haible  <bruno@clisp.org>
44345
44346         * gnulib-tool (func_import): Extend error message about missing
44347         --doc-base.
44348
44349 2006-07-29  Bruno Haible  <bruno@clisp.org>
44350
44351         * gnulib-tool (func_import): Don't create the $docbase directory if
44352         there is no file to store there.
44353
44354 2006-07-29  Bruno Haible  <bruno@clisp.org>
44355
44356         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44357         relevant, look for configure.ac there, not in the current directory.
44358         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44359
44360 2006-07-29  Bruno Haible  <bruno@clisp.org>
44361
44362         * gnulib-tool (SORT): New variable.
44363         (func_usage): Undocument --assume-autoconf option.
44364         Remove --assume-autoconf option handling.
44365         (autoconf_minversion): Determine from the contents of configure.ac.
44366         (func_import): Remove autoconf_minversion handling.
44367         Suggested by Eric Blake.
44368
44369 2006-07-29  Bruno Haible  <bruno@clisp.org>
44370
44371         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44372
44373 2006-07-29  Bruno Haible  <bruno@clisp.org>
44374
44375         * config/srclist.txt (*setenv.[ch]): Remove rules.
44376
44377 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44378
44379         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44380
44381 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44382
44383         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44384         arpa/inet.h.
44385
44386 2006-07-28  Simon Josefsson  <jas@extundo.com>
44387
44388         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44389         * modules/inet_pton (Depends-on): Likewise.
44390
44391 2006-07-28  Simon Josefsson  <jas@extundo.com>
44392
44393         * m4/netinet_in_h.m4: New file.
44394
44395 2006-07-28  Simon Josefsson  <jas@extundo.com>
44396
44397         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44398         #include's.
44399
44400 2006-07-28  Simon Josefsson  <jas@extundo.com>
44401
44402         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44403         #include's.
44404
44405 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44406
44407         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44408         setgid on directories only if they set these bits.
44409         * lib/modechange.h: Remove obsolete comment about masks.
44410
44411 2006-07-28  Eric Blake  <ebb9@byu.net>
44412
44413         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44414         macro expansion.
44415
44416 2006-07-28  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44419
44420 2006-07-28  Bruno Haible  <bruno@clisp.org>
44421
44422         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44423
44424 2006-07-28  Bruno Haible  <bruno@clisp.org>
44425
44426         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44427         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44428         Define fallbacks.
44429         Avoids link error on FreeBSD 4.x.
44430         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44431
44432         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44433         encoding.
44434         * lib/mbswidth.c (iswcntrl): Likewise.
44435
44436 2006-07-27  Bruno Haible  <bruno@clisp.org>
44437
44438         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44439         test.
44440
44441 2006-07-27  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44444         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44445         defined.
44446
44447 2006-07-26  Eric Blake  <ebb9@byu.net>
44448
44449         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44450
44451 2006-07-26  Eric Blake  <ebb9@byu.net>
44452
44453         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44454         like mingw that lack mkstemp.
44455         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44456         avoid compilation warning on mingw.
44457
44458 2006-07-26  Bruno Haible  <bruno@clisp.org>
44459
44460         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44461         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44462         INT_FAST*_MIN, INTPTR_MIN.
44463
44464 2006-07-25  Bruno Haible  <bruno@clisp.org>
44465
44466         * modules/version-etc (Depends-on): Add stdarg.
44467
44468 2006-07-25  Bruno Haible  <bruno@clisp.org>
44469
44470         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44471         complex commands.
44472
44473 2006-07-25  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44476         defined in <stdarg.h> or config.h.
44477
44478 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44479
44480         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44481         (gl_STDIO_SAFER): Remove.
44482
44483 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * MODULES.html.sh (File stream based Input/Output):
44486         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44487         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44488         * modules/fopen-safer, modules/tmpfile-safer: New files.
44489         * modules/stdio-safer: Remove.
44490
44491 2006-07-24  Bruno Haible  <bruno@clisp.org>
44492
44493         * modules/tmpdir: New file.
44494         * MODULES.html.sh (File system functions): Add it.
44495
44496 2006-07-24  Bruno Haible  <bruno@clisp.org>
44497
44498         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44499         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44500
44501 2006-07-24  Bruno Haible  <bruno@clisp.org>
44502
44503         * modules/clean-temp: New file.
44504
44505 2006-07-24  Bruno Haible  <bruno@clisp.org>
44506
44507         * m4/tmpdir.m4: New file, from GNU gettext.
44508
44509 2006-07-24  Bruno Haible  <bruno@clisp.org>
44510
44511         * lib/tmpdir.h: New file, from GNU gettext.
44512         * lib/tmpdir.c: New file, from GNU gettext.
44513
44514 2006-07-24  Bruno Haible  <bruno@clisp.org>
44515
44516         * lib/clean-temp.h: New file, from GNU gettext.
44517         * lib/clean-temp.c: New file, from GNU gettext.
44518
44519 2006-07-23  Eric Blake  <ebb9@byu.net>
44520
44521         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44522         (Depends-on): Add binary-io.
44523
44524 2006-07-23  Eric Blake  <ebb9@byu.net>
44525
44526         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44527
44528 2006-07-23  Eric Blake  <ebb9@byu.net>
44529
44530         * lib/tmpfile-safer.c: New file.
44531         * lib/stdio-safer.h (fopen_safer): Add prototype.
44532         * lib/stdio--.h (tmpfile): Make safer.
44533
44534 2006-07-23  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44537         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44538         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44539         gl_linked_remove_at): Use it.
44540
44541 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44542         and Simon Josefsson <jas@extundo.com>
44543
44544         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44545
44546         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44547
44548 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44549
44550         * modules/close-stream: New file.
44551         * modules/closeout (Description): Make it clear that it exits
44552         with a diagnostic on error.
44553         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44554         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44555
44556 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44557
44558         * m4/close-stream.m4: New file.
44559
44560 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44561
44562         * lib/close-stream.c, lib/close-stream.h: New files.
44563
44564 2006-07-22  Bruno Haible  <bruno@clisp.org>
44565
44566         Merge from GNU gettext 0.15.
44567
44568         2006-05-01  Bruno Haible  <bruno@clisp.org>
44569
44570                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44571
44572         2006-07-22  Bruno Haible  <bruno@clisp.org>
44573
44574                 * modules/javaversion: New file.
44575                 * MODULES.html.sh (Java): Add javaversion.
44576
44577         2006-03-12  Bruno Haible  <bruno@clisp.org>
44578
44579                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44580
44581         2005-12-04  Bruno Haible  <bruno@clisp.org>
44582
44583                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44584                 (untested).
44585
44586         2006-06-21  Bruno Haible  <bruno@clisp.org>
44587
44588                 Avoid warnings from recent versions of mcs.
44589                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44590                 -o, -L, -r any more. Use options documented since mcs-1.0
44591                 instead. Similarly for -g.
44592
44593         2005-12-04  Bruno Haible  <bruno@clisp.org>
44594
44595                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44596                 .resources, not .resource.
44597
44598         2005-07-09  Bruno Haible  <bruno@clisp.org>
44599
44600                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44601                 add a .dll suffix.
44602                 Reported by Mark Junker <mjscod@gmx.de>.
44603
44604         2006-07-22  Bruno Haible  <bruno@clisp.org>
44605
44606                 * modules/gettext: Upgrade to gettext-0.15.
44607                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44608                 m4/visibility.m4.
44609                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44610
44611 2006-07-22  Bruno Haible  <bruno@clisp.org>
44612
44613         Merge from GNU gettext 0.15.
44614
44615         2006-03-25  Bruno Haible  <bruno@clisp.org>
44616
44617                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44618
44619         2006-07-21  Bruno Haible  <bruno@clisp.org>
44620
44621                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44622                 "1.1".
44623
44624         2006-05-09  Bruno Haible  <bruno@clisp.org>
44625
44626                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44627                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44628                 for the conftestver execution.
44629
44630         2006-05-01  Bruno Haible  <bruno@clisp.org>
44631
44632                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44633                 optional target-version argument. Verify that the compiler
44634                 groks source of the specified source-version, or add -source
44635                 option as necessary. Verify that the compiler produces
44636                 bytecode in the specified target-version, or add -target and
44637                 -source options as necessary. Make the result of the test
44638                 available as variable CONF_JAVAC. Also log error output in
44639                 config.log.
44640
44641         2006-03-11  Bruno Haible  <bruno@clisp.org>
44642
44643                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44644
44645         2006-05-09  Bruno Haible  <bruno@clisp.org>
44646
44647                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44648                 CLASSPATH_SEPARATOR to a semicolon.
44649
44650         2006-03-12  Bruno Haible  <bruno@clisp.org>
44651
44652                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44653                 available as variable CONF_JAVA, for subsequent autoconf
44654                 tests. Also log error output in config.log.
44655
44656         2006-07-19  Bruno Haible  <bruno@clisp.org>
44657
44658                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44659                 that getline works on glibc2 systems. Needed to avoid trouble
44660                 in relocatable.c.
44661                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44662
44663         2005-12-04  Bruno Haible  <bruno@clisp.org>
44664
44665                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44666                 launcher (untested).
44667
44668         2005-12-04  Bruno Haible  <bruno@clisp.org>
44669
44670                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44671
44672         2006-07-22  Bruno Haible  <bruno@clisp.org>
44673
44674                 * gettext.m4: Update from GNU gettext-0.15.
44675                 * nls.m4: Likewise.
44676                 * po.m4: Likewise.
44677                 * inttypes-pri.m4: Likewise.
44678                 * inttypes-h.m4: Renamed from inttypes.m4.
44679                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44680
44681 2006-07-22  Bruno Haible  <bruno@clisp.org>
44682
44683         Merge from GNU gettext 0.15.
44684
44685         2005-07-05  Bruno Haible  <bruno@clisp.org>
44686
44687                 * printf-args.c (printf_fetchargs): Work around broken
44688                 definition of wint_t on mingw.
44689
44690         2005-02-12  Bruno Haible  <bruno@clisp.org>
44691
44692                 * xallocsa.h: Add extern "C" for C++.
44693
44694         2006-05-17  Bruno Haible  <bruno@clisp.org>
44695
44696                 Cygwin portability.
44697                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44698
44699         2006-04-30  Bruno Haible  <bruno@clisp.org>
44700
44701                 * progreloc.c: Include <mach-o/dyld.h> if available.
44702                 (find_executable): Use _NSGetExecutablePath when possible.
44703
44704         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44705
44706                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44707                 function.
44708
44709         2005-12-29  Bruno Haible  <bruno@clisp.org>
44710
44711                 * progreloc.c (set_program_name_and_installdir): Fix
44712                 compilation error.
44713
44714         2005-12-04  Bruno Haible  <bruno@clisp.org>
44715
44716                 Cygwin portability.
44717                 * progreloc.c: Include <windows.h> also on Cygwin.
44718                 (find_executable): Add support for Cygwin.
44719                 (set_program_name_and_installdir): Handle also platforms with
44720                 nonempty EXEEXT.
44721
44722         2006-07-11  Bruno Haible  <bruno@clisp.org>
44723
44724                 * javacomp.c: Fix a comment.
44725                 Reported by Jim Meyering.
44726
44727         2006-04-30  Bruno Haible  <bruno@clisp.org>
44728
44729                 * javacomp.h (compile_java_class): Add source_version,
44730                 target_version arguments.
44731                 * javacomp.c: Rewritten to choose only a compiler that
44732                 respects the specified source_version and target_version.
44733
44734         2006-06-27  Bruno Haible  <bruno@clisp.org>
44735
44736                 Assume correct S_ISDIR macro.
44737                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44738
44739         2006-07-22  Bruno Haible  <bruno@clisp.org>
44740
44741                 * javaversion.h: New file, from GNU gettext.
44742                 * javaversion.c: New file, from GNU gettext.
44743                 * javaversion.java: New file, from GNU gettext.
44744                 * javaversion.class: New file, from GNU gettext.
44745
44746         2006-05-17  Bruno Haible  <bruno@clisp.org>
44747
44748                 Cygwin portability.
44749                 * javaexec.c (execute_java_class): Test for jview program
44750                 also on Cygwin.
44751
44752         2006-04-09  Bruno Haible  <bruno@clisp.org>
44753
44754                 * fatal-signal.c: Don't include string.h.
44755                 (at_fatal_signal): Use a copying loop instead of memcpy.
44756
44757         2005-12-04  Bruno Haible  <bruno@clisp.org>
44758
44759                 * csharpexec.c: Add support for 'clix' launcher (untested).
44760                 (execute_csharp_using_sscli): New function.
44761                 (execute_csharp_program): Call it.
44762
44763         2006-06-21  Bruno Haible  <bruno@clisp.org>
44764
44765                 Avoid warnings from recent versions of mcs.
44766                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44767                 -o, -L, -r any more. Use options documented since mcs-1.0
44768                 instead. Similarly for -g.
44769
44770         2005-07-09  Bruno Haible  <bruno@clisp.org>
44771
44772                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44773                 add a .dll suffix.
44774                 Reported by Mark Junker <mjscod@gmx.de>.
44775
44776         2006-06-17  Bruno Haible  <bruno@clisp.org>
44777
44778                 * config.charset: Update for NetBSD 3.0.
44779
44780         2006-05-17  Bruno Haible  <bruno@clisp.org>
44781
44782                 Cygwin portability.
44783                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44784
44785         2006-05-16  Bruno Haible  <bruno@clisp.org>
44786
44787                 * localcharset.c [CYGWIN]: Include <windows.h>.
44788                 (get_charset_aliases): For Cygwin, return the same CPxxx
44789                 aliases list as under WIN32.
44790                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44791                 the environment variables. Fall back to GetACP().
44792
44793         2006-04-05  Bruno Haible  <bruno@clisp.org>
44794
44795                 * config.charset: Update Juan Manuel Guerrero's address.
44796
44797         2005-02-12  Bruno Haible  <bruno@clisp.org>
44798
44799                 * allocsa.h: Add extern "C" for C++.
44800
44801         2005-02-10  Bruno Haible  <bruno@clisp.org>
44802
44803                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44804                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44805
44806         2006-07-22  Bruno Haible  <bruno@clisp.org>
44807
44808                 * gettext.h: Update to GNU gettext-0.15.
44809
44810 2006-07-22  Bruno Haible  <bruno@clisp.org>
44811
44812         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44813         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44814         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44815
44816 2006-07-21  Eric Blake  <ebb9@byu.net>
44817
44818         * modules/stdlib-safer: New file.
44819         * MODULES.html.sh (File stream based Input/Output): Add
44820         stdlib-safer.
44821
44822 2006-07-21  Eric Blake  <ebb9@byu.net>
44823
44824         * lib/stdlib-safer.h: New file from coreutils, required by
44825         stdlib--.h.
44826
44827 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44828
44829         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44830
44831 2006-07-20  Bruno Haible  <bruno@clisp.org>
44832
44833         * gnulib-tool: Recognize new option --assume-autoconf.
44834         (autoconf_minversion): New variable.
44835         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44836
44837 2006-07-20  Bruno Haible  <bruno@clisp.org>
44838
44839         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44840
44841 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44842
44843         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44844         Reindent and repaginate.
44845
44846 2006-07-19  Derek Price  <derek@ximbiot.com>
44847
44848         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44849         Correct grammar.
44850
44851 2006-07-17  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/list: New file.
44854         * modules/array-list: New file.
44855         * modules/carray-list, modules/carray-list-tests: New files.
44856         * modules/linked-list, modules/linked-list-tests: New files.
44857         * modules/avltree-list, modules/avltree-list-tests: New files.
44858         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44859         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44860         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44861         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44862         * modules/oset: New file.
44863         * modules/array-oset: New file.
44864         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44865         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44866         * tests/test-carray_list.c: New file.
44867         * tests/test-linked_list.c: New file.
44868         * tests/test-avltree_list.c: New file.
44869         * tests/test-rbtree_list.c: New file.
44870         * tests/test-linkedhash_list.c: New file.
44871         * tests/test-avltreehash_list.c: New file.
44872         * tests/test-rbtreehash_list.c: New file.
44873         * tests/test-avltree_oset.c: New file.
44874         * tests/test-rbtree_oset.c: New file.
44875         * MODULES.html.sh (Container data structures): New section.
44876
44877 2006-07-17  Bruno Haible  <bruno@clisp.org>
44878
44879         * m4/gl_list.m4: New file.
44880
44881 2006-07-17  Bruno Haible  <bruno@clisp.org>
44882
44883         * lib/gl_list.h: New file.
44884         * lib/gl_list.c: New file.
44885         * lib/gl_array_list.h: New file.
44886         * lib/gl_array_list.c: New file.
44887         * lib/gl_carray_list.h: New file.
44888         * lib/gl_carray_list.c: New file.
44889         * lib/gl_linked_list.h: New file.
44890         * lib/gl_linked_list.c: New file.
44891         * lib/gl_anylinked_list1.h: New file.
44892         * lib/gl_anylinked_list2.h: New file.
44893         * lib/gl_avltree_list.h: New file.
44894         * lib/gl_avltree_list.c: New file.
44895         * lib/gl_anyavltree_list1.h: New file.
44896         * lib/gl_anyavltree_list2.h: New file.
44897         * lib/gl_rbtree_list.h: New file.
44898         * lib/gl_rbtree_list.c: New file.
44899         * lib/gl_anyrbtree_list1.h: New file.
44900         * lib/gl_anyrbtree_list2.h: New file.
44901         * lib/gl_anytree_list1.h: New file.
44902         * lib/gl_anytree_list2.h: New file.
44903         * lib/gl_linkedhash_list.h: New file.
44904         * lib/gl_linkedhash_list.c: New file.
44905         * lib/gl_anyhash_list1.h: New file.
44906         * lib/gl_anyhash_list2.h: New file.
44907         * lib/gl_avltreehash_list.h: New file.
44908         * lib/gl_avltreehash_list.c: New file.
44909         * lib/gl_rbtreehash_list.h: New file.
44910         * lib/gl_rbtreehash_list.c: New file.
44911         * lib/gl_anytreehash_list1.h: New file.
44912         * lib/gl_anytreehash_list2.h: New file.
44913
44914         * lib/gl_oset.h: New file.
44915         * lib/gl_oset.c: New file.
44916         * lib/gl_array_oset.h: New file.
44917         * lib/gl_array_oset.c: New file.
44918         * lib/gl_avltree_oset.h: New file.
44919         * lib/gl_avltree_oset.c: New file.
44920         * lib/gl_rbtree_oset.h: New file.
44921         * lib/gl_rbtree_oset.c: New file.
44922         * lib/gl_anytree_oset.h: New file.
44923
44924 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44925
44926         * m4/mkancesdirs.m4: New file.
44927         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44928         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44929         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44930         it.
44931
44932 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44933
44934         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44935         * lib/mkancesdirs.h: New files.
44936         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44937         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44938         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44939         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44940         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44941         callers changed.  Revamp internals significantly, by not
44942         attempting to create directories that are temporarily more
44943         permissive than the final results.  Do not attempt to use
44944         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44945         This removes some race conditions, fixes some bugs, and simplifies
44946         things.  Use new dirchownmod function to do owner and mode changes.
44947         * lib/mkdir-p.h: Likewise.
44948         * lib/modechange.c (octal_to_mode): New function.
44949         (struct mode_change): New member mentioned.
44950         (make_node_op_equals): New arg mentioned.  All callers changed.
44951         (mode_compile): Keep track of which mode bits the user has explicitly
44952         mentioned.
44953         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44954         New arg PMODE_BITS, to keep track of which mode bits the user
44955         mentioned; it treats S_ISUID and S_ISGID speciall.
44956         All callers changed.
44957         * lib/modechange.h: Likewise.
44958
44959 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44960
44961         * MODULES.html.sh: Add mkancestors.
44962         * modules/mkancesdirs: New module.
44963         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44964         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44965         The chdir-safer and afs files are now orphans; I'll remove them
44966         unless someone speaks up.
44967         Add lib/dirchownmod.c, lib/dirchownmod.h.
44968         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44969         Add lchown, mkancesdirs.
44970         (Maintainer): Add self.
44971
44972 2006-07-15  Karl Berry  <karl@gnu.org>
44973
44974         * gnulib-tool: help message wording/arrangement.
44975
44976 2006-07-14  Simon Josefsson  <jas@extundo.com>
44977
44978         * doc/gnulib.texi (Libtool and Windows): New section.
44979
44980 2006-07-12  Simon Josefsson  <jas@extundo.com>
44981
44982         * modules/gendocs (License): Fix license, approved by Karl.
44983
44984 2006-07-12  Eric Blake  <ebb9@byu.net>
44985
44986         * MODULES.html.sh: Add gendocs.
44987
44988 2006-07-11  Eric Blake  <ebb9@byu.net>
44989
44990         * modules/fdl: New module, to install doc/fdl.texi.
44991         * MODULES.html.sh: Add new section for documentation modules.
44992         * gnulib-tool: Avoid space-tab.
44993         (--doc-base): New option, to manage files from doc.
44994
44995 2006-07-11  Eric Blake  <ebb9@byu.net>
44996
44997         * m4/absolute-header.m4: Fix comments to match recent change.
44998
44999 2006-07-11  Eric Blake  <ebb9@byu.net>
45000
45001         * gnulib-tool: List --doc-base before --tests-base.
45002
45003 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45004
45005         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45006
45007 2006-07-11  Bruno Haible  <bruno@clisp.org>
45008
45009         * README: Mention where to put documentation.
45010
45011 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45012
45013         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45014
45015 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45016
45017         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45018         to stdint.m4.
45019
45020 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45021
45022         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45023         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45024         "no/such/file/stdint.h" when there is no such file, so that
45025         the resulting C code can be parsed by dodgy compilers.
45026         Problems reported by Bob Proulx.
45027
45028 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45029
45030         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45031         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45032         macros into the GNU _D_EXACT_NAMLEN.
45033         * lib/savedir.c:  Likewise.
45034         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45035
45036 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45037         and Paul Eggert  <eggert@cs.ucla.edu>
45038
45039         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45040         * m4/savedir.m4:
45041         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45042         macros into the GNU _D_EXACT_NAMLEN.
45043
45044 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45045
45046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45047         around the absolute name, to work around a problem with the HP-UX
45048         11.23 native C compiler, reported by Bob Proulx.
45049
45050 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45051
45052         * doc/maintain.texi, make-stds.texi: Sync from
45053         <http://savannah.gnu.org/projects/gnustandards>.
45054
45055 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45056
45057         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45058
45059 2006-07-09  Jim Meyering  <jim@meyering.net>
45060
45061         * m4/glob.m4: Remove a doubled word in a comment.
45062
45063 2006-07-09  Jim Meyering  <jim@meyering.net>
45064
45065         * lib/argp-pv.c: Remove a doubled word in a comment.
45066         * lib/check-version.c (check_version): Likewise.
45067         * lib/javacomp.c (compile_java_class): Likewise.
45068
45069 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45070
45071         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45072         for the benefit of people using Autoconf 2.60.  If you want to
45073         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45074         (or m4/onceonly.m4, if pre-2.57) manually.
45075
45076 2006-07-08  Jim Meyering  <jim@meyering.net>
45077
45078         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45079         comment.
45080         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45081         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45082         comment.
45083
45084 2006-07-08  Jim Meyering  <jim@meyering.net>
45085
45086         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45087
45088 2006-07-07  Simon Josefsson  <jas@extundo.com>
45089
45090         * tests/test-crc.c: Change expected crc value, the test vector
45091         were probably computed using the old broken crc.c?
45092
45093 2006-07-06  Simon Josefsson  <jas@extundo.com>
45094
45095         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45096         now the canonical place for the M4 file).
45097
45098         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45099         from the sys_socket dependency now.
45100
45101         * modules/inet_pton (Files): Ditto.
45102
45103         * modules/inet_ntop (Files): Ditto.
45104
45105 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45106
45107         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45108         not gl_PREREQ_GETUSERSHELL.
45109
45110 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45111
45112         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45113         with only one argument, for Autoconf 2.60.
45114         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45115         expand to nothing, so add a shell command to avoid syntax error.
45116         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45117
45118 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45119
45120         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45121
45122 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45123
45124         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45125         no longer needed.  Check for isblank decl.
45126         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45127         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45128         of existence.
45129
45130 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45131
45132         * lib/getloadavg.c: Use __VMS, not VMS.
45133         * lib/getopt.c: Likewise.
45134         * lib/getpagesize.h: Likewise.
45135         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45136         and probably does not work.
45137
45138 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45139
45140         * lib/.cppi-disable: Add wcwidth.
45141         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45142         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45143         (ISGRAPH): Remove.  All uses changed to isgraph.
45144         (FOLD) [!defined _LIBC]: Remove special case.
45145         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45146         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45147         HAVE_ISBLANK.
45148         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45149         case.
45150
45151 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45152
45153         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45154         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45155         brackets.  Other minor changes to suppress some compiler
45156         warnings.
45157
45158 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45159         and Paul Eggert  <eggert@cs.ucla.edu>
45160
45161         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45162         of invoking obsolescent AC_HEADER_DIRENT macro.
45163         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45164         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45165         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45166         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45167         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45168         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45169         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45170         * m4/readdir.m4: Remove; no longer needed.
45171
45172 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45173         and Paul Eggert  <eggert@cs.ucla.edu>
45174
45175         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45176         Don't worry about this obsolete case any more.
45177         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45178         directories.
45179         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45180         worry about this obsolete case any more.
45181         * lib/fts.c: Likewise.
45182         * lib/getcwd.c: Likewise.
45183         * lib/glob.h: Likewise.
45184         * lib/savedir.c: Likewise.
45185
45186 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45187
45188         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45189         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45190         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45191         needed.
45192         All uses removed.
45193         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45194         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45195         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45196         needed.
45197         * m4/getdate.m4 (gl_GETDATE): Likewise.
45198         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45199         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45200         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45201         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45202         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45203         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45204         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45205         needed.
45206
45207 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45208
45209         * lib/memcasecmp.c: Include <limits.h>.
45210         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45211         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45212         Don't assume isdigit succeeds only on '0' through '9'.
45213
45214 2006-07-05  Eric Blake  <ebb9@byu.net>
45215
45216         * modules/getaddrinfo (Depends-on): Add snprintf.
45217
45218 2006-07-05  Eric Blake  <ebb9@byu.net>
45219
45220         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45221         to avoid 'header present but could not be compiled' on cygwin.
45222
45223 2006-07-05  Eric Blake  <ebb9@byu.net>
45224
45225         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45226         missing from netdb.h.
45227         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45228
45229 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45230
45231         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45232         no longer needed.
45233         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45234         * m4/getdate.m4 (gl_GETDATE): Likewise.
45235         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45236         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45237         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45238         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45239         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45240
45241 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45242
45243         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45244         All uses of is_space replaced by isspace.
45245         * lib/exit.h: Don't talk about STDC_HEADERS.
45246         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45247         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45248         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45249         replaced by isprint etc.
45250         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45251         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45252         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45253         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45254         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45255         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45256
45257 2006-07-05  Bruno Haible  <bruno@clisp.org>
45258
45259         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45260         the function exists, before testing against AIX.
45261         Reported by Martin Lambers <marlam@marlam.de>.
45262
45263 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45264
45265         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45266         From Mark D. Baushke.
45267
45268 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45269
45270         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45271         to the absolute name, not just one, to bypass Sun C 5.8's
45272         "warning: #include of /usr/include/... may be non-portable".
45273
45274 2006-07-04  Eric Blake  <ebb9@byu.net>
45275
45276         * modules/dirname-tests: New test module.
45277         * tests/test-dirname.c: New file, replacing dirname.c
45278         TEST_DIRNAME section that was recently deleted.
45279
45280 2006-07-04  Bruno Haible  <bruno@clisp.org>
45281
45282         Assume ANSI C header files and <ctype.h> functions.
45283         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45284         (mbsnwidth): Use isprint, iscntrl instead.
45285
45286 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45287
45288         Merge from coreutils.
45289         * MODULES.html.sh: Add xstrtold.
45290         * modules/xstrtold: New file.
45291         * modules/cycle-check (Files): Add lib/same-inode.h.
45292         * modules/dirname (Files): Add m4/double-slash-root.m4.
45293         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45294         * modules/mkdir-p (Files): Add lib/same-inode.h.
45295         * modules/same (Files): Add lib/same-inode.h.
45296
45297 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45298
45299         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45300         This is to keep the terminology clean; POSIX talks about
45301         "absolute pathnames", not "full pathnames", but the GNU
45302         Coding Standards say to use "path" for something else;
45303         so use "absolute" to keep both sides happy.
45304         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45305         Set gl_absolute_header, not gl_full_header_path.
45306         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45307         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45308         All uses changed.
45309
45310         Merge from coreutils.
45311
45312         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45313
45314         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45315         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45316         want to require the building of c-strtod.o.
45317         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45318         needs -lm directly.
45319         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45320
45321         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45322
45323         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45324         --as-needed option if available.  Problem reported by Albert Chin in
45325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45326         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45327         cc merely issues a bunch of annoying warnings for --as-needed
45328         (this problem was reported by Bob Proulx).  Also, try linking with
45329         -lm to detect a bug in binutils 2.16 (this problem was reported
45330         by Ralf Wildenhues).
45331
45332         2006-06-18  Jim Meyering  <jim@meyering.net>
45333
45334         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45335         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45336         macro.
45337         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45338         also check for glibc-2.4's abort-inducing bug.
45339
45340         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45341         Low-probability clean-up should be to use rmdir to get rid of
45342         the just-created directory, not unlink.
45343
45344         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45345         configure fail, and request a bug report to inform us about it.
45346         Add a comment that, barring reports to the contrary, in 2007 we'll
45347         assume ftruncate is universally available.
45348
45349         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45350
45351         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45352
45353         2006-03-12  Jim Meyering  <jim@meyering.net>
45354
45355         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45356         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45357         * m4/same.m4 (gl_SAME): Likewise.
45358         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45359
45360         2006-03-11  Eric Blake  <ebb9@byu.net>
45361
45362         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45363         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45364         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45365         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45366
45367 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45368
45369         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45370         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45371         reported by Mark D. Baushke, one in
45372         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45373
45374         Merge from coreutils.
45375
45376         * lib/.cppi-disable: Add stdint_.h.
45377         * lib/.cvsignore: Add stdint.h.
45378
45379         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45380
45381         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45382         both double and long double versions.
45383         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45384         * lib/xstrtold.c: New file.
45385         * lib/xstrtod.h (xstrtold): New decl.
45386
45387         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45388
45389         * lib/filemode.c (setst): Remove.
45390         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45391         (arguably) clearer, and the generated code is a bit smaller on my
45392         Debian GNU/Linux stable x86 host.
45393
45394         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45395
45396         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45397         Assume that filemode.h includes sys/types.h and sys/stat.h.
45398         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45399         (ftypelet): Reorder to put common cases first, for efficiency.
45400         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45401         to do 'M'.
45402         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45403         of 10, for compatibility with FreeBSD.  All callers changed.
45404         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45405         types that can't be deduced solely from st_mode.  First arg is now a
45406         const pointer.
45407         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45408         (strmode): Renamed from mode_string.
45409         (filemodestring): New decl.
45410         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45411         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45412         needed.
45413         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45414
45415         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45416
45417         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45418         fsusage.h now does that.  Include fsusage.h first, to test interface.
45419         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45420         at most one method (the old code could have generated decls that
45421         didn't conform to C89, not that this was ever exercised).
45422         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45423
45424         2006-03-19  Jim Meyering  <jim@meyering.net>
45425
45426         Work even in a chroot where d_ino values for entries in "/"
45427         don't match the stat.st_ino values for the same names.
45428         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45429         number, iterate through all entries again, using lstat instead.
45430         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45431         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45432
45433         * lib/getcwd.c (__getcwd): Clarify a comment.
45434         Use memcpy in place of a call to strcpy.
45435
45436         2006-03-12  Jim Meyering  <jim@meyering.net>
45437
45438         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45439         matches that of the current directory (which we're about to chdir ".."
45440         out of), then save the dev-ino of the parent, instead.
45441
45442         * lib/same-inode.h (SAME_INODE): New file/macro.
45443         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45444         Include "same-inode.h", instead.
45445         * lib/same.c: Likewise.
45446         * lib/cycle-check.h: Include "same-inode.h".
45447         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45448         * lib/cycle-check.c (SAME_INODE): Remove definition.
45449         * lib/root-dev-ino.h: Include "same-inode.h".
45450
45451         2006-03-11  Eric Blake  <ebb9@byu.net>
45452
45453         * lib/same.c (same_name): s/base_name/last_component/
45454         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45455         * lib/filenamecat.c (file_name_concat): Likewise.
45456
45457         2006-03-11  Eric Blake  <ebb9@byu.net>,
45458                     Paul Eggert  <eggert@cs.ucla.edu>
45459
45460         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45461         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45462         drive prefix.
45463         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45464         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45465         (last_component): New method.
45466         * lib/dirname.c (dir_len): Determine when drive letters need a
45467         subsequent slash.  Preserve // when it is special.
45468         (dir_name): Don't append dot when drive letter is absolute.
45469         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45470         * lib/basename.c (base_name): New semantics - malloc the result.
45471         Preserve // when it is special.  Preserve relative files that look
45472         like drive letters.
45473         (base_len): Preserve // when it is special.
45474         (last_component): New method, similar to old base_name semantics.
45475         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45476         base_name.  Strip redundant slashes from ///.
45477
45478 2006-07-03  Jim Meyering  <jim@meyering.net>
45479
45480         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45481         macro is used before the first cycle_check call.
45482
45483 2006-07-03  Eric Blake  <ebb9@byu.net>
45484
45485         * modules/dirname (Depends-on): Add xstrndup.
45486
45487 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45490         test cases, so that config.log is a bit easier to follow.
45491
45492 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45493
45494         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45495         both are 64 bits, since this seems to be the tradition, and this
45496         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45497         we ever run into a host that prefers long long to long in this
45498         case, we'll need another configure-time test.  Problem reported by
45499         Jim Meyering.
45500
45501 2006-07-02  Eric Blake  <ebb9@byu.net>
45502
45503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45504
45505 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45506
45507         * modules/inttypes (Depends-on): No longer depends on stdint.
45508         * modules/stdint (Description): Say more about assumptions.
45509         Say that the fast types might differ.  Say macros are used.
45510         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45511         (Makefile.am): Revise list of substituted symbols to match
45512         new stdint.m4.
45513         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45514         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45515         * tests/test-stdint.c (verify_same_types)
45516         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45517         the code conforms to C99/C89.
45518         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45519         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45520
45521 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45522
45523         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45524         but fix a bug, by requiring at least 64 bits.
45525         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45526         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45527         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45528         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45529
45530         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45531         changes.  Make 2.59 a prerequisite.  Check and substitute for
45532         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45533         inttypes.h.  Do not use special include files; just use the
45534         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45535         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45536         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45537         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45538         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45539         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45540         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45541         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45542         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45543         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45544         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45545         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45546         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45547         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45548         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45549         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45550         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45551         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45552         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45553         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45554         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45555         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45556         not check for things that C99 does not require, e.g., int8_t.  If
45557         a test isn't needed unless <stdint.h> isn't working, and is
45558         unlikely to be needed for any other reason, then don't do it
45559         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45560         size_t, since we assume C89 freestanding at least.  Do not check
45561         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45562         the right thing even if the types are not defined.  Instead use:
45563         (gl_STDINT_TYPE_PROPERTIES): New macro.
45564         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45565         testing whether <sys/types.h> clashes, as Autoconf does this for
45566         us now.  All uses removed.
45567         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45568         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45569         (gl_CHECK_TYPE_SAME):
45570         Remove; no longer needed.
45571         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45572         exists, since we'll return 0 anyway in that case.
45573         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45574
45575 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45576
45577         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45578         possible collision with system files.
45579         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45580         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45581         WCHAR_MIN and WCHAR_MAX in this case.
45582         (<stddef.h>): Do not include; no longer needed.
45583         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45584         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45585         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45586         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45587         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45588         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45589         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45590         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45591         !defined(__c99))]: Include in this case too, since it's harmless
45592         now.
45593         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45594         dangerous to do so.
45595         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45596         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45597         (_STDINT_MIN, _STDINT_MAX): New macros.
45598         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45599         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45600         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45601         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45602         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45603         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45604         macros, not typedefs; this simplifies things quite a bit.
45605         Use long int for all types narrower than int64_t.
45606         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45607         Define in terms of long long int or int64_t or long int,
45608         not int64_t or int32_t.  This saves some compile-time testing.
45609         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45610         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45611         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45612         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45613         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45614         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45615         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45616         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45617         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45618         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45619         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45620         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45621         undef any previous version and define our own version, for
45622         simplicity and consistency with the new macros for types.
45623         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45624         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45625         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45626         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45627         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45628         @WINT_T_SUFFIX@ to keep things simple here.
45629         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45630         Simplify by assuming typical 8/16/32/64 host, since we're
45631         already doing that elsewhere anyway.
45632         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45633         and assume long long int is 64 bits if available.  This
45634         speeds up 'configure'.
45635
45636 2006-07-01  Eric Blake  <ebb9@byu.net>
45637
45638         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45639         Reported by Andreas Buening.
45640
45641 2006-07-01  Eric Blake  <ebb9@byu.net>
45642
45643         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45644
45645 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45646
45647         * lib/getaddrinfo.c: fixed typo
45648
45649 2006-06-29  Jim Meyering  <jim@meyering.net>
45650
45651         * modules/strftime (Maintainer): Add my name, since with the
45652         FPRINTFTIME changes strftime.c has forked from glibc.
45653
45654 2006-06-29  Eric Blake  <ebb9@byu.net>
45655
45656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45657
45658 2006-06-29  Eric Blake  <ebb9@byu.net>
45659
45660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45661
45662 2006-06-29  Eric Blake  <ebb9@byu.net>
45663
45664         * lib/stat_.h: New file.
45665
45666 2006-06-29  Eric Blake  <ebb9@byu.net>
45667
45668         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45669         unused static function.
45670
45671 2006-06-29  Eric Blake  <ebb9@byu.net>
45672
45673         * doc/functions.texi (Function Portability): Document missing lstat
45674         on mingw.
45675
45676 2006-06-29  Eric Blake  <ebb9@byu.net>
45677
45678         * MODULES.html.sh: Add sys_stat.
45679         * modules/sys_stat: New module.
45680         * modules/mkstemp (Depends-on): Add sys_stat.
45681
45682 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45683
45684         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45685
45686 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45687
45688         * m4/c-bs-a.m4: Removed.
45689
45690 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45691
45692         * lib/strftime.c: Assume strftime() exists.
45693
45694 2006-06-29  Derek Price  <derek@ximbiot.com>
45695
45696         * modules/c-bs-a: Removed - \a is C89.
45697         * MODULES.html.sh: Remove c-bs-a.
45698
45699 2006-06-29  Bruno Haible  <bruno@clisp.org>
45700
45701         * modules/wcwidth (License): Change to LGPL.
45702
45703 2006-06-28  Simon Josefsson  <jas@extundo.com>
45704
45705         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45706         on _WIN32.
45707
45708         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45709         getnameinfo.
45710
45711 2006-06-28  Simon Josefsson  <jas@extundo.com>
45712
45713         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45714
45715 2006-06-28  Simon Josefsson  <jas@extundo.com>
45716
45717         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45718         functions there.  It will succeed on Windows XP, but on Windows
45719         2000 and (presumably) earlier, it will fail, and use the internal
45720         re-implementation.
45721         (use_win32_p): New function.
45722         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45723         Support AI_NUMERICSERV to disable getservbyname.
45724         (getnameinfo): New function, only supports
45725         NI_NUMERICHOST|NI_NUMERICSERV for now.
45726
45727         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45728         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45729         getnameinfo.
45730
45731 2006-06-28  Eric Blake  <ebb9@byu.net>
45732
45733         * modules/wcwidth: New file.
45734         * modules/mbchar (Depends-on): Add wcwidth.
45735         * modules/mbswidth (Depends-on): Add wcwidth.
45736         * MODULES.html.sh: Add wcwidth.
45737
45738 2006-06-28  Eric Blake  <ebb9@byu.net>
45739
45740         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45742
45743 2006-06-28  Eric Blake  <ebb9@byu.net>
45744
45745         * lib/xvasprintf.h: Fix comments.
45746
45747 2006-06-28  Eric Blake  <ebb9@byu.net>
45748
45749         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45750         * lib/mbswidth.c (wcwidth): Move from here...
45751         * lib/wcwidth.h: ...to this new file.
45752
45753 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45754
45755         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45756
45757         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45758         it's obsolete.
45759         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45760
45761 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45762
45763         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45764         Autoconf 2.60 says this stuff was obsolete.
45765
45766 2006-06-28  Bruno Haible  <bruno@clisp.org>
45767
45768         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45769
45770 2006-06-28  Bruno Haible  <bruno@clisp.org>
45771
45772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45773         gt_TYPE_WCHAR_T.
45774
45775 2006-06-28  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45778         declaration for wcwidth.
45779         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45780
45781 2006-06-28  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45784         (mkdir): Define using _mkdir.
45785
45786 2006-06-28  Bruno Haible  <bruno@clisp.org>
45787
45788         * lib/getaddrinfo.h: Fix POSIX URL.
45789         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45790         _WIN32.
45791         (use_win32_p): Make static.
45792         (getaddrinfo): Reject service name if it is empty or does not consist
45793         solely of decimal digits, or if its value is > 65535.
45794         (getnameinfo): Remove useless casts.
45795
45796 2006-06-27  Simon Josefsson  <jas@extundo.com>
45797
45798         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45799         Eggert and Martin Lambers.
45800
45801 2006-06-27  Simon Josefsson  <jas@extundo.com>
45802
45803         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45804         Eggert and Martin Lambers.
45805
45806 2006-06-27  Bruno Haible  <bruno@clisp.org>
45807
45808         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45809         result to 0, not to empty.
45810         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45811
45812 2006-06-27  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45815
45816 2006-06-26  Simon Josefsson  <jas@extundo.com>
45817
45818         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45819         present.
45820
45821 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45822
45823         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45824         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45826
45827 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45828
45829         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45830
45831 2006-06-26  Bruno Haible  <bruno@clisp.org>
45832
45833         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45834
45835 2006-06-26  Bruno Haible  <bruno@clisp.org>
45836
45837         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45838
45839 2006-06-26  Bruno Haible  <bruno@clisp.org>
45840
45841         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45842         SGI C compiler in pre-C99 mode.
45843         Suggested by Mark D. Baushke and Larry Jones.
45844
45845 2006-06-26  Bruno Haible  <bruno@clisp.org>
45846
45847         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45848         WCHAR_MAX.
45849         Reported by Mark D. Baushke and Larry Jones.
45850
45851 2006-06-26  Bruno Haible  <bruno@clisp.org>
45852
45853         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45854         in pre-C99 mode.
45855         Suggested by Mark D. Baushke and Larry Jones.
45856
45857 2006-06-23  Simon Josefsson  <jas@extundo.com>
45858             Bruno Haible  <bruno@clisp.org>
45859
45860         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45861         Emit mostlyclean-local rule.
45862         (func_emit_tests_Makefile_am): Likewise.
45863         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45864
45865 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45866
45867         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45868
45869 2006-06-23  Bruno Haible  <bruno@clisp.org>
45870
45871         * tests/test-stdint.c: Update to match ISO C 99 Technical
45872         Corrigendum 1.
45873
45874 2006-06-23  Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45877
45878 2006-06-23  Bruno Haible  <bruno@clisp.org>
45879
45880         * lib/stdint_.h: Treat IRIX like OpenBSD.
45881
45882 2006-06-23  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45885         ISO C 99 Technical Corrigendum 1.
45886
45887 2006-06-22  Simon Josefsson  <jas@extundo.com>
45888
45889         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45890         MinGW.
45891
45892 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45893
45894         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45895         needed.  Some compiler complained about some of them.  Problem reported
45896         by Larry Jones in
45897         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45898
45899 2006-06-21  Simon Josefsson  <jas@extundo.com>
45900
45901         * tests/test-getaddrinfo.c: New file.
45902
45903         * modules/getaddrinfo-tests: New file.
45904
45905         * MODULES.html.sh: Add inet_pton.
45906
45907         * modules/inet_pton: New file.
45908
45909 2006-06-21  Simon Josefsson  <jas@extundo.com>
45910
45911         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45912         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45913         of using the (limited) gnulib implementation on Windows XP.
45914
45915         * m4/inet_pton.m4: New file.
45916
45917 2006-06-21  Simon Josefsson  <jas@extundo.com>
45918
45919         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45920         variable.
45921
45922         * lib/socket_.h: Don't define WINVER.
45923
45924         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45925         slightly modified to work in gnulib.
45926
45927 2006-06-21  Simon Josefsson  <jas@extundo.com>
45928
45929         * doc/gnulib.texi (Windows sockets): Add.
45930
45931 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45932
45933         * lib/read-file.c (fread_file): Start with buffer allocation of
45934         0 bytes rather than 1 byte; this simplifies the code.
45935         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45936         code to free buffer and save/restore errno.
45937         (internal_read_file): Remove unused local.
45938
45939 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45940
45941         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45942         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45943         Problem reported by Denis Excoffier in
45944         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45945
45946 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45947
45948         * modules/sys_socket, modules/socklen: Include sys/types since
45949         FreeBSD 4.x's sys/socket.h needs it.
45950
45951 2006-06-19  Simon Josefsson  <jas@extundo.com>
45952
45953         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45954
45955 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45956
45957         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45958
45959 2006-06-19  Bruno Haible  <bruno@clisp.org>
45960
45961         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45962         and FULL_PATH_INTTYPES_H in angle brackets.
45963         Reported by Mark D. Baushke <mdb@gnu.org>.
45964
45965 2006-06-17  Eric Blake  <ebb9@byu.net>
45966
45967         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45968         errno.
45969
45970 2006-06-17  Bruno Haible  <bruno@clisp.org>
45971
45972         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45973         <sys/inttypes.h>.
45974
45975 2006-06-17  Bruno Haible  <bruno@clisp.org>
45976
45977         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45978         whether errno is declared. Assume <errno.h> declares errno.
45979
45980 2006-06-17  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45983
45984 2006-06-17  Bruno Haible  <bruno@clisp.org>
45985
45986         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45987         problem on Solaris 2.5.1.
45988
45989 2006-06-16  Eric Blake  <ebb9@byu.net>
45990
45991         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45992         * lib/unicodeio.c [!defined errno]: Likewise.
45993         * lib/strtol.c [!defined errno]: Likewise.
45994         * lib/strtod.c [!defined errno]: Likewise.
45995
45996 2006-06-15  Eric Blake  <ebb9@byu.net>
45997
45998         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45999
46000 2006-06-15  Eric Blake  <ebb9@byu.net>
46001
46002         * config/srclist.txt (ssize_t.m4): Lose sync.
46003
46004 2006-06-15  Bruno Haible  <bruno@clisp.org>
46005
46006         * modules/stdint (Files): Include m4/full-header-path.m4,
46007         m4/size_max.m4, m4/wchar_t.m4.
46008         (Makefile.am): Many more substitutions.
46009         * modules/stdint-tests: New file.
46010         * tests/test-stdint.c: New file.
46011
46012 2006-06-15  Bruno Haible  <bruno@clisp.org>
46013
46014         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46015         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46016         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46017         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46018         gl_CHECK_TYPE_SAME): New macros.
46019
46020 2006-06-15  Bruno Haible  <bruno@clisp.org>
46021
46022         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46023
46024 2006-06-15  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/stdint_.h: Rewritten to be fully auto-configured.
46027         Fixes bug on HP-UX/IA64.
46028
46029 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46030
46031         * lib/getdate.y (__attribute__): Don't define if already defined.
46032         Problem reported by Larry Jones.
46033         * lib/utimens.c (__attribute__): Likewise.
46034
46035 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46036
46037         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46038         reported by Andreas Schwab.
46039
46040 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46041             Bruno Haible  <bruno@clisp.org>
46042
46043         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46044         check for the declaration of strnlen and a run test that exposes the
46045         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46046         rpl_strndup.
46047
46048 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46049             Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46052
46053 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46054
46055         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46056         compile test, for Tru64 4.0D.
46057
46058 2006-05-28  Karl Berry  <karl@gnu.org>
46059
46060         * config/srclist.txt (printf-args.c): lose sync.
46061
46062 2006-05-26  Martin Lambers  <marlam@marlam.de>
46063
46064         * lib/getpass.c: Updates the test for the native W32 API, and adds
46065         missing includes, thus fixing compilation warnings.
46066
46067 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46068
46069         * lib/exclude.c (exclude_fnmatch): New function.
46070         (excluded_file_name): Call exclude_fnmatch.
46071         * lib/exclude.h (excluded_file_name): New prototype
46072
46073 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46074
46075         * lib/tempname.c (small_open, large_open): New macros.
46076         (__open, __open64) [!_LIBC]: Remove.
46077         (__gen_tempname): Use small_open and large_open instead of __open
46078         and __open64.  This fixes a portability bug on HP-UX 11.11i
46079         reported by Simon Wing-Tang in
46080         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46081
46082 2006-05-24  Bruno Haible  <bruno@clisp.org>
46083
46084         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46085         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46086         Reported by Thorsten Maerz <torte@netztorte.de> via
46087         Aaron Stone <aaron@serendipity.cx>.
46088
46089 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46092         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46093         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46094         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46095         not really conditional on the cache.
46096         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46097
46098 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46099
46100         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46101         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46102         (my_usleep): Don't mishandle maximum value.
46103
46104 2006-05-19  Jim Meyering  <jim@meyering.net>
46105
46106         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46107
46108 2006-05-17  Bruno Haible  <bruno@clisp.org>
46109
46110         Cygwin portability.
46111         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46112
46113 2006-05-17  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/stdint_.h: Fix recognition of Cygwin.
46116
46117 2006-05-15  Bruno Haible  <bruno@clisp.org>
46118
46119         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46120         on libtool patch by Ralf Wildenhues.
46121
46122 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46123
46124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46125         test for C99 conformance; (bool) 0.5 is an integer constant
46126         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46127         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46128
46129 2006-05-11  Simon Josefsson  <jas@extundo.com>
46130
46131         * m4/xvasprintf.m4: Fix obvious typo.
46132
46133 2006-05-11  Jim Meyering  <jim@meyering.net>
46134
46135         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46136         James Lemley.
46137
46138 2006-05-10  Simon Josefsson  <jas@extundo.com>
46139
46140         * lib/md4.c: Typo fix, update copyright years.
46141         (K1, K2): Don't use L because it turn computations into 64-bit on
46142         64-bit platforms.
46143
46144 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46145
46146         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46147         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46148         unwanted sign propagation, e.g., on hosts with 64-bit int.
46149         There still are some problems with reeelly weird theoretical hosts
46150         (e.g., 33-bit int) but it's not worth worrying about now.
46151         * lib/sha1.c (rol): Likewise.
46152         (K1, K2, K3, K4): Remove unnecessary L suffix.
46153
46154 2006-05-10  Bruno Haible  <bruno@clisp.org>
46155
46156         * lib/des.c: Cast to avoid warnings.
46157
46158 2006-05-09  Bruno Haible  <bruno@clisp.org>
46159
46160         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46161         (Depends-on): Depend also on xsize, stdarg.
46162         (configure.ac): Add gl_XVASPRINTF.
46163
46164 2006-05-09  Bruno Haible  <bruno@clisp.org>
46165
46166         * m4/xvasprintf.m4: New file.
46167
46168 2006-05-09  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46171         (EOVERFLOW): Define fallback value.
46172         (xstrcat): New function.
46173         (xvasprintf): Recognize the special case of a string concatenation.
46174
46175 2006-05-08  Eric Blake  <ebb9@byu.net>
46176
46177         * gnulib-tool (func_version): Base copyright year on CVS date.
46178         (func_emit_copyright_notice): New function.
46179         (func_emit_lib_Makefile_am): Use it.
46180         (func_emit_tests_Makefile_am): Likewise.
46181         (func_import): Likewise.
46182
46183 2006-05-08  Bruno Haible  <bruno@clisp.org>
46184
46185         * modules/stdarg: New file.
46186         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46187
46188 2006-05-08  Bruno Haible  <bruno@clisp.org>
46189
46190         * m4/stdarg.m4: New file, from GNU gettext.
46191
46192 2006-05-08  Bruno Haible  <bruno@clisp.org>
46193
46194         * config/srclist.txt (build-aux/config.rpath): different from latest
46195         release.
46196
46197 2006-05-08  Bruno Haible  <bruno@clisp.org>
46198
46199         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46200
46201 2006-05-05  Jim Meyering  <jim@meyering.net>
46202
46203         * m4/warning.m4: New file, derived from bison's file by the same name.
46204
46205 2006-05-03  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/stdint_.h: Shorter URL.
46208         * lib/inttypes.h: Likewise.
46209
46210 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46211
46212         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46213
46214 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * lib/verify.h: Document the internals better.  Most of this change
46217         was written by Bruno Haible.
46218
46219 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46220
46221         * doc/verify.texi: New file, partly based on a proposal by
46222         Bruno Haible.
46223
46224 2006-05-02  Bruno Haible  <bruno@clisp.org>
46225
46226         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46227         test from here...
46228         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46229
46230 2006-04-29  Bruno Haible  <bruno@clisp.org>
46231
46232         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46233         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46234
46235 2006-04-29  Bruno Haible  <bruno@clisp.org>
46236
46237         * gnulib-tool: Make --update option actually work.
46238
46239 2006-04-29  Bruno Haible  <bruno@clisp.org>
46240
46241         * doc/gcd.texi: New file.
46242         * doc/gnulib.texi: Include it.
46243
46244 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46245
46246         * lib/getdate.y (get_date): When adding relative date, start with the
46247         initial time, not with the result of the first mktime call.
46248
46249 2006-04-25  Bruno Haible  <bruno@clisp.org>
46250
46251         * gnulib-tool (func_import): Output the include directives in three
46252         blocks, sorted separately.
46253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46254
46255 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46258         to define main with arguments, for C++.  Reported by Eric Blake.
46259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46260         Prefer 'int main ()' to 'int main (void)', for C++.
46261         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46263         for 'main', for C99 and C++.
46264
46265 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46266
46267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46268         Don't assume that exit status -1 is valid.
46269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46270         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46271         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46272         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46273         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46274         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46275         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46276         functions can be used without declaring them, or that you can
46277         exit with status -1.
46278         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46279
46280 2006-04-24  Karl Berry  <karl@gnu.org>
46281
46282         * config/srclist.txt (longdouble.m4): sync lost.
46283
46284 2006-04-24  Eric Blake  <ebb9@byu.net>
46285
46286         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46287
46288 2006-04-24  Bruno Haible  <bruno@clisp.org>
46289
46290         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46291         poll() implementation in AIX.
46292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46293
46294 2006-04-24  Bruno Haible  <bruno@clisp.org>
46295
46296         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46297         assigned exactly once.
46298
46299 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46300             Bruno Haible  <bruno@clisp.org>
46301
46302         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46303         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46304         for AM_CPPFLAGS.
46305
46306 2006-04-23  Bruno Haible  <bruno@clisp.org>
46307
46308         * modules/copy-file: Depend on unistd.
46309         * modules/execute: Likewise.
46310         * modules/fatal-signal: Likewise.
46311         * modules/findprog: Likewise.
46312         * modules/mkdtemp : Likewise.
46313         * modules/pipe: Likewise.
46314         * modules/wait-process: Likewise.
46315
46316 2006-04-23  Bruno Haible  <bruno@clisp.org>
46317
46318         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46319         condition was already detected.
46320         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46321
46322 2006-04-23  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/copy-file.c: Include <unistd.h> unconditionally.
46325         * lib/execute.c: Likewise.
46326         * lib/fatal-signal.c: Likewise.
46327         * lib/findprog.c: Likewise.
46328         * lib/mkdtemp.c: Likewise.
46329         * lib/pipe.h: Likewise.
46330         * lib/pipe.c: Likewise.
46331         * lib/wait-process.h: Likewise.
46332
46333 2006-04-23  Bruno Haible  <bruno@clisp.org>
46334
46335         * gnulib-tool (func_usage): Fix --import description. Document
46336         --update.
46337         (func_import): Create temporary file in a temporary directory, if
46338         --dry-run is specified. Silence errors from 'grep' when there are no
46339         m4 files in $m4dir.
46340         (func_create_testdir): Silence errors from 'grep' when there are no
46341         m4 files in $m4dir.
46342         Reported by Karl Berry <karl@freefriends.org>.
46343
46344 2006-04-20  Bruno Haible  <bruno@clisp.org>
46345
46346         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46347         one argument, so that the code will be portable to Autoconf 2.60.
46348         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46349         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46350         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46351
46352 2006-04-19  Derek Price  <derek@ximbiot.com>
46353             Eric Blake  <ebb9@byu.net>
46354
46355         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46356         rather than "/full/path.h".  Update comment to match.  Shorten &
46357         generalize m4_translit call via AS_TR_CPP.
46358
46359 2006-04-19  Derek Price  <derek@ximbiot.com>
46360             Eric Blake  <ebb9@byu.net>
46361
46362         * lib/inttypes.h: Correct grammar in comment.
46363
46364 2006-04-18  Derek Price  <derek@ximbiot.com>
46365             Paul Eggert  <eggert@cs.ucla.edu>
46366
46367         * modules/inttypes: New file.
46368         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46369
46370 2006-04-18  Derek Price  <derek@ximbiot.com>
46371             Paul Eggert  <eggert@cs.ucla.edu>
46372
46373         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46374         New files.
46375
46376 2006-04-18  Derek Price  <derek@ximbiot.com>
46377             Paul Eggert  <eggert@cs.ucla.edu>
46378
46379         * lib/inttypes.h: New file.
46380         * lib/strtoimax.c: Assume <inttypes.h>.
46381
46382 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46385         isn't mounted.  Problem reported by Kir Kolyshkin.
46386
46387 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46390         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46391         Derek R. Price.
46392         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46393         implementation.
46394
46395 2006-04-12  Eric Blake  <ebb9@byu.net>
46396
46397         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46398         is now done automatically by the corresponding Autoconf macro.
46399
46400 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46401
46402         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46403         time_r.h.
46404
46405 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46406
46407         Merge regex changes from libc, removing some of our
46408         POSIX-conformance changes that were rejected and redoing them in a
46409         less-intrusive way.
46410
46411         * lib/regcomp.c (re_compile_internal, init_dfa):
46412         Length arg is now size_t, not Idx.  All uses changed.
46413         (peek_token): Forward decl now says internal_function.
46414         (__re_error_msgid, __re_error_msgid_idx):
46415         Now static rather than extern with attribute_hidden.
46416         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46417         For some reason libc prefers K&R style defns for external functions.
46418         (regerror) [!defined _LIBC]: Likewise.
46419         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46420         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46421         (build_range_exp, build_collating_symbol):
46422         Use K&R-style defn.
46423         (re_compile_fastmap): Use '\0' to memset, not 0.
46424         (utf8_sb_map): Make the calculations more obvious.
46425         (init_dfa, parse_bracket_exp, build_charclass_op):
46426         Call calloc and cast result, as glibc does.
46427         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46428         (build_range_exp, build_collating_symbol):
46429         Now internal functions.
46430
46431         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46432
46433         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46434         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46435         Don't depend on VMS; depend on __VMS instead, for POSIX
46436         namespace cleanness.
46437         (regoff_t): Define to ssize_t, not long int.
46438
46439         Remove the REG_ macros named below.  Instead, make the old names
46440         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46441         __USE_GNU_REGEX.
46442         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46443         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46444         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46445         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46446         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46447         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46448         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46449         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46450         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46451         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46452         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46453         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46454         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46455         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46456         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46457         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46458         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46459         (REG_NREGS):
46460         Remove.  All uses replaced by the old RE_* names.
46461         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46462         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46463         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46464         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46465         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46466         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46467         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46468         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46469         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46470         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46471         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46472         Don't bother having these macros be independent of each others'
46473         values, since they no longer exist in the POSIX name space.
46474
46475         Rename the following member names back to their old names,
46476         unless !__USE_GNU_REGEX.  All uses changed back.
46477         (buffer): Renamed from re_buffer.
46478         (allocated): Renamed from re_allocated.
46479         (used): Renamed from re_used.
46480         (syntax): Renamed from re_syntax.
46481         (fastmap): Renamed from re_fastmap.
46482         (translate): Renamed from re_translate.
46483         (can_be_null): Renamed from re_can_be_null.
46484         (regs_allocated): Renamed from re_regs_allocated.
46485         (fastmap_accurate): Renamed from re_fastmap_accurate.
46486         (no_sub): Renamed from re_no_sub.
46487         (not_bol): Renamed from re_not_bol.
46488         (not_eol): Renamed from re_not_eol.
46489         (newline_anchor): Renamed from re_newline_anchor.
46490         (num_regs): Renamed from rm_num_regs.
46491         (start): Renamed from rm_start.
46492         (end): Renamed from rm_end.
46493
46494         (free_state): Move up a bit.
46495
46496         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46497         #define to be empty.
46498         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46499         when that is what is intended.
46500         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46501         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46502         (MAX): New macro.
46503         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46504         All uses changed back to re_malloc, etc.  It's now the caller's
46505         responsibility to check for overflow; all callers changed.
46506         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46507         (re_x2nrealloc): Remove.
46508         (free_state): Remove decl.
46509
46510         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46511         (re_set_registers, re_exec):
46512         Use K&R-style defn.
46513
46514         2006-01-31  Roland McGrath  <roland@redhat.com>
46515
46516         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46517         Reported by Mike Frysinger <vapier@gentoo.org>.
46518
46519         2006-01-15  Andreas Jaeger  <aj@suse.de>
46520
46521         [BZ #1950]
46522         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46523         build_wcs_upper_buffer change.
46524         (build_wcs_upper_buffer): Change return type.
46525
46526         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46527
46528         * lib/regex_internal.h: Include <stdint.h> if available.
46529
46530         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46531
46532         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46533
46534         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46535
46536         * lib/regcomp.c: Adjust for changed secondary hash function.
46537
46538         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46539
46540         * lib/regex.h: Pretty printing.
46541         Clean up namespace a bit.
46542
46543         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46544
46545         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46546         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46547
46548         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46549                     Ulrich Drepper  <drepper@redhat.com>
46550
46551         [BZ #1302]
46552         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46553         changed.
46554         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46555
46556         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46557
46558         [BZ #281]
46559         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46560         * lib/regcomp.c: Remove unnecessary uses of
46561         unsigned RE_TRANSLATE_TYPE.
46562         * lib/regex_internal.h: Likewise.
46563         * lib/regex_internal.c: Likewise.
46564         * lib/regexec.c: Likewise.
46565         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46566
46567         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46568
46569         * lib/regexec.c (find_recover_state): Remove unnecessary
46570         initialization.
46571         (transit_state_bkref): Make DFA a const pointer.
46572         (get_subexp): Likewise.
46573         (check_arrival): Likewise.
46574         (update_cur_sifted_state): Likewise.
46575         (re_search_internal): Likewise.
46576         (prune_impossible_nodes): Likewise.
46577         (acquire_init_state_context): Likewise.
46578         (proceed_next_node): Likewise.
46579         (set_regs): Likewise.
46580         (free_fail_stack_return): Likewise.
46581         (check_arrival_expand_ecl): Mark DFA parameter as const.
46582         (check_arrival_expand_ecl_sub): Likewise.
46583         (check_subexp_limits): Likewise.
46584         (sub_epsilon_src_nodes):  Likewise.
46585         (add_epsilon_src_nodes):  Likewise.
46586         (merge_state_array): Likewise.
46587         (update_regs): Likewise.
46588         (build_trtable): Likewise.
46589         (sift_states_backward): Mark MCTX parameter as const.
46590         (build_sifted_states): Likewise.
46591         (update_cur_sifted_state): Likewise.
46592         (sift_states_mkref): Likewise.
46593         (check_arrival_expand_ecl): Mark eclosure as const.
46594         (check_dst_limits_calc_pos_1): Likewise.
46595         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46596         pointer.
46597
46598         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46599
46600         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46601         (transit_state_sb): Likewise.
46602         (transit_state_mb): Likewise.
46603         (sift_states_iter_mb): Likewise.
46604         (check_arrival_add_next_nodes): Likewise.
46605         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46606         [_LIBC] (re_search_2_stub): Use mempcpy.
46607
46608         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46609         mbrtowc for very simple UTF-8 case.
46610
46611         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46612         a pointer-to-const.
46613         (re_acquire_state_context): Likewise.
46614         * lib/regex_internal.h: Adjust prototypes.
46615
46616         * lib/regex.c: Prevent using C++ compilers.
46617
46618         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46619         (re_acquire_state_context): Likewise.
46620
46621 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46622
46623         * modules/regex (Depends-on): Add ssize_t.
46624
46625 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46628         translation table.
46629
46630 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46633
46634 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46635             Bruno Haible  <bruno@clisp.org>
46636
46637         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46638         <sys/types.h> and <inttypes.h>.
46639
46640 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46641
46642         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46643         `__error_t_defined', so argp.h will not typedef the former.
46644
46645 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46646
46647         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46648         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46649         glibc names.  Even if glibc is changed to conform to POSIX, the
46650         traditional names will be available anyway, since regex depends on
46651         the extensions module.  Also, fix a longstanding typo in the
46652         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46653         reported by Emanuele Giaquinta.  Also, change sense of cached
46654         variable, so that the message makes sense.
46655
46656 2006-03-24  Simon Josefsson  <jas@extundo.com>
46657
46658         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46659         including some doc fixes.
46660         (base64_encode_alloc): Fix +1 bug on allocation failures.
46661
46662 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46663
46664         * lib/base64.c (base64_encode): Do not read past end of array with
46665         unsanitized input on systems with CHAR_BIT > 8.
46666
46667 2006-03-24  Eric Blake  <ebb9@byu.net>
46668
46669         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46670
46671 2006-03-22  Karl Berry  <karl@gnu.org>
46672
46673         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46674         * config/srclistvars.sh (COREUTILS): new var.
46675
46676 2006-03-17  Jim Meyering  <jim@meyering.net>
46677
46678         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46679         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46680
46681 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46682
46683         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46684         no longer needs it.  Instead, check that regoff_t is as least
46685         as wide as ptrdiff_t.
46686
46687         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46688         so that our regex.h stays compatible with the installed regex.
46689         This is helpful for installers who configure --without-included-regex.
46690         Problem reported by Emanuele Giaquinta.
46691
46692 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46695         Typedef to long int, not to off_, as POSIX will likely change
46696         in that direction.
46697
46698 2006-03-15  Eric Blake  <ebb9@byu.net>
46699
46700         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46701
46702 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46703
46704         * lib/argp-help.c (validate_uparams): Fix typo
46705         * lib/argp-parse.c (argp_default_options): Consistently begin help
46706         messages with a lowercase letter.
46707
46708 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46711         overrun buffers and shouldn't be used (much as gets shouldn't be
46712         used).
46713         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46714
46715 2006-03-08  Simon Josefsson  <jas@extundo.com>
46716
46717         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46718         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46719
46720 2006-03-08  Simon Josefsson  <jas@extundo.com>
46721
46722         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46723         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46724
46725 2006-03-08  Simon Josefsson  <jas@extundo.com>
46726
46727         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46728         signal that configure disabled the device.
46729
46730 2006-03-08  Simon Josefsson  <jas@extundo.com>
46731
46732         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46733         languages.
46734
46735 2006-03-07  Simon Josefsson  <jas@extundo.com>
46736
46737         * modules/getopt (Depends-on): Add unistd.
46738
46739         * modules/unistd: New file.
46740
46741 2006-03-07  Simon Josefsson  <jas@extundo.com>
46742
46743         * modules/gc-random: New file.
46744
46745 2006-03-07  Simon Josefsson  <jas@extundo.com>
46746
46747         * m4/unistd_h.m4: New file.
46748
46749 2006-03-07  Simon Josefsson  <jas@extundo.com>
46750
46751         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46752         test to be side-effect free by storing the result in the cache
46753         variable gl_cv_lib_readline, and moving the assignment of
46754         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46755         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46756
46757 2006-03-07  Simon Josefsson  <jas@extundo.com>
46758
46759         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46760         error on missing devices (the functions will return an error).
46761
46762         * m4/gc.m4: Move random stuff to gc-random.m4
46763
46764 2006-03-07  Simon Josefsson  <jas@extundo.com>
46765
46766         * lib/unistd_.h: New file.
46767
46768 2006-03-07  Simon Josefsson  <jas@extundo.com>
46769
46770         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46771
46772 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46773
46774         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46775         Problem reported by Juan Manuel Guerrero.
46776
46777 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46778
46779         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46780         the unistd module.
46781         * lib/getlogin_r.c: Likewise.
46782         * lib/getlogin_r.h: Likewise.
46783         * lib/glob.c: Likewise.
46784         * lib/pagealign_alloc.c: Likewise.
46785         * lib/unistd_.h: Remove; no longer needed.
46786
46787 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46790         Add unistd.
46791         * modules/c-stack (Depends-on): Add unistd.
46792         * modules/getlogin_r: Likewise.
46793         * modules/glob: Likewise.
46794         * modules/pagealign_alloc: Likewise.
46795         * modules/unistd (Files): Remove lib/unistd_.h.
46796         (EXTRA_DIST): Remove.
46797         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46798         need unistd_.h.
46799         (MOSTLYCLEANFILES): Remove unistd.h-t.
46800
46801 2006-03-03  Simon Josefsson  <jas@extundo.com>
46802
46803         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46804
46805 2006-03-03  Simon Josefsson  <jas@extundo.com>
46806
46807         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46808         libidn and bison.
46809
46810 2006-03-03  Simon Josefsson  <jas@extundo.com>
46811
46812         * build-aux/maint.mk: Add indent target.
46813
46814 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46815
46816         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46817         our replacement poll.h in any case, to avoid a differing
46818         declaration from a system header.  Seen on AIX.
46819
46820 2006-03-01  Simon Josefsson  <jas@extundo.com>
46821
46822         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46823         <kasal@ucw.cz>.
46824
46825 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         * modules/gettime (Depends-on): Add extensions module.
46828         * modules/nanosleep (Depends-on): Likewise.
46829         * modules/settime (Depends-on): Likewise.
46830
46831 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46832
46833         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46834         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46835         pedantically.
46836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46837         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46838
46839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46840         not "==".  Reported by Ralf Wildenhues.
46841
46842 2006-03-01  Karl Berry  <karl@gnu.org>
46843
46844         * doc/Copyright/request-*: new files, synced from gnuorg.
46845
46846 2006-03-01  Karl Berry  <karl@gnu.org>
46847
46848         * config/srclist.txt (Copyright/*): new entries.
46849
46850 2006-02-28  Simon Josefsson  <jas@extundo.com>
46851
46852         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46853
46854 2006-02-27  Simon Josefsson  <jas@extundo.com>
46855
46856         * lib/base64.h: Indent #define's.  From Jim Meyering
46857         <jim@meyering.net>.
46858
46859 2006-02-27  Jim Meyering  <jim@meyering.net>
46860
46861         Revert the change of 2006-02-24, so these files can continue
46862         to be sync'd from gettext.
46863         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46864         of `config.h'.
46865
46866 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46867
46868         * modules/intprops: New file.
46869         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46870         Add intprops.
46871         * modules/getloadavg (Files): Remove lib/intprops.h.
46872         (Depends-on): Add intprops.
46873         * modules/human: Likewise.
46874         * modules/inttostr: Likewise.
46875         * modules/openat: Likewise.
46876         * modules/sig2str: Likewise.
46877         * modules/userspec: Likewise.
46878         * modules/utimecmp: Likewise.
46879         * modules/xnanosleep: Likewise.
46880         * modules/xstrtol: Likewise.
46881
46882 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46883
46884         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46885         * modules/lock-tests (TESTS): Use $(EXEEXT).
46886         * modules/tls-tests: Likewise.
46887         * modules/argp-tests: Likewise.
46888         (check_PROGRAMS): New var, replacing...
46889         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46890
46891 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46892
46893         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46894         `config.h'.
46895
46896 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46897
46898         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46899
46900 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46901
46902         Sync from coreutils.
46903         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46904         gl_CHDIR_SAFER.
46905
46906 2006-02-22  Jim Meyering  <jim@meyering.net>
46907
46908         Sync from coreutils.
46909         * m4/chdir-safer.m4: New file.
46910
46911 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46912
46913         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46914         AT_FDCWD exceeds INT_MAX.
46915         * lib/openat.h (AT_FDCWD): Likewise.
46916
46917 2006-02-17  Eric Blake  <address@hidden>
46918
46919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46920
46921 2006-02-16  Simon Josefsson  <jas@extundo.com>
46922
46923         * modules/getaddrinfo (Depends-on): Add sys_socket.
46924
46925 2006-02-15  Simon Josefsson  <jas@extundo.com>
46926
46927         * build-aux/maint.mk: Add dsyntax-check rule.
46928
46929 2006-02-15  Eric Blake  <ebb9@byu.net>
46930
46931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46932         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46933         'present but cannot compile' warnings on cygwin.
46934         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46935         use ws2tcpip.h if sys/socket.h works.
46936         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46937         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46938
46939 2006-02-14  Simon Josefsson  <jas@extundo.com>
46940
46941         * modules/maintainer-makefile (Files): Rename.
46942
46943         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46944         and (the local) Makefile.cfg to maint-cfg.mk.
46945
46946         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46947         to the latter.
46948
46949         * modules/maintainer-makefile: New module.
46950
46951         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46952         severaly stripped to make it possible to build it up from scratch
46953         with reliable tests.
46954
46955         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46956         fixes to permit overriding the default actions when configure and
46957         makefile are not available.
46958
46959 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46960
46961         Sync from coreutils.
46962         * modules/lstat (Depends-on): Don't depend on xalloc.
46963         (License): Change from GPL to LGPL, since this is now simply a
46964         replacement for a libc function.
46965
46966 2006-02-14  Jim Meyering  <jim@meyering.net>
46967
46968         Sync from coreutils.
46969
46970         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46971         failure on deficient systems, and simplify gnulib lgpl dependencies.
46972         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46973         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46974
46975         * lib/xalloc-die.c: Remove unused definition of N_.
46976
46977 2006-02-14  Jim Meyering  <jim@meyering.net>
46978
46979         Sync from coreutils.
46980         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46981         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46982         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46983         double-quote uses of that variable, to accommodate the rare case in
46984         which getmntent is available in none of the libraries checked.  This
46985         happens at least on FreeBSD 5.0.
46986
46987 2006-02-13  Simon Josefsson  <jas@extundo.com>
46988
46989         * gnulib-tool (Usage): Fix --import, from
46990         karl@freefriends.org (Karl Berry).
46991
46992 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46993
46994         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46995
46996 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46997
46998         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46999         "autoupdate" on 2005-12-12.
47000
47001 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47002
47003         * modules/closeout (Depends-on): Remove atexit.
47004
47005 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47006
47007         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47008         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47009
47010 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47011
47012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47013         __EXTENSIONS__ if this causes compilation to fail.  Problem
47014         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47015         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47016
47017 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47018
47019         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47020         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47022         All uses changed.
47023
47024 2006-01-26  Simon Josefsson  <jas@extundo.com>
47025
47026         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47027         prototype is visible on mingw32.
47028
47029         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47030         for mingw32.
47031
47032         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47033         mingw32).
47034
47035 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47036
47037         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47038         attempt to open for write; this always fails, at least on POSIX
47039         hosts.  This reinstates the 2006-01-09 change, which was
47040         inadvertently removed.
47041
47042 2006-01-26  Bruno Haible  <bruno@clisp.org>
47043
47044         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47045         Reported by Paul Eggert.
47046
47047 2006-01-26  Bruno Haible  <bruno@clisp.org>
47048             Paul Eggert  <eggert@cs.ucla.edu>
47049
47050         * lib/stdbool_.h (_Bool)
47051         [(! (defined __cplusplus || defined __BEOS__)
47052           && !defined __GNUC__
47053           && !(defined __HP_cc || defined __xlc__
47054                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47055                || defined __sgi))]:
47056         #define to signed char in these cases too; this simplifies
47057         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47058         etc., separately) and makes it more conservative.
47059
47060 2006-01-25  Simon Josefsson  <jas@extundo.com>
47061
47062         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47063         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47064         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47065
47066 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47067
47068         * lib/argp-namefrob.h: Bugfix. Remove stray #
47069
47070 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47071
47072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47073         so that we test the test.
47074         Check for yet another HP-UX cc bug involving *bool |= bool.
47075
47076 2006-01-25  Karl Berry  <karl@gnu.org>
47077
47078         * config/srclist.txt (vasnprintf.c): sync lost.
47079
47080 2006-01-25  Jim Meyering  <jim@meyering.net>
47081
47082         Sync from the stable (b5) branch of coreutils:
47083
47084         * lib/fts.c (fts_children): Don't let close() clobber errno from
47085         failed fchdir().
47086
47087         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47088         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47089         a dangling symlink.  That can also happen at least for ELOOP.
47090         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47091         FYI, this bug predates the inclusion of fts.c in coreutils.
47092
47093         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47094         in their own block, so pre-c99 compilers don't object.
47095
47096         Avoid the double-free (first in fts_read, second in fts_close) that
47097         would occur when an `active' directory is made inaccessible (e.g.,
47098         via chmod a-x) during a traversal.
47099         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47100         before returning.  Reproduce this failure by
47101         mkdir -p a/b; cd a; chmod a-x . b
47102         Reported by Stavros Passas.
47103
47104 2006-01-25  Jim Meyering  <jim@meyering.net>
47105
47106         * lib/fileblocks.c: Remove more useless parentheses.
47107         * lib/readutmp.h: Likewise.
47108
47109 2006-01-25  Bruno Haible  <bruno@clisp.org>
47110
47111         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47112         warnings.
47113         Reported by Paul Eggert.
47114
47115 2006-01-25  Bruno Haible  <bruno@clisp.org>
47116
47117         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47118         rid of a trap command. For Solaris sh.
47119         Reported by Mark D. Baushke <mdb@gnu.org>.
47120
47121 2006-01-24  Simon Josefsson  <jas@extundo.com>
47122
47123         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47124         Bruno.
47125
47126 2006-01-24  Karl Berry  <karl@gnu.org>
47127
47128         * config/srclist.txt (argp-namefrob.h): sync lost.
47129
47130 2006-01-24  Jim Meyering  <jim@meyering.net>
47131
47132         * modules/openat (Files): Add lib/intprops.h.
47133         From Mark D. Baushke.
47134
47135 2006-01-24  Jim Meyering  <jim@meyering.net>
47136
47137         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47138         Reported by Mark D. Baushke.
47139
47140 2006-01-24  Jim Meyering  <jim@meyering.net>
47141
47142         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47143
47144 2006-01-24  Bruno Haible  <bruno@clisp.org>
47145
47146         * modules/strnlen (Maintainer): Change from glibc to all.
47147
47148 2006-01-24  Bruno Haible  <bruno@clisp.org>
47149
47150         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47151         Patch by Paul Eggert.
47152
47153 2006-01-24  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47156         already has it.
47157         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47158         2005-11-26.
47159
47160         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47161         'signed char' to avoid problems with the built-in _Bool type.
47162         Reported by Paul Eggert on 2005-11-26.
47163
47164 2006-01-24  Bruno Haible  <bruno@clisp.org>
47165
47166         * gnulib-tool (func_import): Avoid constructing complicated sed
47167         expressions inside backquote.
47168         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47169
47170 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47171
47172         These changes imported from libc.
47173         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47174         test and two separate function calls.
47175         * lib/strndup.c (__strndup): Add libc_hidden_def.
47176
47177 2006-01-23  Simon Josefsson  <jas@extundo.com>
47178
47179         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47180         Remove the test_*_SOURCES variable: automake infers it by default.
47181         * modules/tls-tests: Likewise.
47182
47183 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47184
47185         Work around porting bugs reported by Dieter in
47186         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47187         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47188         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47189         Include "getopt.h" first, to check interface.
47190         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47191         !HAVE_DECL_GETENV.
47192         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47193         (__strndup): Revert to K&R-style function dfns, the glibc style.
47194         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47195         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47196         Include strnlen.h first, to get prototype properly.
47197         (strnlen): Renamed from __strnlen.
47198         Remove weak alias.
47199
47200 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47201
47202         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47203
47204 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         * config/srclist.txt: Adjust to reflect glibc reorganization.
47207         This affects only comments.
47208
47209 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47210
47211          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47212          Reported by Bruce Korb <bkorb@gnu.org>.
47213
47214 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47217         to pacify gcc -Wswitch-default.
47218
47219 2006-01-22  Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47222         temporary buffer for sprintf, take into account the precision also
47223         for 'd', 'i', 'u', 'o', 'x', 'X'.
47224
47225 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47226
47227         * modules/argp-tests: New module
47228         * tests/test-argp.c: New file
47229         * tests/test-argp-2.sh: New file
47230
47231 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47232
47233         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47234         (__argp_base_name): Removed
47235         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47236         typo.
47237         (__argp_base_name): Provide macro definition or extern declaration
47238         depending on the configuration
47239
47240 2006-01-20  Simon Josefsson  <jas@extundo.com>
47241
47242         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47243
47244 2006-01-20  Simon Josefsson  <jas@extundo.com>
47245
47246         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47247
47248 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47249
47250         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47251         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47252         Suggested by Bruno Haible.
47253
47254 2006-01-20  Karl Berry  <karl@gnu.org>
47255
47256         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47257         until changes propagate, I guess.
47258
47259 2006-01-19  Simon Josefsson  <jas@extundo.com>
47260
47261         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47262
47263 2006-01-19  Simon Josefsson  <jas@extundo.com>
47264
47265         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47266
47267 2006-01-19  Simon Josefsson  <jas@extundo.com>
47268
47269         * gnulib-tool: Set check_PROGRAMS.
47270
47271         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47272         modules/des-tests, modules/gc-arcfour-tests,
47273         modules/gc-arctwo-tests, modules/gc-des-tests,
47274         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47275         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47276         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47277         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47278         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47279         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47280         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47281         test_*_SOURCES.
47282
47283 2006-01-18  Simon Josefsson  <jas@extundo.com>
47284
47285         * modules/socklen (Depends-on): Depend on sys_socket.
47286
47287 2006-01-18  Simon Josefsson  <jas@extundo.com>
47288
47289         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47290         modules/des-tests, modules/gc-arcfour-tests,
47291         modules/gc-arctwo-tests, modules/gc-des-tests,
47292         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47293         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47294         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47295         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47296         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47297         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47298         $(EXEEXT) to automake TESTS variable, for mingw32.
47299
47300 2006-01-17  Simon Josefsson  <jas@extundo.com>
47301
47302         * modules/socklen (Include): Need sys/socket.h.
47303
47304 2006-01-17  Bruno Haible  <bruno@clisp.org>
47305
47306         * modules/ssize_t (Include): Add <sys/types.h>.
47307
47308 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47309
47310         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47311         it's not portable and it doesn't work with cross-compiles.
47312         Problem reported by Bruno Haible.  Fix missing-$ typo in
47313         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47314         -zignore from being used with Sun's C compiler.
47315
47316 2006-01-12  Simon Josefsson  <jas@extundo.com>
47317
47318         * lib/base64.c: Fix warning, reported by Bruno Haible
47319         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47320
47321 2006-01-12  Bruno Haible  <bruno@clisp.org>
47322
47323         * modules/ldd: New file.
47324         * build-aux/ldd.sh.in: New file.
47325         * MODULES.html.sh (Support for building libraries and executables): Add
47326         ldd.
47327
47328 2006-01-12  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/ldd.m4: New file.
47331
47332 2006-01-12  Bruno Haible  <bruno@clisp.org>
47333
47334         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47335         endless loop while replacing $auxdir with build-aux.
47336
47337 2006-01-11  Simon Josefsson  <jas@extundo.com>
47338
47339         * lib/stdint_.h (SIZE_MAX): Add missing (.
47340
47341 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47342
47343         Sync from coreutils.
47344         * lib/md5.c: Fix commentary typos.
47345         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47346         * lib/md5.h (__attribute__): Remove; unused.
47347         * lib/sha1.c: Fix commentary to match md5 better.
47348         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47349         so that we don't need to worry about alignment.  All uses changed.
47350         This merges the 2005-10-28 md5 change into sha1.
47351
47352 2006-01-11  Jim Meyering  <jim@meyering.net>
47353
47354         Sync from coreutils.
47355         * lib/md5.c (OP): Fix spacing.
47356
47357 2006-01-11  Bruno Haible  <bruno@clisp.org>
47358
47359         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47360         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47361         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47362
47363 2006-01-11  Bruno Haible  <bruno@clisp.org>
47364
47365         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47366         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47367         the "early" section as well.
47368
47369 2006-01-11  Bruno Haible  <bruno@clisp.org>
47370
47371         Avoid "ar: no archive members specified" error on MacOS X.
47372         * gnulib-tool (func_modules_add_dummy): New function.
47373         (func_import, func_create_testdir): Invoke it.
47374
47375 2006-01-11  Bruno Haible  <bruno@clisp.org>
47376
47377         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47378         with $auxdir in AC_CONFIG_FILES statements.
47379
47380 2006-01-11  Bruno Haible  <bruno@clisp.org>
47381
47382         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47383         Initialize also noinst_HEADERS to empty.
47384
47385 2006-01-11  Bruno Haible  <bruno@clisp.org>
47386
47387         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47388         variables.
47389         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47390         autoreconf.
47391
47392 2006-01-11  Bruno Haible  <bruno@clisp.org>
47393
47394         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47395         overridable by the user.
47396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47397
47398 2006-01-10  Simon Josefsson  <jas@extundo.com>
47399
47400         * modules/sys_socket: New file.
47401
47402 2006-01-10  Simon Josefsson  <jas@extundo.com>
47403
47404         * m4/sys_socket_h.m4: New file.
47405
47406 2006-01-10  Simon Josefsson  <jas@extundo.com>
47407
47408         * lib/socket_.h: New file.
47409
47410 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47411
47412         * modules/readutmp (Maintainer): Add myself.
47413
47414 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47415
47416         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47417         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47418         People who are still concerned with buggy memcmp implementations
47419         can invoke gl_FUNC_MEMCMP themselves.
47420
47421 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47422
47423         * lib/regex_internal.h (BITSET_WORD_BITS):
47424         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47425         preprocessor mishandles large unsigned values as if they were signed.
47426         Problem reported by Claudio Fontana in
47427         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47428
47429 2006-01-10  Jim Meyering  <jim@meyering.net>
47430
47431         Avoid the double-free (first in fts_read, second in fts_close) that
47432         would occur when an `active' directory is made inaccessible (e.g.,
47433         via chmod a-x) during a traversal.
47434         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47435         before returning.  Reproduce this failure by
47436         mkdir -p a/b; cd a; chmod a-x . b
47437         Reported by Stavros Passas.
47438
47439         Sync from coreutils.
47440         * lib/sha1.c: Tweak grammar in a comment.
47441
47442 2006-01-10  Jim Meyering  <jim@meyering.net>
47443
47444         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47445         Patch by Joerg Sonnenberger.
47446
47447 2006-01-10  Bruno Haible  <bruno@clisp.org>
47448
47449         * modules/readutmp: Depend on module free.
47450         * modules/strtok_r: Depend on module restrict.
47451
47452 2006-01-10  Bruno Haible  <bruno@clisp.org>
47453
47454         * modules/gettext (configure.ac): Add an invocation of
47455         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47456
47457 2006-01-10  Bruno Haible  <bruno@clisp.org>
47458
47459         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47460         Reported by Werner Lemberg <wl@gnu.org>.
47461
47462 2006-01-10  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/localcharset.c: Update from GNU gettext.
47465
47466 2006-01-10  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/argp.h (__const): Remove macro. Use const instead.
47469         * lib/argp-fmtstream.h (__const): Likewise.
47470         * lib/glob_.h (__const): Remove macro.
47471         * lib/glob-libc.h: Use const instead of __const.
47472
47473 2006-01-10  Bruno Haible  <bruno@clisp.org>
47474
47475         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47476         variable.
47477         Needed to avoid an automake error regarding the 'gettext' module.
47478
47479 2006-01-09  Simon Josefsson  <jas@extundo.com>
47480
47481         * modules/inet_ntop (Depends-on): Add restrict.
47482
47483 2006-01-09  Simon Josefsson  <jas@extundo.com>
47484
47485         * modules/gc-rijndael-tests (License): Put under LGPL.
47486
47487         * modules/gc-des-tests (License): Likewise.
47488
47489         * modules/gc-arcfour-tests (License): Likewise.
47490
47491         * modules/gc-arctwo-tests (License): Likewise.
47492
47493         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47494
47495         * modules/gc-hmac-sha1-tests (Files): Likewise.
47496
47497         * modules/gc-hmac-md5-tests (License): Likewise.
47498
47499         * modules/gc-sha1-tests (License): Likewise.
47500
47501         * modules/gc-md5-tests (License): Likewise.
47502
47503         * modules/gc-md4-tests (License): Likewise.
47504
47505         * modules/gc-md2-tests (License): Likewise.
47506
47507         * modules/gc-tests (License): Likewise.
47508
47509         * modules/des-tests (License): Likewise.
47510
47511         * modules/md4-tests (License): Likewise.
47512
47513         * modules/md2-tests (License): Likewise.
47514
47515 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47516
47517         Sync from coreutils:
47518
47519         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47520         * modules/lib-ignore: New file.
47521         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47522         chdir-safer.m4, lchmod.m4.
47523         * modules/openat: Add mkdirat.c, openat-priv.h.
47524
47525 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47526
47527         Sync from coreutils.
47528         * m4/lib-ignore.m4: New file.
47529         * m4/lchmod.m4: New file.
47530
47531 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47532
47533         Sync from coreutils.
47534         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47535         for write access: POSIX says that must fail.
47536         * lib/fts.c (diropen): Likewise.
47537         * lib/save-cwd.c (save_cwd): Likewise.
47538         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47539         well, for minor improvements on hosts that lack O_DIRECTORY.
47540         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47541         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47542         Fall back on chown if open failed with EACCES.
47543
47544         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47545         Report an error at compile-time if only a 1-second nominal clock
47546         resolution is found.
47547
47548         * lib/lchmod.h: New file.
47549         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47550         (make_dir_parents): Use lchown rather than chown, and
47551         lchmod rather than chmod.
47552
47553         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47554         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47555         "proc" reported by n0dalus.
47556
47557         * lib/mountlist.c: Include <limits.h>.
47558         (dev_from_mount_options)
47559         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47560         New function.  It no longer assumes "dev=" has the System V meaning
47561         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47562         (read_file_system_list)
47563         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47564         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47565         dev= in that case.
47566
47567         * lib/posixtm.h (PDS_PRE_2000): New macro.
47568         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47569         allow_century.  All usages changed.  Reject dates outside the range
47570         1969-1999 if PDS_PRE_2000 is used.
47571
47572 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47573
47574         Sync from coreutils.
47575         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47576         (Time of day items): Mention the possibility of leap seconds.
47577         Problem reported by Dr. David Alan Gilbert.
47578
47579 2006-01-09  Jim Meyering  <jim@meyering.net>
47580
47581         Sync from coreutils.
47582
47583         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47584
47585         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47586
47587         * lib/modechange.c (mode_compile): Reject an invalid mode string
47588         that starts with an octal digit.  From Andreas Gruenbacher.
47589
47590         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47591         and dup to open_safer and dup_safer, respectively.
47592         (openat_permissive): Fix typo in comment.
47593
47594         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47595         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47596         (_): Remove; no longer needed.
47597         (openat): Renamed from rpl_openat; no need for rpl_openat
47598         since openat.h renames openat for us.
47599         Replace most of the body with a call to openat_permissive,
47600         to avoid duplicate code.
47601         Port to (probably hypothetical) environments were mode_t is
47602         wider than int.
47603         (openat_permissive): Require mode arg, so that we can check
47604         types better.  Put it just after flags.  Change cwd failure
47605         indicator from pointer-to-bool to pointer-to-errno-value.
47606         All callers changed.
47607         Invoke openat_save_fail and/or openat_restore_fail if
47608         cwd_errno is null, so that openat can call us.
47609         (openat_permissive, fdopendir, fstatat, unlinkat):
47610         Simplify errno handling to avoid some duplicate code,
47611         as it's OK to set errno on success.
47612         * lib/openat.h: Revamp code so that function macros depend on
47613         __OPENAT_PREFIX only, not also on AT_FDCWD.
47614         (openat_ro): Remove.  Caller changed to use openat_permissive.
47615         (openat_permissive): Now a macro, if not a function.
47616         (openat_restore_fail, openat_save_fail): Now always functions,
47617         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47618
47619         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47620         and openat.c.
47621         * lib/mkdirat.c: Include openat-priv.h.
47622         Remove definitions of macros defined therein.
47623         * lib/openat.c: Likewise.
47624
47625         * lib/mkdirat.c (mkdirat): New file and function.
47626         * lib/openat.h (mkdirat): Declare.
47627
47628         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47629
47630         * lib/openat.h (openat_permissive): Declare.
47631         (openat_ro): Define.
47632
47633         * lib/openat.c (EXPECTED_ERRNO): New macro.
47634         (openat_permissive): New function -- used in remove.c rewrite.
47635         (all functions): Set errno just before returning, only if there
47636         was an actual failure.
47637         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47638
47639         Emulate openat-family functions using Linux's procfs, if possible.
47640         Idea and some code based on Ulrich Drepper's glibc changes.
47641
47642         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47643         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47644         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47645         before falling back on save_cwd and restore_cwd.
47646         (fdopendir, fstatat, unlinkat): Likewise.
47647
47648         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47649         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47650
47651         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47652         as second argument to va_arg.  Otherwise, some versions of gcc
47653         warn that `if this code is reached, the program will abort'.
47654
47655 2006-01-09  Jim Meyering  <jim@meyering.net>
47656
47657         Sync from coreutils.
47658         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47659         Require openat-priv.h.
47660
47661 2006-01-09  Bruno Haible  <bruno@clisp.org>
47662
47663         * modules/strnlen (Include): Use strnlen.h.
47664
47665 2006-01-09  Bruno Haible  <bruno@clisp.org>
47666
47667         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47668
47669 2006-01-09  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/sysexit_.h (EX_OK): New macro.
47672         Suggested by Martin Lambers <marlam@marlam.de>.
47673
47674 2006-01-09  Bruno Haible  <bruno@clisp.org>
47675
47676         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47677         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47678
47679 2006-01-09  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47682         numbers.
47683
47684 2006-01-09  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47687         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47688         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47689         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47690
47691 2006-01-09  Bruno Haible  <bruno@clisp.org>
47692
47693         * build-aux/javacomp.sh.in: New file, moved from lib/.
47694         * modules/javacomp-script (Files): Update.
47695         (configure.ac): Add AC_CONFIG_FILES invocation.
47696         (EXTRA_DIST): Remove variable.
47697
47698         * build-aux/javaexec.sh.in: New file, moved from lib/.
47699         * modules/javaexec (Files): Update.
47700         (configure.ac): Add AC_CONFIG_FILES invocation.
47701         (EXTRA_DIST): Remove javaexec.sh.in.
47702
47703         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47704         * modules/csharpcomp-script (Files): Update.
47705         (configure.ac): Add AC_CONFIG_FILES invocation.
47706         (EXTRA_DIST): Remove variable.
47707
47708         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47709         * modules/csharpexec (Files): Update.
47710         (configure.ac): Add AC_CONFIG_FILES invocation.
47711         (EXTRA_DIST): Remove csharpexec.sh.in.
47712
47713 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47714
47715         Sync from coreutils.
47716
47717         Add POSIX ACL support
47718         * lib/acl.h (copy_acl, set_acl): Add declarations.
47719         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47720         systems other than Linux.
47721         (chmod_or_fchmod): New function: use fchmod when possible,
47722         and chmod otherwise.
47723         (file_has_acl): Add a POSIX ACL implementation, with a
47724         Linux-specific subcase.
47725         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47726         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47727         acls are unsupported.
47728         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47729         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47730         are unsupported.
47731
47732 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47733
47734         Sync from coreutils.
47735         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47736
47737 2006-01-07  Bruno Haible  <bruno@clisp.org>
47738
47739         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47740         gl_EARLY.
47741
47742 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47743
47744         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47745         Problem reported for Mingw by Mark Junker.
47746
47747 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47748
47749         * README: Gnulib normally doesn't generate a tarball.
47750
47751 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47752
47753         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47754         long int, not int, for nanosecond counts, so that people who are
47755         used to POSIX struct timespec won't be surprised.  Reported by Jim
47756         Meyering.
47757
47758 2005-12-28  Bruno Haible  <bruno@clisp.org>
47759
47760         * build-aux/config.rpath: Update from GNU gettext.
47761
47762 2005-12-16  Jim Meyering  <jim@meyering.net>
47763
47764         * modules/fprintftime: New module.
47765         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47766
47767 2005-12-16  Jim Meyering  <jim@meyering.net>
47768
47769         * m4/fprintftime.m4: New file.
47770
47771 2005-12-16  Jim Meyering  <jim@meyering.net>
47772
47773         * lib/fprintftime.c, lib/fprintftime.h: New files.
47774
47775 2005-12-15  Simon Josefsson  <jas@extundo.com>
47776
47777         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47778         new m4/socklen.m4.
47779
47780 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47781
47782         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47783         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47784
47785 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47786
47787         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47788         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47789         struct uparams is valid. Fall back to the default values if it is
47790         not.
47791
47792 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47793
47794         * modules/argp (Files): Add argp-pin.c
47795         (Depends-on): dirname
47796         (lib_SOURCES): Add argp-pin.c
47797
47798 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47799
47800         * m4/argp.m4:  Check if program_invocation_name and
47801         program_invocation_short_name are declared and define appropriate
47802         macros if they are not.
47803
47804 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47805
47806         * lib/argp-help.c (__argp_base_name): New function
47807         (__argp_short_program_name): Rewrite using __argp_base_name
47808         * lib/argp-namefrob.h: Define program_invocation_name and
47809         program_invocation_short_name if requested
47810         (__argp_base_name): Add prototype
47811         * lib/argp-parse.c (argp_def): Use gettext wrappers
47812         (argp_default_parser): Use __argp_base_name
47813         * lib/argp-pin.c: New file. Defines program_invocation_name and
47814         program_invocation_short_name on systems that lack them.
47815
47816 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47817
47818         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47819         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47820         porting problem reported by Georg Schwarz in
47821         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47822
47823 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47824
47825         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47826         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47827         porting problem reported by Georg Schwarz in
47828         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47829
47830 2005-12-05  Bruno Haible  <bruno@clisp.org>
47831
47832         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47833         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47834         Reported by Mark Junker <mjscod@gmx.de>.
47835
47836 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47837
47838         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47839         Use implementation from Albert Chin, with some
47840         comments/corrections by Stepan Kasal and myself.
47841
47842 2005-12-02  Bruno Haible  <bruno@clisp.org>
47843
47844         * gnulib-tool (func_import): Accept GPLed build tool modules when
47845         --lgpl is given.
47846         * modules/csharpcomp-script: New file.
47847         * modules/csharpcomp: Depend on it.
47848         * modules/javacomp-script: New file.
47849         * modules/javacomp: Depend on it.
47850         Suggested by Simon Josefsson.
47851
47852 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47853
47854         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47855         statement, to work around an HP-UX 10.20 compiler bug reported by
47856         Peter O'Gorman.
47857
47858 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47859
47860         * modules/savedir (Depends-on): Add openat.
47861
47862 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47863
47864         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47865         (uintmax_t) [defined uintmax_t]: Do not declare.
47866         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47867         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47868         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47869         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47870         sake of portability to weird hosts that C allows (though we don't
47871         know of any practical examples).
47872
47873         * lib/savedir.h (fdsavedir): New decl.
47874         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47875         contains most of the former guts of savedir.
47876         (savedir): Use savedirstream.
47877         Include "openat.h".
47878
47879 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         * modules/obstack (Files): Add m4/ulonglong.m4.
47882         Problem reported by Davide Angelocola.
47883
47884 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47885
47886         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47887         coreutils no longer futzes with rounding modes.
47888
47889 2005-11-14  Jim Meyering  <jim@meyering.net>
47890
47891         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47892         replacement of mkstemp.
47893
47894 2005-11-10  Simon Josefsson  <jas@extundo.com>
47895
47896         * lib/readline.c: Remove EOL.
47897
47898 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         * modules/gethrxtime (Depends-on): Add gettime.
47901
47902 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47903
47904         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47905         or gettimeofday; no longer needed.
47906
47907 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47908
47909         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47910         time business.
47911         (gethrxtime) [! (HAVE_NANOUPTIME
47912         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47913         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47914         our own approximation.
47915
47916 2005-11-08  Eric Blake  <ebb9@byu.net>
47917
47918         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47919
47920 2005-11-08  Eric Blake  <ebb9@byu.net>
47921
47922         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47923
47924 2005-11-04  Bruno Haible  <bruno@clisp.org>
47925
47926         * gnulib-tool: Implement --update mode.
47927
47928 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47929
47930         Fix porting problem reported by Theodoros V. Kalamatianos.
47931         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47932         Don't assume that futimes failing means we must fail.
47933
47934 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47935
47936         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47937         variables to suggest the intended function of the PATH_MAX check.
47938
47939 2005-10-30  Kean Johnston  <jkj@sco.com>
47940
47941         Trivial changes to support SCO systems.
47942         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47943         as PATH_MAX.
47944         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47945         where __ptr is null when no I/O is pending.
47946
47947 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47948
47949         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47950         leave errno alone.  Problem reported by Dmitry V. Levin.
47951
47952 2005-10-28  Simon Josefsson  <jas@extundo.com>
47953
47954         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47955         Test more.
47956
47957         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47958
47959         * modules/md2, modules/md2-tests: New files.
47960
47961 2005-10-28  Simon Josefsson  <jas@extundo.com>
47962
47963         * m4/inet_ntop.m4: More tests.
47964
47965         * m4/gc-md2.m4, md2.m4: New file.
47966
47967 2005-10-28  Simon Josefsson  <jas@extundo.com>
47968
47969         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47970         "restrict" keywords, as per POSIX.  Protect the function
47971         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47972         Don't use K&R prototypes.  Check the sprintf return values.
47973         Re-define EAFNOSUPPORT if not present.  Indent.
47974
47975         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47976         suggested by Bruno Haible <bruno@clisp.org>.
47977
47978         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47979
47980         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47981
47982         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47983         libgcrypt).
47984
47985         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47986
47987         * lib/md2.h, lib/md2.c: New files.
47988
47989 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47992         errno alone.  Problem reported by Frederic Jolliton.
47993
47994 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47995
47996         * modules/verify (License): Change from GPL to LGPL.  This is a
47997         tiny module and there are apparently near-equivalents that are
47998         under the BSD license.
47999
48000 2005-10-24  Simon Josefsson  <jas@extundo.com>
48001
48002         * modules/sha1: Relicense to LGPL.
48003
48004 2005-10-24  Simon Josefsson  <jas@extundo.com>
48005
48006         * lib/md4.h: Shrink buffer size, now that we changed the type.
48007
48008 2005-10-23  Simon Josefsson  <jas@extundo.com>
48009
48010         * gnulib-tool (func_import): Fix --tests-base.
48011
48012 2005-10-22  Simon Josefsson  <jas@extundo.com>
48013
48014         * modules/arcfour (Depends-on): Need stdint.
48015
48016 2005-10-22  Simon Josefsson  <jas@extundo.com>
48017
48018         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48019         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48020
48021 2005-10-22  Simon Josefsson  <jas@extundo.com>
48022
48023         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48024         suggested by Bruno Haible <bruno@clisp.org>.
48025
48026 2005-10-22  Simon Josefsson  <jas@extundo.com>
48027
48028         * lib/crc.h: Include stddef.h, for size_t.
48029
48030 2005-10-22  Simon Josefsson  <jas@extundo.com>
48031
48032         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48033         arcfour_context struct (simplify test vector testing in GNU
48034         Shishi).
48035
48036 2005-10-21  Simon Josefsson  <jas@extundo.com>
48037
48038         * modules/des, modules/des-tests: New files.
48039
48040         * modules/gc-des, modules/gc-des-tests: New files.
48041
48042         * tests/test-des.c, tests/test-gc-des.c: New file.
48043
48044 2005-10-21  Simon Josefsson  <jas@extundo.com>
48045
48046         * modules/arctwo, modules/arctwo-tests: New files.
48047
48048         * tests/test-arctwo.c: New file.
48049
48050         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48051
48052         * tests/test-gc-arctwo.c: New file.
48053
48054 2005-10-21  Simon Josefsson  <jas@extundo.com>
48055
48056         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48057         Bruno Haible <bruno@clisp.org>.
48058
48059         * m4/gc-des.m4: New file.
48060
48061 2005-10-21  Simon Josefsson  <jas@extundo.com>
48062
48063         * m4/arctwo.m4: New file.
48064
48065         * m4/gc-arctwo.m4: New file.
48066
48067 2005-10-21  Simon Josefsson  <jas@extundo.com>
48068
48069         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48070         block.
48071
48072 2005-10-21  Simon Josefsson  <jas@extundo.com>
48073
48074         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48075         <bruno@clisp.org>.
48076
48077         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48078
48079         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48080         Bruno Haible <bruno@clisp.org>.
48081
48082         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48083         <bruno@clisp.org>.
48084
48085 2005-10-21  Simon Josefsson  <jas@extundo.com>
48086
48087         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48088
48089 2005-10-21  Simon Josefsson  <jas@extundo.com>
48090
48091         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48092
48093 2005-10-21  Simon Josefsson  <jas@extundo.com>
48094
48095         * lib/des.h, lib/des.c: New files.
48096
48097         * lib/gc-gnulib.c: Support DES.c
48098
48099 2005-10-21  Simon Josefsson  <jas@extundo.com>
48100
48101         * lib/arctwo.h, lib/arctwo.c: New files.
48102
48103         * lib/gc-gnulib.c: Support ARCTWO.
48104
48105 2005-10-21  Simon Josefsson  <jas@extundo.com>
48106
48107         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48108         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48109
48110 2005-10-21  Simon Josefsson  <jas@extundo.com>
48111
48112         * gnulib-tool (func_import, func_create_testdir): Define automake
48113         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48114         Makefile.am snippet),
48115         suggested by Bruno Haible <bruno@clisp.org>.
48116
48117         * modules/gc (Makefile.am): Use it.
48118
48119 2005-10-21  Bruno Haible  <bruno@clisp.org>
48120
48121         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48122         patch.
48123
48124 2005-10-19  Simon Josefsson  <jas@extundo.com>
48125
48126         * tests/test-gc-rijndael.c: New file.
48127
48128         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48129
48130 2005-10-19  Simon Josefsson  <jas@extundo.com>
48131
48132         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48133         interface too.
48134
48135 2005-10-19  Simon Josefsson  <jas@extundo.com>
48136
48137         * tests/test-gc-arcfour.c: New file.
48138
48139         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48140
48141 2005-10-19  Simon Josefsson  <jas@extundo.com>
48142
48143         * modules/gc-md4, modules/gc-md4-tests: New file.
48144
48145         * tests/test-gc-md4.c: New file.
48146
48147 2005-10-19  Simon Josefsson  <jas@extundo.com>
48148
48149         * m4/gc-md4.m4: New file.
48150
48151 2005-10-19  Simon Josefsson  <jas@extundo.com>
48152
48153         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48154         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48155         <kasal@ucw.cz>.
48156
48157 2005-10-19  Simon Josefsson  <jas@extundo.com>
48158
48159         * m4/gc-arcfour.m4: New file.
48160
48161         * m4/gc-rijndael.m4: New file.
48162
48163 2005-10-19  Simon Josefsson  <jas@extundo.com>
48164
48165         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48166
48167 2005-10-19  Simon Josefsson  <jas@extundo.com>
48168
48169         * lib/gc-gnulib.c: Support ARCFOUR.
48170
48171 2005-10-19  Simon Josefsson  <jas@extundo.com>
48172
48173         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48174         support.
48175
48176         * lib/gc.h: Add ECB enum type.
48177
48178         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48179
48180 2005-10-18  Simon Josefsson  <jas@extundo.com>
48181
48182         * tests/test-md5.c: New file.
48183
48184         * modules/md5-tests: New file.
48185
48186 2005-10-18  Simon Josefsson  <jas@extundo.com>
48187
48188         * tests/test-md4.c: New file.
48189
48190         * modules/md4, modules/md4-tests: New files.
48191
48192 2005-10-18  Simon Josefsson  <jas@extundo.com>
48193
48194         * m4/md4.m4: New file.
48195
48196 2005-10-18  Simon Josefsson  <jas@extundo.com>
48197
48198         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48199
48200 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48201
48202         * gnulib-tool (func_create_testdir): Omit the second check whether
48203         BUILT_SOURCES in nonempty.
48204
48205 2005-10-17  Simon Josefsson  <jas@extundo.com>
48206
48207         * tests/test-rijndael.c: New file.
48208
48209 2005-10-17  Simon Josefsson  <jas@extundo.com>
48210
48211         * modules/sha1: Depend on stdint instead of md5.
48212
48213         * modules/md5: Depend on stdint, remove uint32_t.
48214
48215 2005-10-17  Simon Josefsson  <jas@extundo.com>
48216
48217         * modules/gc-sha1-tests: New file.
48218
48219         * tests/test-gc-sha1.c: New file.
48220
48221 2005-10-17  Simon Josefsson  <jas@extundo.com>
48222
48223         * m4/md5.m4: Remove call to uint32_t.m4.
48224
48225 2005-10-17  Simon Josefsson  <jas@extundo.com>
48226
48227         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48228
48229         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48230         md5.h.
48231
48232         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48233
48234         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48235
48236 2005-10-17  Simon Josefsson  <jas@extundo.com>
48237
48238         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48239
48240 2005-10-17  Simon Josefsson  <jas@extundo.com>
48241
48242         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48243
48244 2005-10-17  Simon Josefsson  <jas@extundo.com>
48245
48246         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48247
48248         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48249
48250 2005-10-17  Bruno Haible  <bruno@clisp.org>
48251
48252         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48253         that it can also be used in a test.
48254
48255 2005-10-16  Bruno Haible  <bruno@clisp.org>
48256
48257         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48258         TESTS_ENVIRONMENT, so that individual tests can augment it.
48259
48260         * gnulib-tool (func_create_testdir): Use an intermediate target for
48261         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48262         macros, like $(ALLOCA_H), which cannot be passed through the command
48263         line.
48264
48265 2005-10-15  Simon Josefsson  <jas@extundo.com>
48266
48267         * modules/rijndael-tests: New file.
48268
48269         * modules/rijndael: New file.
48270
48271 2005-10-15  Simon Josefsson  <jas@extundo.com>
48272
48273         * m4/rijndael.m4: New file.
48274
48275 2005-10-15  Simon Josefsson  <jas@extundo.com>
48276
48277         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48278
48279         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48280
48281 2005-10-14  Simon Josefsson  <jas@extundo.com>
48282
48283         * tests/test-arcfour.c: New file.
48284
48285         * modules/arcfour, modules/arcfour-tests: New files.
48286
48287 2005-10-14  Simon Josefsson  <jas@extundo.com>
48288
48289         * m4/arcfour.m4: New file.
48290
48291 2005-10-14  Simon Josefsson  <jas@extundo.com>
48292
48293         * lib/arcfour.h, lib/arcfour.c: New files.
48294
48295 2005-10-14  Roland McGrath  <roland@redhat.com>
48296
48297         Import from libc.  [BZ #1331]
48298         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48299         macro argument.
48300         Reported by Matej Vela <vela@debian.org>.
48301
48302 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48303
48304         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48305         include <wchar.h>; no longer needed.
48306
48307 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48308
48309         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48310
48311 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48312         and  Ulrich Drepper  <drepper@redhat.com>
48313
48314         Import from libc.
48315         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48316         instead of inline stream orientation test and two separate
48317         function calls.  Pay no attention to USE_IN_LIBIO.
48318
48319 2005-10-13  Simon Josefsson  <jas@extundo.com>
48320
48321         * modules/gc-hmac-md5-tests: New file.
48322
48323         * tests/test-gc-hmac-sha1.c: New file.
48324
48325         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48326
48327         * modules/gc-hmac-md5-tests: New file.
48328
48329         * tests/test-gc-md5.c: New file.
48330
48331         * modules/gc-md5-tests: New file.
48332
48333 2005-10-13  Simon Josefsson  <jas@extundo.com>
48334
48335         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48336         Move memory allocation outside of loop.
48337
48338 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48339
48340         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48341         intermediate directory is in a read-only file system.  Problem
48342         reported by Eric Blake.
48343
48344 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48345
48346         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48347
48348 2005-10-12  Simon Josefsson  <jas@extundo.com>
48349
48350         * tests/test-hmac-sha1.c: New file.
48351
48352         * modules/hmac-sha1-tests: New file.
48353
48354         * modules/hmac-sha1: New file.
48355
48356 2005-10-12  Simon Josefsson  <jas@extundo.com>
48357
48358         * modules/gc-sha1: New file.
48359
48360 2005-10-12  Simon Josefsson  <jas@extundo.com>
48361
48362         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48363
48364         * tests/test-gc-pbkdf2-sha1.c: New file.
48365
48366 2005-10-12  Simon Josefsson  <jas@extundo.com>
48367
48368         * modules/gc-md5, modules/gc-hmac-md5: New files.
48369
48370         * modules/gc (Files): Remove md5, memxor and hmac files.
48371
48372 2005-10-12  Simon Josefsson  <jas@extundo.com>
48373
48374         * m4/gc-pbkdf2-sha1.m4: New file.
48375
48376         * m4/gc-hmac-sha1.m4: New file.
48377
48378         * m4/gc-sha1: New file.
48379
48380         * m4/hmac-sha1.m4: New file.
48381
48382 2005-10-12  Simon Josefsson  <jas@extundo.com>
48383
48384         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48385
48386         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48387
48388 2005-10-12  Simon Josefsson  <jas@extundo.com>
48389
48390         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48391         suggested by Bruno Haible <bruno@clisp.org>.
48392
48393 2005-10-12  Simon Josefsson  <jas@extundo.com>
48394
48395         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48396
48397 2005-10-12  Simon Josefsson  <jas@extundo.com>
48398
48399         * lib/gc-pbkdf2-sha1.c: New file.
48400
48401         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48402
48403 2005-10-12  Simon Josefsson  <jas@extundo.com>
48404
48405         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48406
48407         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48408
48409 2005-10-12  Simon Josefsson  <jas@extundo.com>
48410
48411         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48412         GC_USE_HMAC_MD5, respectively.
48413
48414         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48415         (gc_md5): Fix typo.
48416
48417         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48418
48419         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48420
48421         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48422
48423 2005-10-12  Bruno Haible  <bruno@clisp.org>
48424
48425         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48426         Reported by Stepan Kasal <kasal@ucw.cz>.
48427
48428 2005-10-11  Simon Josefsson  <jas@extundo.com>
48429
48430         * tests/test-crc.c: New file.
48431
48432         * modules/crc, modules/crc-tests: New files.
48433
48434 2005-10-11  Simon Josefsson  <jas@extundo.com>
48435
48436         * m4/crc.m4: New file.
48437
48438 2005-10-11  Simon Josefsson  <jas@extundo.com>
48439
48440         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48441
48442         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48443
48444         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48445
48446 2005-10-11  Simon Josefsson  <jas@extundo.com>
48447
48448         * lib/crc.h, lib/crc.c: New files.
48449
48450         * lib/gc.h (gc_hash_buffer): Add doc.
48451
48452 2005-10-11  Bruno Haible  <bruno@clisp.org>
48453
48454         * modules/c-strcasestr: New file.
48455         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48456
48457 2005-10-11  Bruno Haible  <bruno@clisp.org>
48458
48459         * modules/c-strcase: New file.
48460         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48461
48462 2005-10-11  Bruno Haible  <bruno@clisp.org>
48463
48464         * lib/strcasecmp.c: Include limits.h.
48465         (strcasecmp): Avoid integer overflow on exotic platforms.
48466         * lib/strncasecmp.c: Include limits.h.
48467         (strncasecmp): Avoid integer overflow on exotic platforms.
48468         Reported by Paul Eggert.
48469
48470 2005-10-11  Bruno Haible  <bruno@clisp.org>
48471
48472         * lib/c-strcasestr.h: New file, from GNU gettext.
48473         * lib/c-strcasestr.c: New file, from GNU gettext.
48474
48475 2005-10-11  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/c-strcase.h: New file, from GNU gettext.
48478         * lib/c-strcasecmp.c: New file, from GNU gettext.
48479         * lib/c-strncasecmp.c: New file, from GNU gettext.
48480
48481 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48482
48483         * modules/mempcpy (License): GPL -> LGPL.
48484         * modules/strchrnul (License): Likewise.
48485         * modules/sysexits (License): Likewise.
48486
48487 2005-10-08  Simon Josefsson  <jas@extundo.com>
48488
48489         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48490
48491 2005-10-07  Simon Josefsson  <jas@extundo.com>
48492
48493         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48494
48495 2005-10-06  Simon Josefsson  <jas@extundo.com>
48496
48497         * tests/test-hmac-md5.c: New file.
48498
48499         * modules/hmac-md5-tests: New file.
48500
48501         * modules/hmac-md5: New file.
48502
48503 2005-10-06  Simon Josefsson  <jas@extundo.com>
48504
48505         * m4/hmac-md5.m4: New file.
48506
48507         * m4/memxor.m4: Require gl_C_RESTRICT.
48508
48509 2005-10-06  Simon Josefsson  <jas@extundo.com>
48510
48511         * lib/memxor.c (memxor): Avoid casts and warnings.
48512
48513 2005-10-06  Simon Josefsson  <jas@extundo.com>
48514
48515         * lib/hmac-md5.c: New file.
48516
48517         * lib/hmac.h: New file.
48518
48519 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48520
48521         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48522         promotes to int, not unsigned int, to catch the AIX 5.3
48523         compiler bug.
48524
48525 2005-10-05  Simon Josefsson  <jas@extundo.com>
48526
48527         * modules/memxor: New file.
48528
48529         * modules/iconv (Files): Move config.rpath to havelib, it is used
48530         there.
48531
48532         * modules/havelib (Files): Add config.rpath.
48533
48534 2005-10-05  Simon Josefsson  <jas@extundo.com>
48535
48536         * m4/memxor.m4: New file.
48537
48538 2005-10-05  Simon Josefsson  <jas@extundo.com>
48539
48540         * lib/memxor.c (memxor): Fix compiler error.
48541
48542         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48543         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48544
48545         * lib/memxor.h, lib/memxor.c: New files.
48546
48547         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48548         we assume all systems have it, suggested by Jim Meyering
48549         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48550         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48551         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48552         same reasons.
48553
48554 2005-10-05  Simon Josefsson  <jas@extundo.com>
48555
48556         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48557
48558 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48559
48560         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48561         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48562         needed, since the source code now assumes these .h files.
48563
48564 2005-10-05  Derek Price  <derek@ximbiot.com>
48565
48566         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48567
48568 2005-10-05  Bruno Haible  <bruno@clisp.org>
48569
48570         * modules/stdint (License): Change to LGPL.
48571
48572 2005-10-04  Simon Josefsson  <jas@extundo.com>
48573
48574         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48575         D. Baushke" <mdb@gnu.org>.
48576
48577 2005-10-04  Bruno Haible  <bruno@clisp.org>
48578
48579         * lib/verify.h (verify_true): Provide alternative definition for C++.
48580
48581 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48584         (SSIZE_MAX): New macro, if not already defined.
48585         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48586         than 2 GiB.
48587
48588 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48589
48590         Sync from coreutils.
48591         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48592         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48593         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48594         ULLONG_MAX doesn't work with 2.7.2.1.
48595
48596 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48597
48598         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48599         From Ben Pfaff.
48600
48601         * modules/exclude (Depends-on): Depend on verify.
48602         * modules/strtoimax (Depends-on): Likewise.
48603         * modules/utimecmp (Depends-on): Likewise.
48604
48605 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48606
48607         * lib/exclude.c: Include verify.h.
48608         (verify): Remove.  All callers changed to use verify.h's version.
48609         * lib/strtoimax.c: Likewise.
48610         * lib/utimecmp.c: Likewis.e
48611
48612         Sync from coreutils.
48613         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48614         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48615         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48616         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48617         bother returning ENOSYS if settimeofday or stime fails; just let
48618         them return whatever errno they want to return.
48619         * lib/utimens.c: Include unistd.h, for dup2.
48620         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48621         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48622
48623 2005-10-02  Jim Meyering  <jim@meyering.net>
48624
48625         Sync from coreutils.
48626         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48627         from glibc-2.2.5 that fails for read-only files.
48628
48629 2005-10-02  Jim Meyering  <jim@meyering.net>
48630
48631         Sync from coreutils.
48632         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48633         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48634         `#if HAVE_CONFIG_H'.
48635         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48636         Remove AT_FDCWD test.
48637         Do not consume the fd unless successful.
48638         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48639         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48640         block, so that we don't even try to compile it if settimeofday is
48641         available.  This works around a compilation failure on OSF1 V5.1,
48642         due to stime requiring a `long int*' while tv_sec is `int'.
48643
48644 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48645
48646         Sync from coreutils.
48647         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48648         against `yes', rather than just testing for nonempty.
48649
48650 2005-10-01  Simon Josefsson  <jas@extundo.com>
48651
48652         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48653         and Darwin.
48654
48655         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48656         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48657         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48658         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48659         Check if struct addrinfo is declared.
48660
48661 2005-10-01  Simon Josefsson  <jas@extundo.com>
48662
48663         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48664         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48665         AI_* and EAI_* definitions.  Protect function declarations.
48666
48667 2005-10-01  Jim Meyering  <jim@meyering.net>
48668
48669         Sync from coreutils.
48670
48671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48672         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48673         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48674         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48675         in the inet and nsl libraries.  Required on Solaris 5.7.
48676
48677 2005-10-01  Jim Meyering  <jim@meyering.net>
48678
48679         Sync from coreutils.
48680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48681         in the inet and nsl libraries.  Required on Solaris 5.7.
48682
48683 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48684
48685         * lib/getdelim.c (getdelim): Remove unused variables.
48686
48687 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48688
48689         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48690         so that the code works even with ancient cpp.  Portability problem
48691         with GCC 2.7.2.1 reported by Thomas M.Ott.
48692
48693 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48694
48695         * modules/regex (Depends-on): Add strcase.
48696
48697         * modules/gethostname (Licence): Change from GPL to LGPL, since
48698         gethostname.c is a trivial implementation of a standard library
48699         function.
48700         * modules/poll (License): Change from GPL to LGPL, since it's
48701         derived from LGPL code.
48702
48703 2005-09-27  Jim Meyering  <jim@meyering.net>
48704
48705         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48706         HAVE_CONFIG_H.
48707
48708         * lib/intprops.h (signed_type_or_expr__): Define.
48709         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48710         for unsigned types.
48711
48712 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48713
48714         * lib/verify.h (verify_expr): Remove, replacing with:
48715         (verify_true): New macro that returns true instead of void.
48716         (verify_type__): Remove.
48717         (verify): Use verify_true rather than verify_type__.
48718
48719 2005-09-26  Bruno Haible  <bruno@clisp.org>
48720
48721         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48722         is necessary.
48723         (lib_SOURCES): Remove mbchar.c.
48724         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48725         (Files): Add m4/mbrtowc.m4.
48726         * modules/mbiter: Likewise.
48727         * modules/mbuiter: Likewise.
48728
48729 2005-09-26  Bruno Haible  <bruno@clisp.org>
48730
48731         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48732         compile mbchar.c if they are not both present.
48733         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48734         * m4/mbiter.m4 (gl_MBITER): Likewise.
48735         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48736         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48737         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48738
48739 2005-09-25  Jim Meyering  <jim@meyering.net>
48740
48741         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48742         also uses socklen_t.
48743
48744 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48745
48746         * lib/utimens.c (ENOSYS): Define if not already defined.
48747         (futimens): Support having a null PATH if the file descriptor
48748         is nonnegative.
48749
48750         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48751         Remove.
48752         (__attribute): Define to empty unless GCC 3.1 or later.
48753         This works around a core dump on OpenBSD 3.4, which has GCC
48754         2.95.3, which dumps core when given __attribute__(()).  It also
48755         simplifies other tests, since we really don't want to bother with
48756         worrying about which ancient version of GCC supported what.
48757         Original problem reported by Yoann Vandoorselaere, with part of
48758         the fix suggested by Derek Price.
48759
48760 2005-09-24  Jim Meyering  <jim@meyering.net>
48761
48762         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48763         so we can once again use a positive bitfield width of 1 -- now we
48764         don't have to explain why we were using a bitfield width of 2.
48765
48766 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48767
48768         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48769         and similarly for the other external symbols.  Problem reported
48770         by James Gallager.
48771
48772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48773         bug reported by Jim Meyering.
48774
48775         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48776         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48777         not needed, since socklen is a prerequisite module.
48778
48779 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48782         Problem reported by Eric Blake.
48783         (getaddrinfo): Initialize se so that it's not garbage.
48784         Redo internal storage allocation so that it doesn't make unportable
48785         assumptions about alignment.
48786         Fix a memory leak.
48787
48788         * lib/utimens.c (futimens): Use futimesat if available.
48789         Prefer it to futimes since it doesn't have the futimes bug.
48790
48791         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48792         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48793         Instead, declare a function that returns a pointer to an array,
48794         and use verify_type__ to declare the size of the array.
48795         Problem and germ of a solution reported by Bruno Haible.
48796         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48797         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48798
48799 2005-09-23  Jim Meyering  <jim@meyering.net>
48800
48801         Sync from coreutils.
48802         Correct build failure (socklen_t not defined) on at least
48803         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48805
48806 2005-09-23  Jim Meyering  <jim@meyering.net>
48807
48808         * modules/getaddrinfo (Depends-on): Add socklen.
48809
48810 2005-09-23  Bruno Haible  <bruno@clisp.org>
48811
48812         * tests/test-verify.c: New file.
48813
48814 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48815
48816         Sync from coreutils.
48817
48818         * modules/argmatch (Depends-on): Add verify.
48819         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48820         unistd-safer.
48821         * modules/save-cwd (Depends-on): Likewise.
48822
48823         * modules/openat (Files): Add lib/openat-die.c.
48824         (Depends-on): Remove error, exitfail.
48825         Add dirname.
48826
48827         * modules/verify: New file.
48828         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48829         with "verify" module.
48830
48831 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         Sync from coreutils.
48834
48835         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48836         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48837         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48838         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48839         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48840         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48841         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48842         Don't bother checking for string.h, stdlib.h, unistd.h.
48843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48844         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48845         module's job.
48846         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48847         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48848
48849         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48850         (gl_GETDATE): Use it.
48851
48852         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48853
48854 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48855
48856         Sync from coreutils.
48857
48858         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48859         stat-time.h.
48860         * lib/argmatch.h: Include verify.h
48861         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48862         (ARGMATCH_ASSERT): Remove; unused.
48863         * lib/canonicalize.c: Assume STDC_HEADERS.
48864         * lib/exclude.c: Include "strcase.h".
48865         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48866         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48867         and stdio-safer.h.
48868         (getusershell): Call fopen, not fopen_safer.
48869         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48870         Do not include unistd-safer.h.
48871         (save_cwd): Don't call fd_safer; no longer needed
48872         now that we include fcntl--.h.
48873
48874         * lib/getdate.y (relative_time): New type.
48875         (RELATIVE_TIME_0): New constant.
48876         (parser_control): Use relative_time instead of doing it ourselves.
48877         (%union): Add new relative_time rel member.
48878         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48879         Now typeless.
48880         (relunit, relunit_snumber): Now of type rel.
48881         (zone, rel, relunit, get_date): Adjust to above changes.
48882
48883         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48884         Do not include unistd-safer.h.
48885         (getloadavg): Don't call fd_safer; no longer needed
48886         now that we include fcntl--.h.
48887
48888         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48889         (make_dir_parents): Treat ENOSYS like EEXIST.
48890
48891         Improve quality of diagnostics on restore_cwd failure.
48892         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48893         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48894         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48895         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48896         each time through the loop.  Do not diagnose restore_cwd failure;
48897         that is the caller's job (and perhaps the caller does not care).
48898
48899         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48900         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48901         If the file already exists but is not a directory, don't bother
48902         to try to make its parents.
48903         Close potential file descriptor leak if we can't chdir("/") (!).
48904         Don't always return true if chdir($PWD) fails; return true only
48905         if the requested action was done successfully (except for the
48906         chdir($PWD)).
48907         Don't log final directory unless we actually made it.
48908         Refactor to avoid duplicate code to fix up permissions.
48909         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48910
48911         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48912         to make it a bit faster and (I hope) clearer.
48913         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48914         Fix bug in formats like %2N.
48915
48916         * lib/verify.h: New file.
48917
48918 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48919
48920         Sync from coreutils.
48921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48922
48923 2005-09-22  Jim Meyering  <jim@meyering.net>
48924
48925         Sync from coreutils.
48926
48927         * m4/lstat.m4 (gl_FUNC_LSTAT):
48928         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48929         Remove obsolete comment.
48930         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48931         * m4/xstrtod.m4: Likewise.
48932
48933         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48934
48935 2005-09-22  Jim Meyering  <jim@meyering.net>
48936
48937         Sync from coreutils.
48938
48939         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48940
48941         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48942         the .tm_year member, since otherwise gcc-4.0 would now warn about
48943         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48944
48945         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48946         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48947
48948         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48949         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48950         when run in a time zone for which daylight savings time is in effect
48951         for the starting date.
48952
48953         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48954         stop us from restricting permissions of just-created absolute-named
48955         directories.
48956         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48957         to restore initial working directory.
48958         * lib/mkdir-p.c (make_dir_parents): New parameter:
48959         different_working_dir, to tell caller if/when we change the working
48960         directory and are unable to return to the initial one.
48961         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48962         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48963         `return false'.  This fixes a bug introduced on 2004-07-30.
48964
48965         * lib/openat.c (fdopendir): Be sure to close the supplied
48966         file descriptor before returning.  This makes our replacement
48967         implementation a little closer to Solaris's, where fdopendir
48968         ties the file descriptor to the returned DIR* pointer.
48969         * lib/openat.c (unlinkat): New function.
48970         * lib/openat.h (unlinkat): Add prototype.
48971         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48972         (openat_restore_fail): Rename from openat_restore_die.
48973         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48974
48975         Provide an alternative to exiting immediately upon save_cwd or
48976         restore_cwd failure.  Now, an application can arrange e.g.,
48977         to perform a longjump in that case.
48978         * lib/openat.c: Include dirname.h.
48979         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48980         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48981         and openat_restore_die rather than calling error directly.
48982         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48983
48984         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48985         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48986         define.
48987
48988         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48989         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48990                             int utc, int nanoseconds);
48991         Background:
48992         date should not have to allocate a megabyte of virtual memory to
48993         handle a format argument like +%1048575T.  When implemented with
48994         strftime, it must allocate such a buffer, use strftime to fill it
48995         in, print it, then free it.
48996         With fprintftime, it simply prints everything and exits.
48997         With no need for memory allocation, that's one fewer way to fail.
48998         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48999         optional field width, not before, so we accept %9:z, not %:9z.
49000         (my_strftime): Be sure to use L_('x') for literals.
49001
49002         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49003         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49004         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49005         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49006         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49007         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49008         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49009         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49010         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49011         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49012         * lib/xgethostname.c, lib/xreadlink.c:
49013         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49014
49015         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49016         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49017         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49018         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49019         and don't include <sys/file.h>).
49020
49021 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49022
49023         Sync from coreutils.
49024
49025         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49026         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49027         [!LDAV_DONE]: Avoid unused variable warning.
49028
49029 2005-09-21  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/unicodeio.h (unicode_to_mb): New declaration.
49032
49033 2005-09-20  Derek Price  <derek@ximbiot.com>
49034
49035         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49036         getaddrinfo.h.
49037
49038 2005-09-20  Bruno Haible  <bruno@clisp.org>
49039
49040         * gnulib-tool: Remove trailing slashes from the values specified for
49041         --source-base, --m4-base, --tests-base, --aux-dir.
49042         Suggested by Simon Josefsson <jas@extundo.com>.
49043
49044 2005-09-20  Bruno Haible  <bruno@clisp.org>
49045
49046         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49047         func_modules_to_filelist, func_import, func_create_testdir): Make all
49048         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49049         change when gnulib-tool is invoked in a different locale.
49050
49051 2005-09-19  Simon Josefsson  <jas@extundo.com>
49052
49053         * m4/socklen.m4: Fix typo.
49054
49055 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49056
49057         Use a consistent style for including <config.h>.
49058         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49059         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49060         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49061         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49062         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49063         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49064         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49065         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49066         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49067         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49068         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49069         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49070         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49071         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49072         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49073         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49074         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49075         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49076         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49077         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49078         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49079         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49080         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49081         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49082         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49083         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49084         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49085         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49086         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49087         lib/xstrtoumax.c, lib/yesno.c:
49088         Standardize inclusion of config.h.
49089         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49090         lib/inttostr.h:  Removed inclusion of config.h from header files.
49091         * lib/inttostr.c:  Adjusted in-tree users.
49092         * lib/timespec.h: Remove superfluous warning to include config.h.
49093         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49094         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49095         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49096         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49097         config.h with HAVE_CONFIG_H.
49098
49099 2005-09-19  Jim Meyering  <jim@meyering.net>
49100
49101         * modules/pathmax (License): Change to LGPL.
49102
49103 2005-09-19  Derek Price  <derek@ximbiot.com>
49104
49105         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49106
49107 2005-09-19  Bruno Haible  <bruno@clisp.org>
49108
49109         * gnulib-tool (import): Provide default for --tests-base.
49110
49111 2005-09-19  Bruno Haible  <bruno@clisp.org>
49112
49113         * doc/quote.texi: New file, extracted from gnulib.texi.
49114         * doc/ctime.texi: New file, extracted from gnulib.texi.
49115         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49116         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49117         * doc/gnulib.texi: Include them.
49118
49119 2005-09-18  Bruno Haible  <bruno@clisp.org>
49120
49121         Portability fix.
49122         * gnulib-tool (func_readlink): New function.
49123         (func_ln_if_changed): Use it.
49124
49125 2005-09-18  Bruno Haible  <bruno@clisp.org>
49126
49127         * gnulib-tool: Support --with-tests also with --import.
49128         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49129         (func_import): Use variables $testsbase and $inctests. Emit a
49130         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49131         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49132         SUBDIRS += $testsdir.
49133         (func_create_testdir): Update.
49134
49135 2005-09-18  Bruno Haible  <bruno@clisp.org>
49136
49137         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49138         instead of $dry_run.
49139         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49140         (func_ln_if_changed): Don't handle dry-run here.
49141         (func_import): In dry-run mode, detect more precisely which actions
49142         would be performed, and don't use "...ing" verbs.
49143
49144 2005-09-18  Bruno Haible  <bruno@clisp.org>
49145
49146         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49147         (func_import): Use join on two temporary files instead of three nested
49148         loops, in order to determine which files are new or old.
49149
49150 2005-09-18  Bruno Haible  <bruno@clisp.org>
49151
49152         * gnulib-tool (func_import): Comment out code that spits out the
49153         new files with --dry-run.
49154
49155 2005-09-18  Bruno Haible  <bruno@clisp.org>
49156
49157         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49158
49159 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49160
49161         * lib/stat-time.h: New file.
49162         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49163         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49164         in a different way.
49165         (timespec_cmp): New function.
49166         * lib/utimecmp.c: Include stat-time.h.
49167         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49168         members exist, not on the obsolescent ST_MTIM_NSEC.
49169         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49170
49171 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49172
49173         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49174
49175 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * MODULES.html.sh (File system functions): Add stat-time.
49178         * modules/stat-time: New file.
49179         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49180         is now done in a different way, by the stat-time module.
49181         * modules/utimecmp (Depends-on): Add stat-time.
49182
49183 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49184
49185         * m4/st_mtim.m4: Remove.  Superseded by...
49186         * m4/stat-time.m4: New file.
49187         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49188         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49189
49190 2005-09-15  Derek Price  <derek@ximbiot.com>
49191
49192         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49193
49194 2005-09-15  Derek Price  <derek@ximbiot.com>
49195
49196         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49197         * lib/regex_internal.c: Ditto, using this...
49198         (__GNUC_PREREQ): ...new macro.
49199         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49200         using...
49201         (__GNUC_PREREQ): ...this new macro.
49202
49203         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49204
49205 2005-09-15  Derek Price  <derek@ximbiot.com>
49206             Paul Eggert  <eggert@cs.ucla.edu>
49207
49208         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49209         changes, consolidating in...
49210         * lib/regex_internal.h: ...this file.
49211
49212 2005-09-13  Jim Meyering  <jim@meyering.net>
49213
49214         * lib/canon-host.c: Filter through gnu indent and reword comments
49215         slightly.
49216         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49217
49218 2005-09-13  Derek Price  <derek@ximbiot.com>
49219
49220         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49221         failure.
49222         Reported by Jim Meyering  <jim@meyering.net>.
49223
49224 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49225
49226         * lib/base64.c: Typo.
49227         (base64_encode): Put b64str in initialized data section.
49228
49229 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49230
49231         Merge glibc and coreutils changes into gnulib, plus a few
49232         extra fixes.
49233         * lib/md5.c: Use #error rather than a string.
49234         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49235         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49236         (__attribute__): Define to empty for non recent-GCC.
49237         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49238         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49239         Renamed from their non-__ counterparts, with new macros replacing
49240         them if not _LIBC.  Add __THROW attribute.
49241         (rol): Remove.
49242         (struct md5_ctx): Align buffer if using GCC.
49243         * lib/sha1.h (struct sha1_ctx): Likewise.
49244         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49245         The old name was backwards.
49246         (NOTSWAP): Remove; not used.
49247         (rol): New macro, moved here from md5.h.
49248         (sha1_process_block): Remove a FIXME that doesn't make sense.
49249
49250 2005-09-12  Derek Price  <derek@ximbiot.com>
49251
49252         Return usable errors from canon-host.
49253         * lib/canon-host.h: New file.
49254         * lib/canon-host.c (canon_host): Wrap...
49255         (canon_host_r): ...this new function, which now relies exclusively on
49256         getaddrinfo.
49257         (ch_strerror): New function.
49258         (last_cherror): New global.
49259         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49260         interface.
49261         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49262         void *.
49263         (freeaddrinfo): Free ai->ai_canonname when set.
49264
49265 2005-09-12  Derek Price  <derek@ximbiot.com>
49266
49267         Make canon-host require getaddrinfo.
49268         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49269         AC_LIBSOURCE canon-host.h.  Call...
49270         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49271         gl_GETADDRINFO.
49272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49273
49274 2005-09-12  Derek Price  <derek@ximbiot.com>
49275
49276         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49277         LGPL.
49278         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49279
49280 2005-09-12  Derek Price  <derek@ximbiot.com>
49281
49282         * lib/gai_strerror.c: Include config.h when available.  Include
49283         getaddrinfo.h before other headers to test interface.
49284         Reported by Larry Jones <lawrence.jones@ugs.com>.
49285
49286 2005-09-12  Derek Price  <derek@ximbiot.com>
49287             Paul Eggert  <eggert@cs.ucla.edu>
49288
49289         * modules/glob (Files): Add glob-libc.h.
49290
49291 2005-09-12  Derek Price  <derek@ximbiot.com>
49292             Paul Eggert  <eggert@cs.ucla.edu>
49293
49294         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49295         glob_.h, glob-libc.h.
49296         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49297
49298 2005-09-12  Derek Price  <derek@ximbiot.com>
49299             Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49302         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49303         protecting things that should be done only in gnulib contexts.
49304         * lib/glob_.h: New file, containing only the glob things needed for
49305         gnulib.
49306         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49307         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49308         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49309         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49310         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49311         and to respect the namespace rules better.
49312
49313 2005-09-08  Simon Josefsson  <jas@extundo.com>
49314
49315         * modules/socklen: New file.
49316
49317 2005-09-08  Simon Josefsson  <jas@extundo.com>
49318
49319         * m4/socklen.m4: New file.
49320
49321 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49322
49323         * modules/utimens (Files): Add m4/utimbuf.m4, since
49324         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49325         Reported by Sergey Poznyakoff.
49326
49327 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49328
49329         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49330         definitions, since that's the preferred style in glibc.
49331         Fix a minor spacing issue, and update copyright notice to match
49332         glibc's.
49333
49334 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49335
49336         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49337
49338 2005-09-06  Simon Josefsson  <jas@extundo.com>
49339
49340         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49341         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49342
49343 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49344
49345         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49346         warning.
49347
49348 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49349
49350         * config/srclist.txt: Add glibc bug 1302.
49351
49352 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         Change bitset word type from unsigned int to unsigned long int,
49355         as this has better performance on typical 64-bit hosts.
49356         Port bitset code to hosts with unusual word sizes.
49357         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49358         (build_collating_symbol):
49359         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49360         argument is a bitset.  This is merely a style issue, but it makes
49361         it clearer that an entire array is expected.
49362         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49363         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49364         Port to the case where bitset_word is not the same as unsigned int.
49365         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49366         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49367         Likewise.
49368         * lib/regexec.c (check_dst_limits_calc_pos_1,
49369         check_subexp_matching_top):
49370         (build_trtable, group_nodes_into_DFAstates):
49371         Likewise.
49372         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49373         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49374         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49375         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49376         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49377         * lib/regcomp.c (optimize_subexps, lower_subexp):
49378         Work even if bitset_word has holes in its bitwise representation.
49379         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49380         * lib/regexec.c (check_dst_limits_calc_pos_1,
49381         check_subexp_matching_top):
49382         Likewise.
49383         * lib/regex_internal.c (re_string_reconstruct):
49384         Don't assume UCHAR_MAX == 255.
49385         * lib/regex_internal.h (bitset_set_all): Likewise.
49386         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49387         All uses changed.
49388         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49389         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49390         All uses changed.
49391         (BITSET_WORD_MAX): New macro.
49392         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49393         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49394         (bitset_empty, bitset_copy):
49395         Prefer sizeof (bitset) to multiplying it out ourselves.
49396         (bitset_not_merge): Remove; unused.
49397         (bitset_contain): Return bool, not unsigned int with one bit on.
49398         All callers changed.
49399         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49400         alignment than re_node_set; do this by defining a new internal
49401         type struct dests_alloc and using it to allocate memory.
49402
49403 2005-09-05  Bruno Haible  <bruno@clisp.org>
49404
49405         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49406         links.
49407
49408 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49409
49410         * modules/size_max (Makefile.am): Add size_max.h
49411
49412 2005-09-04  Derek Price  <derek@ximbiot.com>
49413
49414         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49415
49416 2005-09-03  Simon Josefsson  <jas@extundo.com>
49417
49418         * gnulib-tool: Fix typo.
49419
49420 2005-09-03  Simon Josefsson  <jas@extundo.com>
49421
49422         * config/srclist.txt: Add glibc bug 1293.
49423
49424 2005-09-03  Derek Price  <derek@ximbiot.com>
49425
49426         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49427         From Larry Jones <lawrence.jones@ugs.com>.
49428
49429 2005-09-02  Simon Josefsson  <jas@extundo.com>
49430
49431         * modules/socklen: New file.
49432
49433 2005-09-02  Simon Josefsson  <jas@extundo.com>
49434
49435         * modules/havelib: New module.
49436
49437         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49438         Use havelib.
49439
49440 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49441
49442         Check for arithmetic overflow when calculating sizes, to prevent
49443         some buffer-overflow issues.  These patches are conservative, in the
49444         sense that when I couldn't determine whether an overflow was possible,
49445         I inserted a run-time check.
49446         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49447         macros.
49448         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49449         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49450         (re_xnrealloc, re_x2nrealloc): New inline functions.
49451         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49452         parse_bracket_exp):
49453         (build_equiv_class, build_charclass): Check for arithmetic overflow
49454         in size expression calculations.
49455         * lib/regex_internal.c (re_string_realloc_buffers):
49456         (build_wcs_upper_buffer, re_node_set_add_intersect):
49457         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49458         (re_dfa_add_node, register_state): Likewise.
49459         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49460         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49461         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49462         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49463
49464 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49467         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49468
49469 2005-09-02  Bruno Haible  <bruno@clisp.org>
49470
49471         Support for lib vs. lib64 distinction on biarch platforms.
49472         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49473         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49474         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49475
49476 2005-09-02  Bruno Haible  <bruno@clisp.org>
49477
49478         * gnulib-tool (import): In the other first-use case, provide defaults
49479         as well.
49480
49481 2005-09-02  Bruno Haible  <bruno@clisp.org>
49482
49483         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49484         patches not yet found in the latest gettext release.
49485
49486 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49487
49488         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49489         to avoid a collision with bits/local_lim.h in glibc.
49490         All uses changed.  Problem reported by Dmitry V. Levin in
49491         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49492
49493         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49494         bugs in int versus size_t comparisons.
49495         (re_string_context_at): Fix bug where the code assumed that
49496         Idx is signed.
49497
49498         Use bool where appropriate.
49499         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49500         All callers changed.
49501         (calc_eclosure_iter): Likewise, for ROOT arg.
49502         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49503         (build_charclass_op): Likewise, for NON_MATCH arg.
49504         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49505         (re_string_construct_common): Likewise, for ICASE arg.
49506         * lib/regexec.c (re_search_2_stub, re_search_stub):
49507         Likewise, for RET_LEN arg.
49508         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49509         (set_regs): Likewise, for FL_BACKTRACK arg.
49510         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49511         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49512         (calc_eclosure_iter, parse_bracket_exp):
49513         Use bool for internal variables that are booleans.
49514         * lib/regexec.c (re_search_internal, check_matching,
49515         proceed_next_node):
49516         (set_regs, build_sifted_states, sift_states_bkref):
49517         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49518         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49519         (find_collation_sequence_value):
49520         Likewise.
49521         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49522         (re_node_set_compare):
49523         Return bool, not int. All callers changed.
49524         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49525         (build_trtable, check_node_accept): Likewise.
49526         * lib/regex_internal.h: Include stdbool.h.
49527
49528         Fix bugs uncovered when converting to bool.
49529         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49530         failure instead of charging ahead blindly.
49531         * lib/regex_internal.c (register_state): Likewise.
49532         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49533         for freeing internal storage.
49534         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49535         bitset pieces used as boolean, to avoid undefined behavior
49536         on hosts that do int overflow checking.
49537
49538 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49539
49540         * config/srclist.txt: Add glibc bugs 1285-1287.
49541
49542 2005-09-01  Jim Meyering  <jim@meyering.net>
49543
49544         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49545         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49546         Require gl_STAT_MACROS, too.
49547
49548 2005-09-01  Bruno Haible  <bruno@clisp.org>
49549
49550         * gnulib-tool (import): In the first-use case, provide defaults.
49551
49552 2005-09-01  Bruno Haible  <bruno@clisp.org>
49553
49554         * gnulib-tool (func_import): Remove the .tmp files.
49555
49556 2005-09-01  Bruno Haible  <bruno@clisp.org>
49557
49558         * gnulib-tool (func_import): Fix handling of symbolic links.
49559
49560 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49561
49562         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49563         old glibc regex code mishandles strings longer than 2**31 bytes.
49564         This patch fixes this when the regex code is used in gnulib
49565         (i.e., outside glibc).
49566
49567         This patch should not affect the use of the regex code inside
49568         glibc.  No doubt this problem also needs to be handled for glibc
49569         as well, but the result will be an incompatible change to the
49570         glibc ABI, and the old ABI will have to be supported too.  That
49571         can be the the subject for another patch.
49572
49573         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49574         governing whether the rest of this patch is active.  By default,
49575         the macro is disabled and the patch has no effect.
49576         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49577         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49578         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49579         (re_match_2, re_set_registers): Use the new types.
49580         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49581         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49582         New macros.
49583         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49584         (re_string_context_at, bin_tree_t, re_dfastate_t):
49585         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49586         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49587         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49588         (re_string_char_size_at, re_string_wchar_at):
49589         (re_string_elem_size_at):
49590         Use the new types and macros to port to 64-bit hosts.
49591         Use unsigned types for internal values, so that the code
49592         mostly works even for arrays larger than SSIZE_MAX.
49593         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49594         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49595         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49596         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49597         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49598         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49599         (calc_inveclosure, parse_dup_op, build_range_exp):
49600         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49601         (fetch_number, create_token_tree, mark_opt_subexp):
49602         Likewise.
49603         * lib/regex_internal.c (re_string_construct_common,
49604         create_ci_newstate):
49605         (create_cd_newstate, re_string_allocate, re_string_construct):
49606         (re_string_realloc_buffers, build_wcs_upper_buffer):
49607         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49608         (re_string_reconstruct, re_string_peek_byte_case):
49609         (re_string_fetch_byte_case, re_string_context_at):
49610         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49611         (re_node_set_init_copy, re_node_set_add_intersect):
49612         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49613         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49614         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49615         (re_acquire_state, re_acquire_state_context, register_state):
49616         Likewise.
49617         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49618         search_cur_bkref_entry):
49619         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49620         (re_search_internal, re_search_2_stub, re_search_stub)
49621         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49622         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49623         (update_cur_sifted_state, check_dst_limits):
49624         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49625         (check_subexp_limits, sift_states_bkref, merge_state_array):
49626         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49627         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49628         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49629         (expand_bkref_cache, check_node_accept_bytes):
49630         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49631         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49632         (acquire_init_state_context, check_halt_node_context):
49633         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49634         (sift_states_backward, clean_state_log_if_needed):
49635         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49636         (find_recover_state, transit_state_sb, transit_state_mb):
49637         (transit_state_bkref, build_trtable, match_ctx_clean):
49638         Likewise.
49639         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49640         to work around an assumption that REG_MISSING is negative.
49641
49642         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49643         (seek_collating_symbol_entry) [defined _LIBC]:
49644         (lookup_collation_sequence_value) [defined _LIBC]:
49645         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49646         Use prototypes rather than old-style function definitions.
49647         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49648         (transit_state_sb) [0]:
49649         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49650
49651         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49652         rm_eo.
49653
49654         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49655         (optimize_subexps, lower_subexp):
49656         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49657         since the signed shift might overflow.  Use 1u<<31 instead.
49658         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49659         Likewise.
49660         * lib/regexec.c (check_dst_limits_calc_pos_1,
49661         check_subexp_matching_top): Likewise.
49662
49663         * lib/regcomp.c (optimize_subexps, lower_subexp):
49664         Use CHAR_BIT rather than 8, for clarity.
49665         * lib/regexec.c (check_dst_limits_calc_pos_1):
49666         (check_subexp_matching_top): Likewise.
49667         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49668         have to worry about portability issues when shifting it left.
49669         Remove no-longer-needed test for table_size > 0.
49670         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49671         in a word, as the resulting behavior is undefined.
49672         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49673         in one case, a <= should have been an <, and in another case the
49674         whole test was missing.
49675         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49676         the standard name CHAR_BIT.
49677         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49678         this is not true on one's complement and signed-magnitude hosts.
49679
49680         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49681         next_last_offset.
49682         (struct re_dfa_t): Remove unused member states_alloc.
49683         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49684
49685 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49686
49687         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49688         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49689         and large-file glibc and in 32-bit large-file Solaris.
49690
49691 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49692
49693         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49694         lengths fit in regoff_t; this isn't true if regoff_t is the same
49695         width as size_t.
49696         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49697         (= START + RANGE) instead of RANGE.  This avoids overflow
49698         problems when regoff_t is the same width as size_t.
49699         All callers changed.
49700         (re_search_2_stub): Check for overflow when adding the
49701         sizes of the two strings.
49702         (re_search_stub): Check for overflow when adding START
49703         to RANGE; if it occurs, substitute the extreme value.
49704
49705 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49706
49707         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49708
49709 2005-08-31  Jim Meyering  <jim@meyering.net>
49710
49711         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49712         a pointer-to-const.
49713         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49714         (register_state): Likewise.
49715         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49716         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49717         (group_nodes_into_DFAstates): Likewise.
49718
49719 2005-08-31  Jim Meyering  <jim@meyering.net>
49720
49721         * check-module: Add a FIXME comment.
49722
49723 2005-08-31  Eric Blake  <ebb9@byu.net>
49724
49725         * modules/unistd-safer (Files): Add unistd--.h.
49726         * modules/stdio-safer (Files): Add stdio--.h.
49727
49728 2005-08-31  Derek Price  <derek@ximbiot.com>
49729
49730         * lib/getdelim.c (getdelim): Return EOF on EOF.
49731         Reported by Larry Jones <lawrence.jones@ugs.com>.
49732
49733 2005-08-31  Bruno Haible  <bruno@clisp.org>
49734
49735         Avoid unnecessary diffs in the generated lib/Makefile.am.
49736         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49737         the generated files.
49738         (func_import): Don't set cmd.
49739
49740 2005-08-31  Bruno Haible  <bruno@clisp.org>
49741
49742         * lib/strstr.c: Include <stddef.h>, for NULL.
49743         * lib/strcasestr.c: Likewise.
49744         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49745
49746 2005-08-31  Bruno Haible  <bruno@clisp.org>
49747
49748         * gnulib-tool: New option --macro-prefix.
49749         (func_import): Use macro_prefix.
49750         (import): Handle option --macro-prefix.
49751
49752 2005-08-31  Bruno Haible  <bruno@clisp.org>
49753
49754         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49755         Also use new variables cached_lgpl, cached_libtool.
49756
49757 2005-08-31  Bruno Haible  <bruno@clisp.org>
49758
49759         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49760         always instantiating them.
49761
49762 2005-08-31  Bruno Haible  <bruno@clisp.org>
49763
49764         * gnulib-tool (func_import): Read the previous cached settings
49765         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49766         earlier added by gnulib but are now dropped. Warn when a gnulib file
49767         overwrites a non-gnulib file.
49768
49769 2005-08-31  Bruno Haible  <bruno@clisp.org>
49770
49771         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49772         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49773         projects that don't keep autogenerated files in CVS. Put into
49774         actioncmd only the specified modules, not the transitive closure.
49775
49776 2005-08-31  Bruno Haible  <bruno@clisp.org>
49777
49778         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49779         Create directories that shall be filled.
49780         (import): Don't look for gl_* macros in configure.ac. Recurse across
49781         all directories containing a gnulib-cache.m4 files, if meaningful.
49782
49783 2005-08-31  Bruno Haible  <bruno@clisp.org>
49784
49785         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49786         (import): Set seen_libtool when we see gl_LIBTOOL.
49787
49788 2005-08-31  Bruno Haible  <bruno@clisp.org>
49789
49790         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49791         declaration macro definitions from generated gnulib.m4.
49792
49793 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49794
49795         * lib/iconvme.h: Add prototype for iconv_alloc.
49796
49797 2005-08-29  Simon Josefsson  <jas@extundo.com>
49798
49799         * lib/iconvme.c: Fix errno.
49800
49801 2005-08-29  Bruno Haible  <bruno@clisp.org>
49802
49803         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49804         that it works when the directory contains spaces.
49805
49806 2005-08-29  Bruno Haible  <bruno@clisp.org>
49807
49808         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49809
49810 2005-08-29  Bruno Haible  <bruno@clisp.org>
49811
49812         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49813         Emit more advice.
49814
49815 2005-08-29  Bruno Haible  <bruno@clisp.org>
49816         and Stepan Kasal  <kasal@ucw.cz>
49817
49818         * check-module: If more parameters are given, check each of them
49819         separately; add more exceptions, as noted by Jim Meyering.
49820         (check_module): New procedure.
49821         (%exempt_header): Now contains all exceptions.
49822
49823 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49824
49825         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49826
49827 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49828
49829         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49830
49831 2005-08-28  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/gnulib-tool.m4: New file.
49834
49835 2005-08-27  Jim Meyering  <jim@meyering.net>
49836
49837         * modules/unistd-safer (Files): Add pipe-safer.c.
49838         * modules/fcntl-safer (Files): Add creat-safer.c.
49839
49840 2005-08-27  Jim Meyering  <jim@meyering.net>
49841
49842         * m4/stdlib-safer.m4: New file.  From coreutils.
49843         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49844         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49845         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49846         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49847         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49848
49849 2005-08-27  Jim Meyering  <jim@meyering.net>
49850
49851         * lib/fopen-safer.c: Merge minor changes from coreutils.
49852         * lib/dup-safer.c: Likewise.
49853         * lib/fd-safer.c: Likewise.
49854
49855         Merge from coreutils.
49856         * lib/stdio--.h: New file.
49857         * lib/stdlib--.h: New file.
49858         * lib/mkstemp-safer.c: New file.
49859
49860         GNU tar needs these.
49861         * lib/pipe-safer.c: New file.
49862         * lib/creat-safer.c: New file.
49863         * lib/fcntl--.h (creat): Define to creat_safer.
49864         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49865         * lib/unistd--.h (pipe): Define to pipe_safer.
49866         * lib/unistd-safer.h: Declare pipe_safer.
49867
49868 2005-08-26  Simon Josefsson  <jas@extundo.com>
49869
49870         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49871         Haible <bruno@clisp.org>.
49872
49873 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * lib/regex_internal.h: Remove all references to
49876         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49877         or better.
49878         (bitset_not, bitset_merge, bitset_not_merge):
49879         (bitset_mask, re_string_allocate, re_string_construct):
49880         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49881         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49882         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49883         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49884         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49885         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49886         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49887         (re_acquire_state_context):
49888         Remove unnecessary forward decls.
49889         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49890         Put __attribute at function definition,
49891         now that the function decl has been removed.
49892         * lib/regex_internal.c (re_string_peek_byte_case):
49893         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49894         Likewise.
49895
49896 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49897
49898         * m4/regex.m4: Add AC_PREREQ(2.50).
49899         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49900
49901 2005-08-25  Simon Josefsson  <jas@extundo.com>
49902
49903         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49904         __fsetlocking.
49905
49906 2005-08-25  Simon Josefsson  <jas@extundo.com>
49907
49908         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49909         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49910         GLIBC specific code.
49911
49912 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49913
49914         Make regex safe for g++.  This fixes one real bug (an "err"
49915         that should have been "*err").  g++ problem reported by
49916         Sam Steingold.
49917         * lib/regex_internal.h (re_calloc): New macro, consistent with
49918         re_malloc etc.  All callers of calloc changed to use re_calloc.
49919         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49920         not int.  All callers changed.
49921         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49922         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49923         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49924         (find_recover_state): Change "err" to "*err"; this fixes what
49925         appears to be a real bug.
49926         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49927         versus int.
49928
49929 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * modules/regex (Depends-on): Add malloc, since the code
49932         assumes that !malloc(0) means failure.
49933
49934 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49935
49936         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49937
49938         alloca modernization/simplification for regex.
49939         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49940         needs to be at the start of the file, and can be moved into
49941         regex_internal.h and simplified.
49942         * lib/regex_internal.h: Include <alloca.h>.
49943         (__libc_use_alloca) [!defined _LIBC]: New macro.
49944         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49945         now works outside glibc.
49946
49947 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49948
49949         * config/srclist.txt: Add glibc bugs 1241, 1245.
49950
49951 2005-08-25  Jim Meyering  <jim@meyering.net>
49952
49953         * lib/open-safer.c: Include <config.h>.
49954         Otherwise, we'd lose LARGEFILE support in any file using
49955         e.g. "fcntl--.h"
49956
49957 2005-08-25  Bruno Haible  <bruno@clisp.org>
49958
49959         * m4/minmax.m4: Require autoconf 2.52.
49960         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49961         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49962         alternatives of translit over the alphabet.
49963         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49964
49965 2005-08-24  Simon Josefsson  <jas@extundo.com>
49966
49967         * tests/test-getpass.c: New file.
49968
49969 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49970
49971         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49972         for GNU regex features.
49973
49974 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49975
49976         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49977         * lib/regex.h (regerror): Likewise.
49978
49979         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49980         requires this.  (The code never needed it.)
49981
49982         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49983         All uses of recently-renamed identifiers changed to use the new,
49984         POSIX-compliant names.  The code will build and run just fine
49985         without these changes, but it's better to eat our own dog food
49986         and use the standard-conforming names.
49987
49988         * lib/regex.h: Fix a multitude of POSIX name space violations.
49989         These changes have an effect only for programs that define
49990         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49991         do not change anything for programs compiled in the normal way.
49992         Also, there is no effect on the ABI.
49993
49994         (_REGEX_SOURCE): New macro.
49995         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49996         defined and _GNU_SOURCE is not; this fixes a name space violation.
49997
49998         Rename the following macros to obey POSIX requirements.
49999         The old names are still visible as macros if _REGEX_SOURCE is defined.
50000         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50001         RE_BACKSLASH_ESCAPE_IN_LISTS.
50002         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50003         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50004         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50005         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50006         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50007         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50008         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50009         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50010         (REG_INTERVALS): renamed from RE_INTERVALS.
50011         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50012         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50013         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50014         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50015         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50016         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50017         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50018         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50019         RE_UNMATCHED_RIGHT_PAREN_ORD.
50020         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50021         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50022         (REG_DEBUG): renamed from RE_DEBUG.
50023         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50024         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50025         unusual, since we can't clash with the POSIX REG_ICASE.
50026         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50027         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50028         (REG_NO_SUB): renamed from RE_NO_SUB.
50029         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50030         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50031         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50032         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50033         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50034         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50035         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50036         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50037         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50038         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50039         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50040         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50041         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50042         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50043         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50044         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50045         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50046         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50047         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50048         (REG_FIXED): Renamed from REGS_FIXED.
50049         (REG_NREGS): Renamed from RE_NREGS.
50050
50051         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50052         of other REG_* macros, since POSIX says the user is allowed to
50053         #undef these macros selectively.
50054
50055         (reg_errcode_t): Update comment stating what other tables need
50056         to be consistent.
50057
50058         Rename the following enum values to obey POSIX requirements.
50059         The old names are still visible as macros.
50060         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50061         is not defined, since GNU is supposed to be a superset of POSIX as
50062         much as possible, and since we want reg_errcode_t to be a signed
50063         type for implementation consistency.
50064         (_REG_NOERROR): Renamed from REG_NOERROR.
50065         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50066         (_REG_BADPAT): Renamed from REG_BADPAT.
50067         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50068         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50069         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50070         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50071         (_REG_EBRACK): Renamed from REG_EBRACK.
50072         (_REG_EPAREN): Renamed from REG_EPAREN.
50073         (_REG_EBRACE): Renamed from REG_EBRACE.
50074         (_REG_BADBR): Renamed from REG_BADBR.
50075         (_REG_ERANGE): Renamed from REG_ERANGE.
50076         (_REG_ESPACE): Renamed from REG_ESPACE.
50077         (_REG_BADRPT): Renamed from REG_BADRPT.
50078         (_REG_EEND): Renamed from REG_EEND.
50079         (_REG_ESIZE): Renamed from REG_ESIZE.
50080         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50081         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50082         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50083         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50084         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50085
50086         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50087         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50088         changed.  But support the old name if the new one is not defined
50089         and if _REGEX_SOURCE.
50090
50091         Change the following member names in struct re_pattern_buffer.
50092         The old names are still supported if !_REGEX_SOURCE.
50093         The new names are always supported, regardless of _REGEX_SOURCE.
50094         (re_buffer): Renamed from buffer.
50095         (re_allocated): Renamed from allocated.
50096         (re_used): Renamed from used.
50097         (re_syntax): Renamed from syntax.
50098         (re_fastmap): Renamed from fastmap.
50099         (re_translate): Renamed from translate.
50100         (re_can_be_null): Renamed from can_be_null.
50101         (re_regs_allocated): Renamed from regs_allocated.
50102         (re_fastmap_accurate): Renamed from fastmap_accurate.
50103         (re_no_sub): Renamed from no_sub.
50104         (re_not_bol): Renamed from not_bol.
50105         (re_not_eol): Renamed from not_eol.
50106         (re_newline_anchor): Renamed from newline_anchor.
50107
50108         Change the following member names in struct re_registers.
50109         The old names are still supported if !_REGEX_SOURCE.
50110         The new names are always supported, regardless of _REGEX_SOURCE.
50111         (rm_num_regs): Renamed from num_regs.
50112         (rm_start): Renamed from start.
50113         (rm_end): Renamed from end.
50114
50115         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50116         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50117         Prepend __ to parameter names.
50118
50119         Undo yesterday's changes.
50120
50121 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50122
50123         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50124         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50125         lib/regex.c.
50126
50127 2005-08-24  Jim Meyering  <jim@meyering.net>
50128
50129         Sync from coreutils.
50130         * m4/fcntl-safer.m4: New file.
50131
50132         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50133         and object files for this module.
50134
50135 2005-08-24  Jim Meyering  <jim@meyering.net>
50136
50137         Sync from coreutils.
50138         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50139
50140 2005-08-24  Jim Meyering  <jim@meyering.net>
50141
50142         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50143         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50144
50145 2005-08-24  Jim Meyering  <jim@meyering.net>
50146
50147         * modules/fcntl-safer: New module.
50148         * modules/fts (Depends-on): Add fcntl-safer.
50149         * MODULES.html.sh (File descriptor based Input/Output):
50150         Add fcntl-safer.
50151
50152 2005-08-24  Bruno Haible  <bruno@clisp.org>
50153
50154         Support for unit test modules.
50155         * modules/README: Mention tests modules.
50156         * modules/TEMPLATE-TESTS: New file.
50157         * gnulib-tool: New options --extract-tests-module, --with-tests and
50158         --tests-base (unused for the moment).
50159         (testsbase, inctests): New variables.
50160         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50161         (func_verify_module): Exclude TEMPLATE-TESTS.
50162         (func_verify_nontests_module, func_verify_tests_module): New functions.
50163         (func_get_dependencies): Add implicit dependency for tests modules.
50164         (func_get_tests_module): New function.
50165         (func_modules_transitive_closure): When --with-tests was specified,
50166         include the unit tests as well, unless explicitly avoided.
50167         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50168         (func_emit_tests_Makefile_am): New function.
50169         (func_create_testdir): When --with-tests was specified, emit a
50170         tests/ directory.
50171         * MODULES.html.sh (Future developments): Update.
50172
50173 2005-08-24  Bruno Haible  <bruno@clisp.org>
50174
50175         * modules/tls-tests: New file.
50176         * tests/test-tls.c: New file, from GNU gettext.
50177
50178 2005-08-24  Bruno Haible  <bruno@clisp.org>
50179
50180         * modules/lock-tests: New file.
50181         * tests/test-lock.c: New file, from GNU gettext.
50182
50183 2005-08-24  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/lock.h: Add multiple inclusion guard.
50186         * lib/tls.h: Add multiple inclusion guard.
50187
50188 2005-08-24  Bruno Haible  <bruno@clisp.org>
50189
50190         * gnulib-tool: Add support for the --aux-dir option to
50191         --create-testdir, --create-megatestdir, --test, --megatest.
50192         (func_create_testdir, func_create_megatestdir): Optionally emit a
50193         AC_CONFIG_AUX_DIR directive.
50194         (create-testdir, create-megatestdir, test, megatest): Provide a
50195         default value for $auxdir.
50196
50197 2005-08-24  Bruno Haible  <bruno@clisp.org>
50198
50199         * gnulib-tool (import): Use compound statement instead of subshell
50200         where possible.
50201
50202 2005-08-24  Bruno Haible  <bruno@clisp.org>
50203
50204         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50205
50206 2005-08-24  Bruno Haible  <bruno@clisp.org>
50207
50208         * gnulib-tool (func_version): Update.
50209
50210 2005-08-24  Bruno Haible  <bruno@clisp.org>
50211
50212         * gnulib-tool (func_import, func_create_testdir,
50213         func_create_megatestdir): Quote all autoconf macro arguments.
50214
50215 2005-08-24  Bruno Haible  <bruno@clisp.org>
50216
50217         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50218         option --force, because --force causes the aclocal.m4 of each
50219         subdirectory to be newer than the corresponding config.h.in.
50220
50221 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50222
50223         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50224         All contents moved to gl_REGEX.
50225         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50226         assume that it does.
50227
50228 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50229
50230         * lib/regex.h (REG_NOSYS)
50231         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50232         Define, since POSIX requires it as of 2001.
50233         (_REG_ENOSYS)
50234         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50235         New private symbol, used to keep the enum signed in all cases.
50236         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50237         Youngman in
50238         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50239
50240         * lib/regex_internal.c (re_string_skip_chars, register_state):
50241         (calc_state_hash):
50242         Remove forward decls; no longer needed now that we use prototypes.
50243         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50244         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50245         (clean_state_log_if_needed): Likewise.
50246
50247 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50248
50249         * config/srclist.txt: Add glibc bugs 1231-1233.
50250
50251 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50252
50253         Fix problems reported by Sam Steingold in
50254         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50255         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50256         assumed that reg_errcode_t is a signed type, which is not
50257         necessarily true if _XOPEN_SOURCE is not defined.
50258         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50259         since some compilers warn about it otherwise.
50260
50261 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50264         (init_word_char, create_initial_state, duplicate_node_closure):
50265         (fetch_token, peek_token_bracket, build_range_exp):
50266         (build_collating_symbol): Remove forward decls; no longer needed
50267         now that we use prototypes.
50268
50269         * lib/regcomp.c:
50270         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50271         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50272         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50273         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50274         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50275         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50276         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50277         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50278         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50279         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50280         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50281         (build_charclass, build_charclass_op, fetch_number, create_tree):
50282         (create_token_tree, mark_opt_subexp, duplicate_tree):
50283         Use prototypes rather than old-style definitions.
50284
50285         * lib/regex_internal.c:
50286         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50287         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50288         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50289         (re_string_reconstruct, re_string_peek_byte_case):
50290         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50291         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50292         (re_node_set_init_copy, re_node_set_add_intersect):
50293         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50294         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50295         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50296         (re_acquire_state, re_acquire_state_context, register_state):
50297         (create_ci_newstate, create_cd_newstate, free_state):
50298         Likewise.
50299         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50300         re_search_2):
50301         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50302         (re_search_internal, prune_impossible_nodes):
50303         (acquire_init_state_context, check_matching, static):
50304         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50305         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50306         (update_regs, sift_states_backward, build_sifted_states):
50307         (clean_state_log_if_needed, merge_state_array):
50308         (update_cur_sifted_state, add_epsilon_src_nodes):
50309         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50310         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50311         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50312         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50313         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50314         (check_arrival, check_arrival_add_next_nodes):
50315         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50316         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50317         (check_node_accept_bytes, check_node_accept, extend_buffers):
50318         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50319         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50320         (sift_ctx_init):
50321         Likewise.
50322
50323         * lib/regex_internal.h:
50324         (re_string_allocate, re_string_construct, re_string_reconstruct):
50325         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50326         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50327         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50328         (re_string_context_at, re_string_peek_byte_case):
50329         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50330         is defined, since we now use prototypes always.
50331
50332         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50333         C89 or better.  All uses removed.
50334
50335 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50336
50337         * config/srclist.txt: Add glibc bugs 1220-1227.
50338
50339 2005-08-20  Jim Meyering  <jim@meyering.net>
50340
50341         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50342         of unused local, dfa.
50343
50344 2005-08-20  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50347
50348 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50349
50350         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50351         (re_node_set_insert_last, re_dfa_add_node):
50352         Rename local variables to avoid GCC shadowing warnings.
50353
50354 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50357         [defined lint]: Suppress bogus uninitialized-variable warnings.
50358
50359         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50360         and let the caller return REG_ESPACE if out of space.  This
50361         removes an uninitialied-variable warning with GCC 4.0.1, and also
50362         avoids taking the address of a local variable.  All callers
50363         changed.
50364
50365 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50366
50367         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50368         $LIBCSRC/posix/regexec.c.
50369         Add glibc bug 1217 for regcomp.c.
50370
50371 2005-08-19  Jim Meyering  <jim@meyering.net>
50372
50373         * lib/regexec.c (proceed_next_node): Redo local variables to
50374         avoid GCC shadowing warnings.
50375
50376 2005-08-18  Bruno Haible  <bruno@clisp.org>
50377
50378         * lib/strstr.c (strstr): Fix return value in multibyte case.
50379         * lib/strcasestr.c (strcasestr): Likewise.
50380
50381 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50384
50385 2005-08-17  Jim Meyering  <jim@meyering.net>
50386
50387         Make the %s format (seconds since the epoch) work for a negative
50388         number and when used with a zero-padded field width, e.g. %015s.
50389
50390         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50391         label so that it precedes the code to set `digits'.  Otherwise,
50392         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50393         print `00-22'.  Now, it prints `-0022', as it should.
50394
50395 2005-08-17  Bruno Haible  <bruno@clisp.org>
50396
50397         * modules/strstr (Files): Add m4/mbrtowc.m4.
50398         (Depends-on): Add mbuiter.
50399
50400 2005-08-17  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/strcasestr: New file.
50403         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50404         strcasestr.
50405
50406 2005-08-17  Bruno Haible  <bruno@clisp.org>
50407
50408         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50409
50410 2005-08-17  Bruno Haible  <bruno@clisp.org>
50411
50412         * modules/mbuiter: New file.
50413         * MODULES.html.sh (Extended multibyte and wide character utilities):
50414         Add mbuiter.
50415
50416 2005-08-17  Bruno Haible  <bruno@clisp.org>
50417
50418         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50419         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50420
50421 2005-08-17  Bruno Haible  <bruno@clisp.org>
50422
50423         * m4/strcasestr.m4: New file.
50424
50425 2005-08-17  Bruno Haible  <bruno@clisp.org>
50426
50427         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50428         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50429
50430 2005-08-17  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/strcasestr.h: New file.
50433         * lib/strcasestr.c: New file.
50434
50435 2005-08-17  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/strcasecmp.c: Use mbuiter.h.
50438
50439 2005-08-17  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/mbuiter.h: New file.
50442
50443 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50444
50445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50446         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50447         and gl_GETOPT are both invoked via different paths (as happens
50448         with GNU tar CVS because it uses both argp and getopt), the former
50449         wins.
50450
50451 2005-08-16  Bruno Haible  <bruno@clisp.org>
50452
50453         * modules/tls: New file.
50454         * MODULES.html.sh (Multithreading): Add tls.
50455
50456 2005-08-16  Bruno Haible  <bruno@clisp.org>
50457
50458         * modules/strnlen1: New file.
50459         * MODULES.html.sh (String handling): Add strnlen1.
50460
50461 2005-08-16  Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/strcase (Files): Add m4/mbrtowc.m4.
50464         (Depends-on): Add strnlen1, mbchar.
50465
50466 2005-08-16  Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/mbiter: New file.
50469         * MODULES.html.sh (Extended multibyte and wide character utilities):
50470         Add mbiter.
50471
50472 2005-08-16  Bruno Haible  <bruno@clisp.org>
50473
50474         * modules/mbfile: New file.
50475         * MODULES.html.sh (Extended multibyte and wide character utilities):
50476         Add mbfile.
50477
50478 2005-08-16  Bruno Haible  <bruno@clisp.org>
50479
50480         * modules/mbchar: New file.
50481         * MODULES.html.sh (Extended multibyte and wide character utilities):
50482         New section.
50483
50484 2005-08-16  Bruno Haible  <bruno@clisp.org>
50485
50486         * m4/tls.m4: New file, from GNU gettext.
50487
50488 2005-08-16  Bruno Haible  <bruno@clisp.org>
50489
50490         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50491         always.
50492         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50493
50494 2005-08-16  Bruno Haible  <bruno@clisp.org>
50495
50496         * m4/mbiter.m4: New file.
50497
50498 2005-08-16  Bruno Haible  <bruno@clisp.org>
50499
50500         * m4/mbfile.m4: New file.
50501
50502 2005-08-16  Bruno Haible  <bruno@clisp.org>
50503
50504         * m4/mbchar.m4: New file.
50505
50506 2005-08-16  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/tls.h: New file, from GNU gettext.
50509         * lib/tls.c: New file, from GNU gettext.
50510
50511 2005-08-16  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/strnlen1.h: New file.
50514         * lib/strnlen1.c: New file.
50515
50516 2005-08-16  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50519         (mbi_init): Update.
50520         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50521         NUL byte, not after it.
50522
50523 2005-08-16  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/strcase.h (strcasecmp): Add note in comments.
50526         * lib/strncasecmp.c: Use code from strcasecmp.c.
50527         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50528         (strcasecmp): Work correctly in multibyte locales.
50529
50530 2005-08-16  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/mbiter.h: New file.
50533
50534 2005-08-16  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/mbfile.h: New file.
50537
50538 2005-08-16  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/mbchar.h: New file.
50541         * lib/mbchar.c: New file.
50542
50543 2005-08-16  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50546         the valid ones. Makes the comparison operations transitive:
50547         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50548         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50549
50550 2005-08-15  Simon Josefsson  <jas@extundo.com>
50551
50552         * modules/ssize_t (License): Change to 'unlimited'.
50553
50554         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50555
50556 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50557
50558         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50559         Add comments for each pending glibc patch.
50560
50561 2005-08-15  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50564         __cplusplus is defined.
50565
50566 2005-08-14  Jim Meyering  <jim@meyering.net>
50567
50568         Sync from coreutils.
50569
50570         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50571         Use the hash-table-based cycle-detection code not just when
50572         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50573         Reported by James Youngman in
50574         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50575         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50576         FTS_TIGHT_CYCLE_CHECK.
50577         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50578         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50579         once again.
50580         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50581         * lib/fts.c (fd_safer): Remove decl.
50582         Include fcntl--.h rather than unistd-safer.h
50583         (fts_safe_changedir): Don't call fd_safer; no longer needed
50584         now that we include fcntl--.h.
50585
50586 2005-08-12  Simon Josefsson  <jas@extundo.com>
50587
50588         * modules/getndelim2: Use ssize_t module.
50589         * modules/getnline: Likewise.
50590         * modules/safe-read: Likewise.
50591         * modules/xreadlink: Likewise.
50592
50593         * modules/ssize_t: New file.
50594
50595 2005-08-12  Simon Josefsson  <jas@extundo.com>
50596
50597         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50598
50599 2005-08-12  Simon Josefsson  <jas@extundo.com>
50600
50601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50602         ssize_t.
50603
50604 2005-08-12  Simon Josefsson  <jas@extundo.com>
50605
50606         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50607         readline, getdelim and check_version.
50608         (Support for systems lacking ISO C 99: Sizes of integer types):
50609         Add size_max.
50610
50611 2005-08-12  Bruno Haible  <bruno@clisp.org>
50612
50613         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50614
50615 2005-08-11  Simon Josefsson  <jas@extundo.com>
50616
50617         * modules/readline: New file.
50618
50619         * modules/strnlen (Files): Add strnlen.h.
50620
50621 2005-08-11  Simon Josefsson  <jas@extundo.com>
50622
50623         * m4/readline.m4: New file.
50624
50625 2005-08-11  Simon Josefsson  <jas@extundo.com>
50626
50627         * lib/readline.h, readline.c: New file.
50628
50629 2005-08-11  Simon Josefsson  <jas@extundo.com>
50630
50631         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50632         gl_AVOID.
50633
50634 2005-08-11  Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50637
50638 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50639
50640         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50641
50642 2005-08-10  Simon Josefsson  <jas@extundo.com>
50643
50644         * tests/test-iconvme.c: New file.
50645
50646 2005-08-10  Simon Josefsson  <jas@extundo.com>
50647
50648         * m4/strnlen.m4: New file.
50649
50650         * m4/strndup.m4: Don't check for strnlen declaration, done in
50651         strnlen.m4.
50652
50653 2005-08-10  Simon Josefsson  <jas@extundo.com>
50654
50655         * lib/strndup.c: Use strnlen.h.
50656
50657         * lib/strnlen.h: New file.
50658
50659 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50660
50661         * README: Typos.
50662
50663 2005-08-02  Simon Josefsson  <jas@extundo.com>
50664
50665         * modules/readline: New file.
50666
50667 2005-08-02  Simon Josefsson  <jas@extundo.com>
50668
50669         * modules/getdelim: New file.
50670
50671         * modules/getline: Rewrite, don't use getndelim2.
50672
50673 2005-08-02  Simon Josefsson  <jas@extundo.com>
50674
50675         * m4/getline.m4: Separate out getdelim stuff into separate module.
50676
50677         * m4/getdelim.m4: New file.
50678
50679 2005-08-02  Simon Josefsson  <jas@extundo.com>
50680
50681         * lib/getline.h, getline.c: Rewrite.
50682
50683         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50684
50685 2005-07-31  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/lock.h (gl_lock_initializer): New macro.
50688         (gl_lock_define_initialized): Use it.
50689         (gl_rwlock_initializer): New macro.
50690         (gl_rwlock_define_initialized): Use it.
50691         (gl_recursive_lock_initializer): New macro.
50692         (gl_recursive_lock_define_initialized): Use it.
50693
50694 2005-07-30  Karl Berry  <karl@gnu.org>
50695
50696         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50697         Report from Ben Pfaff, regarding getopt.
50698
50699 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50700
50701         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50702         normal way.
50703         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50704         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50705         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50706         (gl_GETOPT): Use the new macros.  Most of the implementation
50707         is moved to the new macros.  This is for programs like Emacs
50708         that don't want all the functionality of gl_GETOPT.
50709
50710 2005-07-26  Bruno Haible  <bruno@clisp.org>
50711
50712         * m4/lock.m4: Update from GNU gettext.
50713
50714 2005-07-26  Bruno Haible  <bruno@clisp.org>
50715
50716         * lib/lock.h: Update from GNU gettext.
50717         * lib/lock.c: Update from GNU gettext.
50718
50719 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50720
50721         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50722         obsolescent AC_TRY_RUN.  Include the default includes files, for
50723         'exit'.
50724
50725 2005-07-24  Bruno Haible  <bruno@clisp.org>
50726
50727         * modules/visibility: New file.
50728         * MODULES.html.sh (Misc): Add visibility.
50729
50730 2005-07-24  Bruno Haible  <bruno@clisp.org>
50731
50732         * m4/visibility.m4: New file.
50733
50734 2005-07-24  Bruno Haible  <bruno@clisp.org>
50735
50736         * doc/visibility.texi: New file.
50737
50738 2005-07-22  Bruno Haible  <bruno@clisp.org>
50739
50740         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50741         $(ALLOCA_H), redundant through BUILT_SOURCES.
50742         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50743         redundant through BUILT_SOURCES.
50744         * modules/byteswap (Makefile.am): Remove explicit dependency on
50745         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50746         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50747         $(FNMATCH_H), redundant through BUILT_SOURCES.
50748         * modules/getopt (Makefile.am): Remove explicit dependency on
50749         $(GETOPT_H), redundant through BUILT_SOURCES.
50750         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50751         redundant through BUILT_SOURCES.
50752         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50753         redundant through BUILT_SOURCES.
50754         * modules/stdbool (Makefile.am): Remove explicit dependency on
50755         $(STDBOOL_H), redundant through BUILT_SOURCES.
50756         * modules/stdint (Makefile.am): Remove explicit dependency on
50757         $(STDINT_H), redundant through BUILT_SOURCES.
50758         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50759         Remove explicit dependency on $(SYSEXITS_H).
50760         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50761
50762 2005-07-18  Simon Josefsson  <jas@extundo.com>
50763
50764         * lib/check-version.c (check_version): Accept identical versions too.
50765
50766 2005-07-18  Bruno Haible  <bruno@clisp.org>
50767
50768         * modules/lock: New file.
50769         * MODULES.html.sh (Multithreading): New section.
50770
50771 2005-07-18  Bruno Haible  <bruno@clisp.org>
50772
50773         * m4/lock.m4: New file, from GNU gettext.
50774
50775 2005-07-18  Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/lock.h: New file, from GNU gettext.
50778         * lib/lock.c: New file, from GNU gettext.
50779
50780 2005-07-18  Bruno Haible  <bruno@clisp.org>
50781
50782         * lib/lock.h (gl_once_t): New type.
50783         (gl_once_define, gl_once): New macros.
50784         * lib/lock.c (fresh_once): New variable.
50785         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50786         functions.
50787
50788 2005-07-16  Simon Josefsson  <jas@extundo.com>
50789
50790         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50791         workaround, suggested by Bruno.
50792
50793 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50794
50795         * modules/xalloc (Depends-on): Add xalloc-die.
50796         * modules/xvasprintf (Depends-on): Add xalloc-die.
50797
50798 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50801         with a minor change.
50802
50803 2005-07-15  Bruno Haible  <bruno@clisp.org>
50804
50805         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50806         When using lib/poll.c, define poll as rpl_poll.
50807
50808 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50809
50810         * modules/argp (Depends-on): Remove unlocked-io.
50811
50812 2005-07-14  Derek Price  <derek@ximbiot.com>
50813
50814         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50815         for glob symlink bug.
50816
50817 2005-07-14  Bruno Haible  <bruno@clisp.org>
50818
50819         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50820         Instead, test for *_unlocked function declarations directly.
50821
50822 2005-07-11  Simon Josefsson  <jas@extundo.com>
50823
50824         * modules/size_max: New file.
50825
50826         * modules/xsize: Depend on size_max module for size_max.m4.
50827
50828 2005-07-11  Simon Josefsson  <jas@extundo.com>
50829
50830         * lib/size_max.h: New file.
50831
50832 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50833
50834         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50835         copyright symbol and the year.
50836         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50837         (version_etc_va): Use parameterized copyright notice.
50838         Reword to conform to the current GNU coding standards.
50839
50840 2005-07-11  Karl Berry  <karl@gnu.org>
50841
50842         * doc/gnulib.texi (Quoting): new node.
50843         (Initial import): more info, from Patrice.
50844
50845 2005-07-11  Bruno Haible  <bruno@clisp.org>
50846
50847         * gnulib-tool (func_usage): Document option --avoid.
50848         (Command line options): Handle --avoid.
50849         (func_acceptable): New function.
50850         (func_modules_transitive_closure): Use it.
50851
50852 2005-07-11  Bruno Haible  <bruno@clisp.org>
50853
50854         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50855         Reported by Jim Meyering.
50856
50857 2005-07-10  Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50860         Needed when size_t is smaller than 'unsigned int'.
50861         Reported by Paul Eggert.
50862
50863 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50864
50865         * modules/argp (Depends-on): Add unlocked-io
50866
50867 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50868
50869         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50870         block of defines.
50871
50872 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50873
50874         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50875         fix now.
50876
50877 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50878         and Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50881         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50882
50883 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50884
50885         * modules/regex (Files): Add lib/regex_internal.c,
50886         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50887         (Depends-on): Add extensions.
50888         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50889
50890 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50891
50892         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50893         pathconf.
50894         * m4/same.m4 (gl_SAME): Likewise.
50895         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50896
50897         * m4/regex.m4: Adjust to new libc regex implementation.
50898         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50899         all the .c and .h parts of (the new) regex.
50900         Quote the m4 stuff better.
50901         Check for RE_ICASE bug of old gnulib.
50902         Check for REG_STARTEND of recent libc.
50903         Rename local variables from jm_* to gl_*.
50904         Quote operand of "test -f".
50905         Say "recent enough" version of libc, not "version 2".
50906         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50907         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50908         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50909         Remove check for btowc, isascii.
50910         Require AM_LANGINFO_CODESET.
50911
50912 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50913
50914         * lib/regex.c, regex.h: Sync from libc.
50915         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50916         * lib/regexec.c:
50917         New files, synced from libc, except that regex_internal.h
50918         currently has a small porting fix.
50919
50920 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50921
50922         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50923         regex_internal.c, regexec.c.
50924         Add regex_internal.h too, but as a comment, since the libc version
50925         is currently broken in gnulib mode.
50926
50927 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50928
50929         Support programs like Emacs that use gnulib but not gettext.
50930         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50931         * modules/gettext-h: New file.
50932         * modules/gettext (Files): Remove lib/gettext.h.
50933         (Depends-on): Add gettext-h.
50934         (Makefile.am): Remove lib_SOURCES.
50935         * modules/argmatch, modules/c-stack, modules/closeout:
50936         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50937         * modules/execute, modules/file-type, modules/getaddrinfo:
50938         * modules/getopt, modules/human, modules/javacomp:
50939         * modules/javaexec, modules/mkdir-p, modules/obstack:
50940         * modules/openat, modules/pagealign_alloc, modules/pipe:
50941         * modules/quotearg, modules/regex, modules/rpmatch:
50942         * modules/unicodeio, modules/userspec, modules/version-etc:
50943         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50944         * modules/xsetenv:
50945         Depend on gettext-h, not gettext.
50946
50947 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50948
50949         * gnulib-tool (func_import): Add support for 'public domain' license.
50950         * modules/alloca, modules/atexit, modules/memmove:
50951         Now public domain, not GPL.
50952         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50953         * modules/realloc, modules/strerror, modules/strtod:
50954         Now LGPL, not GPL.
50955
50956 2005-07-05  Bruno Haible  <bruno@clisp.org>
50957
50958         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50959         autoconf CVS. Needed for mingw.
50960
50961 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50962
50963         Remove the dependency of the strftime module on the tzset module.
50964         * modules/strftime (Depends-on): Remove dependency on tzset.
50965
50966 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50967
50968         Remove the dependency of the strftime module on the tzset module.
50969         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50970         gl_FUNC_TZSET_CLOBBER.
50971
50972 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         Remove the dependency of the strftime module on the tzset module.
50975         * lib/strftime.c (my_strftime)
50976         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50977         Copy the input structure, to work around some of the bug with
50978         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50979         Solaris releases, you should also use the tzset module, but we won't
50980         require it as a dependency any more since we don't want LGPLed code
50981         to depend on GPLed code.
50982
50983 2005-07-02  Jim Meyering  <jim@meyering.net>
50984
50985         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50986         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50987         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50988         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50989
50990 2005-07-02  Jim Meyering  <jim@meyering.net>
50991
50992         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50993
50994 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50997         declares only 'struct timespec;' (!).
50998
50999 2005-07-01  Jim Meyering  <jim@meyering.net>
51000
51001         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51002         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51003         * lib/save-cwd.c, tempname.c:
51004         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51005         and don't include <sys/file.h>).
51006
51007 2005-06-29  Jim Meyering  <jim@meyering.net>
51008
51009         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51010         type name.  Use the variable name instead.
51011         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51012         Likewise.
51013
51014 2005-06-28  Simon Josefsson  <jas@extundo.com>
51015
51016         * modules/check-version (Files): Add check-version.m4.
51017
51018 2005-06-28  Simon Josefsson  <jas@extundo.com>
51019
51020         * m4/check-version.m4: New file, suggested by Jim Meyering
51021         <jim@meyering.net>.
51022
51023 2005-06-28  Simon Josefsson  <jas@extundo.com>
51024
51025         * lib/check-version.h, lib/check-version.c: New files.
51026
51027 2005-06-28  Simon Josefsson  <jas@extundo.com>
51028
51029         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51030         collision with global variable.  Better indentation.  Don't
51031         increment buffer pointer beyond buffer end.  Based on comments
51032         from Paul Eggert <eggert@cs.ucla.edu>.
51033
51034         * lib/base64.h: Indent.
51035
51036 2005-06-28  Simon Josefsson  <jas@extundo.com>
51037
51038         * doc/gnulib.texi (Library version handling): New section.
51039
51040 2005-06-28  Jim Meyering  <jim@meyering.net>
51041
51042         * check-module (find_included_lib_files): Hard-code another
51043         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51044         but modules/fts-lgpl (correctly) does not list those files.
51045
51046         * modules/canonicalize (Files): Add lib/pathmax.h.
51047
51048 2005-06-25  Simon Josefsson  <jas@extundo.com>
51049
51050         * modules/check-version: New file.
51051
51052 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51053
51054         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51055         initializer of struct addrinfo, as an indication that we don't
51056         care how many members the structure has.
51057
51058 2005-06-24  Derek Price  <derek@ximbiot.com>
51059         and Bruno Haible  <bruno@clisp.org>
51060
51061         Remove stat module & update lstat.
51062         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51063         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51064         * m4/stat.m4: Remove this file.
51065
51066 2005-06-24  Derek Price  <derek@ximbiot.com>
51067         and Bruno Haible  <bruno@clisp.org>
51068
51069         Remove stat module & update lstat.
51070         * lib/stat.c: Remove this file...
51071         (slash_aware_lstat): ...moving this content and its support...
51072         * lib/lstat.c (rpl_lstat): ...into here.
51073         * lib/lstat.h: New file.
51074
51075 2005-06-24  Derek Price  <derek@ximbiot.com>
51076         and Bruno Haible  <bruno@clisp.org>
51077
51078         Remove stat module & update lstat.
51079         * config/srclist.txt (libc sources): Remove stat.
51080
51081 2005-06-24  Derek Price  <derek@ximbiot.com>
51082         and Bruno Haible  <bruno@clisp.org>
51083
51084         Remove stat module & update lstat.
51085         * MODULES.html.sh (stat): Remove.
51086         * MODULES.html: Regenerated.
51087         * modules/lstat (Description): Correct function name.
51088         (Files): Add "lstat.h".
51089         (Depends-on): Remove stat, add xalloc, stat-macros.
51090         * modules/stat: Remove this file.
51091         (Include): Add "lstat.h", remove <sys/stat.h>.
51092
51093 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51094
51095         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51096         (ranged_convert): Don't save conversion in a temporary struct.
51097         This causes a warning with GCC 4.0.0, and anyway in the typical
51098         case it's not worth the extra 100 bytes or so of code.
51099         (ranged_convert, __mktime_internal): When calling a function via a
51100         pointer P, use P () rather than (*P) (), as we now assume C89 or
51101         better.
51102
51103 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51106         "who -r" failed to give output.  Problem reported by Tim Waugh.
51107
51108         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51109         (xcalloc): Use it to avoid needless tests.
51110         Problem reported by Jim Meyering.
51111
51112 2005-06-20  Derek Price  <derek@ximbiot.com>
51113
51114         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51115         unnecessary for Autoconfs > 2.59c.
51116
51117 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51118
51119         * lib/argp.h (__option_is_short): Check upper limit of
51120         __key. Isprint() requires its argument to have the value
51121         of an unsigned char or EOF.
51122
51123 2005-06-16  Jim Meyering  <jim@meyering.net>
51124
51125         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51126         when either N or S is zero.
51127
51128 2005-06-16  Derek Price  <derek@ximbiot.com>
51129
51130         * m4/bison.m4: Declare YACC & YFLAGS precious.
51131
51132 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51133
51134         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51135         multibyte string or pattern, fall back on unibyte matching.
51136         Problem reported by James Youngman.
51137
51138 2005-06-08  Bruno Haible  <bruno@clisp.org>
51139
51140         * modules/csharpcomp: New file.
51141         * MODULES.html.sh (C#): Add csharpcomp.
51142
51143 2005-06-08  Bruno Haible  <bruno@clisp.org>
51144
51145         * m4/csharpcomp.m4: New file, from GNU gettext.
51146
51147 2005-06-08  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/csharpcomp.h: New file, from GNU gettext.
51150         * lib/csharpcomp.c: New file, from GNU gettext.
51151         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51152
51153 2005-06-08  Bruno Haible  <bruno@clisp.org>
51154
51155         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51156         warning on mingw.
51157
51158 2005-06-07  Derek Price  <derek@ximbiot.com>
51159
51160         Sync from CVS.
51161         * lib/glob_.h: Indent nested #ifdef.
51162
51163 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51164
51165         Sync from coreutils.
51166         Use "file name" when talking about file names, instead of "filename"
51167         or "path", as per the GNU coding standards.
51168         * lib/mkdir-p.c: Renamed from makepath.c.
51169         (make_dir_parents): Renamed from make_path.  All callers changed.
51170         * lib/mkdir-p.h: Likewise.  All includers changed.
51171         * lib/filenamecat.c: Renamed from path-concat.c.
51172         (file_name_concat): Renamed from path_concat.  All callers changed.
51173         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51174         * lib/filenamecat.h: Likewise.  All includers changed.
51175         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51176         in comments or local variable names.
51177         * lib/basename.c: Likewise.
51178         * lib/canonicalize.c, canonicalize.h: Likewise.
51179         * lib/dirname.c, dirname.h: Likewise.
51180         * lib/euidaccess.c: Likewise.
51181         * lib/exclude.c: Likewise
51182         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51183         * lib/fsusage.c, fsuage.h: Likewise.
51184         * lib/fts.c, fts_.h: Likewise.
51185         * lib/getcwd.c: Likewise.
51186         * lib/getloadavg.c: Likewise.
51187         * lib/mkstemp.c: Likewise.
51188         * lib/mountlist.c, mountlist.h: Likewise.
51189         * lib/openat.c, openat.h: Likewise.
51190         * lib/readlink-stub.c: Likewise.
51191         * lib/readutmp.c, readutmp.h: Likewise.
51192         * lib/rename.c: Likewise.
51193         * lib/rmdir.c: Likewise.
51194         * lib/same.c: Likewise.
51195         * lib/savedir.c: Likewise.
51196         * lib/stripslash.c: Likewise.
51197         * lib/tempname.c: Likewise.
51198         * lib/xreadlink.c: Likewise.
51199         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51200         All uses changed.
51201         * lib/exclude.h: Likewise.
51202
51203         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51204         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51205         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51206         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51207         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51208         files have been getting away with it for years (MORE/BSD 4.3
51209         is extinct now).
51210         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51211         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51212
51213         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51214         Define to 256, not 255, as per modern POSIX.
51215
51216 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         Sync from coreutils.
51219         Use "file name" when talking about file names, instead of "filename"
51220         or "path", as per the GNU coding standards.
51221         * MODULES.html.sh: mkdir-p renamed from makepath.
51222         filenamecat renamed from path-concat.
51223         * modules/filenamecat: Renamed from modules/path-concat.
51224         (Files): filenamecat.h and filenamecat.c renamed from
51225         path-concat.h and path-concat.c.
51226         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51227         (Include): filenamecat.h, not path-concat.h.
51228         * modules/mkdir-p: Renamed from modules/makepath.
51229         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51230         makepath.c.
51231         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51232         (Include): mkdir-p.h, not makepath.h.
51233
51234 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51235
51236         Sync from coreutils.
51237         * m4/mkdir-p.m4: Renamed from makepath.m4.
51238         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51239         Rename files from makepath.c to mkdir-p.c, and from
51240         makepath.h to mkdir-p.h.
51241         * m4/filenamecat.m4: Renamed from path-concat.m4.
51242         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51243         Rename files from path-concat.c to filenamecat.c,
51244         and from path-concat.h to filenamecat.h.
51245         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51246         "file name" in local variables or comments.
51247         * m4/rename.m4: Likewise.
51248
51249 2005-06-01  Bruno Haible  <bruno@clisp.org>
51250
51251         * modules/csharpexec: New file.
51252         * MODULES.html.sh (C#): New section.
51253
51254 2005-06-01  Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/csharp.m4: New file, from GNU gettext.
51257         * m4/csharpexec.m4: New file, from GNU gettext.
51258
51259 2005-06-01  Bruno Haible  <bruno@clisp.org>
51260
51261         * lib/csharpexec.h: New file, from GNU gettext.
51262         * lib/csharpexec.c: New file, from GNU gettext.
51263         * lib/csharpexec.sh.in: New file, from GNU gettext.
51264
51265 2005-05-31  Derek Price  <derek@ximbiot.com>
51266             Paul Eggert  <eggert@cs.ucla.edu>
51267
51268         Sync from cvs.
51269         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51270
51271 2005-05-31  Derek Price  <derek@ximbiot.com>
51272             Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         Sync from cvs.
51275         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51276
51277 2005-05-29  Derek Price  <derek@ximbiot.com>
51278
51279         * config/srclist.txt (glob_.h, glob.c): Add these files.
51280
51281 2005-05-29  Derek Price  <derek@ximbiot.com>
51282
51283         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51284         * modules/glob: New file.
51285         * modules/getlogin_r: Add link to POSIX spec in description.
51286
51287 2005-05-29  Derek Price  <derek@ximbiot.com>
51288             Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         * m4/glob.m4: New file.
51291
51292 2005-05-29  Derek Price  <derek@ximbiot.com>
51293             Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * lib/glob_.h, lib/glob.c: New files.
51296
51297 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51298
51299         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51300         * modules/fts-lgpl (Depends-on): Remove gettext.
51301
51302 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51305         and don't require gt_INTTYPES_PRI.
51306
51307 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51310
51311         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51312         the configuration hassle isn't worth it.
51313         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51314         (LONGEST_MODIFIER, PRIuMAX): Remove.
51315
51316 2005-05-27  Bruno Haible  <bruno@clisp.org>
51317
51318         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51319
51320 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51321
51322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51323         _POSIX_PTHREAD_SEMANTICS for Solaris.
51324
51325 2005-05-25  Derek Price  <derek@ximbiot.com>
51326
51327         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51328
51329 2005-05-25  Derek Price  <derek@ximbiot.com>
51330             Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51333         * lib/getlogin_r.c, getlogin_r.h: New files.
51334
51335 2005-05-25  Bruno Haible  <bruno@clisp.org>
51336             Derek Price  <derek@ximbiot.com>
51337
51338         * lib/getlogin_r.h: Simplify API documentation.
51339
51340 2005-05-23  Derek Price  <derek@ximbiot.com>
51341
51342         * modules/minmax (Files): Add m4/minmax.m4.
51343         (configure.ac): Add gl_MINMAX.
51344
51345 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51346
51347         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51348         so that unistd-safer.h (GPL'ed code) need not be included.
51349
51350 2005-05-22  Bruno Haible  <bruno@clisp.org>
51351
51352         * m4/minmax.m4: New file.
51353         Based on a patch by Derek Price <derek@ximbiot.com>.
51354
51355 2005-05-22  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51358         (INT64_MIN): Fix definition.
51359         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51360
51361         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51362         NEED_SIGNED_INT_TYPES.
51363
51364         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51365         HAVE_SYSTEM_INTTYPES.
51366
51367 2005-05-22  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51370         Also include <sys/param.h> if it defines MIN, MAX.
51371         Based on a patch by Derek Price <derek@ximbiot.com>.
51372
51373 2005-05-21  Jim Meyering  <jim@meyering.net>
51374
51375         * modules/fts (Files): Add m4/inttypes-pri.m4.
51376         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51377
51378 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51379
51380         New fts module.
51381         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51382         (setup_dir, free_dir): New functions.
51383         (enter_dir, leave_dir): Define trivial
51384         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51385         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51386         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51387         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51388         Move to fts-cycle.c.
51389         (fts_open): Use setup_dir.
51390         (fts_close): Use free_dir.
51391         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51392         This adds a label and some gotos, but the alternatives were messier.
51393         Check for memory allocation failure when entering a dir.
51394         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51395         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51396         (FTS): New member fts_cycle, that is a union that contains the
51397         old active_dir_ht and cycle_state.  All uses changed to mention
51398         fts_cycle.ht and fts_cycle.state.
51399         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51400         fts.c, with the following changes:
51401         (setup_dir, free_dir): New functions.
51402         (enter_dir): Now returns bool.  Return true if successful, false
51403         if memory exhausted.  All callers changed.
51404         Do not bother partly cleaning up on
51405         memory allocation failure; that is free_dir's job.
51406         However, free ad if hash_insert fails, to avoid memory leak.
51407         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51408         fts->fts_options to see which union member to use.
51409
51410 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51413         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51414
51415 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51416
51417         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51418
51419 2005-05-20  Jim Meyering  <jim@meyering.net>
51420
51421         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51422         Now a macro, to pacify GCC.
51423
51424 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51425
51426         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51427         of -1.
51428
51429 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51430
51431         * lib/chown.c (rpl_chown): Return -1 on failure.
51432
51433 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51436         Don't check for stddef.h.
51437         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51438         don't use its results.
51439         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51440         since we include them unconditionally.  Don't require
51441         AM_STDBOOL_H, since stdbool is a prerequisite.
51442         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51443         since we assume C89 or better.
51444         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51445         as we don't use their results.
51446         Don't check for fchdir, memmove, memset, strrchr, as we use
51447         them unconditionally.
51448         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51449         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51450
51451 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51452
51453         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51454         Include <stddef.h> unconditionally, since we assume C89 now.
51455         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51456         * lib/fts.c: Include fts_.h first, to check interface.
51457         Do not include intprops.h; no longer needed.
51458         Include cycle-check.h and hash.h, since fts_.h no longer does.
51459         Remove unnecessary casts of closedir to void.
51460         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51461         decide whether to decrement nlinks.
51462         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51463         (FTS): Use struct hash_table * instead of Hash_table, so that
51464         we no longer need to include hash.h here.
51465
51466 2005-05-18  Jim Meyering  <jim@meyering.net>
51467
51468         * modules/dirfd (License): Change to LGPL.  Most of the code
51469         is already in the public domain.
51470
51471 2005-05-18  Jim Meyering  <jim@meyering.net>
51472
51473         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51474         Reported by Yoann Vandoorselaere.
51475
51476 2005-05-17  Jim Meyering  <jim@meyering.net>
51477
51478         * m4/fts.m4: New file, from coreutils.
51479
51480 2005-05-17  Jim Meyering  <jim@meyering.net>
51481
51482         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51483
51484 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51485
51486         Sync from coreutils.
51487         * m4/unlinkdir.m4: New file.
51488
51489 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51490
51491         Sync from coreutils.
51492         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51493         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51494         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51495         White space changes only.
51496         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51497         special.
51498         * lib/yesno.c: Include getline.h, not ctype.h.
51499         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51500         Use getline to remove arbitrary restriction on response length.
51501
51502 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * config/srclist-update: Spell out "Street" in FSF postal
51505         mail address; this is the style the FSF seems to prefer.
51506
51507         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51508         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51509         this updates FSF postal mail address.
51510
51511         Sync from coreutils.
51512         * modules/unlinkdir: New file.
51513         * modules/yesno (Depends-on): Add getline.
51514         * MODULES.html.sh (File system functions): Add unlinkdir.
51515
51516 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51517
51518         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51519         lib/strsep.h:
51520         Change the initial comment to refer to GPL, not LGPL.
51521         gnulib-tool will change it to LGPL as needed.
51522
51523         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51524         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51525         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51526         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51527         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51528         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51529         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51530         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51531         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51532         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51533         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51534         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51535         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51536         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51537         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51538         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51539         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51540         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51541         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51542         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51543         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51544         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51545         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51546         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51547         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51548         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51549         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51550         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51551         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51552         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51553         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51554         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51555         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51556         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51557         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51558         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51559         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51560         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51561         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51562         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51563         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51564         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51565         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51566         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51567         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51568         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51569         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51570         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51571         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51572         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51573         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51574         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51575         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51576         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51577         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51578         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51579         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51580         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51581         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51582         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51583         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51584         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51585         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51586         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51587         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51588         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51589         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51590         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51591         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51592         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51593         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51594         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51595         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51596         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51597         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51598         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51599         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51600         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51601         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51602         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51603         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51604         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51605         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51606         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51607         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51608         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51609         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51610         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51611         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51612         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51613         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51614         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51615         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51616         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51617         lib/yesno.c, lib/yesno.h:
51618         Update FSF postal mail address.
51619
51620 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51621
51622         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51623         tests/test-memmem.c, tests/test-stpncpy.c:
51624         Update FSF postal mail address.
51625
51626 2005-05-13  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51629         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51630         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51631         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51632         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51633         Add support for 64-bit integers in the MSVC compiler.
51634
51635 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51636
51637         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51638
51639 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51640
51641         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51642
51643 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51644
51645         * doc/getdate.texi (General date syntax): Don't say that date
51646         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51647         Problem reported by Nic Ferrier.
51648
51649 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51650
51651         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51652         specified in ai_socktype. Fix invalid ai_protocol
51653         check. ai_protocol is usually set to 0 or depending on
51654         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51655         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51656         ai_socktype / ai_protocol in the returned addrinfo structure.
51657
51658 2005-05-10  Simon Josefsson  <jas@extundo.com>
51659
51660         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51661         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51662
51663 2005-05-10  Karl Berry  <karl@gnu.org>
51664
51665         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51666         (from http://www.gnu.org/licenses).
51667         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51668         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51669         fdl.texi suffices.
51670
51671 2005-05-10  Karl Berry  <karl@gnu.org>
51672
51673         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51674         (COPYING.DOC): remove.
51675
51676         * config/srclist-update: new FSF address.
51677
51678 2005-05-10  Derek Price  <derek@ximbiot.com>
51679
51680         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51681         possible.
51682
51683 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51684             Bruno Haible  <bruno@clisp.org>
51685
51686         * modules/inet_ntop: New file.
51687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51688         inet_ntop.
51689
51690 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51691             Bruno Haible  <bruno@clisp.org>
51692
51693         * m4/inet_ntop.m4: New file.
51694
51695 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51696             Bruno Haible  <bruno@clisp.org>
51697
51698         * lib/inet_ntop.h: New file.
51699         * lib/inet_ntop.c: New file, from glibc with modifications.
51700
51701 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51702
51703         * modules/time_r (License): Change to LGPL.
51704         * modules/extensions (License): Change to LGPL.  Actually,
51705         the license is more permissive than that, but currently gnulib-tool
51706         doesn't know how to handle more-permissive licenses.
51707
51708         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51709         Problem reported by Dave Love.
51710
51711 2005-05-08  Jim Meyering  <jim@meyering.net>
51712
51713         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51714         blank.
51715
51716 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * modules/argmatch (Depends-on): Add stdbool.
51719         * modules/backupfile (Depends-on): Likewise.
51720         * modules/chdir-long (Depends-on): Likewise.
51721         * modules/closeout (Depends-on): Likewise.
51722         * modules/cycle-check (Depends-on): Likewise.
51723         * modules/dirname (Depends-on): Likewise.
51724         * modules/fnmatch (Depends-on): Likewise.
51725         * modules/fsusage (Depends-on): Likewise.
51726         * modules/fwriteerror (Depends-on): Likewise.
51727         * modules/getcwd (Depends-on): Likewise.
51728         * modules/getloadavg (Depends-on): Likewise.
51729         * modules/hard-locale (Depends-on): Likewise.
51730         * modules/makepath (Depends-on): Likewise.
51731         * modules/mountlist (Depends-on): Likewise.
51732         * modules/nanosleep (Depends-on): Likewise.
51733         * modules/posixtm (Depends-on): Likewise.
51734         * modules/quotearg (Depends-on): Likewise.
51735         * modules/readtokens (Depends-on): Likewise.
51736         * modules/readtokens0 (Depends-on): Likewise.
51737         * modules/readutmp (Depends-on): Likewise.
51738         * modules/save-cwd (Depends-on): Likewise.
51739         * modules/strftime (Depends-on): Likewise.
51740         * modules/userspec (Depends-on): Likewise.
51741         * modules/utimecmp (Depends-on): Likewise.
51742         * modules/xgetcwd (Depends-on): Likewise.
51743         * modules/xnanosleep (Depends-on): Likewise.
51744         * modules/xstrtod (Depends-on): Likewise.
51745         * modules/yesno (Depends-on): Likewise.
51746
51747 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51750         needless checks.
51751
51752 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         Merge from coreutils.  Among other things,
51755         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51756         * lib/fd-safer.c: New file.
51757         * lib/fcntl-safer.h, open-safer.c: Remove.
51758         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51759         * lib/dup-safer.c: Include unistd-safer.h first.
51760         Don't include errno.h.
51761         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51762         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51763         * lib/file-type.c: Rely on file-type.h change.
51764         * lib/getloadavg.c: Include unistd-safer.h.
51765         (getloadavg): Use safer open.
51766         * lib/getusershell.c: Include "stdio-safer.h".
51767         (getusershell): Use safer fopen.
51768         * lib/long-options.c (long_options): Use NULL rather than 0.
51769         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51770         'free'.
51771         * lib/modechange.c: Likewise.
51772         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51773         (MODE_DONE): New constant.
51774         (struct mode_change): Remove 'next' member.
51775         (make_node_op_equals): New function; like the old one of the
51776         same name, except it allocates an array.
51777         (mode_compile, mode_create_from_ref): Use it.
51778         (mode_compile): Allocate result as an array, not a linked list.
51779         Parse octal string ourself, so that we catch mistakes like "+0".
51780         (mode_adjust): Arg is an array, not a linked list.
51781         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51782         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51783         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51784         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51785         Remove.  This is now stat-macros.h's job.
51786         (talloc): Remove.  All callers replaced by xalloc, so that
51787         our invokers don't have to worry about reporting memory failures.
51788         (make_node_op_equals): Remove.
51789         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51790         New constants.
51791         (struct mode_change): Moved here from modechange.h.
51792         (mode_append_entry): Remove.
51793         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51794         apps to have incorrect behavior.  Use simpler algorithm for head
51795         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51796         Detect more invalid usages rather than having somewhat-random behavior.
51797         Don't insert an "a=" action, as that leads to incorrect behavior.
51798         (mode_compile, mode_create_from_ref): Return NULL on error instead
51799         of an enum, since now there's only one way to have an error.  All
51800         callers changed.
51801         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51802         at the correct time.  Simplify calculation of "+u" and its ilk.
51803         Don't mishandle "+X".
51804         (mode_free): Remove "register" and localize decls.
51805         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51806         (struct mode_change): Move to modechange.c; callers don't
51807         need to see this stuff.
51808         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51809         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51810         (mode_change, mode_adjust): Reflect the new signatures noted above.
51811         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51812         that might redefine system include files.
51813         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51814         (my_usleep): Use NULL rather than (void *) 0.
51815         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51816         Use siginterrupt to specify that system calls should be interrupted.
51817         (rpl_nanosleep): Move initialization of suspended closer to call of
51818         my_usleep.
51819         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51820         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51821         (desirable_utmp_entry): New function.
51822         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51823         using x2nrealloc, to simplify logic.
51824         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51825         size calculation.  Do not assume utmp file is a regular file.
51826         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51827         (READ_UTMP_CHECK_PIDS): New constant.
51828         * lib/save-cwd.c: Include unistd-safer.h.
51829         (save_cwd): Use fd_safer.
51830         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51831         [!_LIBC] Include "stat-macros.h" instead.
51832         * lib/unistd-safer.h (fd_safer): New decl.
51833
51834 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * modules/getloadavg (Depends-on): Add unistd-safer.
51837         * modules/getusershell (Depends-on): Add stdio-safer.
51838         * modules/lstat (Depends-on): Remove xalloc.
51839         * modules/mkstemp (Depends-on): Add stat-macros.
51840         * modules/modechange (Depends-on): Remove xstrtol.
51841         Add stat-macros, xalloc.
51842         * modules/save-cwd (Depends-on): Add unistd-safer.
51843         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51844         * modules/unistd-safer (Files): Add lib/fd-safer.c
51845         (Makefile.am): Remove lib_SOURCES.
51846
51847         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51848         Remove fcntl-safer; unistd-safer supersedes it.
51849
51850 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51851
51852         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51853         AC_HEADER_STAT.
51854         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51855         (gl_PREREQ_CHOWN): Remove.
51856         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51857         it.  Don't require AC_HEADER_STAT.
51858         (gl_PREREQ_LSTAT): Remove.
51859         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51860         Don't require AC_HEADER_STAT.
51861         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51862         (gl_PREREQ_RMDIR): Remove.
51863         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51864         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51865         the stat-macros module a prerequisite.
51866         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51867         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51868         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51869         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51870         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51871         variable names.
51872         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51873         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51874         variable prefixes.
51875         * m4/fcntl-safer.m4: Remove.
51876         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51877         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51878         Invoke gl_PREREQ_FD_SAFER.
51879         (gl_PREREQ_FD_SAFER): New macro.
51880         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51881         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51882         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51883         Remove duplicate call to AC_LIBOBJ(readutmp).
51884         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51885
51886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51887         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51888
51889 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * MODULES.html.sh (Misc): Add byteswap.
51892
51893 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51894
51895         * modules/getcwd (Depends-on): Add extensions.
51896         * modules/openat (Depends-on): Likewise.
51897
51898 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51899
51900         * modules/byteswap: New file.
51901
51902 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51903
51904         * m4/byteswap.m4: New file.
51905
51906 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51907
51908         * lib/byteswap_.h: New file.
51909
51910 2005-04-25  Karl Berry  <karl@gnu.org>
51911
51912         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51913
51914 2005-04-25  Albert Chin  <china@thewrittenword.com>
51915
51916         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51917         Toolkit C bug.
51918
51919 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51920
51921         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51922         (func_ln_if_changed) Remove forcibly for no error message
51923         in case file does not exist.
51924
51925 2005-04-19  Simon Josefsson  <jas@extundo.com>
51926
51927         * gnulib-tool (Options): Make --symlink mean --symbolic.
51928
51929 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51930
51931         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51932
51933 2005-04-16  Simon Josefsson  <jas@extundo.com>
51934
51935         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51936
51937 2005-04-15  Simon Josefsson  <jas@extundo.com>
51938
51939         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51940
51941 2005-04-15  Simon Josefsson  <jas@extundo.com>
51942
51943         * gnulib-tool: Rename --symlink to --symbolic.
51944
51945 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51946
51947         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51948         symbolic links to files instead of copying/moving.  Add --aux-dir,
51949         specifying directory relative --dir where auxiliary build tools
51950         are placed.
51951
51952 2005-04-14  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/allocsa (License): Change to LGPL.
51955         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51956
51957 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51960         that "UTC +1 second" continues to work.  Problem reported
51961         by Dmitry V. Levin.
51962         (relunit_snumber): New rule.
51963         (relunit): Use it.
51964
51965 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         * lib/getdate.y (universal_time_zone_table): New constant.
51968         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51969         universal_time_zone_table.
51970         (lookup_zone): Prefer universal_time_zone_table to
51971         local_time_zone_table, so that "GMT" time stamps are allowed in
51972         London during the summer.  Problem reported by Ian Abbott.
51973
51974 2005-04-12  Jim Meyering  <jim@meyering.net>
51975
51976         * lib/human.c (humblock): Set *options even when returning due to
51977         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51978         warning from gcc-4.
51979
51980 2005-04-09  Jim Meyering  <jim@meyering.net>
51981
51982         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51983         -Wuninitialized: initialize tm0.tm_year.
51984
51985 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51986
51987         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51988         count, since there's no maximum.  All uses changed.
51989         Add member dsts_seen.
51990         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51991         not being INT_MAX.
51992         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51993         Use pc_rels_seen to decide whther a date is absolute.
51994
51995         * lib/getdate.y (number): Don't overwrite year.
51996         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51997         check.
51998
51999 2005-04-02  Simon Josefsson  <jas@extundo.com>
52000
52001         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52002         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52003
52004 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52005
52006         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52007         where no absolute path name can be longer than PATH_MAX.
52008
52009 2005-03-27  Jim Meyering  <jim@meyering.net>
52010
52011         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52012
52013 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52016         "one's complement" -> "ones' complement" in comment, as per Knuth.
52017         "value of type" -> "type or expression" in comment.
52018         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52019
52020 2005-03-26  Jim Meyering  <jim@meyering.net>
52021
52022         Comment nits.
52023         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52024         Correct typos: s/or/of/.
52025
52026 2005-03-26  Jim Meyering  <jim@meyering.net>
52027
52028         * modules/check-include-files: Move to ../ and rename to...
52029         * check-module: ...this.
52030
52031 2005-03-25  Jim Meyering  <jim@meyering.net>
52032
52033         * modules/xvasprintf (Files): Add xalloc.h.
52034
52035 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * modules/gettext (Files): config/config.rpath ->
52038         build-aux/config.rpath
52039         * modules/iconv (Files): Likewise.
52040         Problem reported by Oskar Liljeblad.
52041
52042 2005-03-23  Jim Meyering  <jim@meyering.net>
52043
52044         * modules/check-include-files: New script to check for
52045         missing dependencies, multiple includes, etc.
52046
52047         * modules/c-strtold (Depends-on): Add xalloc.
52048         * modules/c-strtod (Depends-on): Add xalloc.
52049         * modules/hash (Depends-on): Add xalloc.
52050         (Files): Remove lib/xalloc.h.
52051
52052         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52053         * modules/userspec (Files): Add lib/inttostr.h.
52054
52055 2005-03-23  Jim Meyering  <jim@meyering.net>
52056
52057         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52058
52059 2005-03-22  Jim Meyering  <jim@meyering.net>
52060
52061         * modules/stat-macros: New module.
52062         * modules/canonicalize, modules/euidaccess, modules/file-type,
52063         * modules/filemode, modules/lchown, modules/makepath,
52064         * modules/rmdir, modules/stat: Depend on new stat-macros module
52065         rather than listing lib/stat-macros.h manually.
52066         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52067
52068 2005-03-22  Jim Meyering  <jim@meyering.net>
52069
52070         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52071
52072 2005-03-22  Bruno Haible  <bruno@clisp.org>
52073
52074         * config/srclist.txt: Replace target directory 'config' with
52075         'build-aux'.
52076         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52077         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52078         ../build-aux/.
52079
52080 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52081
52082         * modules/chdir-long (Depends-on): Add mempcpy.
52083
52084         * modules/acl, modules/backupfile, modules/c-strtod,
52085         modules/c-strtold, modules/canon-host, modules/canonicalize,
52086         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52087         modules/exclude, modules/exitfail, modules/file-type,
52088         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52089         modules/getdate, modules/getline, modules/getpagesize,
52090         modules/getpass, modules/getugroups, modules/group-member,
52091         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52092         modules/inttostr, modules/long-options, modules/makepath,
52093         modules/md5, modules/memcasecmp, modules/memcoll,
52094         modules/modechange, modules/mountlist, modules/path-concat,
52095         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52096         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52097         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52098         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52099         modules/strftime, modules/strndup, modules/strverscmp,
52100         modules/timespec, modules/unlocked-io, modules/userspec,
52101         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52102         modules/yesno:
52103         Remove lib_SOURCES line from Makefile.am section, as this is now
52104         done automatically by the corresponding Autoconf macro.
52105
52106 2005-03-21  Jim Meyering  <jim@meyering.net>
52107
52108         Changes imported from coreutils.
52109
52110         * lib/cycle-check.c: Don't include xalloc.h.
52111
52112         * lib/path-concat.c: Don't include assert.h.
52113         (path_concat): Remove assertion that would have triggered
52114         for ABASE starting with more than one slash.
52115         Reported by Andreas Schwab.
52116
52117         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52118         properly when ABASE is an absolute file name.
52119         Correct the description of this function.
52120         Include <assert.h>.
52121         Add an assertion and a test driver.
52122         This fixes a bug introduced on 2004-07-02.
52123         Andreas Schwab reported the resulting failure of cp --parents:
52124         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52125
52126 2005-03-21  Jim Meyering  <jim@meyering.net>
52127
52128         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52129         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52130
52131 2005-03-21  Jim Meyering  <jim@meyering.net>
52132         and  Paul Eggert  <eggert@cs.ucla.edu>
52133
52134         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52135         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52136         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52137         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52138         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52139         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52140         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52141         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52142         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52143         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52144         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52145         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52146         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52147         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52148         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52149         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52150         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52151         for these modules.
52152
52153 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52154
52155         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52156         (which shouldn't happen), generate nothing instead of returning 0
52157         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52158
52159 2005-03-16  Bruno Haible  <bruno@clisp.org>
52160
52161         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52162         HAVE_LONGLONG_64BIT.
52163
52164 2005-03-16  Bruno Haible  <bruno@clisp.org>
52165
52166         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52167         HAVE_LONGLONG_64BIT.
52168
52169 2005-03-16  Bruno Haible  <bruno@clisp.org>
52170
52171         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52172         HAVE_LONGLONG_64BIT.
52173
52174 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52177         reliably distinguish strftime failure from empty output on POSIX
52178         hosts.
52179
52180 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52183         (iconv_string): Don't guess a size-zero buffer, as that might cause
52184         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52185         result would be 'too large', where 'too large' is (heuristically)
52186         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52187         overflow concerns.  This will prevent some unwanted malloc failures
52188         when the inputs are very large.
52189
52190 2005-03-15  Karl Berry  <karl@gnu.org>
52191
52192         * config/srclist.txt (config.rpath): from gettext.
52193         * config/config.rpath: update.
52194
52195 2005-03-15  Bruno Haible  <bruno@clisp.org>
52196
52197         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52198         to 'negate'.
52199
52200         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52201         variable.
52202
52203         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52204         results.
52205
52206 2005-03-14  Simon Josefsson  <jas@extundo.com>
52207
52208         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52209         <fx@gnu.org>.
52210
52211 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52214         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52215         intprops.h.
52216         * lib/strtol.c: Likewise.
52217
52218 2005-03-14  Jim Meyering  <jim@meyering.net>
52219
52220         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52221         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52222         to be nonzero so that we (and caller) can detect the difference
52223         between a valid zero-length expansion and an error return, even
52224         when the underlying strftime fails before writing anything into
52225         that location.
52226
52227 2005-03-14  Bruno Haible  <bruno@clisp.org>
52228
52229         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52230         Update from GNU gettext 0.14.3.
52231
52232 2005-03-10  Jim Meyering  <jim@meyering.net>
52233
52234         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52235
52236 2005-03-10  Jim Meyering  <jim@meyering.net>
52237
52238         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52239         so that this module works on systems without fchdir.
52240
52241 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52242
52243         Factor int-properties macros into a single file, except for
52244         glibc-related files.
52245         * lib/intprops.h: New file.
52246         * lib/getloadavg.c: Include it instead of limits.h.
52247         (INT_STRLEN_BOUND): Remove.
52248         * lib/human.c: Include intprops.h.
52249         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52250         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52251         302/1000.
52252         * lib/inttostr.h: Include intprops.h instead of limits.h.
52253         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52254         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52255         for consistency with intprops.h.
52256         (time_t_is_integer, twos_complement_arithmetic): Use them.
52257         * lib/sig2str.h: Include <signal.h>, intprops.h.
52258         (INT_STRLEN_BOUND): Remove.
52259         * lib/strftime.c (TYPE_SIGNED): Remove.
52260         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52261         * lib/strtol.c: Adjust comments to match intprops.h.
52262         * lib/userspec.c: Include intprops.h.
52263         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52264         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52265         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52266         instead of rolling our own expressions.
52267         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52268
52269         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52270         instead of int.
52271         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52272         the right thing even if adding 1900 would overflow.  Similarly
52273         for tm_mon + 1 and tm_yday + 1.
52274         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52275         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52276         (DO_SIGNED_NUMBER): New macro.
52277         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52278
52279 2005-03-07  Bruno Haible  <bruno@clisp.org>
52280
52281         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52282
52283 2005-03-07  Bruno Haible  <bruno@clisp.org>
52284
52285         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52286
52287 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52288
52289         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52290         (func_import): Only replace files via --import when they have actually
52291         changed.
52292
52293 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52294
52295         * m4/mmap-anon.m4: New file.
52296         * m4/pagealign_alloc.m4: New file.
52297
52298 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52299             Bruno Haible  <bruno@clisp.org>
52300
52301         * modules/pagealign_alloc: New file.
52302         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52303
52304 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52305             Bruno Haible  <bruno@clisp.org>
52306
52307         * lib/pagealign_alloc.h: New file.
52308         * lib/pagealign_alloc.c: New file.
52309
52310 2005-03-03  Bruno Haible  <bruno@clisp.org>
52311
52312         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52313         Use an all-permissive copyright notice, recommended by RMS.
52314
52315 2005-03-02  Bruno Haible  <bruno@clisp.org>
52316
52317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52318         of AIX, the replacement has to be done only after <string.h> is
52319         included, therefore not in config.h. stpncpy.h does the replacement,
52320         and stpncpy.c uses it.
52321
52322 2005-03-02  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52325         stpncpy.c uses it.
52326
52327 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52328
52329         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52330         The workaround isn't strictly needed for POSIX conformance, and
52331         it's too much of a pain to configure and maintain.  We'll ask
52332         people to fix their kernels instead.
52333         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52334         (NANOSLEEP_BUG_WORKAROUND): Remove.
52335         (xnanosleep): Remove the workaround.
52336
52337 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52338
52339         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52340         Reported by Derek Price.
52341         (Include): Add "timespec.h".
52342
52343         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52344
52345 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52346
52347         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52348         to detect nanosleep bug.
52349
52350 2005-03-01  Bruno Haible  <bruno@clisp.org>
52351
52352         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52353
52354 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52355
52356         * modules/gethrxtime: New file.
52357         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52358         (Depends-on): Add gethrxtime.
52359         (configure.ac): Add gl_XNANOSLEEP.
52360         (Makefile.am): Remove lib_SOURCES line.
52361
52362 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52365         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52366
52367 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52370         * lib/timespec.h (gettime): Return void, since it always
52371         succeeds now.  All uses changed.
52372         * lib/gettime.c (gettime) Likewise.
52373         [HAVE_NANOTIME]: Prefer nanotime.
52374         Assume gettimeofday succeeds, as POSIX requires.
52375         Assime time () succeeds, since other code already does.
52376         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52377         (timespec_subtract): Remove.
52378         (NANOSLEEP_BUG_WORKAROUND): New constant.
52379         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52380         things considerably.  Use it only on GNU/Linux hosts, since the
52381         workaround shouldn't be needed elsewhere.
52382
52383 2005-02-24  Bruno Haible  <bruno@clisp.org>
52384
52385         * modules/gettext (Files): Add m4/glibc2.m4.
52386
52387 2005-02-24  Bruno Haible  <bruno@clisp.org>
52388
52389         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52390         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52391         * m4/progtest.m4:
52392         Update from GNU gettext 0.14.2.
52393         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52394
52395 2005-02-24  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52398         * lib/config.charset: Update from GNU gettext 0.14.2.
52399
52400 2005-02-24  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/gettext.h: Update from GNU gettext 0.14.2.
52403
52404 2005-02-23  Simon Josefsson  <jas@extundo.com>
52405
52406         * m4/iconvme.m4: New file.
52407
52408 2005-02-23  Jim Meyering  <jim@meyering.net>
52409
52410         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52411         change.
52412         Thanks to Bruno Haible for catching it.
52413
52414 2005-02-22  Simon Josefsson  <jas@extundo.com>
52415
52416         * modules/iconvme: New file.
52417
52418         * MODULES.html.sh: Add iconvme.
52419
52420 2005-02-22  Simon Josefsson  <jas@extundo.com>
52421
52422         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52423
52424 2005-02-22  Simon Josefsson  <jas@extundo.com>
52425
52426         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52427
52428 2005-02-22  Jim Meyering  <jim@meyering.net>
52429
52430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52431         s/ifndef/ifdef/.
52432
52433 2005-02-20  Neil Conway  <neilc@samurai.com>
52434
52435         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52436         returned by OSX/Darwin if the specified buffer is not large
52437         enough for the hostname.
52438
52439 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52440
52441         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52442         pass it to _help, otherwise the latter coredumps trying to
52443         dereference state.root_argp.
52444
52445 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52446
52447         * modules/chdir-long (Depends-on): Add memrchr.
52448         * modules/memrchr (Files): Add lib/memrchr.h.
52449         (Include): "memrchr.h".
52450
52451 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52452
52453         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52454
52455 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52456
52457         * lib/memrchr.h: New file.
52458         * lib/chdir-long.c: Include it.
52459         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52460         Don't bother including stddef.h.
52461
52462 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52465         inclusion.
52466         Include <sys/types.h>, for dev_t.
52467         (ME_DUMMY, ME_REMOTE): Move from here....
52468         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52469         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52470         Dmitry V. Levin.
52471         Include mountlist.h first, to test the interface.
52472
52473 2005-01-29  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/progname.c (program_name): Initialize.
52476         Needed when linking statically on MacOS X.
52477
52478 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52479
52480         Sync from coreutils.
52481         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52482         (Depends-on): Add c-strtod.
52483         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52484
52485 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         Sync from coreutils.
52488         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52489
52490         Remove files that are specific to coreutils.
52491         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52492
52493 2005-01-28  Bruno Haible  <bruno@clisp.org>
52494
52495         * modules/javacomp: New file.
52496         * MODULES.html.sh (Java): Add javacomp.
52497
52498 2005-01-28  Bruno Haible  <bruno@clisp.org>
52499
52500         * m4/javacomp.m4: New file, from GNU gettext.
52501
52502 2005-01-28  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/javacomp.sh.in: New file, from GNU gettext.
52505         * lib/javacomp.h: New file, from GNU gettext.
52506         * lib/javacomp.c: New file, from GNU gettext.
52507
52508 2005-01-26  Simon Josefsson  <jas@extundo.com>
52509
52510         * lib/gai_strerror.c: Use GPL in header.
52511
52512 2005-01-26  Bruno Haible  <bruno@clisp.org>
52513
52514         * modules/javaexec: New file.
52515         * MODULES.html.sh (Java): Add javaexec.
52516
52517 2005-01-26  Bruno Haible  <bruno@clisp.org>
52518
52519         * m4/javaexec.m4: New file, from GNU gettext.
52520
52521 2005-01-26  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/javaexec.sh.in: New file, from GNU gettext.
52524         * lib/javaexec.h: New file, from GNU gettext.
52525         * lib/javaexec.c: New file, from GNU gettext.
52526
52527 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52528
52529         * modules/lchown (Depends-on): Remove lchown.h
52530
52531 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52532
52533         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52534         must be defined if the header file was not found, in order
52535         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52536
52537 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52538
52539         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52540         initializers for struct pentry_state.
52541         (__argp_error): Check return value of __asprintf
52542         (__argp_failure): Translate error message
52543
52544         * lib/argp-parse.c: Removed braces around the expansion of N_()
52545
52546 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52547
52548         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52549         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52550         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52551         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52552         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52553         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52554         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52555         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52556         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52557         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52558         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52559         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52560         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52561         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52562         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52563         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52564         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52565         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52566         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52567         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52568         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52569         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52570         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52571         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52572         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52573         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52574         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52575         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52576         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52577         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52578         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52579         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52580         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52581         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52582         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52583         Use an all-permissive copyright notice, recommended by RMS.
52584
52585 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52586
52587         * modules/chdir-long (Depends-on): Remove mempcpy.
52588
52589 2005-01-21  Jim Meyering  <jim@meyering.net>
52590
52591         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52592         same value as for Solaris 9.
52593
52594         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52595         component length.  This included changing the parameter to be
52596         of type `char *' rather than `char const *'.
52597         * lib/chdir-long.h (chdir_long): Update prototype.
52598
52599         * lib/openat.c (fdopendir, fstatat): New functions.
52600         * lib/openat.h: Include headers required for use of DIR and struct
52601         stat.
52602         [AT_SYMLINK_NOFOLLOW]: Define.
52603         (fdopendir, fstatat): Add prototypes.
52604
52605 2005-01-21  Bruno Haible  <bruno@clisp.org>
52606
52607         * modules/classpath: New file.
52608         * MODULES.html.sh (Java): Add classpath.
52609
52610 2005-01-21  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/classpath.h: New file, from GNU gettext.
52613         * lib/classpath.c: New file, from GNU gettext.
52614
52615 2005-01-20  Simon Josefsson  <jas@extundo.com>
52616
52617         * modules/version-etc-fsf: New file.
52618
52619 2005-01-20  Simon Josefsson  <jas@extundo.com>
52620
52621         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52622         * lib/version-etc.c: Remove version_etc_copyright.
52623         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52624         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52625
52626 2005-01-20  Simon Josefsson  <jas@extundo.com>
52627
52628         * lib/base64.h (isbase64): Add.
52629
52630         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52631         using a unsigned prototype, don't inline.
52632         (base64_decode): Use it.
52633
52634 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52635
52636         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52637         it.
52638
52639 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52640
52641         * lib/save-cwd.c (save_cwd): Remove code to support the case
52642         where fchdir is missing or flaky.
52643
52644 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52647
52648 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52649
52650         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52651         AC_LIBSOURCES now does this.
52652         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52653         with new ullong_max module.
52654
52655 2005-01-19  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/sh-quote: New file.
52658         * MODULES.html.sh (Executing programs): Add sh-quote.
52659
52660 2005-01-19  Bruno Haible  <bruno@clisp.org>
52661
52662         * lib/sh-quote.h: New file, from GNU gettext.
52663         * lib/sh-quote.c: New file, from GNU gettext.
52664
52665 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52666
52667         Merge from coreutils.
52668         * m4/ullong_max.m4: New file.
52669         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52670         (gl_MACROS): Assume localeconv exists.
52671
52672 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         Merge changes from coreutils, as described below in several
52675         changelogs dated today.
52676
52677         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52678         (O_DIRECTORY): Remove; not needed here, since "." must be
52679         a directory.  All uses removed.
52680         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52681         universal on Suns, and we also need to test for IRIX.
52682         Revamp code to use 'if' rather than '#if'.
52683         Avoid unnecessary comparison of cwd->desc to 0.
52684
52685         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52686         for known valid error numbers rather than observed invalid ones.
52687
52688 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52689
52690         * modules/ullong_max: New file.
52691
52692         * modules/chdir-long, modules/openat: New files.
52693         * modules/save-cwd (Depends-on): Depend on chdir-long.
52694         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52695
52696 2005-01-18  Jim Meyering  <jim@meyering.net>
52697
52698         Merge from coreutils.
52699         * m4/chdir-long.m4, m4/openat.m4: New files.
52700         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52701         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52702         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52703         is sane and DOES follow symlinks.  Besides, testing 20 different
52704         systems found no broken chown implementations.
52705         Prompted by a change in rsync's copy of this macro.
52706         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52707
52708         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52709
52710         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52711         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52712         NULL-means-set-to-current-time semantics.
52713         Remove temporary file immediately, rather than waiting
52714         for configure's at-exit trap code to do it.
52715
52716 2005-01-18  Jim Meyering  <jim@meyering.net>
52717
52718         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52719
52720         * lib/utimens.c (futimens): Account for the fact that futimes
52721         can also fail with errno == ENOSYS or errno == ENOENT.
52722         Patch from Dmitry V. Levin.
52723
52724         Change the name of the robust chdir function from chdir to chdir_long.
52725         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52726         (restore_cwd): Use chdir_long, not chdir.
52727         * lib/chdir-long.c: Renamed from chdir.c.
52728         * lib/chdir-long.h: Renamed from chdir.h.
52729         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52730         Hurd.
52731
52732 2005-01-18  Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52735         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52736         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52737         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52738         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52739         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52740         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52741         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52742         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52743         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52744         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52745         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52746         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52747         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52748         Use an all-permissive copyright notice, recommended by RMS.
52749
52750 2005-01-18  Bob Proulx  <bob@proulx.com>
52751
52752         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52753         simplify offsetof() macro construct to avoid compile failure with
52754         native HP-UX 11.0 ANSI C compiler.
52755
52756 2005-01-17  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52759         redundant because stpncpy.m4 takes care of it.
52760
52761 2005-01-17  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52764
52765 2005-01-17  Bruno Haible  <bruno@clisp.org>
52766
52767         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52768         used.
52769
52770 2005-01-17  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/fwriteerror.h (fwriteerror): Change specification to include
52773         fclose.
52774         * lib/fwriteerror.c: Include <stdbool.h>.
52775         (fwriteerror): At the end, close the file stream. Record whether
52776         stdout was already closed.
52777
52778 2005-01-17  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/execute.c (environ): Declare if needed.
52781         * lib/pipe.c (environ): Likewise.
52782         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52783
52784 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52785
52786         * modules/argp: Depend on vsnprintf
52787
52788 2005-01-10  Jim Meyering  <jim@meyering.net>
52789
52790         * modules/closeout (Depends-on): Add atexit.
52791
52792 2005-01-06  Bruno Haible  <bruno@clisp.org>
52793
52794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52795
52796 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52797
52798         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52799         definitions to be after all include files, to avoid collisions.
52800         Problem reported by Bob Proulx.
52801
52802 2005-01-04  Jim Meyering  <jim@meyering.net>
52803
52804         Changes imported from coreutils.
52805         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52806         as the mkstemp template, use a temporary directory and an
52807         8.3-friendly template to avoid trouble on systems like DJGPP.
52808         Reported by Juan M. Guerrero via Stepan Kasal.
52809         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52810         close. Remove the temporary directory right away, rather than waiting
52811         for configure's at-exit trap code to do it.
52812         Suggestion from Stepan Kasal.
52813
52814 2005-01-01  Simon Josefsson  <jas@extundo.com>
52815
52816         * gnulib-tool: Print #include directives when --import'ing.
52817
52818 2004-12-28  Simon Josefsson  <jas@extundo.com>
52819
52820         * tests/test-base64.c: Include required header files.  Remove
52821         unused variables.
52822
52823 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52824
52825         * modules/error (Depends-on): Remove gettext.
52826
52827 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52828
52829         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52830         not needed.  This removes a dependency on the gettext module.
52831         [defined _LIBC]: Do not include <libintl.h>; not needed.
52832
52833 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52836         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52837
52838 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52839
52840         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52841         HAVE_DECL_STRTOLD.
52842
52843 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * modules/getdate (Depends-on): Remove alloca-opt.
52846
52847 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52848
52849         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52850
52851 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52852
52853         * lib/argp-parse.c: Include <stddef.h>.
52854         (alignof, alignto): New macros.
52855         (parser_init): Don't assume that void * is aligned sufficiently
52856         for struct option.
52857
52858         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52859         need to extend the stack.
52860         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52861         large.
52862
52863 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52864
52865         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52866
52867 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52870         (2004-10-24) change.  Apparently this was a false alarm.
52871
52872         * modules/getdate: Depend on alloca-opt, not alloca.
52873
52874 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52875
52876         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52877         Remove now-obsolete comment about AIX.
52878         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52879         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52880         (YYMAXDEPTH): New macro.
52881
52882 2004-12-18  Simon Josefsson  <jas@extundo.com>
52883
52884         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52885
52886 2004-12-18  Bruno Haible  <bruno@clisp.org>
52887
52888         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52889
52890 2004-12-18  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/fatal-signal.c (fatal_signals): Make non-const.
52893         (init_fatal_signals): New function.
52894         (uninstall_handlers, install_handlers): Ignore signals that were set to
52895         SIG_IGN.
52896         (at_fatal_signal): Call init_fatal_signals.
52897         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52898         SIG_IGN.
52899         Reported by Paul Eggert.
52900
52901 2004-12-18  Bruno Haible  <bruno@clisp.org>
52902
52903         * doc/alloca.texi: New file.
52904         * doc/alloca-opt.texi: New file.
52905
52906 2004-12-17  Jim Meyering  <jim@meyering.net>
52907
52908         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52909         Otherwise, install-sh could exit with improper exit status when
52910         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52911
52912 2004-12-16  Simon Josefsson  <jas@extundo.com>
52913
52914         * tests/test-base64.c: Add license.
52915
52916 2004-12-15  Stepan Kasal  <address@hidden>
52917
52918         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52919
52920 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52921
52922         * modules/getcwd (Files): Add m4/d-ino.m4.
52923         Suggested by Mark D. Baushke.
52924
52925 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52926
52927         * lib/getdate.y (textint): New member "negative".
52928         (time_zone_hhmm): New function.
52929         Expect 14 shift-reduce conflicts, not 13.
52930         (o_colon_minutes): New rule.
52931         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52932         (yylex): Set the "negative" member of signed numbers.
52933
52934 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52935
52936         * doc/getdate.texi (Time of day items, Time zone items):
52937         Describe new formats +00:00, UTC+00:00.
52938
52939 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52940
52941         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52942         spurious "-l"s.  Problem reported by Stepan Kasal.
52943
52944 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52947         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52948
52949 2004-12-04  Simon Josefsson  <jas@extundo.com>
52950
52951         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52952         Vandoorselaere <yoann@prelude-ids.org>.
52953
52954 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52955
52956         Changes imported from coreutils.
52957         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52958         exist.
52959         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52960
52961 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52962
52963         Changes imported from coreutils.
52964         * lib/hard-locale.c: Assume <locale.h> exists.
52965         Include "strdup.h".
52966         (GLIBC_VERSION): New macro.
52967         (hard_locale): Assume setlocale exists.
52968         Rewrite to avoid #ifdef.
52969         Use strdup rather than malloc + strcpy.
52970         * lib/human.c: Assume <locale.h> exists.
52971         (human_readable): Assume localeconv exists.
52972
52973 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * modules/hard-locale (Depends-on): Add strdup.
52976
52977 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52978
52979         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52980         convert T2, not T.  (Imported from libc.)
52981
52982 2004-11-30  Simon Josefsson  <jas@extundo.com>
52983
52984         * modules/restrict (License): Change to LGPL.
52985
52986 2004-11-30  Simon Josefsson  <jas@extundo.com>
52987
52988         * m4/restrict.m4: Add copyright and copying conditions.
52989
52990 2004-11-30  Simon Josefsson  <jas@extundo.com>
52991
52992         * m4/base64.m4: New file.
52993
52994 2004-11-30  Simon Josefsson  <jas@extundo.com>
52995
52996         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52997         base64.
52998
52999         * tests/test-base64.c: New file.
53000
53001         * modules/base64: New file.
53002
53003 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53006         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53007
53008         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53009
53010 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53013         (__getcwd.c): Don't restore errno; glibc doesn't.
53014         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53015         first, falling back to our code only if its results look suspicious.
53016         Ensure that the resulting buffer is only as large as necessary.
53017
53018         * lib/readutmp.c: Include readutmp.h first.
53019         Include <errno.h>, since readutmp.h no longer does that.
53020         * lib/readutmp.h: Don't include <errno.h>,
53021         <sys/param.h>, <time.h>; not needed to establish interface.
53022         (errno): Remove decl.
53023         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53024         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53025         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53026
53027 2004-11-28  Simon Josefsson  <jas@extundo.com>
53028
53029         * lib/base64.h, base64.c: New file.
53030
53031 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53032
53033         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53034
53035 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53038         (Depends-on): Remove pathmax, same.  Add mempcpy.
53039         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53040         (Makefile.am): Append getcwd.h to lib_SOURCES.
53041         (Include): Add getcwd.h.
53042         (Maintainer): Change from Jim Meyering to "all, glibc",
53043         since getdate now uses intended-for-glibc code.
53044         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53045         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53046
53047 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53050         HP's ANSI C compiler.
53051         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53052         Declaring int functions causes warnings on some modern systems and
53053         shouldn't be needed to compile on ancient ones.
53054         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53055         defined.
53056
53057         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53058         with the following changes.
53059         (__set_errno): Parenthesize properly.
53060         Include <stdbool.h>.
53061         (MIN, MAX, MATCHING_INO): New macros.
53062         (__getcwd): Define with prototype, not K&R form.
53063         Use heuristics to allocate default buffer on stack if possible.
53064         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53065         behavior, and to avoid the PATH_MAX limit when computing
53066         ../../../../...
53067         Use MATCHING_INO to compare inode number to file.
53068         Check for arithmetic overflow in size calculations.
53069         Fix bug in reallocation of dot array that caused getcwd to fail
53070         on directories nested deeper than 75.
53071         Be more careful about saving errno on error.
53072         Do not use realloc; use only free+malloc, as this is a bit
53073         more flexible and avoids a needless copy operation.
53074         Do not inspect st_dev and st_ino for symbolic links; POSIX
53075         doesn't specify the latter.
53076         Check for closedir errors.
53077         Avoid needless casts.
53078         Use "#ifdef weak_alias" around weak_alias, to be like other
53079         glibc code.
53080         The following changes to getcwd.c have effect only when used in
53081         gnulib; they have no effect inside glibc proper.
53082         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53083         as alloca isn't used.
53084         (alloca, __alloca): Likewise.
53085         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53086         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53087         unconditionally, as gnulib assumes C89 or better.
53088         Do not include <sys/param.h>.
53089         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53090         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53091         better.
53092         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53093         Include <dirent.h> in a way that is compatible with modern Autoconf.
53094         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53095         New macros, if not already defined.
53096         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53097         Use "_LIBC", not "defined _LIBC", for consistency.
53098         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53099         a mempcpy module.
53100         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53101         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53102         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53103         credit only to Jim Meyering and adjust the copyright dates.
53104         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53105         <stdlib.h>, <unistd.h>, "pathmax.h".
53106         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53107         (INITIAL_BUFFER_SIZE): Remove.
53108         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53109
53110 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53111
53112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53113         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53114         Use the _ONCE methods, for efficiency.
53115         Check for fcntl.h.  In test program, include <errno.h>
53116         and <fcntl.h> if available.  Remove old K&R cruft from
53117         test program.  Check for common errors in GNU/Linux,
53118         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53119         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53120         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53121         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53122         name accordingly.
53123         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53124         accommodate new getcwd.c.
53125         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53126         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53127         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53128         that's all we need now.
53129
53130 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53131
53132         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53133         argp-parse.c depends on getopt internals, that means we should
53134         always use our getopt, to be on the safe side.
53135         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53136         order not to spoil the result of an eventual previous invocation
53137         of gl_GETOPT_SUBSTITUTE.
53138
53139 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53140
53141         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53142         redefinition warnings. To avoid them, include the defines
53143         in `#if !defined __need_getopt ... #endif'. The only place
53144         where __getopt_argv_const is used is in definitions
53145         of getopt_long and getopt_long_only below, which are as well
53146         protected by `#ifndef __need_getopt'.
53147         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53148         __need_getopt after including <stdio.h> and <unistd.h> These
53149         headers might have defined it.
53150
53151 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53154
53155 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53158         (futimens): New function, which uses futimes if available.
53159         (futimens, utimens): Support timespec==NULL, with same semantics
53160         as utime and utimens.
53161         * lib/utimens.h (futimens): New decl.
53162
53163 2004-11-23  Jim Meyering  <jim@meyering.net>
53164
53165         * lib/getopt_.h: Remove trailing blanks.
53166
53167 2004-11-23  Jim Meyering  <jim@meyering.net>
53168
53169         * lib/__fpending.c: Add comment.
53170
53171 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53172
53173         * modules/canonicalize (Depends-on): Add xreadlink.
53174         Problem reported by James Youngman.
53175
53176 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53177
53178         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53179         New macros.
53180         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53181         optopt): Use them instead of invoking ## directly; otherwise, the
53182         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53183
53184 2004-11-19  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/strtok_r.c: Move comments from here...
53187         * lib/strtok_r.h: ... to here.
53188
53189 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53190
53191         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53192         implementations that mishandle size_t overflow.
53193
53194 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53195
53196         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53197         might fail.  Problem reported by Yoann Vandoorselaere.
53198         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53199         implementations that mishandle size_t overflow.
53200
53201 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         * modules/canon-host (Depends-on): Add strdup.
53204
53205 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53206
53207         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53208
53209 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53210
53211         * lib/canon-host.c: Include "strdup.h".
53212         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53213         Use strdup instead of malloc/strcpy to duplicate strings.
53214
53215         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53216         (human_space_before_unit): New constant.
53217         * lib/human.c (human_readable): Support it.
53218
53219         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53220         (xgetcwd): Set errno correctly when failing.
53221         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53222         the failure is actually due to a PATH_MAX problem.
53223
53224         Further getopt changes to make it more likely that glibc will
53225         buy the changes back.
53226         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53227         (getopt): Use it, so to preserve glibc semantic
53228         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53229         when compiling for libc.
53230         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53231         (getopt_long, getopt_long_only): Use it.
53232
53233         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53234         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53235         (getopt): Argv is now char * const *, as per standard.
53236         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53237         not char *__getopt_argv_const *.
53238         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53239         _getopt_long_only_r): Likewise.
53240         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53241         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53242         _getopt_long_r, _getopt_long_only_r): Likewise.
53243         * lib/getopt_.h (__getopt_argv_const): Remove.
53244         (getopt): Argv is now char * const *, as per standard.
53245
53246         * lib/getdate.y (tORDINAL): New token.
53247         (day, relunit): Allow it for relative times.
53248         (relative_time_table): Use tORDINAL for ordinals.
53249
53250 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53251
53252         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53253         Document that "second" isn't allowed as an ordinal number.
53254
53255 2004-11-16  Jim Meyering  <jim@meyering.net>
53256
53257         * modules/closeout (Depends-on): Add fpending.
53258
53259 2004-11-15  Jim Meyering  <jim@meyering.net>
53260
53261         * lib/closeout.c: Include "__fpending.h" once again.
53262         Include <stdbool.h>.
53263         (close_stdout): Don't fail just because stdout was closed initially,
53264         since some programs don't write to stdout in the normal course of
53265         operation (other than --version and --help), and we don't want this
53266         function to make e.g. `touch file >&-' fail.
53267         But do fail if it was closed and someone has tried to write to it.
53268         E.g., `printf foo >&-' must fail.
53269
53270 2004-11-13  Jim Meyering  <jim@meyering.net>
53271
53272         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53273
53274 2004-11-12  Simon Josefsson  <jas@extundo.com>
53275
53276         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53277         small doc fix is still pending.
53278
53279 2004-11-11  Simon Josefsson  <jas@extundo.com>
53280
53281         * modules/strtok_r: New file.
53282
53283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53284         strtok_r.
53285
53286 2004-11-11  Simon Josefsson  <jas@extundo.com>
53287
53288         * m4/strtok_r.m4: New file.
53289
53290         * m4/getopt.m4: Replace opterr.
53291
53292 2004-11-11  Simon Josefsson  <jas@extundo.com>
53293
53294         * lib/strtok_r.h, strtok_r.c: New file.
53295
53296 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53299         of replacing opterr, getopt, etc.  This should handle the
53300         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53301
53302 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53305         we can stop lying to compilers about the constness of argv when we
53306         are compiled outside glibc.
53307         (getopt, getopt_long, getopt_long_only): Use it.
53308         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53309         _getopt_internal, getopt): Likewise.
53310         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53311         _getopt_long_only_r): Likewise.
53312         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53313         _getopt_long_r, _getopt_long_only_r): Likewise.
53314
53315         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53316         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53317         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53318         the other external symbols.
53319         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53320         declaration, since the above renaming now works around collisions.
53321
53322 2004-11-11  Jim Meyering  <jim@meyering.net>
53323
53324         * lib/linebreak.c: Remove trailing blanks.
53325         * lib/alloca_.h: Likewise.
53326         * lib/acosl.c: Likewise.
53327         * lib/euidaccess.c: Likewise.
53328         * lib/allocsa.h: Likewise.
53329
53330 2004-11-10  Simon Josefsson  <jas@extundo.com>
53331
53332         * m4/getaddrinfo.m4: New file.
53333
53334 2004-11-10  Simon Josefsson  <jas@extundo.com>
53335
53336         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53337
53338 2004-11-10  Simon Josefsson  <jas@extundo.com>
53339
53340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53341         getaddrinfo.
53342
53343         * modules/getaddrinfo: New file.
53344
53345 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53346
53347         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53348
53349 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53350
53351         * lib/mktime.c (SHR): New macro, which is a portable
53352         substitute for >> that should work even on Crays.
53353         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53354         Problem reported by Mark D. Baushke in
53355         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53356         * lib/getdate.y (SHR): Likewise.
53357         (tm_diff): Use it.
53358         * lib/strftime.c (SHR): Likewise.
53359         (tm_diff): Use it.
53360         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53361         quote_these_too, so that right shifts are well defined.  All uses
53362         changed.
53363
53364 2004-11-10  Jim Meyering  <jim@meyering.net>
53365
53366         Ensure that no close failure goes unreported.
53367         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53368         return early when it seems there's nothing to flush.
53369         Don't include __fpending.h.
53370
53371 2004-11-10  Jim Meyering  <jim@meyering.net>
53372
53373         * modules/closeout (Depends-on): Remove fpending.
53374
53375 2004-11-10  Jim Meyering  <jim@meyering.net>
53376
53377         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53378
53379 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53382         gl_FUNC_STRFTIME.
53383         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53384         and AC_REQUIRE when possible, to avoid duplicate checks.
53385         Check for <wchar.h>.
53386
53387 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53388
53389         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53390
53391 2004-11-09  Bruno Haible  <bruno@clisp.org>
53392
53393         * m4/sockpfaf.m4: New file.
53394
53395 2004-11-05  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53398         Reported by Mark D. Baushke <mdb@cvshome.org>.
53399
53400 2004-11-04  Bruno Haible  <bruno@clisp.org>
53401
53402         2004-09-11  Bruno Haible  <bruno@clisp.org>
53403                 * allocsa.valgrind: New file.
53404         2004-02-06  Bruno Haible  <bruno@clisp.org>
53405                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53406                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53407                 Reported by Christopher Seip <chris.seip@hp.com>.
53408
53409 2004-11-04  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53412         (Makefile.am): Distribute it.
53413
53414 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53415
53416         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53417         with errno == ERANGE if the buffer is too small.
53418         Problem reported by Mark D. Baushke.
53419
53420 2004-11-03  Albert Chin  <china@thewrittenword.com>
53421             Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53424         equivalent, substitute $ac_type for equivalent type rather than
53425         blindly using uint32_t *always* which won't work if uint32_t is not
53426         available.  Define _UINT32_T to work around typedef of uint32_t if
53427         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53428         2.5.1.
53429
53430 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * m4/jm-macros.m4: Sync from coreutils.
53433         (gl_MACROS): Check for mbrlen, for pathchk.
53434         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53435
53436 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         * lib/xreadlink.c (MAXSIZE): New macro.
53439         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53440         size does not exceed MAXSIZE.  Avoid cast.
53441         As suggested by Mark D. Baushke in
53442         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53443         if readlink fails with buffer size just under MAXSIZE, try again
53444         with MAXSIZE.
53445
53446 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53447
53448         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53449
53450 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53451         and  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53454         (get_date): Overparenthesize to avoid GCC warning.
53455
53456 2004-11-02  Bruno Haible  <bruno@clisp.org>
53457
53458         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53459         returns void.
53460
53461 2004-11-02  Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53464         function returns void.
53465
53466 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53467
53468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53469         fflush_unlocked, flockfile, funlockfile, funlockfile,
53470         fputs_unlocked, putc_unlocked.
53471
53472 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53475         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53476         already declared.
53477
53478 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53479
53480         * modules/getdate (Files): Add doc/getdate.texi.
53481         (Depends-on): Add setenv, xalloc.
53482
53483 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53484
53485         * lib/getdate.y: Add support for TZ="foo" within a date string.
53486         Fix some bugs near time_t boundaries.  Reject dates with
53487         out-of-range components, e.g., "Sept 31".
53488         Include <stdlib.h>, "setenv.h", "xalloc.h".
53489         (ISDIGIT_LOCALE): Remove; unused.
53490         Note that the TZ and time functions used here are not reentrant.
53491         (mktime_ok, get_tz): New functions.
53492         (TZBUFSIZE): New constant.
53493         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53494         This requires that we sometimes generate our own TZ="XXX..." setting.
53495
53496 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53497
53498         * doc/getdate.texi: New file, from coreutils with modifications for
53499         the new TZ parsing.
53500
53501 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53502
53503         * lib/mktime.c (not_equal_tm): Remove redundant check.
53504
53505 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53506
53507         * modules/regex (lib_SOURCES): Add regex.c.
53508         Reported by James Youngman in
53509         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53510
53511 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         * lib/getdate.y: Use Bison 1.875 features, and some minor
53514         code cleanups.  This change does not affect semantics.
53515         Don't include <stdlib.h>; no longer needed.
53516         Don't include unlocked-io.h; only the "#if TEST" code uses
53517         stdio, and performance isn't crucial there.
53518         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53519         Bison 1.875 features as described below.
53520         All uses of "PC." replaced by "pc->".
53521         (YYSTYPE): Add a forward declaration.
53522         (yylex, yyerror): Use full prototypes in forward decls.
53523         Use "%pure-parser" rather than obsolescent "%pure_parser".
53524         Use %parse-param and %lex-param instead of obsolescent
53525         YYPARSE_PARAM and YYLEX_PARAM.
53526         (meridian_table, month_and_day_table, time_units_table,
53527         relative_time_table, time_zone_table, military_table,
53528         lookup_zone, lookup_word, get_date):
53529         Use NULL instead of 0 where appropriate.
53530         (to_hour): Avoid abort (), to avoid a dependency on
53531         stdlib.h.
53532         (yyerror, yylex): Now accepts parser_control * arg.
53533         (main) [TEST]: Use '\0' rather than 0 for char.
53534
53535 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53538
53539 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53542         It's now the caller's responsibility to handle the case where
53543         !HAVE_GETPAGESIZE && !defined getpagesize.
53544
53545         * lib/mktime.c (leapyear): Arg is long int, not int.
53546
53547 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53550
53551 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53552
53553         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53554         missing.  Problem reported by James Youngman.
53555
53556 2004-10-16  Simon Josefsson  <jas@extundo.com>
53557
53558         * gnulib-tool: Fix comments.  Fix parse problem.
53559         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53560
53561 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53562
53563         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53564         implementation of getopt_long.  Problem reported by Alexander Taler in:
53565         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53566
53567 2004-10-15  Bruno Haible  <bruno@clisp.org>
53568
53569         * gnulib-tool: Untabify. Initialize supplied_libname.
53570         (func_usage): More homogenous output.
53571         (func_modules_transitive_closure, func_modules_to_filelist,
53572         func_emit_lib_Makefile_am): New functions.
53573         (func_import): New function, extracted from big case statement. Use
53574         func_get_license, func_modules_transitive_closure,
53575         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53576         opt_lgpl. Don't use test -a, as it's not portable.
53577         (func_create_testdir): Use func_modules_transitive_closure,
53578         func_modules_to_filelist, func_emit_lib_Makefile_am.
53579
53580 2004-10-15  Bruno Haible  <bruno@clisp.org>
53581
53582         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53583
53584 2004-10-15  Bruno Haible  <bruno@clisp.org>
53585
53586         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53587         the portions belonging to each module.
53588         Suggested by Derek Robert Price <derek@ximbiot.com>.
53589
53590 2004-10-12  Simon Josefsson  <jas@extundo.com>
53591
53592         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53593         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53594         to real functions.
53595
53596 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53597
53598         * modules/vsnprintf: New file.
53599
53600 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53601
53602         * m4/vsnprintf.m4: New file.
53603
53604 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53605
53606         * lib/vsnprintf.h: New file.
53607         * lib/vsnprintf.c: New file.
53608
53609 2004-10-11  Bruno Haible  <bruno@clisp.org>
53610
53611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53612         vsnprintf.
53613
53614 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53617
53618 2004-10-07  Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53621         fits into the provided buffer.
53622
53623 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53624
53625         * lib/diacrit.c, diacrit.h: Add GPL notice.
53626
53627         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53628         notice.
53629         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53630         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53631         This avoids a potential constant-folding bug.
53632
53633 2004-10-05  Bruno Haible  <bruno@clisp.org>
53634
53635         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53636         for the declaration of strsep.
53637
53638 2004-10-05  Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53641
53642 2004-10-04  Simon Josefsson  <jas@extundo.com>
53643
53644         * modules/memmem: New file.
53645         * tests/test-memmem.c: New file.
53646         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53647
53648 2004-10-04  Simon Josefsson  <jas@extundo.com>
53649
53650         * m4/memmem.m4: New file.
53651
53652 2004-10-04  Simon Josefsson  <jas@extundo.com>
53653
53654         * lib/memmem.h: New file.
53655         * lib/memmem.c: New file, taken from glibc.
53656
53657 2004-10-04  Simon Josefsson  <jas@extundo.com>
53658
53659         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53660         '#ifdef USE_UNLOCKED_IO'.
53661
53662 2004-10-04  Simon Josefsson  <jas@extundo.com>
53663
53664         * config/srclist.txt: Add memmem from glibc.
53665
53666 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53667
53668         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53669
53670         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53671         modules/exclude, modules/getdate, modules/getline,
53672         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53673         modules/getusershell, modules/linebuffer, modules/md5,
53674         modules/mountlist, modules/posixtm, modules/readtokens,
53675         modules/readutmp, modules/regex, modules/sha1,
53676         modules/version-etc, modules/yesno:
53677         Remove dependency on unlocked-io.
53678
53679 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53682
53683         * m4/unlocked-io.m4: Add copyright notice.
53684         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53685
53686 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53687
53688         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53689         * lib/xmalloc.c (xmemdup): Likewise.
53690         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53691         XFREE): Remove these long-obsolescent macros.
53692         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53693         * lib/xstrdup.c: Remove.
53694
53695         * lib/regex.c (re_comp): Cast gettext return value to char *,
53696         Problem reported by Martin Neitzel via Mark D. Baushke.
53697
53698 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53699
53700         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53701         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53702         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53703         regex.c, sha1.c, version-etc.c, yesno.c:
53704         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53705         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53706         the includer's responsibility.
53707
53708         Sync from coreutils.
53709
53710         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53711         points to the start of a string, as the C Standard says the
53712         resulting behavior is undefined.
53713
53714         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53715         simple -> simple_backups, numbered_existing ->
53716         numbered_existing_backups, numbered -> numbered_backups
53717         to avoid shadowing problems.  All uses changed.
53718         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53719         * lib/backupfile.c (check_extension, numbered_backup):
53720         Rename locals to avoid shadowing 'basename'.
53721         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53722         once.
53723
53724         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53725         * lib/.cvsignore: Add getopt.h.
53726
53727 2004-10-04  Bruno Haible  <bruno@clisp.org>
53728
53729         * modules/README: New file.
53730         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53731         not a module.
53732
53733 2004-10-02  Jim Meyering  <jim@meyering.net>
53734
53735         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53736
53737 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53738
53739         * modules/strsep: New file.
53740
53741 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53742
53743         * m4/strsep.m4: New file.
53744
53745 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53746
53747         * lib/strsep.h: New file.
53748         * lib/strsep.c: New file.
53749
53750 2004-10-01  Simon Josefsson  <jas@extundo.com>
53751
53752         * lib/snprintf.c (snprintf): Handle size==0.
53753
53754 2004-10-01  Simon Josefsson  <jas@extundo.com>
53755             Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53758         (snprintf): Declare 'args'.
53759
53760 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         * lib/snprintf.c: Remove comments as to why each header is needed.
53763
53764 2004-10-01  Bruno Haible  <bruno@clisp.org>
53765
53766         * MODULES.html.sh: Add strsep.
53767
53768 2004-09-30  Simon Josefsson  <jas@extundo.com>
53769
53770         * modules/snprintf: New file.
53771
53772 2004-09-30  Simon Josefsson  <jas@extundo.com>
53773
53774         * m4/snprintf.m4: New file.
53775
53776 2004-09-30  Simon Josefsson  <jas@extundo.com>
53777
53778         * lib/snprintf.h, lib/snprintf.c: New files.
53779
53780 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53781
53782         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53783         (hol_entry_help): Never translate an empty string.
53784         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53785         * lib/argp.h (OPTION_NO_TRANS): New option.
53786
53787 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53788
53789         * modules/argp (Maintainer): Replace Simon Josefsson
53790         by Sergey Poznyakoff.
53791
53792 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53793
53794         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53795         changes merged back into glibc.
53796
53797 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53798
53799         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53800
53801 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53802
53803         * lib/xvasprintf.c: Include xalloc.h.
53804         (xvasprintf): Use xalloc_die, not xmalloc_die.
53805
53806 2004-09-29  Bruno Haible  <bruno@clisp.org>
53807
53808         * modules/alloca-opt: New file, derived from modules/alloca.
53809         * modules/allocsa: Depend on alloca-opt instead of alloca.
53810         * modules/setenv: Likewise.
53811         * modules/vasnprintf: Likewise.
53812         * MODULES.html.sh: Add alloca-opt.
53813
53814 2004-09-28  Simon Josefsson  <jas@extundo.com>
53815
53816         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53817         LGPL, and to replace license template from GPL to LGPL.
53818
53819 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53820
53821         * modules/dummy: Change license to LGPL.
53822
53823 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53826
53827 2004-09-24  Simon Josefsson  <jas@extundo.com>
53828
53829         * modules/minmax (License): Change from GPL to LGPL.
53830
53831 2004-09-23  Simon Josefsson  <jas@extundo.com>
53832
53833         * gnulib-tool (--import): Typo.
53834
53835 2004-09-23  Simon Josefsson  <jas@extundo.com>
53836
53837         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53838
53839 2004-09-22  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/*: Add 'License' field.
53842         * gnulib-tool: Accept --extract-license option.
53843         (func_get_license): New function.
53844
53845 2004-09-21  Bruno Haible  <bruno@clisp.org>
53846
53847         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53848         Reported by Simon Josefsson.
53849
53850 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53851
53852         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53853         gl_AC_TYPE_LONG_LONG.
53854
53855 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53856
53857         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53858
53859 2004-09-18  Simon Josefsson  <jas@extundo.com>
53860         and  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53863         calls with autoreconf.  Define GL_LIB.
53864
53865 2004-09-14  Karl Berry  <karl@gnu.org>
53866
53867         * config/srclist.txt: unsync setenv.c, sigh.
53868
53869 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53870
53871         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53872         Problem reported by Bruno Haible in:
53873         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53874
53875 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53876
53877         * config/srclist.txt: Comment out argp-pvh.c.
53878
53879 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53882         in case some system header has #define'd it.  Problem reported by
53883         Soeren D. Schulze in
53884         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53885
53886 2004-09-09  Karl Berry  <karl@gnu.org>
53887
53888         * regex.[ch]: delete from the root.  These were supposed to be
53889                 synced with emacs cvs, but this has not happened for about
53890                 a year, and anyway nothing else uses emacs regex.[ch].
53891                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53892                 lib/regex[.ch] is untouched.
53893
53894 2004-09-09  Bruno Haible  <bruno@clisp.org>
53895
53896         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53897
53898 2004-09-09  Bruno Haible  <bruno@clisp.org>
53899
53900         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53901         modifications.
53902         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53903
53904 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53905
53906         * modules/xvasprintf: New file.
53907         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53908
53909 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53910
53911         * lib/xvasprintf.h: New file.
53912         * lib/xvasprintf.c: New file.
53913         * lib/xasprintf.c: New file.
53914
53915 2004-09-08  Bruno Haible  <bruno@clisp.org>
53916
53917         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53918
53919 2004-09-08  Bruno Haible  <bruno@clisp.org>
53920
53921         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53922         length is > INT_MAX.
53923         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53924         more.
53925
53926 2004-09-08  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/stdint_.h: New file, taken from GNU clisp.
53929
53930 2004-09-08  Bruno Haible  <bruno@clisp.org>
53931             Oskar Liljeblad  <oskar@osk.mine.nu>
53932
53933         * modules/stdint: New file.
53934         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53935
53936 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53937
53938         Import from coreutils.
53939         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53940         strings on unbounded length.  alloca's performance benefits aren't
53941         that important here.
53942         (V_STRDUP): Remove.
53943         (parse_with_separator): New function, with most of the internals
53944         of the old parse_user_spec.  Allow user to omit both user and group,
53945         for compatibility with FreeBSD.
53946         Clone only the user name, not the entire spec.
53947         Do not set *uid, *gid unless entirely successful.
53948         Avoid memory leak in some failing cases.
53949         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53950         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53951         (parse_user_spec): Rewrite to use parse_with_separator.
53952
53953 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53954
53955         * modules/userspec: Don't depend on alloca.
53956
53957 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53958
53959         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53960
53961 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53964         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53965         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53966
53967 2004-08-16  Simon Josefsson  <jas@extundo.com>
53968
53969         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53970         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53971         Add --dry-run for --import.
53972         Let user provided command line parameters override configure.ac
53973         settings.
53974
53975 2004-08-12  Simon Josefsson  <jas@extundo.com>
53976
53977         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53978         as discussed with Paul Eggert in threads rooted at
53979         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53980         and
53981         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53982         Before, the test was empty, and relied on ELIDE_CODE in source
53983         code.)
53984         (gl_PREREQ_GETOPT): New macro.
53985         (gl_GETOPT): Use them.
53986
53987 2004-08-12  Simon Josefsson  <jas@extundo.com>
53988
53989         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53990         * lib/getopt_.h: Renamed from getopt.h.
53991
53992 2004-08-12  Simon Josefsson  <jas@extundo.com>
53993
53994         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53995         Change default library name from libfoo to libgnu.
53996         Now, if you have a configure.ac that says:
53997                 gl_SOURCE_BASE(gl)
53998                 gl_M4_BASE(gl/m4)
53999                 gl_MODULES(error getopt etcetera)
54000                 gl_INIT
54001         you can import all you need by running:
54002                 ../gnulib/gnulib-tool --import
54003
54004         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54005         (Makefile.am): Rewrite, use logic from argz.
54006         (Include): Use <getopt.h> instead of "getopt.h".
54007
54008 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54009
54010         * modules/argp (Files): Add m4/unlocked-io.m4.
54011         (Depends-on): Add extensions.
54012
54013 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54016         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54017         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54018         Check for program_invocation_name, program_invocation_short_name,
54019         flockfile, funlockfile, features.h, _getopt_long_only_r.
54020
54021 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54024         its complicated substitute.
54025         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54026         and program_invocation_name.
54027         (__argp_basename) [!_LIBC]: Remove; the only use was
54028         replaced by its body.
54029         (__argp_short_program_name): Change condition from
54030         !defined __argp_short_program_name to
54031         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54032         to match argp-namefrob.h.
54033         (__argp_failure): Don't assume strerror_r returns char *.
54034         * lib/argp-parse.c (N_): Define unconditionally.
54035         (argp_default_options): Fill out initializers with 0 to avoid
54036         gcc warnings.
54037
54038 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54041         getopt1.c.
54042
54043 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         Merge from coreutils.
54046
54047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54048
54049         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54050         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54051
54052 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54053
54054         Merge from coreutils.
54055
54056         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54057         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54058         for Reliant Unix 5.43.
54059
54060         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54061         (union fooround): Use uintmax_t, not long int.
54062         The rest is a merge from libc:
54063         [defined _LIBC]: Include <shlib-compat.h>.
54064         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54065
54066         * lib/settime.c (settime): Recode to avoid warning with
54067         Sun Forte C 6U2.
54068
54069         * lib/strverscmp.c: Convert to UTF-8.
54070
54071 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54072
54073         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54074         m4/uintmax_t.m4.
54075
54076 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         * modules/xalloc-die: New file.
54079         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54080
54081         * modules/md5 (Files): Add m4/uint32_t.m4.
54082         * modules/sha1: Renamed from modules/sha.
54083         (Files):
54084         Rename lib/sha.h to lib/sha1.h.
54085         Rename lib/sha.c to lib/sha1.c.
54086         Rename m4/sha.m4 to m4/sha1.m4.
54087         (lib_SOURCES): Likewise.
54088         (configure.ac): Rename gl_SHA to gl_SHA1.
54089         (Include): sha.h -> sha1.h.
54090
54091 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54094         * m4/sha1.m4: Renamed from sha.m4.
54095         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54096
54097 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54098
54099         * lib/obstack.h (obstack_empty_p):
54100         Don't assume that chunk->contents is suitably aligned.
54101         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54102         Likewise. Problem reported by Benno in
54103         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54104
54105         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54106         readable.  This could be improved further but it'd take some work.
54107
54108 2004-08-08  Simon Josefsson  <jas@extundo.com>
54109
54110         * modules/xgethostname (Depends-on): Remove exit and error (not
54111         used).
54112
54113         * modules/getpass-gnu: Add getpass.h.
54114         (Depends-on): Add stdbool.
54115         * modules/getpass: Add getpass.h.
54116
54117 2004-08-08  Simon Josefsson  <jas@extundo.com>
54118
54119         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54120         Check getpass declaration.
54121
54122 2004-08-08  Simon Josefsson  <jas@extundo.com>
54123
54124         * lib/xgethostname.c: Don't include error.h (not used).
54125
54126         * lib/getpass.h: Add.
54127         * lib/getpass.c: Include getpass.h first.
54128
54129 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54130
54131         * lib/xalloc-die.c: New file.
54132         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54133         All uses removed.
54134         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54135         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54136         xalloc-die.c.
54137         (_, N_, xalloc_die): Move to xalloc-die.c.
54138         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54139         so that we needn't mess with xalloc_msg_memory_exhausted.
54140
54141         * lib/sha1.h: Renamed from sha.h.
54142         (SHA1_H): Renamed from _SHA_H.
54143         (sha1_ctx): Renamed from sha_ctx.
54144         (sha1_init_ctx): Renamed from sha_init_ctx.
54145         (sha1_process_block): Renamed from sha_process_block.
54146         (sha1_process_bytes): Renamed from sha_process_bytes.
54147         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54148         (sha1_read_ctx): Renamed from sha_read_ctx.
54149         (sha1_stream): Renamed from sha_stream.
54150         (sha1_buffer): Renamed from sha_buffer.
54151         * lib/sha1.c: Likewise; renamed from sha.c.
54152         Do not include <sys/types.h>.
54153         Include <stddef.h> rather than <stdlib.h>.
54154
54155 2004-08-08  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54158         FILESYSTEM_PREFIX_LEN.
54159         * lib/progreloc.c: Likewise.
54160         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54161
54162 2004-08-06  Simon Josefsson  <jas@extundo.com>
54163
54164         * modules/progname (Depends-on): Don't depend on stdbool.
54165
54166 2004-08-06  Simon Josefsson  <jas@extundo.com>
54167
54168         * modules/getsubopt: New file.
54169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54170         getsubopt.
54171
54172 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         More merge from coreutils.
54175
54176         * m4/utimens.m4, m4/utimecmp.m4: New files.
54177         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54178         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54179         prereq.m4, sha.m4: Import changes from coreutils.
54180
54181 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54182
54183         More merge from coreutils.
54184         * modules/raise, modules/readtokens0, modules/utimens:
54185         * modules/utimecmp, module/xnanosleep: New files.
54186         * modules/strftime: Add lib/strftime.h.
54187         Change include from <time.h> to "strftime.h".
54188         * modules/yesno: Add lib/yesno.h.
54189         * modules/backupfile: Remove lib/addext.c.
54190         * modules/euidaccess: Add stat-macros.h.
54191         * modules/canonicalize, modules/euidaccess,
54192         modules/filemode, modules/lchown, modules/makepath,
54193         modules/rmdir, modules/stat: Likewise.
54194
54195 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         Merge from tar.
54198         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54199         SIZE_MAX is a valid preprocessor constant.
54200         (__argp_basename): Change from "#ifndef _LIBC"
54201         to "#ifndef __argp_short_program_name", so that
54202         we don't compile these functions for tar.
54203
54204         More merges from coreutils.
54205         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54206         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54207         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54208         * lib/addext.c: Remove; no longer needed.
54209         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54210         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54211         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54212         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54213         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54214         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54215         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54216         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54217         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54218         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54219         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54220         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54221         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54222         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54223         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54224         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54225         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54226         Import changes from coreutils.
54227
54228 2004-08-05  Simon Josefsson  <jas@extundo.com>
54229
54230         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54231
54232 2004-08-05  Simon Josefsson  <jas@extundo.com>
54233
54234         * m4/getsubopt.m4: New file.
54235
54236 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54237
54238         Merge from coreutils.
54239
54240         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54241         * m4/getcwd-path-max.m4: New files.
54242
54243         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54244         FILESYSTEM_PREFIX_LEN ->
54245         FILE_SYSTEM_PREFIX_LEN.
54246         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54247         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54248         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54249         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54250
54251         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54252         prerequisite modules now handle the DOS stuff.
54253         Don't check for unistd.h.
54254
54255 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         Merge from coreutils.
54258
54259         * lib/.gdb-history: Remove; this doesn't belong here.
54260
54261         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54262         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54263         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54264         * lib/getcwd.c: New files.
54265
54266         * lib/dirname.h: Include <stdbool.h>.
54267         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54268         for consistency with POSIX terminology.  All uses changed.
54269         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54270         (strip_trailing_slashes): Use bool for booleans.
54271         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54272
54273         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54274         sometimes returns a positive errno value even when it succeeds.
54275         (print_errno_message) [!LIBC]: Fall back on strerror if
54276         __strerror_r fails.
54277
54278         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54279         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54280         (longest_relative_suffix): New function.
54281         (path_concat): Use it.  Assume first argument is not NULL.
54282         Port to DOS.  Omit redundant separators.
54283         Report an error instead of returning NULL.
54284         Use mempcpy instead of memcpy.
54285         (xpath_concat): Remove: not declared or used.
54286
54287         * lib/same.h: Include <stdbool.h>
54288         (same_name): Return bool, not int.
54289         * lib/same.c (same_name): Likewise.
54290         (errno): Don't declare; we assume C89 or better now.
54291
54292         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54293         if not already defined.
54294
54295         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54296         * lib/dup-safer.c (errno): Likewise.
54297
54298 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         Merge from coreutils.
54301         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54302         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54303         * modules/path-concat: Don't depend on strdup.
54304
54305 2004-08-03  Simon Josefsson  <jas@extundo.com>
54306
54307         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54308         * lib/progname.h: Don't include stdbool.h.
54309
54310 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54313         * MODULES.html.sh (func_all_modules): Remove fatal.
54314
54315 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54318
54319 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54320
54321         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54322         working.
54323
54324 2004-08-02  Simon Josefsson  <jas@extundo.com>
54325
54326         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54327         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54328         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54329
54330 2004-08-01  Simon Josefsson  <jas@extundo.com>
54331
54332         * lib/xgetdomainname.c: Include stdlib.h, for free().
54333
54334 2004-07-19  Bruno Haible  <bruno@clisp.org>
54335
54336         * MODULES.html.sh (func_all_modules): Add dummy.
54337
54338 2004-07-16  Simon Josefsson  <jas@extundo.com>
54339
54340         * modules/dummy: New file.
54341
54342 2004-07-16  Simon Josefsson  <jas@extundo.com>
54343
54344         * lib/dummy.c: New file.
54345
54346 2004-07-16  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/backupfile.h: Add extern "C" for C++.
54349         * lib/closeout.h: Likewise.
54350         * lib/copy-file.h: Likewise.
54351         * lib/findprog.h: Likewise.
54352         * lib/full-write.h: Likewise.
54353         * lib/pathname.h: Likewise.
54354         * lib/progname.h: Likewise.
54355         * lib/stpcpy.h: Likewise.
54356         * lib/stpncpy.h: Likewise.
54357         * lib/strcase.h: Likewise.
54358         * lib/strstr.h: Likewise.
54359         * lib/xalloc.h: Likewise.
54360
54361         * lib/mbswidth.h: Add extern "C" for C++.
54362         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54363
54364 2004-07-13  Robert Millan  <robertmh@gnu.org>
54365
54366         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54367
54368 2004-07-09  Simon Josefsson  <jas@extundo.com>
54369
54370         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54371         failed without this.)
54372
54373 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54374
54375         * modules/chown (Files): Add lib/fchown-stub.c, since
54376         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54377
54378 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * lib/fchown-stub.c: New file.
54381
54382 2004-06-24  Jim Meyering  <jim@meyering.net>
54383
54384         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54385
54386 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * modules/argz: Omit "#include".
54389
54390         * MODULES.html.sh (func_all_modules): Add calloc, to match
54391         2004-06-01 addition of calloc module.
54392
54393 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * m4/argz.m4: New file, which is autoupdated from libtool.
54396
54397 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54400         libtool.
54401
54402 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54403
54404         * config/srclist-update: Don't insist on "USA." before the
54405         close-comment, as libtool omits the period and puts the */ on a
54406         separate line.
54407         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54408         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54409
54410 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54411
54412         * modules/argz: New file.
54413         * MODULES.html.sh (func_all_modules): Add argz.
54414
54415 2004-06-12  Jim Meyering  <jim@meyering.net>
54416         and  Paul Eggert  <eggert@cs.ucla.edu>
54417
54418         * modules/hash (Files): Add lib/xalloc.h.
54419         * modules/pipe (Depends-on): Add wait-process.
54420         * modules/stat (Depends-on): Add xalloc.
54421         * modules/userspec (Files): Add lib/userspec.h.
54422         * modules/xstrto
54423
54424         Upgrade from gettext-0.13.
54425         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54426         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54427         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54428
54429 2004-06-10  Jim Meyering  <jim@meyering.net>
54430
54431         * lib/calloc.c: New file.
54432
54433 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * lib/getdate.y (yylex): Allow space between sign and number.
54436         Problem reported by Dan Jacobson.
54437
54438 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54439
54440         Merge from coreutils CVS.
54441
54442         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54443         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54444         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54445         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54446         xstrtol.m4: Fix copyright date and/or serial number.
54447
54448         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54449         See if we need an fchown replacement.
54450         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54451         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54452         and use the replacement function if we detect either defect.
54453
54454         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54455         gl_UTIMECMP.
54456
54457 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54458         and  Jim Meyering  <jim@meyering.net>
54459
54460         Merge from coreutils CVS.
54461
54462         * lib/stat-macros.h: New file, with contents from file-type.h
54463         and coreutils' system.h.
54464         * lib/file-type.c: Include "stat-macros.h".
54465         * lib/file-type.h (file_type): Move all macro definitions to new file,
54466         stat-macros.h.
54467
54468         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54469         Wrap old code with this conditional.
54470         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54471         function that does not dereference symlinks.
54472         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54473
54474         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54475         dependency problems.
54476         (xreadlink): Accept new arg SIZE, for efficiency.
54477         All decls and uses changed.
54478         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54479
54480         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54481         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54482
54483         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54484         sysexits.h.
54485
54486 2004-06-01  Jim Meyering  <jim@meyering.net>
54487
54488         * m4/calloc.m4: New file.
54489
54490 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54493         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54494         Also, fix a typo in a diagnostic.
54495
54496 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54497
54498         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54499         or AC_FUNC_REALLOC.
54500
54501 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54504         macros to be defined.
54505         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54506         the allocator returns NULL because the requested size is zero.
54507
54508 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54511         var.  Add comment explaining why libc still defines it.  This
54512         merges the following patch from glibc:
54513         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54514
54515 2004-05-20  Andreas Schwab  <schwab@suse.de>
54516
54517         * m4/free.m4: Replace free if it not known to work, not the other
54518         way round.
54519
54520 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54521
54522         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54523         present in glibc since revision 1.1 of this file.
54524         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54525         obstack_alignment_mask, obstack_alloc, obstack_base,
54526         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54527         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54528         obstack_grow0, obstack_init, obstack_int_grow,
54529         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54530         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54531         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54532         nonexistent functions.
54533
54534 2004-05-18  Karl Berry  <karl@gnu.org>
54535
54536         * config/srclist.txt: break link for vasnprintf.c.
54537
54538 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54539
54540         Port obstack to the AS/400, where pointers are 16 bytes wide and
54541         you cannot cast an integer to a valid pointer.  This patch is
54542         currently waiting to be integrated into glibc; see
54543         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54544
54545         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54546         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54547         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54548         (struct obstack): temp member is now a union of a pointer and
54549         an integer, instead of an integer.  All integer uses changed.
54550         This does not affect the physical layout of struct obstack,
54551         except on hosts (like the AS/400) where the size or alignment of
54552         void * is greater than that of ptrdiff_t.
54553         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54554         __STDC__)]: Store temporary in pointer member of union, not
54555         integer member.
54556         * lib/obstack.c: Include <stddef.h>, for offsetof.
54557         (struct fooalign): Remove; it doesn't need a name.
54558         (union fooround): Change double to long double, and add void *.
54559         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54560         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54561         not a macro.  Hence the values are always int; so remove all
54562         casts-to-int in uses.
54563
54564 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54567         we can get this patch merged into glibc.
54568
54569 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54570             Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * m4/argp: Depend on alloca.
54573
54574 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54575             Paul Eggert  <eggert@cs.ucla.edu>
54576
54577         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54578         freecoding.
54579
54580 2004-05-17  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54583         precision that consists of a '.' followed by an empty digit string.
54584         Patch by Tor Lillqvist <tml@iki.fi>.
54585
54586 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54587
54588         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54589         for backward compatibility with older code.  We need our own
54590         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54591         it under some other name, and our alloca.h will define it.
54592
54593 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54594             Derek Price  <derek@ximbiot.com>
54595
54596         * lib/alloca.c: Include <alloca.h>, to get our interface.
54597         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54598         include <alloca.h> first.  Use C89 prototype for alloca; this
54599         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54600         Use #elif for simplicity, since we can assume C89 now.
54601         Don't try to source the system alloca.h since it will not be found
54602         and to prevent recursively including its replacement.
54603         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54604         * lib/regex.c: Likewise.
54605
54606 2004-05-16  Derek Price  <derek@ximbiot.com>
54607             Paul Eggert  <eggert@cs.ucla.edu>
54608
54609         getline cleanup.  This changes the getndelim2 API: both order of
54610         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54611         no delimiter).
54612
54613         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54614         interface does that.
54615         (getline): Always use getdelim, so that we don't have two
54616         copies of this code.
54617         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54618         if available.
54619         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54620         (GETNDELIM2_MAXIMUM): New macro.
54621         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54622         instead of the old practice of delim2==0.  All callers changed.
54623         Return -1 on overflow, instead of returning junk.
54624         Do not set *linesize unless allocation succeeds.
54625         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54626         that we include sys/types.h.
54627         * lib/getnline.h: Likewise.
54628         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54629         (getndelim2): Reorder arguments.
54630         * lib/getnline.c (getnline, getndelim):
54631         Don't discard the NMAX argument.
54632         (getnline): Invoke getndelim, to avoid code duplication.
54633         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54634         of (size_t) -1 by callers of the getnline family.
54635
54636 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54639         Check for gettimeofday.
54640         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54641         Check for settimeofday, stime.
54642
54643 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         * lib/nanosleep.c (suspended): Change its type from int to
54646         sig_atomic_t volatile.
54647         (first_call): Make it private to rpl_nanosleep, and have it
54648         be zero initially as that's a bit faster.
54649         (my_usleep): Round up fractional times instead of truncating them,
54650         as this is the usual meaning for 'sleep'.
54651
54652         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54653         doesn't work.
54654         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54655         (ENOSYS): Define if not defined.
54656         (settime): Fall back on stime if it exists and settimeofday fails.
54657         But don't bother with fallbacks if a method fails with errno == EPERM.
54658
54659 2004-05-11  Jim Meyering  <jim@meyering.net>
54660
54661         Prior to this change, the save_cwd caller required read access to the
54662         current directory on most systems (ones with the fchdir function).
54663
54664         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54665         fails, try write-only, and finally, resort to using xgetcwd.
54666
54667 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         * lib/obstack.c, obstack.h: Import changes from libc.
54670
54671 2004-04-28  Bruno Haible  <bruno@clisp.org>
54672
54673         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54674         also implicitly appends .exe to executables.
54675         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54676         accepts Windows pathnames.
54677         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54678         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54679         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54680         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54681         Reported by Derek Robert Price <derek@ximbiot.com>.
54682
54683 2004-04-21  Karl Berry  <karl@gnu.org>
54684
54685         * config/srclist.txt (localcharset.c): break sync.
54686
54687 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54688
54689         * m4/host-os.m4: Add a copyright notice.
54690
54691 2004-04-20  Jim Meyering  <jim@meyering.net>
54692
54693         Change UTILS_ to gl_ in AC_DEFINE'd names.
54694         Change utils_- and jm_-prefixed variables, too.
54695         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54696         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54697         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54698
54699         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54700         Don't emit trailing blanks.
54701         Also rename jm_-prefixed variables to have gl_ prefix.
54702
54703         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54704         Also rename jm_-prefixed variables to have gl_ prefix.
54705
54706         * m4/jm-macros.m4: Reflect the renamings.
54707         * m4/prereq.m4: Likewise.
54708
54709 2004-04-20  Jim Meyering  <jim@meyering.net>
54710
54711         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54712         memory.
54713
54714 2004-04-20  Jim Meyering  <jim@meyering.net>
54715             Bruno Haible  <bruno@clisp.org>
54716
54717         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54718         memory when realloc fails.
54719
54720 2004-04-19  Jim Meyering  <jim@meyering.net>
54721
54722         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54723         now that readutmp.c may call `free (0)'.
54724
54725 2004-04-19  Bruno Haible  <bruno@clisp.org>
54726
54727         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54728         * m4/inttypes_h.m4: Likewise.
54729         * m4/stdint_h.m4: Likewise.
54730         * m4/intmax_t.m4: Likewise.
54731         * m4/uintmax_t.m4: Likewise.
54732
54733 2004-04-18  Jim Meyering  <jim@meyering.net>
54734
54735         * m4/prereq.m4: Don't forbid jm_ prefix.
54736
54737         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54738         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54739         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54740         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54741         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54742         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54743         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54744         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54745         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54746         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54747         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54748         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54749         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54750         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54751         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54752         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54753         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54754         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54755         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54756
54757 2004-04-18  Jim Meyering  <jim@meyering.net>
54758
54759         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54760         failure, don't leak memory and do call END_UTMP_ENT.
54761
54762 2004-04-16  Jim Meyering  <jim@meyering.net>
54763
54764         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54765         coreutils' stat program.
54766         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54767
54768 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54769
54770         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54771         C89.
54772         (CHAR_BIT): Remove, since we assume C89.
54773         Include <stdint.h> if available, as per current Autoconf CVS advice.
54774
54775 2004-03-31  Jim Meyering  <jim@meyering.net>
54776
54777         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54778         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54779         * m4/xalloc.m4: Likewise.
54780
54781 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54782
54783         Merge from coreutils.
54784
54785         * m4/inttostr.m4: New file.
54786         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54787         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54788         Require gl_CLOCK_TIME.
54789         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54790
54791 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54792
54793         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54794         not bool, to be more consistent with Unix conventions.
54795         Suggested by Bruno Haible.
54796
54797         Merge from coreutils.
54798
54799         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54800         * lib/umaxtostr.c: New files.
54801
54802         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54803         the usual <time.h> dance.
54804         (get_date): Change signature to support fractional time stamps.
54805         All callers changed.
54806         * lib/getdate.y: Include "getdate.h" first, as we can now
54807         assume C89 and don't need to worry about 'const'.
54808         Similarly, include "unlocked-io.h" near start, not in middle.
54809         Include <limits.h>.
54810         (textint.value): Use long int rather than int.
54811         (textint.digits): Use size_t rather than int.
54812         (BILLION, LOG10_BILLION): New constants.
54813         (parser_control): New member rel_ns.  Members day_ordinal,
54814         time_zone, month, day, hour, minutes, rel_year, rel_month,
54815         rel_day, rel_hour, rel_minutes, rel_seconds
54816         are now long int, not int.  Member seconds is now struct timespec,
54817         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54818         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54819         not int.
54820         (%union.intval): Now long int, not int.
54821         New member timespec.
54822         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54823         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54824         (spec): Now is a timespec or an item list.
54825         (timespec, items): New nonterminals.
54826         (time, rel, relunit, number, get_date):
54827         Add support for fractional seconds.
54828         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54829         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54830         (to_hour): First arg is now long int, not int.
54831         (to_year): Returns long int, not int.
54832         Don't treat year -70 like 70.
54833         (tm_diff): Returns long int, not int.
54834         (lookup_word): Use bool instead of int when appropriate.
54835         (yylex): Use size_t for count, not int.
54836         Detect overflow when parsing large integer constants.
54837         Add support for fractions.
54838         (get_date): Make pointers 'const' if possible.
54839         Use more-portable code to detect integer overflow.
54840         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54841         Don't use ctime; it's not reliable if the year has >4 digits.
54842
54843         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54844         This is for compatibility with BSD.
54845
54846         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54847         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54848         From coreutils' system.h.
54849
54850         * lib/userspec.c: Don't include "posixver.h".
54851         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54852         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54853         compatible extension.  Simplify code by removing a boolean int
54854         that was always nonzero if a string was nonnull.
54855
54856 2004-03-30  Jim Meyering  <jim@meyering.net>
54857
54858         Merge from coreutils.
54859
54860         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54861         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54862         on some systems one must include <grp.h> before it.
54863         Reported by Christian Krackowizer.
54864
54865 2004-03-30  Jim Meyering  <jim@meyering.net>
54866
54867         Merge from coreutils.
54868
54869         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54870
54871         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54872         an empty input stream.
54873
54874         * lib/readtokens.c: Include <stdbool.h>.
54875         (readtoken): Use `size_t' rather than int/long.
54876         All callers adjusted.
54877         Use `bool' rather than `int' where appropriate.
54878         Use memset rather than an explicit loop.
54879         Use x2nrealloc rather than xrealloc.
54880         Allow the use of `\0' as a delimiter.
54881         (readtokens): Likewise.
54882         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54883
54884 2004-03-30  Jim Meyering  <jim@meyering.net>
54885
54886         * m4/realloc.m4: Remove file, since now it does no more than
54887         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54888         the `configure.ac' section of module/realloc.
54889         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54890
54891 2004-03-30  Bruno Haible  <bruno@clisp.org>
54892
54893         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54894         nonnull.
54895
54896 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54897
54898         Merge changes to getloadavg.c from coreutils and Emacs.
54899
54900         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54901         Define to an expression, not to the empty string.
54902         Include cloexec.h and xalloc.h.
54903         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54904         Use set_cloexec_flag rather than rolling our own.
54905         * lib/cloexec.c, lib/cloexec.h: New files.
54906
54907 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54908
54909         * m4/cloexec.m4: New file.
54910
54911 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54912
54913         * lib/getopt.h: Sync with libc CVS.
54914
54915 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54916             Bruno Haible  <bruno@clisp.org>
54917
54918         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54919         mbswidth.
54920
54921 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54922             Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/mbswidth.h: Include <wchar.h> only if
54925         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54926         <wchar.h>.
54927         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54928
54929 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54930
54931         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54932         Sync with libc CVS.
54933         * lib/getopt_int.h: New file, also synced from libc.
54934
54935 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54936
54937         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54938         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54939         Bring back getopt.c, getopt.h, getopt1.c.
54940
54941 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54942
54943         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54944         All uses changed.  Check for sa_sigaction member; this fixes
54945         a bug first reported by Jason Andrade in
54946         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54947
54948 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54949
54950         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54951         '#if' expressions.  Unlike the code it replaces, it does not
54952         depend on (defined _SC_PAGESIZE).  However, it does depend on
54953         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54954         first reported by Jason Andrade in
54955         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54956
54957 2004-02-25  Simon Josefsson  <jas@extundo.com>
54958
54959         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54960
54961 2004-02-25  Simon Josefsson  <jas@extundo.com>
54962
54963         * lib/strdup.h: New file.
54964         * lib/strdup.c: Include it.
54965         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54966         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54967
54968 2004-02-23  Karl Berry  <karl@gnu.org>
54969
54970         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54971         (from fencepost.gnu.org:/gd/gnuorg).
54972
54973 2004-02-23  Karl Berry  <karl@gnu.org>
54974
54975         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54976         * config/srclist.txt: add maintain/standards documents.
54977
54978 2004-02-18  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54981         Reported by Derek Robert Price <derek@ximbiot.com>.
54982
54983 2004-02-16  Karl Berry  <karl@gnu.org>
54984
54985         * config/mkinstalldirs, install-sh: update from automake.
54986
54987 2004-02-06  Karl Berry  <karl@gnu.org>
54988
54989         * m4/po.m4: update from gettext 0.14.1.
54990
54991 2004-02-06  Karl Berry  <karl@gnu.org>
54992
54993         * lib/config.charset: update from gettext 0.14.1.
54994
54995 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54996
54997         Add comments and code, prompted by suggestions from Bruno Haible
54998         for sh-quote.
54999         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55000         describing the enum quoting_style values.
55001         * lib/quotearg.c (quotearg_alloc): New function.
55002         (quotearg_buffer_restyled): Treat lone { and } as special.
55003         Treat = as special.  Work around bug with older shells
55004         that "see" a '\' that is really the 2nd byte of a multibyte char.
55005         Quote empty string with shell_quoting_style.
55006
55007 2004-02-03  Bruno Haible  <bruno@clisp.org>
55008
55009         * m4/pipe.m4: New file, from GNU gettext.
55010
55011 2004-02-03  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/pipe.h: New file, from GNU gettext.
55014         * lib/pipe.c: New file, from GNU gettext.
55015
55016 2004-01-27  Bruno Haible  <bruno@clisp.org>
55017
55018         * m4/execute.m4: New file, from GNU gettext.
55019
55020 2004-01-27  Bruno Haible  <bruno@clisp.org>
55021
55022         * lib/execute.h: New file, from GNU gettext.
55023         * lib/execute.c: New file, from GNU gettext.
55024         * lib/w32spawn.h: New file, from GNU gettext.
55025
55026 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55027
55028         Merge from diffutils.
55029
55030         * lib/file-type.c (file_type): Add typed memory objects.
55031         * lib/file-type.h (S_TYPEISTMO): New macro.
55032
55033         * lib/c-stack.h (c_stack_action): Remove argv argument.
55034         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55035         (die): Don't calculate message unless segv_action returns.
55036         (get_stack_location, min_address_from_argv, max_address_from_argv,
55037         volatile stack_base, volatile_stack_size): Remove.
55038         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55039         that every segmentation violation is a stack overflow.  (Ouch!)
55040         See Debian bug 136249 (still outstanding) for more info about why
55041         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55042
55043 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55044
55045         Exit-status fix from coreutils.
55046
55047         Use exit_failure consistently in place of EXIT_FAILURE,
55048         so that program exit statuses are consistent on failure.
55049
55050         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55051         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55052         * lib/argmatch.h: Comment fix to match the above.
55053         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55054         Now a macro referring to exit_failure, instead of a separate
55055         variable.  Include "exitfail.h" to get it.
55056         * lib/xstrtol.h: Include "exitfail.h".
55057         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55058
55059         * lib/long-options.c (parse_long_options): Use prototype
55060         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55061         for clarity.
55062
55063 2004-01-21  Jim Meyering  <jim@meyering.net>
55064
55065         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55066         so as not to conflict with a different-sized __mktime_internal
55067         function in GNU libc.
55068         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55069         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55070
55071 2004-01-20  Karl Berry  <karl@gnu.org>
55072
55073         * config/config.guess: update from config.
55074
55075         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55076
55077 2004-01-20  Bruno Haible  <bruno@clisp.org>
55078
55079         Safer stack allocation.
55080         * lib/setenv.c: Include allocsa.h.
55081         (alloca): Remove fallback definition.
55082         (freea): Remove macro.
55083         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55084         instead of freea.
55085
55086 2004-01-20  Bruno Haible  <bruno@clisp.org>
55087
55088         * m4/eealloc.m4: New file, from GNU gettext.
55089
55090 2004-01-20  Bruno Haible  <bruno@clisp.org>
55091
55092         * m4/allocsa.m4: New file, from GNU gettext.
55093
55094 2004-01-20  Bruno Haible  <bruno@clisp.org>
55095
55096         * lib/xallocsa.h: New file, from GNU gettext.
55097         * lib/xallocsa.c: New file, from GNU gettext.
55098
55099 2004-01-20  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55102
55103 2004-01-20  Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55106         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55107         specially.
55108
55109 2004-01-20  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55112         patch.
55113
55114 2004-01-20  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55117
55118 2004-01-20  Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/eealloc.h: New file.
55121
55122 2004-01-20  Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/binary-io.h: Avoid warnings on Cygwin.
55125
55126 2004-01-20  Bruno Haible  <bruno@clisp.org>
55127
55128         * lib/allocsa.h: New file, from GNU gettext.
55129         * lib/allocsa.c: New file, from GNU gettext.
55130
55131 2004-01-18  Karl Berry  <karl@gnu.org>
55132
55133         * doc/gpl.texi, doc/lgpl.texi: new files.
55134
55135 2004-01-18  Karl Berry  <karl@gnu.org>
55136
55137         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55138         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55139
55140 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55141
55142         Merge from coreutils.
55143
55144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55145         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55146         (gl_DEFAULT_POSIX2_VERSION): Move
55147         the documentation from 'configure' into 'config.hin',
55148         so that 'configure --help' isn't burdened by it and
55149         we don't have to worry about its formatting there.
55150         Reword the documentation so that it's more succinct
55151         and can be run together into a single paragraph.
55152         * m4/same.m4 (gl_SAME): Check for pathconf.
55153
55154 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55155
55156         Merge from coreutils.
55157
55158         * lib/posixver.c: Include posixver.h.
55159
55160         * lib/same.c: Include <stdbool.h>, <limits.h>.
55161         (_POSIX_NAME_MAX): Define if not defined.
55162         (MIN): New macro.
55163         (same_name): If file names are silently truncated, report
55164         that the file names are the same if they are the same after
55165         the silent truncation.
55166
55167         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55168         conversion function.
55169         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55170         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55171         longer needed.
55172
55173 2004-01-15  Jim Meyering  <jim@meyering.net>
55174
55175         Merge from coreutils.
55176
55177         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55178         if no library is required.
55179         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55180         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55181         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55182         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55183         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55184         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55185         value, $ac_cv_search_crypt, if it's "none required".
55186         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55187         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55188         not gl_FUNC_GETLOADAVG.
55189         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55190         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55191
55192 2004-01-15  Jim Meyering  <jim@meyering.net>
55193
55194         Merge from coreutils.
55195
55196         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55197         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55198         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55199
55200         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55201         optional configure-time default.
55202
55203         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55204
55205         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55206
55207 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55208
55209         Merge from coreutils.
55210
55211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55212         value, $ac_cv_search_nanosleep, if it's "none required".
55213
55214 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55215
55216         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55217         with like-named macro in fnmatch.c.
55218         (EXT): Use an internal constant instead.
55219
55220         Merge fnmatch patches from glibc.
55221         * lib/fnmatch.c (mbsinit): Remove define.
55222         Add libc_hidden_ver (__fnmatch, fnmatch).
55223         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55224         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55225
55226 2004-01-14  Karl Berry  <karl@gnu.org>
55227
55228         * config/install-sh: update from automake.
55229
55230 2004-01-13  Karl Berry  <karl@gnu.org>
55231
55232         * config/install-sh: update from automake.
55233
55234 2004-01-09  Karl Berry  <karl@gnu.org>
55235
55236         * config/install-sh: update from automake.
55237
55238 2004-01-05  Karl Berry  <karl@gnu.org>
55239
55240         * config/config.{sub,guess}: update from config.
55241
55242 2003-12-31  Karl Berry  <karl@gnu.org>
55243
55244         * config/depcomp: update from automake.
55245
55246 2003-12-14  Karl Berry  <karl@gnu.org>
55247
55248         * lib/config.charset: update from gettext-runtime.
55249
55250 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55251
55252         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55253         Bug reported by Alfred M. Szmidt.
55254
55255 2003-12-03  Bruno Haible  <bruno@clisp.org>
55256
55257         * m4/gettext.m4: Upgrade from gettext-0.13.
55258         * m4/po.m4: Upgrade from gettext-0.13.
55259         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55260         * m4/intmax.m4: New file, from gettext-0.13.
55261         * m4/printf-posix.m4: New file, from gettext-0.13.
55262
55263 2003-11-29  Karl Berry  <karl@gnu.org>
55264
55265         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55266
55267 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55268             Bruno Haible  <bruno@clisp.org>
55269
55270         * lib/printf-parse.h: Don't include sys/types.h.
55271         (ARG_NONE): New macro.
55272         (char_directive): Change type of *arg_index fields to size_t.
55273         * lib/printf-parse.c: Don't include sys/types.h.
55274         (SSIZE_MAX): Remove macro.
55275         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55276         Remove unnecessary overflow check.
55277         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55278         fields.
55279
55280 2003-11-25  Bruno Haible  <bruno@clisp.org>
55281
55282         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55283
55284 2003-11-25  Bruno Haible  <bruno@clisp.org>
55285
55286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55287         gt_TYPE_SSIZE_T.
55288
55289 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55290
55291         * modules/alloca: Remove dependency on xalloc.
55292
55293 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55294
55295         * lib/alloca.c: Remove dependency on xalloc module.
55296         (xalloc_die): Remove.
55297         (memory_full) [!defined emacs]: New macro.
55298         [!defined emacs]: Don't include xalloc.h.
55299         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55300         address arithmetic overflows.  Change datatypes a bit to avoid
55301         unnecessary casts.
55302
55303 2003-11-22  Jim Meyering  <jim@meyering.net>
55304
55305         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55306         s/size/size_t/.
55307
55308 2003-11-21  Karl Berry  <karl@gnu.org>
55309
55310         * config/config.{sub,guess}: update from config.
55311
55312 2003-11-18  Karl Berry  <karl@gnu.org>
55313
55314         * config/config.{sub,guess}: update from config.
55315
55316         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55317
55318 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55319
55320         * README: Mention that S+T cannot overflow if S is the size of
55321         an existing object and T is sufficiently small.
55322
55323 2003-11-17  Jim Meyering  <jim@meyering.net>
55324
55325         On systems without utime and without a utimes function capable of
55326         dealing with a NULL struct utimbuf* argument, this utime replacement
55327         could -- in unusual circumstances -- leak a file descriptor.
55328         * lib/utime.c: Include <unistd.h> and <errno.h>.
55329         (utime_null): Be sure to close `fd' and to preserve errno.
55330         Reported by Geoff Collyer via Arnold Robbins.
55331
55332 2003-11-17  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55335         (Depends-on): Add xsize.
55336
55337 2003-11-17  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55340
55341 2003-11-17  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/vasnprintf.c (alloca): Remove fallback definition.
55344         (freea): Remove definition.
55345         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55346         Reported by Paul Eggert.
55347
55348 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55349             Bruno Haible  <bruno@clisp.org>
55350
55351         Protect against address arithmetic overflow.
55352         * lib/printf-args.h: Include stddef.h.
55353         (arguments): Change type of field 'count' to size_t.
55354         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55355         'unsigned int' where appropriate.
55356         * lib/printf-parse.h: Include sys/types.h.
55357         (char_directive): Change type of *arg_index fields to ssize_t.
55358         (char_directives): Change type of fields 'count', max_*_length to
55359         size_t.
55360         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55361         (SSIZE_MAX): Define fallback value.
55362         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55363         instead of 'int' where appropriate. Check a_allocated, d_allocated
55364         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55365         * lib/vasnprintf.c: Include xsize.h.
55366         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55367         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55368         overflow. Avoid wraparound when converting a width or precision from
55369         decimal to binary.
55370
55371 2003-11-16  Bruno Haible  <bruno@clisp.org>
55372
55373         Update from GNU gettext.
55374         * lib/printf-parse.c: Generalize to it can be compiled for wide
55375         strings.
55376         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55377         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55378         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55379         SNPRINTF): New macros.
55380         Don't include <alloca.h> if the file is used inside libintl.
55381         (local_wcslen): New function, for Solaris 2.5.1.
55382         (VASNPRINTF): Use it instead of wcslen.
55383
55384 2003-11-16  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/xsize.h (xmax): New function.
55387         (xsum, xsum3, xsum4): Declare as "pure" functions.
55388
55389 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55390
55391         * modules/xalloc (Files): Undo latest change, since xalloc.h
55392         no longer needs SIZE_MAX or PTRDIFF_MAX.
55393
55394 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55395
55396         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55397         gl_PTRDIFF_MAX.
55398
55399 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55400
55401         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55402         "return", to pacify some unknown compiler.  Problem reported
55403         by Joerg Schilling.
55404
55405 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55406
55407         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55408         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55409         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55410         heuristic is just as accurate as far as we know, and it removes a
55411         dependency on size_max.m4 and ptrdiff_max.m4.
55412
55413 2003-11-11  Bruno Haible  <bruno@clisp.org>
55414
55415         * modules/xsize (Files): Add m4/size_max.m4.
55416         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55417
55418 2003-11-11  Bruno Haible  <bruno@clisp.org>
55419
55420         * m4/size_max.m4: New file.
55421         * m4/ptrdiff_max.m4: New file.
55422         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55423         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55424         (gl_XALLOC): Invoke it.
55425
55426 2003-11-11  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55429         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55430         defined.
55431
55432 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55433
55434         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55435         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55436         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55437         From Bruno Haible.
55438         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55439         not (size_t) -1, since it's defined here.
55440
55441 2003-11-09  Karl Berry  <karl@gnu.org>
55442
55443         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55444
55445 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55446
55447         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55448         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55449         Reject sizes of exactly SIZE_MAX bytes.
55450         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55451         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55452
55453 2003-11-05  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55456         SIZE_MAX defined in <limits.h> on Solaris.
55457
55458 2003-11-04  Jim Meyering  <jim@meyering.net>
55459
55460         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55461         variable names, rather than @VAR@.
55462         * modules/poll: Likewise.
55463
55464 2003-11-04  Bruno Haible  <bruno@clisp.org>
55465
55466         * modules/xsize: New file.
55467         * modules/linebreak: Depend on xsize.
55468         * MODULES.html.sh (func_all_modules): Add xsize.
55469
55470 2003-11-04  Bruno Haible  <bruno@clisp.org>
55471
55472         * m4/xsize.m4: New file.
55473
55474 2003-11-04  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/xsize.h: New file.
55477         * lib/linebreak.c: Include xsize.h.
55478         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55479         argument for overflow.
55480         Suggested by Paul Eggert.
55481
55482 2003-11-03  Karl Berry  <karl@gnu.org>
55483
55484         * config/config.{guess,sub}: update from config.
55485
55486 2003-11-03  Jim Meyering  <jim@meyering.net>
55487
55488         * modules/userspec (lib_SOURCES): Add userspec.h.
55489         (Include): Add "userspec.h".
55490         Improve description.
55491
55492 2003-11-03  Jim Meyering  <jim@meyering.net>
55493
55494         * lib/userspec.c: Include "userspec.h".
55495         * lib/userspec.h: New file.
55496
55497 2003-11-03  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55500
55501 2003-11-03  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55504         available, to avoid (extremely rare) race condition.
55505         Suggested by Paul Eggert.
55506
55507 2003-11-02  Karl Berry  <karl@gnu.org>
55508
55509         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55510
55511 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55512
55513         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55514         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55515         (read_filesystem_list): Set and use me_type_malloced.
55516         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55517         whatever the type happens to be), for brevity and consistency.
55518         Check for size calculation overflow on Alphas running OSF/1.
55519
55520 2003-10-31  Jim Meyering  <jim@meyering.net>
55521
55522         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55523
55524         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55525
55526 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55527             Bruno Haible  <bruno@clisp.org>
55528
55529         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55530         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55531
55532 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55533
55534         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55535         netbsd*-gnu*.  Suggested by Robert Millan.
55536
55537 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55538
55539         * modules/group-member: Depend on stdbool.
55540
55541 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55542
55543         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55544
55545 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55546
55547         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55548         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55549         after the 'gnu' in these cases.  This fixes some bugs in the
55550         previous change, and is based on suggestions by Robert Millan.
55551
55552 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55553
55554         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55555         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55556         no longer needed.
55557         * lib/quotearg.c (quotearg_n_options): Use it.
55558         * lib/group-member.c: Include <stdbool.h>.
55559         (free_group_info): Arg is now const *; don't free arg.
55560         (get_group_info): Now returns bool and accepts struct group_info *,
55561         rather than returning a malloc'ed struct group_info *.
55562         All uses changed.  Check for overflow in internal size calculation.
55563
55564         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55565         rather than xmalloc/xrealloc.
55566         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55567         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55568         conformance bug: the old code used a pointer after freeing the
55569         storage that it addressed.
55570         * lib/hash.c (hash_initialize): Simplify the code by using
55571         xalloc_oversized rather than doing it by hand.
55572         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55573         the buffer preserved.  Use free and xmalloc instead.
55574         * lib/quotearg.c (quotearg_n_options): Likewise.
55575         Use a simpler test for size overflow.  Don't use xalloc_oversized
55576         because unsigned int might be wider than size_t (!); this suggests
55577         that we should switch from unsigned int to size_t for slot numbers.
55578
55579 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55580
55581         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55582         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55583         NetBSD kernels.  Requested by Richard Stallman.
55584
55585 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55586
55587         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55588         to allocate the returned structure.  Do not allocate a subarray,
55589         as x2nrealloc will do that.
55590         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55591         instead of xnrealloc.
55592         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55593
55594 2003-10-27  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/stdbool_.h: Better support for BeOS.
55597
55598 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55599
55600         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55601         now uses inline.
55602
55603 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55604
55605         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55606         callers that want to do their own size-overflow checking.  Include
55607         <stdbool.h>, since xalloc_oversized returns bool.
55608         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55609         to use xalloc_oversized.
55610
55611         Add two functions x2realloc, x2nrealloc, for programs that grow
55612         arrays dynamically by doubling their sizes.
55613         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55614         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55615         New functions.
55616
55617         Port to C99 semantics for 'inline' of external functions.
55618         Bug reported by Bruno Haible.
55619         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55620         with the old contents of xnmalloc.
55621         (xnmalloc, xmalloc): Use it.
55622         (xnrealloc_inline): New static inline function,
55623         with the old contents of xnrealloc.
55624         (xnrealloc, xrealloc): Use it.
55625
55626         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55627         that.
55628
55629 2003-10-26  Karl Berry  <karl@gnu.org>
55630
55631         * config/srclist.txt (COPYING.DOC): no longer available from
55632         /gd/gnuorg; don't know where the ultimate source is.
55633
55634 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55635
55636         Fix several address-calculation bugs in the hash modules,
55637         plus some minor code cleanup.
55638
55639         * lib/hash.h: Include <stdbool.h>, for bool.
55640         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55641         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55642         hash_get_n_entries, hash_get_max_bucket_length,
55643         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55644         hash_rehash): Use size_t rather than unsigned.
55645         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55646         hash_get_n_buckets_used, hash_get_n_entries,
55647         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55648         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55649         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55650         Likewise.
55651         (SIZE_MAX): Define if not defined.
55652         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55653         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55654         hash_print):
55655         Use const * when possible.
55656         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55657         (check_tuning): Fix bug: if tuning parameters were very close to
55658         0 or 1, rounding errors could have caused subscript violations.
55659         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55660         (hash_initialize): Add 'fail:' label
55661         to free table and return NULL, and use it to simplify code.
55662         Use calloc rather than clearing the storage ourself.
55663         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55664         buffer size calculations.
55665         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55666         Include <stddef.h>, for size_t.
55667         * lib/hash-pjw.c (hash_pjw): Likewise.
55668         Switch to method described by Bruno Haible.
55669         Include <limits.h>, for CHAR_BIT.
55670         (SIZE_BITS): New macro.
55671
55672 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55673
55674         * m4/getline.m4 (AM_FUNC_GETLINE):
55675         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55676         hosts.  Problem reported by Derek Robert Price in
55677         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55678         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55679         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55680
55681 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55682
55683         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55684         ceiling the allocation at NMAX bytes rather than silently
55685         discarding input bytes before NMAX is reached.  This makes
55686         a difference only if NMAX exceeds SIZE_MAX / 2.
55687
55688         * lib/obstack.c: Merge from glibc.
55689         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55690         Add libc_hidden_def (_obstack_newchunk).
55691         (_obstack_free) [! defined _LIBC]: Remove.
55692         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55693         a clone of the function body.
55694         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55695         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55696
55697         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55698         glibc.
55699         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55700         arg to memcpy.
55701
55702         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55703         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55704         Don't use lvalue casts, as GCC plans to remove support for them
55705         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55706         was also present in the non-GCC version, indicating that this
55707         code had always been buggy and had never been widely used.
55708         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55709         Use the fast variant of each macro, rather than copying the
55710         definiens of the fast variant; that way, we'll be more likely to
55711         catch future bugs in the fast variants.
55712
55713 2003-10-20  Bruno Haible  <bruno@clisp.org>
55714
55715         * modules/wait-process: New file.
55716         * MODULES.html.sh (func_all_modules): Add wait-process.
55717
55718 2003-10-20  Bruno Haible  <bruno@clisp.org>
55719
55720         * m4/wait-process.m4: New file.
55721
55722 2003-10-20  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/wait-process.h: New file, from GNU gettext.
55725         * lib/wait-process.c: New file, from GNU gettext.
55726
55727 2003-10-19  Jim Meyering  <jim@meyering.net>
55728
55729         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55730         HPUX 10.20.
55731
55732 2003-10-18  Karl Berry  <karl@gnu.org>
55733
55734         * config/config.guess: update from config.
55735
55736 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55737
55738         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55739         (getgroups): First arg is int, not size_t.
55740         Don't let 'free' mangle errno.
55741
55742 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55743
55744         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55745
55746 2003-10-16  Karl Berry  <karl@gnu.org>
55747
55748         * config/config.{guess,sub}: update from config.
55749
55750 2003-10-16  Jim Meyering  <jim@meyering.net>
55751
55752         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55753         memcpy.
55754
55755 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55756
55757         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55758         (SIZE_MAX): Remove.
55759         (new_exclude, add_exclude_file): Initial size no longer needs to
55760         be a power of 2.
55761         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55762         our own address arithmetic overflow checking.
55763
55764         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55765         (fnmatch): Do not alloca more than 2000 wide characters;
55766         instead, use malloc for large buffers.
55767         Check for address arithmetic overflow, and return -1
55768         with errno set to ENOMEM in that case.
55769         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55770         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55771         instead, return -1.  Check for address arithmetic overflow.
55772
55773 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55774
55775         Handle invalid suffixes and overflow independently, so that
55776         callers can treat them independently as needed.  Fix some bugs in
55777         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55778         suffix for a human-readable blocksize.  The major caller-visible
55779         change is the addition of a new
55780         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55781         that both overflow and suffix chars were found.
55782
55783         * lib/human.c (humblock): Don't check separately for invalid suffix
55784         char; that is xstrtoumax's job (now that its bug is fixed).
55785         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55786         INTMAX_MAX]: New macros.
55787         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55788         TYPE_MAXIMUM): New macros.
55789         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55790         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55791         if overflow occurs, as it's what __strtol does and it's more useful
55792         in practice.
55793         (__xstrtol): If __strtol reports some error other than ERANGE,
55794         reflect it to the caller as LONGINT_INVALID.  If it reports
55795         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55796         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55797         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55798         value.
55799         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55800         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55801         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55802         [defined UINTMAX_MAX]: New macros.
55803
55804 2003-10-14  Bruno Haible  <bruno@clisp.org>
55805
55806         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55807
55808 2003-10-14  Bruno Haible  <bruno@clisp.org>
55809
55810         * m4/sig_atomic_t: New file, from GNU gettext.
55811         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55812
55813 2003-10-14  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55816         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55817         Also use volatile where needed.
55818
55819 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55820
55821         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55822         Change maintainer from Bruno Haible to 'all'.
55823
55824 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55825
55826         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55827
55828 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55829
55830         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55831         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55832         and define in terms of the other primitives.
55833         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55834         (SIZE_MAX): Define if not already defined.
55835         (array_size_overflow): New function.
55836         (xalloc_die): Abort instead of exiting if 'error' returns.
55837         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55838         (xmalloc, xrealloc): Use them.
55839         (xcalloc): Check for address arithmetic overflow.
55840         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55841         a bit faster than strcpy.
55842
55843 2003-10-10  Simon Josefsson  <jas@extundo.com>
55844
55845         * modules/argp (Depends-on): Add restrict and strcase.
55846
55847 2003-10-10  Simon Josefsson  <jas@extundo.com>
55848
55849         * m4/argp.m4: Add AC_C_INLINE.
55850
55851 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55852
55853         Merge getpass from libc, plus a few fixes.
55854
55855         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55856         Include <stdbool.h>.
55857         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55858         __fsetlocking to empty.
55859         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55860         do include <bits/libc-lock.h>.
55861         Do not include <fcntl.h>; not needed.
55862         [_LIBC]: Include <wchar.h>.
55863         (NOTCANCEL_MODE): New macro.
55864         (flockfile, funlockfile) [_LIBC]: New macros.
55865         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55866         [!_LIBC]: New macros.
55867         (call_fclose): New function.
55868         (getpass): Use it.  Save tty stream separately; this simplifies the
55869         code and makes it more reliable if stdin happens to equal stdout.
55870         Invoke __fsetlocking on tty.
55871         Handle thread cancellation if needed.
55872         Namespace cleanup (use __tcgetattr, __getline).
55873         Use bool for Booleans.
55874         [USE_IN_LIBIO]: Handle wide streams.
55875         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55876         stream might go where.
55877
55878         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55879         doesn't have to include <stdio.h> before us.
55880         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55881         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55882         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55883         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55884         if not declared, so that we can use getpass.c code from libc without
55885         rewriting it.
55886         (flockfile, ftrylockfile, funlockfile): New macros.
55887
55888 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55889
55890         * modules/getpass: Depend on stdbool.
55891
55892 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55893
55894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55895
55896 2003-10-07  Karl Berry  <karl@gnu.org>
55897
55898         * config/config.{guess,sub}: update from config.
55899
55900 2003-10-06  Jim Meyering  <jim@meyering.net>
55901             Bruno Haible  <bruno@clisp.org>
55902
55903         This lets translators provide better translations for the
55904         "Written by ..." part of --version output.
55905         * lib/version-etc.h: Include stdarg.h.
55906         (version_etc_copyright): Declare as readonly.
55907         (version_etc): Make this function variadic with a NULL-terminated list
55908         of author name strings.
55909         (version_etc_va): New declaration.
55910         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55911         (version_etc_copyright): Declare as readonly.
55912         (version_etc_va): New function. Provide a different translatable string
55913         for each possible number of authors < 10. Abbreviate when there are 10
55914         authors or more.
55915         (version_etc): Make this function variadic. Call version_etc_va.
55916         Suggestion from Gary V. Vaughan.
55917
55918         * lib/long-options.h (parse_long_options): Change prototype: the
55919         authors string is moved to the end and becomes variadic.
55920         * lib/long-options.c: Include stdarg.h.
55921         (parse_long_options): Make this function variadic, too.
55922         Call version_etc_va, not version_etc.
55923
55924 2003-10-06  Bruno Haible  <bruno@clisp.org>
55925
55926         * modules/version-etc-2: Remove file.
55927         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55928
55929 2003-10-06  Bruno Haible  <bruno@clisp.org>
55930
55931         * modules/fatal-signal: New file.
55932         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55933
55934 2003-10-06  Bruno Haible  <bruno@clisp.org>
55935
55936         * m4/fatal-signal.m4: New file.
55937         * m4/signalblocking.m4: New file, from GNU gettext.
55938
55939 2003-10-06  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/version-etc-2.h: Remove file.
55942         * lib/version-etc-2.c: Remove file.
55943
55944 2003-10-06  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/fatal-signal.h: New file, from GNU gettext.
55947         * lib/fatal-signal.c: New file, from GNU gettext.
55948
55949 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55950
55951         * README: Rework advice for preventing empty .o files.
55952         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55953         not <sys/types.h>.
55954
55955 2003-10-04  Karl Berry  <karl@gnu.org>
55956
55957         * lib/argp*: update from libc.
55958
55959 2003-10-04  Karl Berry  <karl@gnu.org>
55960
55961         * config/config.{guess,sub}: update from config.
55962
55963 2003-10-02  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/lchown (Include): Add lchown.h.
55966         * modules/time_r (Include): Use "..." syntax.
55967         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55968
55969 2003-10-01  Simon Josefsson  <jas@extundo.com>
55970
55971         * MODULES.html.sh (func_all_modules): Move gethostname from section
55972         'based on' to section 'lacking' POSIX:2001.
55973
55974 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55975
55976         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55977         to output mode on the same stream.
55978
55979 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55980
55981         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55982         Fix arg typo in previous patch.
55983
55984 2003-09-28  Jim Meyering  <jim@meyering.net>
55985
55986         * lib/error.c: Correct cpp indentation.
55987
55988 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55989
55990         * modules/free: New file.
55991
55992 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55993
55994         * m4/free.m4: New file.
55995
55996 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55997
55998         * lib/minmax.h (MIN, MAX)
55999         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56000         Omit the special code that used __typeof__, since we worry that
56001         it could be more trouble than it's worth.  See:
56002         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56003         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56004
56005         * lib/free.c: New file.
56006
56007 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56008
56009         Trivial fixes to Makefile.am parts of module listings.
56010         * modules/strstr: Append strstr.h to lib_SOURCES.
56011         * modules/strcase: Likewise, for strcase.h.
56012
56013 2003-09-27  Karl Berry  <karl@gnu.org>
56014
56015         * config/mkinstalldirs: update from automake.
56016
56017 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56018
56019         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56020         (error_tail): Do not loop, reallocating temporary buffer, since
56021         the output cannot contain more wide characters than the input
56022         contains bytes, the size must be big enough already.  This avoids
56023         one potential size overflow calculation.  Check for size overflow
56024         when calculating temporary buffer size.  Free temporary buffer
56025         when done, if it was allocated with malloc; this plugs a memory
56026         leak.  Remove casts from void * to pointers, that are no longer
56027         needed now that we're assuming C89 or better.
56028
56029         Merge error changes from glibc.
56030
56031         * lib/error.c, error.h: Update copyright notice header to match glibc.
56032         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56033         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56034         Disable cancellation while printing error.
56035         * lib/error.h: Prepend __ to parameter names.
56036
56037 2003-09-26  Jim Meyering  <jim@meyering.net>
56038
56039         * lib/error.c (error_tail): Move some declarations
56040         into inner scope where the local variables are used.
56041
56042 2003-09-26  Bruno Haible  <bruno@clisp.org>
56043
56044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56045         stpncpy().
56046         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56047
56048 2003-09-26  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56051         (stpncpy): Define as alias for gnu_stpncpy.
56052         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56053
56054 2003-09-25  Simon Josefsson  <jas@extundo.com>
56055
56056         * lib/xgetdomainname.h: New file.
56057         * lib/xgetdomainname.c: New file.
56058
56059 2003-09-25  Simon Josefsson  <jas@extundo.com>
56060             Bruno Haible  <bruno@clisp.org>
56061
56062         * modules/getdomainname: New file.
56063         * modules/xgetdomainname: New file.
56064         * MODULES.html.sh (func_all_modules): Add getdomainname,
56065         xgetdomainname.
56066
56067 2003-09-25  Simon Josefsson  <jas@extundo.com>
56068             Bruno Haible  <bruno@clisp.org>
56069
56070         * m4/getdomainname.m4: New file.
56071
56072 2003-09-25  Simon Josefsson  <jas@extundo.com>
56073             Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/getdomainname.h: New file.
56076         * lib/getdomainname.c: New file.
56077
56078 2003-09-25  Karl Berry  <karl@gnu.org>
56079
56080         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56081
56082 2003-09-25  Karl Berry  <karl@gnu.org>
56083
56084         * config/install-sh: update from automake.
56085
56086 2003-09-25  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/version-etc-2: New file, from modules/version-etc with
56089         modifications.
56090         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56091
56092 2003-09-25  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56095         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56096
56097 2003-09-24  Simon Josefsson  <jas@extundo.com>
56098
56099         * modules/xgethostname: Add xgethostname.h.
56100
56101 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56102
56103         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56104         the buffer associated with the argument.  Bug reported by
56105         Simon Josefsson.
56106
56107 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56108
56109         * README: Document assumptions that 'int' is at least 32 bits
56110         wide, that integer arithmetic is 2's complement without overflow,
56111         that there are no holes in integer values, that adding sizes of
56112         two nonoverlapping objects can't overflow, and that all-bits-zero
56113         yields scalar zero.  Fix spelling and capitalization typos.
56114
56115 2003-09-19  Karl Berry  <karl@gnu.org>
56116
56117         * lib/argp.h: update from libc.
56118
56119 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56120
56121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56122         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56123         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56124
56125 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56126
56127         * gnulib-tool: Use "test -h", not "test -L", for portability
56128         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56129         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56130         (sed_extract_prog): Issue s commands one-by-one, rather than
56131         using \| in one s command.
56132
56133 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56134
56135         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56136         input error, instead of returning NULL the next time we are called
56137         (and therefore losing track of errno).
56138
56139 2003-09-16  Bruno Haible  <bruno@clisp.org>
56140
56141         * gnulib-tool (func_create_testdir): Warn about duplicated
56142         dependencies.
56143
56144 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56145
56146         * modules/argmatch, modules/fatal, modules/obstack,
56147         modules/xalloc, modules/xgethostname: Sort dependencies by
56148         importance, not alphabetically.
56149
56150 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56151
56152         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56153         fails, so that the caller gets the proper errno.
56154
56155         * lib/readutmp.c (read_utmp): Likewise.
56156         Check for fstat error.  Close stream and free storage
56157         when failing.
56158
56159 2003-09-14  Karl Berry  <karl@gnu.org>
56160
56161         * config/srclist.txt (strdup.c): disable for c89 changes.
56162
56163 2003-09-14  Jim Meyering  <jim@meyering.net>
56164
56165         * lib/getloadavg.c: Correct cpp indentation.
56166         * lib/strdup.c: Likewise.
56167         * lib/vasnprintf.c: Likewise.
56168
56169 2003-09-14  Bruno Haible  <bruno@clisp.org>
56170
56171         * modules/fwriteerror: New file.
56172         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56173
56174 2003-09-14  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/fwriteerror.h: New file.
56177         * lib/fwriteerror.c: New file.
56178
56179 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56180
56181         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56182         modules/xgethostname, modules/xalloc: Depend on exit.
56183
56184 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56185
56186         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56187
56188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56189         and AC_MINIX, too, so that their extensions are available.
56190
56191         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56192         This macro has been superseded by gl_BACKUPFILE.
56193
56194         More patches to assume C89 or better.
56195
56196         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56197
56198         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56199         unconditionally.
56200         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56201         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56202         Include <string.h>, <stdlib.h> unconditionally.
56203         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56204         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56205         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56206         headers or for string.h.
56207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56208         or strtoul.
56209
56210         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56211         headers.
56212         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56213         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56214         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56215         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56216         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56217         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56218         memcpy, memset.
56219         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56220         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56221         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56222         strtol.
56223         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56224         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56225         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56226         strtoul.
56227
56228 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56229
56230         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56231         * lib/obstack.c [!defined _LIBC]: Likewise.
56232         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56233         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56234         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56235
56236         More changes to assume C89 or better.
56237
56238         * lib/error.c (error_tail): Assume vprintf.
56239
56240         * lib/argmatch.c (getenv): Remove decl.
56241         * lib/progreloc.c (get_full_program_name): Define via prototype.
56242         * lib/setenv.c (clearenv): Likewise.
56243         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56244         needed.
56245         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56246         (malloc, memcpy): Remove decls.
56247         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56248         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56249         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56250         (memcpy): Remove macro.
56251         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56252         (__P): Remove.  All uses removed.
56253         (PTR): Remove.  All uses changed to void *.
56254         (CHAR_BIT, NULL): Remove.
56255         (spaces, zeros, memset_space, memset_zero)
56256         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56257         Remove.
56258         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56259         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56260         Define with prototype.
56261         Remove now-unnecessary prototype decl.
56262         (extra_args_spec): Assume ANSI C.  All uses changed.
56263         (extra_args_spec_iso): Remove.
56264         (my_strftime, emacs_strftimeu): Define via prototype.
56265         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56266         unconditionally.
56267         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56268         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56269         (strtoul, strtol): Remove decls.
56270         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56271         LONG_MAX): Remove.
56272         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56273         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56274         (LOCALE_PARAM_PROTO): New macro.
56275         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56276         (INTERNAL (strtol), strtol): Define with a prototype.
56277         (PARAMS): Remove.  All uses removed.
56278         * lib/tempname.c: Include <string.h> unconditionally.
56279         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56280         * lib/xgethostname.c (main): Define with a prototype.
56281         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56282         Include <stdlib.h> unconditionally.
56283         (calloc, malloc, realloc, free): Remove decls.
56284         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56285         Include <stdlib.h> unconditionally.  Sort include file names.
56286         (strtod): Remove.
56287         (xstrtod): Define with a prototype.
56288         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56289         (strtol, strtoul): Remove decls.
56290
56291 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56292
56293         More patches to assume C89 or better.
56294         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56295         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56296         string.h, memchr, STDC_HEADERS.
56297
56298 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56299
56300         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56301         Include <stdlib.h>, <string.h> unconditionally.
56302         Remove now-unnecessary cast to char *.
56303         * lib/strnlen.c: Include <string.h> unconditionally.
56304         * lib/yesno.c (yesno): Define with a prototype.
56305
56306 2003-09-11  Bruno Haible  <bruno@clisp.org>
56307
56308         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56309
56310 2003-09-10  Jim Meyering  <jim@meyering.net>
56311
56312         * lib/error.c: Correct indentation of cpp directives.
56313
56314 2003-09-10  Bruno Haible  <bruno@clisp.org>
56315
56316         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56317         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56318         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56319         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56320         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56321         <stdlib.h> and <string.h> checks.
56322         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56323         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56324
56325 2003-09-10  Bruno Haible  <bruno@clisp.org>
56326
56327         * lib/strcspn.c: Include <string.h> unconditionally.
56328         * lib/strpbrk.c: Include <string.h> unconditionally.
56329         * lib/strstr.c: Include <string.h> unconditionally.
56330         * lib/unicodeio.c: Include <string.h> unconditionally.
56331         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56332         * lib/unsetenv.c: Likewise.
56333         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56334         * lib/yesno.c: Include <stdlib.h> unconditionally.
56335         (rpmatch): Add prototype.
56336
56337 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56338
56339         More patches to assume C89 or better.
56340         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56341         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56342         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56343         or for string.h.
56344         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56345         stdlib.h.
56346         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56347         C headers.
56348         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56349         string.h.
56350         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56351         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56352         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56353         or for string.h.
56354         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56355         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56356         C headers.
56357         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56358         memcpy.
56359         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56360         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56361         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56362         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56363         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56364         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56365         string.h, free.
56366         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56367         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56368         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56369         C headers, or for string.h.
56370         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56371         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56372         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56373         headers, memory.h, stdlib.h, string.h, strings.h.
56374         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56375         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56376         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56377         strchr.
56378         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56379         headers, memory.h, string.h.
56380         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56381         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56382         free.
56383         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56384         headers.
56385         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56386         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56387         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56388         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56389         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56390
56391 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56392
56393         More K&R removal.
56394
56395         * lib/acosl.c (main): Use a prototype.
56396         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56397         tanl.c: Likewise.
56398
56399         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56400
56401         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56402         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56403         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56404         with a prototype.
56405         * lib/getopt.c (const): Remove macro.
56406         Include <string.h> unconditionally.
56407         (my_index): Remove; all uses changed to strchr.
56408         (strlen): Remove decl.
56409         (exchange): Remove forward decl; no longer needed.
56410         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56411         Define with prototype.
56412         * lib/getopt1.c (const): Remove macro.
56413         (getopt_long, getopt_long_only, main): Define with prototype.
56414
56415         * lib/getugroups.c: Include <string.h> unconditionally.
56416
56417         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56418         (getusershell, setusershell, endusershell, readname, main):
56419         Define with prototypes.
56420
56421         * lib/group-member.c: Include group-member.h first.
56422         Include <stdlib.h> unconditionally.
56423
56424         * lib/hard-locale.c: Include hard-locale.h first.
56425         Include <stdlib.h>, <string.h> unconditionally.
56426
56427         * lib/hash.c (free, malloc): Remove decls.
56428         Include <stdlib.h> unconditionally.
56429
56430         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56431         (getenv): Do not declare.
56432
56433         * lib/idcache.c: Include <string.h> unconditionally.
56434
56435         * lib/long-options.c: Include long-options.h first, to test interface.
56436         Include <stdlib.h> unconditionally.
56437
56438         * lib/makepath.c: Include makepath.h first, to test interface.
56439         Include <stdlib.h> and <string.h> unconditionally.
56440
56441         * lib/linebuffer.c: Include <stdlib.h>.
56442         (free): Remove decl.
56443
56444         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56445         stddef.h. rpl_malloc returns void *, not char *.
56446         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56447         prototype.
56448
56449         * lib/md5.h: Include <limits.h> unconditionally.
56450         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56451         (__P): Remove; all uses removed.
56452         * lib/md5.c: Include "md5.h" first.
56453         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56454         md5_buffer, md5_process_bytes, md5_process_block):
56455         Define with prototypes.
56456         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56457         * lib/sha.c: Include "sha.h" first.
56458         Include <stdlib.h>, <string.h> unconditionally.
56459
56460         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56461         * lib/memcmp.c (__ptr_t): Likewise.
56462         * lib/memrchr.c (__ptr_t): Likewise.
56463         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56464         Include <string.h> unconditionally.
56465         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56466         * lib/memchr.c: Include <stdlib.h> unconditionally.
56467         * lib/memchr.c (LONG_MAX): Remove.
56468         * lib/memrchr.c (LONG_MAX): Likewise.
56469         * lib/memchr.c (__memchr): Define via a prototype.
56470         * lib/memrchr.c (__memrchr): Likewise.
56471         * lib/memcmp.c (__P): Remove, and remove all uses.
56472         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56473         Remove forward decls; no longer needed.
56474         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56475         Use types required by C89 in prototype.
56476
56477         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56478         * lib/savedir.c: Likewise.
56479         * lib/mkdir.c (free): Remove decl.
56480         * lib/rmdir.c (rmdir): Define with a prototype.
56481         * lib/savedir.c: Include savedir.h first, to test interface.
56482
56483         * lib/mktime.c (STDC_HEADERS): Remove.
56484         Include <stdlib.h>, <string.h> unconditionally.
56485
56486         * lib/modechange.c: Include <stdlib.h> unconditionally.
56487         (malloc): Remove decl.
56488
56489         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56490         (free): Remove decl.
56491
56492         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56493         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56494         (This type really should be intptr_t, but that's a C99ism.)
56495         (_obstack_memcpy): Remove: all uses changed to memcpy.
56496         Include <string.h> unconditionally.
56497         (struct obstack): Assume __STDC__ for types of members
56498         chunkfun, freefun, extra_arg.
56499         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56500         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56501         obstack_begin, obstack_specify_allocation,
56502         obstack_specify_allocation_with_arg, obstack_chunkfun,
56503         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56504         Remove unprototyped decls and the macros that use them.
56505         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56506         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56507         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56508         (defined __STDC__ && __STDC__)]:
56509         Remove nonprototyped code.
56510         Include <stdlib.h> unconditionally.
56511         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56512         _obstack_allocated_p, _obstack_free, obstack_free,
56513         _obstack_memory_used, print_and_abort):
56514         Define using prototypes.
56515         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56516         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56517         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56518         obstack_next_free, obstack_object_size, obstack_room) [0]:
56519         Remove unused, unprototyped code.
56520
56521         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56522
56523         * lib/physmem.c (physmem_total, physmem_available, main): Define
56524         with prototypes.
56525
56526         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56527         (main): Define with a prototype.
56528
56529         * lib/posixver.c (getenv): Remove decl.
56530
56531         * lib/putenv.c (malloc): Returns void *, not char *.
56532         Include <string.h> unconditionally.
56533         (strchr, memcpy, NULL): Do not define.
56534
56535         * lib/readtokens.c: Include readtokens.h first, to test interface.
56536         Include <stdlib.h>, <string.h> unconditionally.
56537         (init_tokenbuffer): Define with a prototype.
56538
56539         * lib/regex.c (PARAMS): Remove.  All uses removed.
56540         All uses of _RE_ARGS removed, too.
56541         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56542         unconditionally.
56543         (bzero): Assume memset exists.
56544         (memcmp, memcpy, NULL): Remove.
56545         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56546         char, or assignments to local vars of type signed char.
56547         (init_syntax_once, PREFIX(extract_number_and_incr),
56548         PREFIX(print_partial_compiled_pattern),
56549         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56550         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56551         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56552         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56553         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56554         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56555         wcs_compile_range, byte_compile_range, truncate_wchar,
56556         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56557         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56558         count_mbs_length, wcs_re_match_2_internal,
56559         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56560         PREFIX(alt_match_null_string_p),
56561         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56562         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56563         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56564         now-unnecessary declaration, if any.
56565         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56566         regcomp, regexec):
56567         Remove now-unnecessary casts among pointer types.
56568         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56569
56570         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56571         (free): Remove decl.
56572
56573         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56574
56575         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56576         (free): Remove decl.
56577
56578         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56579         * lib/xgetcwd.c: Likewise.
56580
56581         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56582         (free): Remove decl.
56583
56584         * lib/strchrnul.c (strchrnul): Define with a prototype.
56585         Fix bug: c_in was not converted to char before searching.
56586
56587         The following changes are not K&R related:
56588
56589         * lib/group-member.h: Include <sys/types.h>, so that this file is
56590         self-contained.
56591         * lib/makepath.h: Likewise.
56592
56593         * lib/getusershell.c (readname, default_index, line_size, readname):
56594         Use size_t, not int, for sizes.
56595         (readname): If the size overflows, report an error instead of
56596         looping forever.
56597
56598 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56599
56600         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56601         libc.
56602
56603 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56604
56605         * README: New section: portability guidelines.
56606
56607 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56608
56609         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56610         C89 spec.
56611
56612 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56613
56614         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56615
56616 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56617
56618         Assume C89 or better; remove K&R cruft.
56619         A few of these changes were first proposed by Derek Robert Price
56620         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56621
56622         * lib/addext.c: Include <string.h> unconditionally.
56623         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56624         Don't declare getenv or malloc.
56625
56626         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56627         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56628         (NULL): Remove.
56629         (find_stack_direction, alloca): Use prototypes.
56630
56631         * lib/atexit.c (atexit): Define using a prototype.
56632
56633         * lib/basename.c, dirname.c, stripslash.c:
56634         Include <string.h> unconditionally.
56635
56636         * lib/bcopy.c: Include <stddef.h>.
56637         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56638
56639         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56640
56641         * lib/error.h (error, error_at_line, error_print_progname)
56642         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56643         * lib/error.c: Include error.h first, to check interface.
56644         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56645         (VA_START): Remove; all uses changeed to va_start.
56646         (exit, strerror): Remove decls.
56647         (error_print_progname): Prototype uncondionally.
56648         Don't include <errno.h>; no longer needed.
56649         (private_strerror): Remove.
56650         (error_tail): Always define.
56651         (error, error_at_line): Assume C89 or better; always use prototypes.
56652         * lib/fatal.c: Include "fatal.h" first, to test interface.
56653         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56654         (VA_START): Remove; all uses changed to va_start.
56655         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56656         this case.
56657         (exit): Remove decl.
56658         (fatal): Prototype unconditionally.  Assume va_start works.
56659         Abort at end, to pacify gcc.
56660
56661         * lib/euidaccess.c (main): Define with a prototype.
56662
56663         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56664
56665         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56666
56667         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56668         prototypes.
56669         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56670         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56671         (getenv): Remove decl.
56672         (fnmatch): Define using a prototype.
56673         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56674         (FCT): Define using a prototype.
56675
56676         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56677
56678         * lib/gethostname.c: Include <stddef.h>.
56679         (gethostname): Define with prototype.  Length is size_t, not int.
56680
56681 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56682
56683         Assume C89 or better; remove K&R cruft.
56684         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56685         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56686         string.h, getenv, malloc.
56687         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56688         headers.
56689         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56690         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56691         do not check for strerror.
56692         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56693         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56694         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56695         do not check for doprnt or vprintf.
56696         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56697         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56698
56699 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56700
56701         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56702         getversion.c should have been removed then, but was accidentally
56703         preserved.
56704
56705         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56706         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56707
56708 2003-09-08  Karl Berry  <karl@gnu.org>
56709
56710         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56711                 config, forget about prep.
56712
56713         * config/depcomp, missing: update from automake.
56714
56715 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56716
56717         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56718         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56719
56720 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56721
56722         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56723         copy_tm_result.  Bug reported by Simon Josefsson in
56724         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56725
56726 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56727
56728         * m4/time_r.m4: New file.
56729         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56730         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56731         is. Check for timegm declaration.
56732         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56733         Do not check for gmtime_r.
56734         Replace mktime if __mktime_internal does not exist and if mktime
56735         hasn't been replaced already.
56736
56737 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56738
56739         * lib/time_r.c, lib/time_r.h: New files.
56740
56741         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56742         __localtime_r.
56743         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56744         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56745
56746         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56747         __gmtime_r.
56748         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56749         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56750         Include <time_r.h>.
56751
56752         * lib/timegm.c: Switch to glibc implementation, with the following
56753         changes:
56754         [defined HAVE_CONFIG_H]: Include <config.h>.
56755         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56756         (__mktime_internal) [!defined _LIBC]: New decl.
56757         (__gmtime_r) [!defined _LIBC]: New macro and function.
56758         (timegm): Use a prototype, since gnulib assumes C89.
56759         Do not bother declaring tmp to be const, as it's not really usefu.
56760         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56761         (timegm): Declare only if HAVE_DECL_TIMEGM.
56762
56763 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56764
56765         * MODULES.html.sh (func_all_modules): Add time_r.
56766         * modules/time_r: New file.
56767         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56768         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56769
56770 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56771
56772         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56773         Bug reported by Lute Kamstra in
56774         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56775
56776         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56777         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56778         course with correspondingly smaller numbers for tomorrow and
56779         yesterday.  From Tadayoshi Funaba.  Originally installed into
56780         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56781         coreutils merge?).
56782
56783 2003-08-31  Simon Josefsson  <jas@extundo.com>
56784
56785         * modules/timegm: New file.
56786         * MODULES.html.sh (func_all_modules): Add timegm.
56787
56788 2003-08-31  Simon Josefsson  <jas@extundo.com>
56789
56790         * m4/timegm.m4: New file.
56791
56792 2003-08-31  Simon Josefsson  <jas@extundo.com>
56793
56794         * lib/timegm.h: New file.
56795         * lib/timegm.c: New file.  Based on
56796         wget-1.8.2/src/http.c:mktime_from_utc.
56797
56798 2003-08-31  Karl Berry  <karl@gnu.org>
56799
56800         * lib/argp.h: update from libc.
56801
56802 2003-08-28  Bruno Haible  <bruno@clisp.org>
56803
56804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56805         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56806         followed by '#define fnmatch fnmatch_posix' gives an error.
56807
56808 2003-08-28  Bruno Haible  <bruno@clisp.org>
56809
56810         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56811         warning on QNX, which defines O_BINARY to 000000.
56812
56813 2003-08-27  Jim Meyering  <jim@meyering.net>
56814
56815         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56816         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56817         would fail after 32.  Reported by Danny Levinson.  Details here:
56818         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56819
56820 2003-08-24  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56823         MSVC7 <stdio.h> is included later.
56824
56825 2003-08-22  Simon Josefsson  <jas@extundo.com>
56826
56827         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56828
56829 2003-08-20  Karl Berry  <karl@gnu.org>
56830
56831         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56832
56833 2003-08-20  Bruno Haible  <bruno@clisp.org>
56834
56835         * modules/progname: New file.
56836         * MODULES.html.sh (func_all_modules): Add progname.
56837
56838 2003-08-20  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/progname.h: New file, from GNU gettext.
56841         * lib/progname.c: New file, from GNU gettext.
56842         * lib/progreloc.c: New file, from GNU gettext.
56843
56844 2003-08-19  Jim Meyering  <jim@meyering.net>
56845
56846         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56847         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56848
56849 2003-08-19  Bruno Haible  <bruno@clisp.org>
56850
56851         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56852         more.
56853
56854 2003-08-19  Bruno Haible  <bruno@clisp.org>
56855
56856         * lib/xstrdup.c: Assume <string.h> exists.
56857
56858 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56859
56860         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56861         in makefile rules.
56862
56863 2003-08-18  Jim Meyering  <jim@meyering.net>
56864
56865         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56866         * m4/lib-ld.m4: Likewise.
56867
56868 2003-08-18  Jim Meyering  <jim@meyering.net>
56869
56870         * lib/setenv.h: Indent nested cpp directive.
56871         * lib/vasnprintf.c: Remove trailing blanks.
56872
56873 2003-08-17  Simon Josefsson  <jas@extundo.com>
56874
56875         * modules/xstrndup: New file.
56876         * MODULES.html.sh (func_all_modules): Add xstrndup.
56877
56878 2003-08-17  Simon Josefsson  <jas@extundo.com>
56879
56880         * modules/argp: Fix autoconf macro name. Add more dependencies.
56881
56882 2003-08-17  Simon Josefsson  <jas@extundo.com>
56883
56884         * m4/xstrndup.m4: New file.
56885
56886 2003-08-17  Simon Josefsson  <jas@extundo.com>
56887
56888         * m4/argp.m4: New file.
56889
56890 2003-08-17  Simon Josefsson  <jas@extundo.com>
56891             Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/xstrndup.h: New file.
56894         * lib/xstrndup.c: New file.
56895
56896 2003-08-17  Bruno Haible  <bruno@clisp.org>
56897
56898         * modules/strndup (Files, Include): Add lib/strndup.h.
56899
56900 2003-08-17  Bruno Haible  <bruno@clisp.org>
56901
56902         * modules/euidaccess (Files): Add lib/euidaccess.h.
56903
56904 2003-08-17  Bruno Haible  <bruno@clisp.org>
56905
56906         * lib/strndup.h: New file.
56907
56908 2003-08-17  Bruno Haible  <bruno@clisp.org>
56909
56910         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56911         like AC_GNU_SOURCE.
56912         * modules/extensions (configure.ac): Comment out the invocation of
56913         gl_USE_SYSTEM_EXTENSIONS.
56914
56915 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56916
56917         Merges from coreutils, etc.
56918         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56919         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56920         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56921         fixing a typo.
56922         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56923         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56924
56925 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56926
56927         Document merge from coreutils.
56928         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56929         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56930         * modules/utime: Add m4/utimes-null.m4.
56931
56932 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56933
56934         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56935         space, undoing this 2003-08-12 change:
56936         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56937
56938 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56939
56940         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56941         strtoul.c from libc, undoing this 2003-08-12 change:
56942         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56943
56944 2003-08-16  Jim Meyering  <jim@meyering.net>
56945
56946         Merges from coreutils.
56947         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56948         prefix.  Adjust cache variables similarly.  Create 500 rather than
56949         just 300 files, to exercise bug on Darwin6.5, too.
56950         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56951         $missing_dir.
56952         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56953         AM_SYS_POSIX_TERMIOS.
56954         Reported by mkc@mathdogs.com.
56955         Also change use of $am_cv_sys_posix_termios
56956         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56957         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56958         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56959         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56960         in /proc/mounts until it finds one with matching device number.  This
56961         is unnecessary when the FILE argument *is* a mount point.  No stat call
56962         is necessary in that case.  So, disable the statvfs-testing code on
56963         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56964         as RedHat bug# 84846.
56965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56966         to 1MB, so as not to render systems with no stack size limit (e.g.,
56967         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56968         Include <unistd.h>.  On some systems,
56969         it is required for the definition of _SC_PAGESIZE.
56970
56971 2003-08-16  Jim Meyering  <jim@meyering.net>
56972
56973         Merge from coreutils.
56974         * lib/xstrtoimax.c: #else #if -> #elif.
56975         * lib/xstrtoumax.c: Likewise.
56976
56977 2003-08-16  Jim Meyering  <jim@meyering.net>
56978
56979         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56980         * m4/utimes.m4: Removed.
56981         * m4/utimes-null.m4: Renamed from utimes.m4.
56982
56983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56984         to 1MB, so as not to render systems with no stack size limit (e.g.,
56985         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56986         Include <unistd.h>.  On some systems,
56987         it is required for the definition of _SC_PAGESIZE.
56988
56989 2003-08-16  Jim Meyering  <jim@meyering.net>
56990         and Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         Merges from coreutils, etc.
56993
56994         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56995         using the latest version from cvs.  This avoids problems with #line
56996         directives using a vendor (Sun) compiler.
56997         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56998         Don't set GETGROUPS_LIB here; now it's
56999         done via getgroups.m4's wrapper function.
57000         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57001         rather than just in sh-util/configure.in, so that the
57002         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57003         same.
57004         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57005         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57006         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57007         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57008         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57009         Remove code that is now done by the newly-required macros.
57010         Append $(EXEEXT) to DF_PROG.
57011         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57012         Do not invoke or require the following here,
57013         since prereq.m4 or some gnulib .m4 now does this for us:
57014         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57015         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57016         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57017         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57018         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57019         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57020         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57021         AC_FUNC_OBSTACK.
57022         Do not replace the following functions, as this is now the job
57023         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57024         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57025         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57026         atexit getpass, strdup, getpagesize.
57027         Replace 'raise'.
57028         Do not check for the following functions, as this is now the job
57029         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57030         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57031         setregid.
57032         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57033         Check for sys/sysctl.h.
57034         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57035         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57036         of checking for ssize_t ourselves.
57037
57038         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57039         Require every macro that gnulib/modules/* suggests for us.
57040         (jm_PREREQ_ADDEXT): New macro.
57041         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57042         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57043
57044         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57045         (gl_PHYSMEM): Use it.
57046         Also check for `table' function.
57047         Check for new headers and functions.
57048         Add check for sys/sysmp.h.
57049         With suggestions from Kaveh Ghazi.
57050         Ignore headers that are present but cannot be compiled.  This
57051         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57052         C 5.4.
57053
57054 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57055
57056         Document merge from coreutils.
57057         * modules/userspec: Depend on posixver.
57058         * modules/strftime: Depend on tzset.
57059
57060 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57061
57062         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57063         rather than tab, after '#' in shell-script copyright notices.
57064         Suggested by Bruno Haible.
57065
57066 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57067
57068         * config/srclist-update: Use three spaces, rather than tab, after '#'
57069         in shell-script copyright notices.  Suggested by Bruno Haible.
57070         Remove unnecessary parenthesization in regular expression.
57071
57072 2003-08-15  Jim Meyering  <jim@meyering.net>
57073
57074         Merge from coreutils.
57075         * lib/xgethostname.c: Include <stdlib.h>.
57076         (xghostname): Don't exit for anything other than memory-related
57077         failure; just return NULL.
57078         * lib/userspec.c: Include "posixver.h".
57079         (parse_user_spec): Accept `.' as a separator only
57080         in pre-POSIX-200112 mode.
57081         * lib/strtoimax.c: Use #elif rather than #else #if.
57082         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57083         Remove function, now that we can rely on a working tzset function.
57084         [!_LIBC]: Ensure that the required autoconf test has been run.
57085         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57086         Use underlying_strftime for %r.
57087         * lib/sha.c: Merge in some clean-up and optimization changes from
57088         glibc.
57089         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57090         Ensure that it is a multiple of 64.
57091         Rearrange loop exit tests so as to avoid performing an
57092         additional fread after encountering an error or EOF.
57093         * lib/realloc.c: Update copyright date.
57094
57095 2003-08-15  Jim Meyering  <jim@meyering.net>
57096         and Paul Eggert  <eggert@twinsun.com>
57097
57098         Merge from coreutils.
57099         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57100         member but strut utmpx does not.  Needed for AIX 4.3.3.
57101         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57102
57103 2003-08-15  Jim Meyering  <jim@meyering.net>
57104         and Paul Eggert  <eggert@cs.ucla.edu>
57105
57106         Merges from coreutils, etc.
57107         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57108         Require gl_FUNC_TZSET_CLOBBER.
57109         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57110         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57111         members.
57112
57113 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57114
57115         Help the merge from coreutils.
57116         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57117         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57118         * m4/tzset.m4: Use it too.
57119
57120 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57121
57122         * modules/tzset: New file.
57123
57124 2003-08-14  Jim Meyering  <jim@meyering.net>
57125
57126         Merges from coreutils.
57127         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57128         variable names, rather than @FNMATCH_H@.
57129         * modules/alloca: Likewise for $(ALLOCA_H).
57130
57131         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57132         the three copies of the literal target, `fnmatch.h'.
57133         * modules/alloca (alloca.h): Likewise.
57134
57135 2003-08-14  Jim Meyering  <jim@meyering.net>
57136
57137         Merge from coreutils.
57138         * m4/tzset.m4: New file.
57139         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57140         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57141         otherwise, AIX 5.1 systems would end up using the latter.
57142         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57143         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57144         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57145         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57146
57147 2003-08-14  Jim Meyering  <jim@meyering.net>
57148
57149         Merge from coreutils.
57150         * lib/obstack.h: Whitespace changes.
57151         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57152         and xcalloc return values.
57153         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57154         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57155         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57156         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57157         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57158         error from mntctl.
57159         Use mntctl's return value to drive the entry-processing loop, since
57160         we can't rely on the value of the vmt_length member in the last
57161         entry.  On some systems doing so could result in exhausting
57162         virtual memory.  Based in part on a patch from Mike Jetzer.
57163
57164 2003-08-14  Jim Meyering  <jim@meyering.net>
57165         and Paul Eggert  <eggert@twinsun.com>
57166
57167         Merges from coreutils, plus other fixes.
57168         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57169         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57170         for credits and details.  Thanks to Kaveh Ghazi for helping
57171         to keep these files in sync.
57172         (ARRAY_SIZE): Define it.
57173         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57174         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57175         (memcasecmp): Don't assume size_t fits in unsigned int.
57176         Remove casts and duplicate code.
57177         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57178         (memcpy): Remove definition.
57179         Merge in some clean-up and optimization changes from glibc.
57180         [BLOCKSIZE]: Move definition to top of file.
57181         Ensure that it is a multiple of 64.
57182         Rearrange loop exit tests so as to avoid performing an
57183         additional fread after encountering an error or EOF.
57184         * lib/md5.h (md5_uintptr): Define.
57185         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57186         return to the initial working directory.  Preserve errno
57187         for caller.
57188         * lib/idcache.c: Include "xalloc.h".
57189         (xmalloc, xrealloc): Remove decls.
57190         (getuser): Remove casts no longer required in C89.
57191         * lib/human.c: Include stdio.h, for sprintf.
57192         * lib/group-member.c: Include "xalloc.h".
57193         (xmalloc, xrealloc): Remove decls.
57194         (get_group_info): Remove casts no longer required in C89.
57195         * lib/getusershell.c (readname): Remove casts no longer required in
57196         C89.
57197         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57198         * lib/getline.c: Whitespace fix, from coreutils.
57199
57200 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57201
57202         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57203         Check for isascii.
57204
57205         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57206         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57207         Undo previous (whitespace-only) change.
57208
57209 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57210
57211         * lib/exclude.c: Include <ctype.h>
57212         (IN_CTYPE_DOMAIN): New macro.
57213         (is_space): New fn.
57214         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57215         and empty lines.
57216
57217         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57218         Undo previous (whitespace-only) change.
57219
57220 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57221
57222         * config/srclist-update: Change update back to the old behavior,
57223         leaving whitespace alone.  Use one 'sed' command rather than a
57224         pipeline.
57225         (fixlicense): Now a variable, not a function.
57226         (remove_trailing_blanks): Remove.
57227         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57228         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57229         Undo previous (whitespace-only) change.
57230
57231 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57232
57233         Merge from coreutils.
57234         * modules/euidaccess: Add lib_SOURCES, include for new
57235         file euidaccess.h
57236
57237 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57238
57239         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57240         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57241         Normalize leading white space and remove trailing white space.
57242
57243         Merge from coreutils
57244         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57245
57246         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57247         0.12.1.  These files are now being upgraded automatically by
57248         ../config/srclist-update.
57249
57250 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57251
57252         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57253         Normalize leading white space and remove trailing white space.
57254         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57255         notice, as per ../config/srclist-update.
57256
57257         Merge from coreutils.
57258         * lib/euidaccess.h: New file.
57259         * lib/euidaccess.c: Include it.
57260         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57261         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57262         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57263
57264 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57265
57266         * config/srclist-update: Add copyright notice.
57267         (remove_id_lines, remove_trailing_blanks): New constants.
57268         (fixfile): Use them to normalize spacing a bit in copied files.
57269         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57270         Normalize leading white space and remove trailing white space.
57271
57272         * config/texinfo.tex: Sync with texinfo.
57273
57274         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57275         strtoul.c from libc, to merge coreutils whitespace changes.
57276
57277         * config/srclist.txt: Get the following m4 files from gettext:
57278         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57279         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57280         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57281         wint_t.m4.
57282
57283 2003-08-12  Karl Berry  <karl@gnu.org>
57284
57285         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57286         been made.
57287
57288 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57289
57290         * modules/gnu-source, m4/gnu-source.m4:
57291         Remove; we're assuming Autoconf 2.54 or later now.
57292         Suggested by Bruno Haible.
57293         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57294
57295 2003-08-11  Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57298
57299 2003-08-11  Bruno Haible  <bruno@clisp.org>
57300
57301         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57302         (vasnprintf): Use it instead of wcslen.
57303
57304 2003-08-11  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57307         value to ensure that _Bool promotes to int. Use #define for _Bool when
57308         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57309
57310 2003-08-10  Karl Berry  <karl@gnu.org>
57311
57312         * lib/regex.h: update from libc (whitespace fix).
57313
57314 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57315
57316         Merge some files from coreutils.  These changes were
57317         originally made by Jim Meyering.
57318         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57319         many older Unixes require this.
57320         * lib/alloca.c (alloca): Remove cast to argument of free;
57321         no longer needed in C89.
57322         * lib/alloca_.h, regex.h: Fix white space to match
57323         what GNU indent does.
57324
57325 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57326
57327         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57328         apparently Emacs's Unicode mode got confused before my 2003-08-05
57329         checkin.
57330
57331 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57332
57333         * m4/extensions.m4: New file.
57334         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57335         Require gl_USE_SYSTEM_EXTENSIONS.
57336         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57337         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57338
57339 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57340
57341         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57342         * modules/extensions, modules/gnu-source: New files.
57343         * modules/timespec, modules/unlocked-io: Depend on extensions.
57344
57345 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57346
57347         * modules/restrict: New file.
57348         * MODULES.html.sh (func_all_modules): Add restrict.
57349         * modules/regex: Depend on restrict.
57350
57351 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57352
57353         * m4/restrict.m4: New file.
57354         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57355
57356 2003-08-07  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57359         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57360
57361 2003-08-07  Bruno Haible  <bruno@clisp.org>
57362
57363         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57364         makes the module 'getndelim2' compatible with the module 'getline'.
57365
57366 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57367
57368         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57369         byte with "\201" to avoid glitches when editing that source file
57370         with multi-gnome-terminal.
57371
57372 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57373
57374         * lib/bumpalloc.h: Remove.
57375
57376 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57377
57378         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57379         * modules/bumpalloc: Remove.
57380
57381 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57382
57383         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57384         GNU coding style.
57385
57386         Merge from coreutils.
57387         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57388         1. From glibc.
57389         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57390         from Karl Berry, implemented by Jim Meyering.
57391         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57392         from Dmitry V. Levin.
57393         Remove anachronistic cast of xrealloc.
57394         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57395         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57396         type. Otherwise, it wouldn't compile with at least /bin/cc on
57397         ymp-cray-unicos9.0.2.X.
57398         Combine two mostly-identical uses of alloca into one.
57399         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57400
57401 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57402
57403         [From Emacs.]
57404
57405         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57406         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57407         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57408         obsolete NLIST_NAME_UNION.
57409         [__GNU__]: Undef BSD and FSCALE.
57410         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57411
57412 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57413
57414         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57415         an enum type, so that it's guaranteed to promote to int.  See:
57416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57417
57418 2003-08-03  Karl Berry  <karl@gnu.org>
57419
57420         * config/depcomp: update from automake.
57421
57422 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57423
57424         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57425         (strerror): Don't assume that a printable int fits in 14 bytes.
57426
57427 2003-07-31  Bruno Haible  <bruno@clisp.org>
57428
57429         * modules/getpass-gnu: New file.
57430         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57431
57432 2003-07-31  Bruno Haible  <bruno@clisp.org>
57433
57434         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57435
57436 2003-07-24  Karl Berry  <karl@gnu.org>
57437
57438         * config/missing: update from automake.
57439
57440 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57441             Bruno Haible  <bruno@clisp.org>
57442
57443         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57444         * lib/getline.c (getline, getdelim): Likewise.
57445         Remove _GNU_SOURCE define; now it's defined in config.h through
57446         m4/getline.m4.
57447
57448 2003-07-23  Karl Berry  <karl@gnu.org>
57449
57450         * config/config.sub: update from prep.
57451
57452 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57453
57454         * modules/xalloc (Depends-on): Add exitfail.
57455         * modules/xmemcoll: Likewise.
57456
57457 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57458
57459         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57460         over-parenthesization in macros.
57461
57462         Sync with coreutils.
57463
57464         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57465         required by C99.
57466
57467         Use `exit_failure' for xalloc and xmemcoll instead of their own
57468         private exit-failure variables.
57469         * lib/xalloc.h (xalloc_exit_failure): Remove.
57470         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57471         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57472         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57473         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57474         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57475
57476 2003-07-20  Jim Meyering  <jim@meyering.net>
57477
57478         * modules/closeout (Depends-on): Add exitfail.
57479         Suggestion from Bruno Haible.
57480
57481 2003-07-19  Karl Berry  <karl@gnu.org>
57482
57483         * config/config.sub: update from prep.
57484
57485 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57486
57487         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57488         Remove.
57489         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57490         to test that it can stand by itself.  Include "exitfail.h".
57491         Clients should set exit_failure instead.
57492         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57493
57494 2003-07-18  Bruno Haible  <bruno@clisp.org>
57495
57496         * modules/getndelim2: New file.
57497         * modules/getline: Share files with module getndelim2.
57498         * modules/getnline: Depend on getndelim2 instead of sharing files with
57499         it. Add getnline.c to lib_SOURCES.
57500         * MODULES.html.sh (func_all_modules): Add getndelim2.
57501
57502 2003-07-18  Bruno Haible  <bruno@clisp.org>
57503
57504         * m4/getndelim2.m4: New file.
57505         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57506         invoke gl_PREREQ_GETNDELIM2.
57507         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57508         gl_PREREQ_GETNDELIM2.
57509         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57510         gl_GETNDELIM2.
57511
57512 2003-07-18  Bruno Haible  <bruno@clisp.org>
57513
57514         * lib/getndelim2.h: New file.
57515         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57516         getndelim2.h.
57517         (getndelim2): Make non-static. Change return type to ssize_t.
57518         * lib/getline.h: Change argument names.
57519         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57520         * lib/getnline.c: Include getndelim2.h.
57521
57522 2003-07-18  Andreas Schwab  <schwab@suse.de>
57523
57524         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57525
57526 2003-07-17  Karl Berry  <karl@gnu.org>
57527
57528         * config/config.sub: update from prep.
57529
57530 2003-07-17  Bruno Haible  <bruno@clisp.org>
57531
57532         * modules/getnline: New file.
57533         * modules/getline: Add lib/getndelim2.c to source file list.
57534         * MODULES.html.sh (func_all_modules): Add getnline.
57535
57536 2003-07-17  Bruno Haible  <bruno@clisp.org>
57537
57538         * m4/getnline.m4: New file.
57539
57540 2003-07-17  Bruno Haible  <bruno@clisp.org>
57541
57542         * m4/Makefile.am.in: Remove file.
57543         * m4/Makefile.am: Remove file.
57544         * m4/Makefile.in: Remove file.
57545
57546 2003-07-17  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/getnline.h: New file.
57549         * lib/getnline.c: New file.
57550         * lib/getndelim2.c: New file, extracted from getline.c.
57551         (getndelim2): Renamed from getdelim2, with added nmax argument.
57552         * lib/getline.c: Include getndelim2.c.
57553         (getdelim2): Moved out to getndelim2.c.
57554         (getline, getdelim): Update.
57555
57556 2003-07-17  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/Makefile.am: Remove file.
57559         * lib/Makefile.in: Remove file.
57560
57561 2003-07-17  Bruno Haible  <bruno@clisp.org>
57562
57563         * configure.in: Remove file.
57564         * Makefile.in: Remove file.
57565
57566 2003-07-17  Bruno Haible  <bruno@clisp.org>
57567
57568         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57569
57570 2003-07-16  Karl Berry  <karl@gnu.org>
57571
57572         * config/srclist-update: was running fixlicense twice, which caused
57573                 texinfo.tex to be nullified for some reason.  Simplify,
57574                 $gplsrc is no longer needed as far as I can see?
57575
57576 2003-07-16  Jim Meyering  <jim@meyering.net>
57577
57578         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57579
57580 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57581
57582         * config/srclist.txt: Get the following files from gettext-runtime/intl
57583         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57584         ref-del.sin.  From Bruno Haible.
57585         * config/srclist-update (fixfile): Change grep pattern again, since the
57586         previous fix didn't work (there was another trailing $).  Use
57587         '[$]' to escape the $s.
57588
57589 2003-07-15  Karl Berry  <karl@gnu.org>
57590
57591         * lib/vasnprintf.c: update from gettext.
57592
57593 2003-07-15  Karl Berry  <karl@gnu.org>
57594
57595         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57596         gets expanded when surrounded by '$'.
57597
57598 2003-07-15  Jim Meyering  <jim@meyering.net>
57599
57600         * modules/save-cwd: Don't depend on error.  From Derek Price.
57601
57602 2003-07-15  Jim Meyering  <jim@meyering.net>
57603
57604         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57605
57606 2003-07-14  Simon Josefsson  <jas@extundo.com>
57607
57608         * modules/mempcpy: New file.
57609         * MODULES.html.sh (func_all_modules): Add mempcpy.
57610
57611 2003-07-14  Simon Josefsson  <jas@extundo.com>
57612
57613         * m4/mempcpy.m4: New file.
57614
57615 2003-07-14  Simon Josefsson  <jas@extundo.com>
57616
57617         * lib/mempcpy.h: New file.
57618         * lib/mempcpy.c: New file.
57619
57620 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57621
57622         * modules/getdate, modules/posixtm: Depend on mktime.
57623
57624 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57625
57626         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57627         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57628         unicodeio.c, unicodeio.h, unlocked-io.h:
57629         Switch from LGPL to GPL.
57630
57631 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57632
57633         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57634         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57635         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57636         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57637         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57638         updated automatically by ../config/srclist-update.  This changes
57639         their license from LPGL to GPL.
57640
57641 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57642
57643         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57644         assumed to refer to the root of the most recent stable gettext version.
57645         * config/srclistvars.sh: Add defaults for eggert.
57646         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57647         Match "This program" as well as "The program".  This is needed
57648         for gettext.
57649
57650 2003-07-14  Jim Meyering  <jim@meyering.net>
57651
57652         Don't emit diagnostics.  Let callers do that.
57653         * lib/save-cwd.c: Don't include "error.h".
57654         (save_cwd): Don't call error.  Ensure that errno is valid
57655         when returning nonzero.
57656
57657         * lib/save-cwd.h (restore_cwd): Update prototype.
57658         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57659         Simplify.  Don't call error upon failure.  Let callers do that.
57660         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57661         when auditing is enabled.  But don't bother updating the #if.
57662
57663 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57664
57665         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57666         it breaks C++ compilation.
57667         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57668
57669 2003-07-10  Simon Josefsson  <jas@extundo.com>
57670
57671         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57672
57673 2003-07-10  Jim Meyering  <jim@meyering.net>
57674
57675         * m4/clock_time.m4: Remove trailing blank.
57676         * m4/intmax_t.m4: Likewise.
57677
57678 2003-07-10  Jim Meyering  <jim@meyering.net>
57679
57680         * lib/vasnprintf.c: Remove trailing blanks.
57681         Make cpp indentation consistent.
57682
57683 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57684
57685         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57686         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57687         Switch from LGPL to GPL.
57688
57689 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57690
57691         * config/srclist.txt: Sort sublists.  Add
57692         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57693         that differ from gnulib for one reason or another; we'd like this list
57694         to be smaller but for now let's document what we have.
57695
57696 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57697
57698         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57699         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57700         and sweeter "eval x=$x".
57701         * config/srclist.txt: Get lib/argp* from glibc.
57702
57703 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57704
57705         * lib/mktime.c: Fix some boundary cases and remove need for floating
57706         point.
57707
57708         Issue a compile-time diagnostic if time_t is floating point, or if
57709         two's complement arithmetic is not in effect, or if arithmetic
57710         right shift does not propagate the sign.  These assumptions were
57711         all in the original code but they weren't checked.
57712
57713         (TIME_T_MIDPOINT, verify): New macros.
57714         (__isleap): Remove; it has integer overflow problems.
57715         (leapyear): New function, without those problems.
57716         (ydhms_tm_diff): Remove; splitting into two parts.
57717         (ydhms_diff): New function, containing the arithmetic part of
57718         the old ydhms_tm_diff function.  Issue a compile-time
57719         diagnostic if we are not using C99 integer division.
57720         Avoid casts when possible.
57721         (guess_time_tm): New function, containing the checking part of
57722         the old ydhms_tm_diff function.  Return the new value, rather than
57723         the difference between it and the old.  Accept a new argument T
57724         so that *T specifies the old value.  Check for overflow in the result.
57725
57726         (__mktime_internal): Use a time_t offset, not a long int offset.
57727         This undoes the 2003-06-04 change, which is no longer needed now
57728         that we have better overflow checking.
57729         (localtime_offset): Likewise.
57730
57731         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57732         and long are 64-bit but int is only 32-bit.
57733         (ydhms_diff): Use long int to store year1 and yday1.
57734         Issue a compile-time diagnostic if long int is not wide enough.
57735
57736         (__mktime_internal): Use long int to store adjusted year and yday.
57737         Use plain C rather than preprocessor commands, if that doesn't
57738         affect efficiency.
57739         Check for overflow (and try to repair) after each probe
57740         rather than checking only at the very end.  This avoids some bugs
57741         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57742         does not equal GMT offset at maximum time).
57743         Use integer to check for overflow rather than floating point; this
57744         is more portable to non-IEEE hosts, and is a tad faster.
57745         When we detect that we are oscillating between two values,
57746         don't check whether tm_isdst has the requested value, since
57747         we already know the answer.  When tm_isdst has the wrong value,
57748         use a different heuristic to find the right one, based on the
57749         extreme values actually observed in practice in tz2003a,
57750         rather than the (overly optimistic) "previous 3 calendar quarters".
57751
57752         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57753         "T const" to accommodate glibc style.
57754         (check_result): Use less-confusing report format.  "long" -> "long int.
57755         (main): Likewise.
57756         Don't loop if the iteration overflows time_t.
57757         Allow a negative step in the iteration.
57758
57759 2003-07-06  Karl Berry  <karl@gnu.org>
57760
57761         * config/depcomp: update from automake.
57762         * config/config.sub: update from prep.
57763
57764 2003-07-03  Karl Berry  <karl@gnu.org>
57765
57766         * config/config.guess: update from prep.
57767
57768 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57769
57770         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57771         xreadlink.c now includes it unconditionally.
57772
57773 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57774
57775         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57776         having it depend on HAVE_SYS_TYPES_H.
57777
57778 2003-07-01  Bruno Haible  <bruno@clisp.org>
57779
57780         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57781         <sys/types.h> should be sufficient.
57782         Reported by Paul Eggert.
57783
57784 2003-06-26  Karl Berry  <karl@gnu.org>
57785
57786         * config/depcomp: update from automake.
57787
57788 2003-06-26  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/human: Depend on module stdbool.
57791
57792 2003-06-25  Bruno Haible  <bruno@clisp.org>
57793
57794         * modules/readlink: New file.
57795         * modules/xreadlink: Depend on it.
57796         * MODULES.html.sh (func_all_modules): Add readlink.
57797
57798 2003-06-25  Bruno Haible  <bruno@clisp.org>
57799
57800         * m4/readlink.m4: New file.
57801
57802 2003-06-25  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/readlink.c: New file.
57805
57806 2003-06-22  Karl Berry  <karl@gnu.org>
57807
57808         * config/srclist.txt: update mkinstalldirs from automake.
57809         * config/mkinstalldirs: update.
57810
57811 2003-06-22  Bruno Haible  <bruno@clisp.org>
57812
57813         Portability to mingw32.
57814         * m4/ssize_t.m4: New file, from GNU gettext.
57815         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57816         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57817
57818 2003-06-22  Bruno Haible  <bruno@clisp.org>
57819
57820         * modules/safe-read: Add m4/ssize_t.m4.
57821         * modules/xreadlink: Add m4/ssize_t.m4.
57822
57823 2003-06-20  Bruno Haible  <bruno@clisp.org>
57824
57825         Assume C89, so PARAMS isn't needed.
57826         * lib/unicodeio.h (PARAMS): Remove.
57827         * lib/unicodeio.c: Don't use PARAMS.
57828
57829 2003-06-18  Karl Berry  <karl@gnu.org>
57830
57831         * config/config.{guess,sub}: update from prep.
57832
57833 2003-06-18  Jim Meyering  <jim@meyering.net>
57834
57835         Merge changes from coreutils.
57836         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57837         Remove explicit declarations of xmalloc and realloc.
57838         Include xalloc.h.
57839         (read_utmp): Remove anachronistic cast of xmalloc.
57840
57841 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57842
57843         Assume C89, so PARAMS isn't needed.
57844         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57845         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57846         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57847         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57848         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57849         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57850         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57851         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57852         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57853         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57854         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57855         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57856         no longer needed. Anyway, config.h should always be included before any
57857         other file.
57858
57859 2003-06-11  Simon Josefsson  <jas@extundo.com>
57860
57861         * modules/sysexits: New file.
57862         * MODULES.html.sh (func_all_modules): Add sysexits.
57863
57864 2003-06-11  Simon Josefsson  <jas@extundo.com>
57865
57866         * lib/sysexit_.h: New file.
57867
57868 2003-06-11  Derek Price  <derek@ximbiot.com>
57869
57870         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57871         necessary.
57872
57873 2003-06-11  Bruno Haible  <bruno@clisp.org>
57874
57875         * m4/sysexits.m4: New file.
57876
57877 2003-06-10  Simon Josefsson  <jas@extundo.com>
57878
57879         * lib/argp.h: New file, from glibc.
57880         * lib/argp-ba.c: New file, from glibc.
57881         * lib/argp-eexst.c: New file, from glibc.
57882         * lib/argp-fmtstream.c: New file, from glibc.
57883         * lib/argp-fmtstream.h: New file, from glibc.
57884         * lib/argp-fs-xinl.c: New file, from glibc.
57885         * lib/argp-help.c: New file, from glibc.
57886         * lib/argp-namefrob.h: New file, from glibc.
57887         * lib/argp-parse.c: New file, from glibc.
57888         * lib/argp-pv.c: New file, from glibc.
57889         * lib/argp-pvh.c: New file, from glibc.
57890         * lib/argp-xinl.c: New file, from glibc.
57891
57892 2003-06-10  Simon Josefsson  <jas@extundo.com>
57893
57894         * modules/strchrnul: New file.
57895
57896 2003-06-10  Simon Josefsson  <jas@extundo.com>
57897
57898         * modules/argp: New file.
57899
57900 2003-06-10  Simon Josefsson  <jas@extundo.com>
57901
57902         * m4/strchrnul.m4: New file.
57903
57904 2003-06-10  Simon Josefsson  <jas@extundo.com>
57905
57906         * lib/strchrnul.h: New file.
57907         * lib/strchrnul.c: New file.
57908
57909 2003-06-10  Bruno Haible  <bruno@clisp.org>
57910
57911         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57912
57913 2003-06-07  Karl Berry  <karl@gnu.org>
57914
57915         * config/config.{guess,sub}: update from prep.
57916
57917 2003-06-07  Jim Meyering  <jim@meyering.net>
57918
57919         * modules/strtod: Use $(...) notation, not @...@ for
57920         AC_REPLACE'd variables.
57921         * modules/localcharset: Likewise.
57922
57923 2003-06-07  Jim Meyering  <jim@meyering.net>
57924
57925         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57926         in place of my name in the copyright comment.
57927         Remove definition and uses of __P.
57928
57929         From coreutils.
57930         * lib/stat.c: Don't declare xmalloc explicitly.
57931         Instead, include "xalloc.h".
57932         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57933         xrealloc, and xcalloc return values.
57934         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57935         Improve comment.
57936         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57937
57938 2003-06-07  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57941         avoid AC_CONFIG_LINKS.
57942         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57943         fnmatch.h, to avoid AC_CONFIG_LINKS.
57944         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57945
57946 2003-06-07  Bruno Haible  <bruno@clisp.org>
57947
57948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57949         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57950         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57951         directory.
57952         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57953         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57954         directory.
57955
57956 2003-06-06  Jim Meyering  <jim@meyering.net>
57957
57958         Merge from coreutils.
57959         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57960         Consolidate declarations and initializations of *_base* locals.
57961
57962         Merge from coreutils.
57963         This avoids a core dump on systems without GNU putenv,
57964         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57965         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57966         (unsetenv): New static function, from GNU libc.
57967         (rpl_putenv): Use it.
57968
57969         * lib/modechange.c: Remove trailing blanks.
57970
57971         Merge from coreutils.
57972         * lib/fsusage.c: Remove declaration of statfs.
57973         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57974
57975         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57976
57977 2003-06-06  Jim Meyering  <jim@meyering.net>
57978
57979         * lib/stdbool_.h: Renamed from stdbool.h.in.
57980
57981 2003-06-06  Jim Meyering  <jim@meyering.net>
57982             Bruno Haible  <bruno@clisp.org>
57983
57984         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57985         Adjust Makefile.am snippet not to redirect directly to target.
57986         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57987
57988 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57989
57990         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57991         mismatch, look in future quarters as well as past.  This fixes a
57992         bug when processing fall-backwards gaps immediately after a long
57993         period of daylight-saving time.
57994
57995         * lib/mktime.c: Assume freestanding C89 or better.
57996         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57997         (__P): Remove; not used.
57998         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57999         (mktime, not_equal_tm, print_tm, check_result,
58000         main): Use prototypes.  Use const * where appropriate.
58001         (main): Fix typo in testing code that uncovered by above changes.
58002         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58003
58004 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58005
58006         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58007         locale.h, localeconv.  This merges changes from coreutils.
58008
58009         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58010         It can be removed after the next Autoconf is released.
58011         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58012         needed.
58013
58014 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58015
58016         * lib/mktime.c: Fix Debian bug 177940
58017         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58018         (localtime_offset): Now long int, not time_t, because we want it
58019         to be guaranteed to be signed.  All uses changed.
58020         (__mktime_internal): If overflow would occur when adding offset,
58021         don't add it.
58022
58023         Merge 'human' changes from coreutils.  Rewrite to support
58024         locale-specific notations like thousands separators.
58025         * lib/human.c: Simplify authorship notice.
58026         Include human.h immediately after config.h.
58027         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58028         <limits.h>: Do not include, since human.h does.
58029         (SIZE_MAX, UINTMAX_MAX): New macros.
58030         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58031         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58032         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58033         (power_letter): Renamed from suffixes.
58034         (generate_suffix_backwards): Remove.
58035         (adjust_value): Now takes int style (because of human.h changes)
58036         and long double value (for greater precision on some platforms).
58037         (group_number): New function.
58038         (human_readable): Use it.  Use integer options, not enum.
58039         Put the options before the sizes in the arg list.
58040         Support all the new options.
58041         The old human_readable function has been removed;
58042         use inttostr.h instead.
58043         (human_readable, default_block_size, humblock):
58044         Use uintmax_t, not int, for block sizes.
58045         (human_readable_inexact, block_size_types): Remove.
58046         (block_size_opts): New constant.
58047         (human_options): Renamed from human_block_size, with new signature
58048         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58049         * lib/human.h: Add copyright and authorship notice.
58050         Include <limits.h> and <stdbool.h> unconditionally.
58051         (PARAMS): Remove.  All uses removed.
58052         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58053         (enum human_inexact_style): Remove tag; now a nameless enum.
58054         (human_floor, human_ceiling, human_round_to_even): Now have
58055         values 2, 0, 1 rather than -1, 1, 0.
58056         (human_group_digits, human_suppress_point_zero, human_autoscale,
58057         human_base_1024, human_SI, human_B): New constants.
58058         (human_readable_inexact, human_block_size): Remove.
58059         (human_readable): Size args are now uintmax_t, not int.
58060         (human_options): New decl.
58061
58062         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58063         unnecessary now that we assume C89 or better.  This change
58064         imported from coreutils.
58065
58066         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58067         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58068         in the 2003-05-30 sync from glibc.
58069
58070         .h files should stand alone, but we shouldn't include <sys/types.h>
58071         if we can get away with just <stddef.h>.
58072
58073         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58074         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58075         rather than <sys/types.h>, as we merely need size_t.
58076         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58077         to get size_t.
58078         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58079         Include <stdio.h>, to get FILE.
58080         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58081         memcasecmp.h has included <stddef.h> and all we need is size_t.
58082         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58083         our interface, instead of including <sys/types.h>
58084
58085 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58086
58087         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58088         now, as glibc mktime is buggy on non-glibc systems.
58089
58090 2003-06-03  Karl Berry  <karl@gnu.org>
58091
58092         * config/config.sub: update from prep.
58093
58094 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58095
58096         [from coreutils]
58097         Fix some minor time-related bugs with POSIX time arguments.
58098         Some valid time stamps were being rejected (notably -1, and
58099         time stamps before 1900 on 64-bit hosts).  And some invalid
58100         time stamps were being accepted, e.g. September 31.
58101
58102         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58103         that we can return (time_t) -1 successfully.
58104         * lib/posixtm.c: Likewise.
58105         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58106         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58107         (t): Remove static var.
58108         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58109         of static var.  All uses changed.
58110         (year): Do not reject years before 1900; they can occur with
58111         64-bit time_t.
58112         (posix_time_parse): Do not check for out-of-range components;
58113         that is now the caller's responsibility, since our checks were
58114         only approximations.
58115         (posixtime): Use mktime to check for out-of-range components,
58116         since it knows them exactly.
58117         If mktime returns (time_t) -1, check whether an error actually occurred
58118         by invoking localtime on -1.
58119         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58120         posixtime failures better.
58121         Improve the test data (in comments only).
58122
58123 2003-06-02  Karl Berry  <karl@gnu.org>
58124
58125         * config/mkinstalldirs (version): new variable.
58126         (--version): new option.
58127         (usage): improve message.
58128
58129 2003-05-30  Karl Berry  <karl@gnu.org>
58130
58131         * lib/mktime.c: update from libc.
58132
58133 2003-05-30  Bruno Haible  <bruno@clisp.org>
58134
58135         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58136         * config/config.rpath: Upgrade to gettext-0.12.1.
58137
58138 2003-05-30  Bruno Haible  <bruno@clisp.org>
58139
58140         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58141         * m4/nls.m4: New file, from gettext-0.12.1.
58142         * m4/po.m4: New file, from gettext-0.12.1.
58143         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58144
58145 2003-05-30  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58148         * lib/localcharset.h: Likewise.
58149         * lib/localcharset.c: Likewise.
58150
58151 2003-05-29  Karl Berry  <karl@gnu.org>
58152
58153         * config/config.rpath: update from gettext.
58154
58155 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58156
58157         Assume the headers required for C89 freestanding compilers.
58158         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58159         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58160         * m4/human.m4 (gl_HUMAN): Likewise.
58161         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58162         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58163         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58164         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58165         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58166         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58167
58168 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58169
58170         Assume the headers required for C89 freestanding compilers.
58171         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58172         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58173         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58174         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58175         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58176         define, since <limits.h> is guaranteed to do that.
58177         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58178         * lib/exclude.c: Include <stdbool.h> unconditionally.
58179         * lib/tempname.c: Include <stddef.h> unconditionally.
58180         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58181         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58182         <stddef.h> does that.
58183         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58184         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58185         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58186         needed.
58187         * lib/xstrtol.c: Likewise.
58188         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58189         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58190
58191         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58192         warnings on some platforms.
58193
58194         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58195         arbitrarily.
58196
58197 2003-05-26  Jim Meyering  <jim@meyering.net>
58198
58199         Merge in a change from coreutils:
58200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58201         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58202         that condition, rather than `-1' which is slightly misleading.
58203         Change the name of the cache variable to have the gl_ prefix.
58204         Prompted by a patch from Richard Dawe for DJGPP.
58205
58206 2003-05-24  Karl Berry  <karl@gnu.org>
58207
58208         * config/config.guess: update from prep.
58209
58210 2003-05-22  Karl Berry  <karl@gnu.org>
58211
58212         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58213
58214 2003-05-20  Karl Berry  <karl@gnu.org>
58215
58216         * config/config.guess: update from prep.
58217
58218 2003-05-18  Karl Berry  <karl@gnu.org>
58219
58220         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58221         might actually be set by the user.
58222
58223         * config/depcomp, install-sh, mdate-sh: update from automake.
58224
58225 2003-05-17  Bruno Haible  <bruno@clisp.org>
58226
58227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58228         invalid expansion for AC_EGREP_CPP.
58229         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58230         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58231         Suggested by Akim Demaille <akim@epita.fr> in
58232         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58233
58234 2003-05-12  Jim Meyering  <jim@meyering.net>
58235
58236         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58237         the space-padded-by-default conversion specifiers, %e, %k, %l.
58238
58239 2003-05-12  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58242         the string is longer than 4 KB.
58243
58244 2003-05-11  Karl Berry  <karl@gnu.org>
58245
58246         * config/config.{guess,sub}: update from prep.
58247
58248 2003-05-09  Bruno Haible  <bruno@clisp.org>
58249
58250         * modules/error: Add m4/strerror_r.m4 to file list.
58251
58252 2003-05-03  Bruno Haible  <bruno@clisp.org>
58253
58254         Upgrade to Unicode-4.0.
58255         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58256         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58257         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58258         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58259         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58260         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58261         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58262         Change width of U+E0100..U+E01EF from 1 to 0.
58263
58264 2003-04-25  Jim Meyering  <jim@meyering.net>
58265
58266         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58267         of type size_t, not int.
58268
58269 2003-04-25  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/copy-file.c: Include <stddef.h>, for size_t.
58272
58273 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58274
58275         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58276         code which expansion is under static control.  Patch imported from
58277         Akim Demaille's patch to Bison; see
58278         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58279
58280 2003-04-14  Bruno Haible  <bruno@clisp.org>
58281
58282         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58283
58284 2003-04-11  Jim Meyering  <jim@meyering.net>
58285
58286         Merge changes from Coreutils.
58287
58288         2003-03-22  Jim Meyering  <jim@meyering.net>
58289
58290         * lib/strftime.c (widen): Cast alloca return value to proper type.
58291
58292         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58293
58294         From GNU libc.
58295         * lib/strftime.c (my_strftime): Handle very large width
58296         specifications for numeric values correctly.  Improve checks for
58297         overflow.
58298
58299         2003-01-19  Jim Meyering  <jim@meyering.net>
58300
58301         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58302         definitions.
58303         (nl_get_alt_digit) [! defined my_strftime]: Define.
58304         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58305         _nl_get_alt_digit and _nl_get_walt_digit.
58306
58307         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58308         libc. These changes have no effect outside of _LIBC.
58309
58310 2003-04-10  Bruno Haible  <bruno@clisp.org>
58311
58312         * modules/findprog: New file.
58313         * MODULES.html.sh (func_all_modules): Add it.
58314
58315 2003-04-10  Bruno Haible  <bruno@clisp.org>
58316
58317         * m4/findprog.m4: New file.
58318         * m4/eaccess.m4: New file.
58319
58320 2003-04-10  Bruno Haible  <bruno@clisp.org>
58321
58322         * lib/findprog.h: New file, from GNU gettext.
58323         * lib/findprog.c: New file, from GNU gettext.
58324
58325 2003-04-05  Jim Meyering  <jim@meyering.net>
58326
58327         Merge changes from Coreutils.
58328
58329         * lib/exclude.h (PARAMS): Remove definition and uses.
58330         * lib/exclude.c: Remove uses of `PARAMS'.
58331
58332         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58333         Add test-cases for DOS filenames. Declare program_name.
58334         (main): Set up program_name.  Patch by Rich Dawe.
58335
58336         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58337         error from mntctl.
58338         Use mntctl's return value to drive the entry-processing loop, since
58339         we can't rely on the value of the vmt_length member in the last
58340         entry.  On some systems doing so could result in exhausting
58341         virtual memory.  Based in part on a patch from Mike Jetzer.
58342
58343 2003-04-04  Bruno Haible  <bruno@clisp.org>
58344
58345         * modules/linebreak: New file.
58346         * MODULES.html.sh (func_all_modules): Add it.
58347
58348 2003-04-04  Bruno Haible  <bruno@clisp.org>
58349
58350         * m4/linebreak.m4: New file.
58351
58352 2003-04-04  Bruno Haible  <bruno@clisp.org>
58353
58354         * lib/linebreak.h: New file, from GNU gettext.
58355         * lib/linebreak.c: New file, from GNU gettext with slight
58356         modifications.
58357         * lib/lbrkprop.h: New file, from GNU gettext.
58358
58359 2003-04-03  Bruno Haible  <bruno@clisp.org>
58360
58361         * modules/utf8-ucs4: New file.
58362         * modules/utf16-ucs4: New file.
58363         * modules/ucs4-utf8: New file.
58364         * modules/ucs4-utf16: New file.
58365         * MODULES.html.sh (func_all_modules): Add them.
58366
58367 2003-04-03  Bruno Haible  <bruno@clisp.org>
58368
58369         * m4/utf-ucs4.m4: New file.
58370         * m4/ucs4-utf.m4: New file.
58371
58372 2003-04-03  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/utf8-ucs4.h: New file, from GNU gettext.
58375         * lib/utf16-ucs4.h: New file, from GNU gettext.
58376         * lib/ucs4-utf8.h: New file, from GNU gettext.
58377         * lib/ucs4-utf16.h: New file, from GNU gettext.
58378
58379 2003-04-02  Bruno Haible  <bruno@clisp.org>
58380
58381         * modules/binary-io: New file.
58382         * MODULES.html.sh (func_all_modules): Add it.
58383
58384 2003-04-02  Bruno Haible  <bruno@clisp.org>
58385
58386         * lib/binary-io.h: New file, from GNU gettext.
58387
58388 2003-04-01  Bruno Haible  <bruno@clisp.org>
58389
58390         * modules/pathname: New file.
58391         * MODULES.html.sh (func_all_modules): Add it.
58392
58393 2003-04-01  Bruno Haible  <bruno@clisp.org>
58394
58395         * lib/pathname.h: New file, from GNU gettext.
58396         * lib/concatpath.c: New file, from GNU gettext.
58397
58398 2003-03-30  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58401
58402 2003-03-30  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58405         function chown() doesn't exist.
58406
58407 2003-03-28  Bruno Haible  <bruno@clisp.org>
58408
58409         * modules/copy-file: New file.
58410         * MODULES.html.sh (func_all_modules): Add it.
58411
58412 2003-03-28  Bruno Haible  <bruno@clisp.org>
58413
58414         * m4/copy-file.m4: New file.
58415
58416 2003-03-28  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/copy-file.h: New file, from GNU gettext.
58419         * lib/copy-file.c: New file, from GNU gettext.
58420
58421 2003-03-18  Jim Meyering  <jim@meyering.net>
58422
58423         * lib/quote.c (quote_n): Fix typo in comment.
58424
58425 2003-03-18  Bruno Haible  <bruno@clisp.org>
58426
58427         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58428         checking.
58429         * m4/onceonly_2_57.m4: Likewise.
58430
58431 2003-03-17  Bruno Haible  <bruno@clisp.org>
58432
58433         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58434         (m4_quote): Remove macro.
58435         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58436
58437 2003-03-14  Jim Meyering  <jim@meyering.net>
58438
58439         Merge changes from Coreutils.
58440         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58441         to be const, in order to avoid warnings.
58442         (obstack_room): Likewise.
58443         (obstack_empty_p): Likewise.
58444
58445 2003-03-14  Bruno Haible  <bruno@clisp.org>
58446
58447         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58448         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58449
58450 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58451
58452         Merge changes from Bison.
58453         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58454         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58455         when compiling Bison 1.875's `bitset bset = obstack_alloc
58456         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58457         * lib/hash.c: Include <stdbool.h> unconditionally.
58458
58459 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58460
58461         * m4/onceonly.m4 (m4_quote): New macro.
58462         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58463         Quote AC_FOREACH variable-expansions properly.
58464
58465 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58466
58467         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58468
58469 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58470
58471         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58472         Reported by Bruce Becker; see:
58473         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58474
58475 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58476             Bruno Haible  <bruno@clisp.org>
58477
58478         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58479         Reported by John Hughes, see
58480         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58481
58482 2003-02-20  Bruno Haible  <bruno@clisp.org>
58483
58484         * MODULES.html.sh (func_all_modules): Add poll.
58485
58486 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58487
58488         * modules/poll: New file.
58489
58490 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58491
58492         * lib/poll_.h: New file.
58493         * lib/poll.c: New file.
58494
58495 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58496
58497         * m4/poll.m4: New file.
58498
58499 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58500
58501         * modules/mathl: New file.
58502
58503 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58504
58505         * lib/mathl.h: New file.
58506         * lib/acosl.c: New file.
58507         * lib/asinl.c: New file.
58508         * lib/atanl.c: New file.
58509         * lib/ceill.c: New file.
58510         * lib/cosl.c: New file.
58511         * lib/expl.c: New file.
58512         * lib/floorl.c: New file.
58513         * lib/frexpl.c: New file.
58514         * lib/ldexpl.c: New file.
58515         * lib/logl.c: New file.
58516         * lib/sincosl.c: New file.
58517         * lib/sinl.c: New file.
58518         * lib/sqrtl.c: New file.
58519         * lib/tanl.c: New file.
58520         * lib/trigl.c: New file.
58521         * lib/trigl.h: New file.
58522
58523 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58524
58525         * m4/mathl.m4: New file.
58526
58527 2003-02-18  Bruno Haible  <bruno@clisp.org>
58528
58529         * MODULES.html.sh (func_all_modules): Add mathl.
58530
58531 2003-02-17  Bruno Haible  <bruno@clisp.org>
58532
58533         * modules/mkdtemp: New module.
58534         * MODULES.html.sh (func_all_modules): Add it.
58535
58536 2003-02-17  Bruno Haible  <bruno@clisp.org>
58537
58538         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58539
58540 2003-02-17  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/mkdtemp.h: New file, from GNU gettext.
58543         * lib/mkdtemp.c: New file, from GNU gettext.
58544
58545 2003-02-02  Jim Meyering  <jim@meyering.net>
58546
58547         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58548         e.g. glibc-2.2.93.
58549
58550 2003-01-31  Bruno Haible  <bruno@clisp.org>
58551
58552         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58553         'rpl_rename'.
58554         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58555         'rpl_strnlen'.
58556         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58557         'rpl_strtod'.
58558         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58559         'rpl_utime'.
58560
58561 2003-01-31  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/rename.c: #undef rename before defining rpl_rename.
58564         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58565
58566 2003-01-30  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/vasnprintf, modules/vasprintf: New modules.
58569         * MODULES.html.sh (func_all_modules): Add them.
58570
58571 2003-01-30  Bruno Haible  <bruno@clisp.org>
58572
58573         * m4/signed.m4: New file, from GNU gettext.
58574         * m4/longdouble.m4: New file, from GNU gettext.
58575         * m4/wchar_t.m4: New file, from GNU gettext.
58576         * m4/wint_t.m4: New file, from GNU gettext.
58577         * m4/vasnprintf.m4: New file.
58578         * m4/vasprintf.m4: New file.
58579
58580 2003-01-30  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/printf-args.h: New file, from GNU gettext.
58583         * lib/printf-args.c: New file, from GNU gettext.
58584         * lib/printf-parse.h: New file, from GNU gettext.
58585         * lib/printf-parse.c: New file, from GNU gettext.
58586         * lib/vasnprintf.h: New file, from GNU gettext.
58587         * lib/vasnprintf.c: New file, from GNU gettext.
58588         * lib/asnprintf.c: New file, from GNU gettext.
58589         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58590         * lib/vasprintf.c: New file, from GNU gettext.
58591         * lib/asprintf.c: New file, from GNU gettext.
58592
58593 2003-01-29  Bruno Haible  <bruno@clisp.org>
58594
58595         * modules/stpncpy: New module.
58596         * MODULES.html.sh (func_all_modules): Add it.
58597
58598 2003-01-29  Bruno Haible  <bruno@clisp.org>
58599
58600         * m4/stpncpy.m4: New file.
58601
58602 2003-01-29  Bruno Haible  <bruno@clisp.org>
58603
58604         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58605         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58606
58607 2003-01-28  Bruno Haible  <bruno@clisp.org>
58608
58609         * modules/c-ctype: New module.
58610         * MODULES.html.sh (func_all_modules): Add it.
58611
58612 2003-01-28  Bruno Haible  <bruno@clisp.org>
58613
58614         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58615         Paul Eggert.
58616         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58617         Paul Eggert.
58618
58619 2003-01-27  Bruno Haible  <bruno@clisp.org>
58620
58621         * modules/xsetenv: New module.
58622         * MODULES.html.sh (func_all_modules): Add it.
58623
58624 2003-01-27  Bruno Haible  <bruno@clisp.org>
58625
58626         * lib/xsetenv.h: New file, from GNU gettext.
58627         * lib/xsetenv.c: New file, from GNU gettext.
58628
58629 2003-01-23  Jim Meyering  <jim@meyering.net>
58630
58631         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58632         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58633
58634 2003-01-23  Bruno Haible  <bruno@clisp.org>
58635
58636         * modules/minmax: New module.
58637         * MODULES.html.sh (func_all_modules): Add it.
58638
58639 2003-01-23  Bruno Haible  <bruno@clisp.org>
58640
58641         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58642         Eggert.
58643
58644 2003-01-22  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/exit: New module.
58647         * MODULES.html.sh (func_all_modules): Add it.
58648
58649 2003-01-22  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/exit.h: New file, from GNU gettext.
58652
58653 2003-01-19  Bruno Haible  <bruno@clisp.org>
58654
58655         * gnulib-tool: Recognize option --extract-maintainer.
58656         (func_get_maintainer): New function.
58657         * modules/*: Add Maintainer entry.
58658
58659 2003-01-16  Jim Meyering  <jim@meyering.net>
58660
58661         * m4/regex.m4: The `regex' struct is both input and output.
58662         Initialize it before each use.  Patch by Tim Waugh.
58663
58664 2003-01-16  Bruno Haible  <bruno@clisp.org>
58665
58666         * MODULES.html.sh: Add a table of contents. Add the module name as
58667         leftmost column. Add hyperlinks.
58668
58669 2003-01-15  Bruno Haible  <bruno@clisp.org>
58670
58671         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58672
58673 2003-01-15  Bruno Haible  <bruno@clisp.org>
58674
58675         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58676         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58677         suffix.
58678
58679 2003-01-15  Bruno Haible  <bruno@clisp.org>
58680
58681         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58682
58683 2003-01-15  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58686         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58687
58688 2003-01-14  Jim Meyering  <jim@meyering.net>
58689
58690         * lib/same.c (same_name): Tweak a comment.
58691
58692 2003-01-14  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58695         when a string comparison is sufficient.
58696
58697 2003-01-14  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58700         'unsigned int'.
58701
58702 2003-01-14  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/hash-pjw.c: Add comment about low quality of this function.
58705
58706 2003-01-13  Bruno Haible  <bruno@clisp.org>
58707
58708         * modules/stpcpy: Distribute lib/stpcpy.h.
58709         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58710
58711 2003-01-13  Bruno Haible  <bruno@clisp.org>
58712
58713         * modules/*: Add a description.
58714         * modules/strpbrk: Fix Makefile.am snippet.
58715         * modules/strtoimax: Fix dependencies.
58716         * modules/strtoumax: Likewise.
58717
58718 2003-01-13  Bruno Haible  <bruno@clisp.org>
58719
58720         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58721         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58722         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58723
58724 2003-01-13  Bruno Haible  <bruno@clisp.org>
58725
58726         * gnulib-tool (func_create_testdir): Store config/* files in the main
58727         directory.
58728         * config.rpath: Move to ...
58729         * config/config.rpath: ... here.
58730         * modules/gettext: Contains config/config.rpath, not config.rpath.
58731         * modules/iconv: Likewise.
58732
58733 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58734
58735         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58736         to avoid collisions with libcurses and libreadline.
58737
58738         * m4/getstr.m4: Remove.
58739         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58740
58741 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58742
58743         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58744         to avoid collisions with libcurses and libreadline.
58745
58746         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58747         * lib/getstr.h, getstr.c: Remove.
58748         * lib/getline.c: Include "getline.h", to check interface.
58749         Move body of old getstr.c here: this defines MIN_CHUNK and
58750         declares getdelim2, which is renamed from getstr.
58751         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58752
58753         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58754         All uses changed.
58755         * lib/linebuffer.h: Likewise.
58756         (readline): Remove backward-compatibility macro.
58757
58758 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58759
58760         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58761         to avoid collisions with libcurses and libreadline.
58762         * getstr: Remove.
58763         * MODULES.html.sh: Remove getstr.
58764         * modules/getline: Depend on unlocked-io, not getstr.
58765
58766 2003-01-12  Jim Meyering  <jim@meyering.net>
58767
58768         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58769
58770 2003-01-10  Bruno Haible  <bruno@clisp.org>
58771
58772         * modules/alloca: Change Makefile.am requirements. Simplify Include
58773         requirements. Add lib/alloca_.h to file list.
58774
58775 2003-01-10  Bruno Haible  <bruno@clisp.org>
58776
58777         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58778
58779 2003-01-10  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/alloca_.h: New file.
58782         * lib/getdate.y: Unconditionally include alloca.h.
58783         * lib/makepath.c: Likewise.
58784         * lib/setenv.c: Likewise.
58785         * lib/userspec.c: Likewise.
58786
58787 2003-01-09  Karl Berry  <karl@gnu.org>
58788
58789         * MODULES.html.sh: include `dirname $0` in PATH, to find
58790         gnulib-tool.
58791
58792 2003-01-09  Bruno Haible  <bruno@clisp.org>
58793
58794         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58795         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58796
58797 2003-01-09  Bruno Haible  <bruno@clisp.org>
58798
58799         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58800
58801 2003-01-09  Bruno Haible  <bruno@clisp.org>
58802
58803         * lib/stdbool.h.in: New file.
58804
58805 2003-01-09  Bruno Haible  <bruno@clisp.org>
58806
58807         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58808         * MODULES.html.sh: Likewise.
58809
58810 2003-01-08  Jim Meyering  <jim@meyering.net>
58811
58812         * lib/full-write.c: Undefine and define-away `const' after inclusion
58813         of errno.h, not before.  Suggestion from Bruno Haible.
58814
58815 2003-01-08  Bruno Haible  <bruno@clisp.org>
58816
58817         * modules/full-read: Depend on full-write.
58818
58819 2003-01-08  Bruno Haible  <bruno@clisp.org>
58820
58821         * lib/safe-read.c: Include specification header first, to ensure its
58822         selfcontainedness.
58823         * lib/full-write.c: Likewise.
58824
58825 2003-01-07  Jim Meyering  <jim@meyering.net>
58826
58827         * lib/full-write.c: Rework so that it may serve to define full_read,
58828         too.
58829         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58830
58831 2003-01-07  Bruno Haible  <bruno@clisp.org>
58832
58833         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58834         <inttypes.h>.
58835         * lib/xstrtol.h: Likewise.
58836         * lib/xstrtoimax.c: Likewise.
58837         * lib/xstrtoumax.c: Likewise.
58838         * lib/human.h: Likewise.
58839
58840         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58841         on systems that have <inttypes.h> but not <stdint.h>.
58842
58843 2003-01-07  Bruno Haible  <bruno@clisp.org>
58844
58845         * MODULES.html.sh: Add copyright notice.
58846         (missed_files): Omit CVS directory entries.
58847         (func_module): Make it work with sed-3.02.
58848         * MODULES.txt: Remove file.
58849
58850 2003-01-06  Jim Meyering  <jim@meyering.net>
58851
58852         * lib/version-etc.c: Update year in translatable copyright string.
58853
58854 2003-01-03  Karl Berry  <karl@gnu.org>
58855
58856         * config/config.{guess,sub}: update from prep.
58857
58858 2003-01-02  Karl Berry  <karl@gnu.org>
58859
58860         * doc/COPYING.DOC: belatedly updated to 1.2.
58861
58862 2003-01-01  Karl Berry  <karl@gnu.org>
58863
58864         * gnulib-tool (func_verify_module): report module name $module in
58865         error message, not $1.
58866         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58867         be created, only if it doesn't exist.
58868         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58869
58870 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58871
58872         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58873
58874 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58875
58876         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58877         memcmp if strcoll doesn't work.
58878
58879 2002-12-31  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58882         nonempty.
58883
58884 2002-12-31  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/memcoll.c (STRCOLL): New macro.
58887         (memcoll): Use it.
58888
58889 2002-12-31  Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/localcharset.h: New file.
58892         * lib/localcharset.c: Include it.
58893         * lib/unicodeio.c: Likewise.
58894
58895 2002-12-31  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58898         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58899
58900 2002-12-31  Bruno Haible  <bruno@clisp.org>
58901
58902         * lib/getline.h: Include <stddef.h>, for size_t.
58903
58904         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58905         * lib/unicodeio.c: Don't include <stddef.h>.
58906
58907 2002-12-31  Bruno Haible  <bruno@clisp.org>
58908
58909         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58910         HAVE_TM_ZONE.
58911
58912 2002-12-24  Karl Berry  <karl@gnu.org>
58913
58914         * config/config.guess: update from prep.
58915
58916 2002-12-24  Bruno Haible  <bruno@clisp.org>
58917
58918         General infrasructure.
58919         * m4/README: Rewritten.
58920         * m4/onceonly.m4: New file.
58921         * m4/onceonly_2_57.m4: New file.
58922
58923         Module atexit.
58924         * m4/atexit.m4: New file.
58925
58926         Module strtod.
58927         * m4/strtod.m4: New file.
58928
58929         Module strtol.
58930         * m4/strtol.m4: New file.
58931
58932         Module strtoul.
58933         * m4/strtoul.m4: New file.
58934
58935         Module memchr.
58936         * m4/memchr.m4: New file.
58937
58938         Module memcmp.
58939         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58940         (jm_FUNC_MEMCMP): Invoke it.
58941
58942         Module memcpy.
58943         * m4/memcpy.m4: New file.
58944
58945         Module memmove.
58946         * m4/memmove.m4: New file.
58947
58948         Module memset.
58949         * m4/memset.m4: New file.
58950
58951         Module strcspn.
58952         * m4/strcspn.m4: New file.
58953
58954         Module strpbrk.
58955         * m4/strpbrk.m4: New file.
58956
58957         Module strstr.
58958         * m4/strstr.m4: New file.
58959
58960         Module strerror.
58961         * m4/strerror.m4: New file.
58962
58963         Module mktime.
58964         * m4/mktime.m4: Renamed from jm-mktime.m4.
58965         (gl_PREREQ_MKTIME): New macro.
58966         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58967
58968         Module malloc.
58969         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58970         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58971         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58972
58973         Module realloc.
58974         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58975         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58976         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58977
58978         Module strftime.
58979         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58980         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58981         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58982         gl_TM_GMTOFF.
58983         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58984
58985         Module xalloc.
58986         * m4/xalloc.m4: New file.
58987
58988         Module alloca.
58989         * m4/alloca.m4: New file.
58990
58991         Module putenv.
58992         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58993         (jm_FUNC_PUTENV): Invoke it.
58994
58995         Module setenv.
58996         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58997         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58998         when invoked twice.
58999         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59000         gt_FUNC_SETENV.
59001
59002         Module memrchr.
59003         * m4/memrchr.m4: New file.
59004
59005         Module stpcpy.
59006         * m4/stpcpy.m4: New file.
59007
59008         Module strcase.
59009         * m4/strcase.m4: New file.
59010
59011         Module strdup.
59012         * m4/strdup.m4: New file.
59013
59014         Module strnlen.
59015         * m4/strnlen.m4: New file.
59016
59017         Module strndup.
59018         * m4/strndup.m4: New file.
59019
59020         Module xstrtod.
59021         * m4/xstrtod.m4: New file.
59022
59023         Module xstrtol.
59024         * m4/xstrtol.m4: New file.
59025
59026         Module getdate.
59027         * m4/getdate.m4: New file.
59028
59029         Module unlocked-io.
59030         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59031         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59032         * m4/jm-glibc-io.m4n: Remove file.
59033
59034         Module long-options.
59035         * m4/long-options.m4: New file.
59036
59037         Module md5.
59038         * m4/md5.m4: New file.
59039
59040         Module sha.
59041         * m4/sha.m4: New file.
59042
59043         Module getstr.
59044         * m4/getstr.m4: New file.
59045
59046         Module getline.
59047         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59048         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59049         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59050         simply getline. Infoke gl_PREREQ_GETLINE.
59051
59052         Module obstack.
59053         * m4/obstack.m4: New file.
59054
59055         Module hash.
59056         * m4/hash.m4: New file.
59057
59058         Module readtokens.
59059         * m4/readtokens.m4: New file.
59060
59061         Module strverscmp.
59062         * m4/strverscmp.m4: New file.
59063
59064         Module stdbool.
59065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59066         OSF/1.
59067
59068         Module strtoll.
59069         * m4/strtoll.m4: New file.
59070
59071         Module strtoull.
59072         * m4/strtoull.m4: New file.
59073
59074         Module strtoimax.
59075         * m4/strtoimax.m4: New file.
59076
59077         Module strtoumax.
59078         * m4/strtoumax.m4: New file.
59079
59080         Module xstrtoimax.
59081         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59082         jm_AC_PREREQ_XSTRTOIMAX.
59083         Moved the strtol prerequisites to strtol.m4.
59084         Moved the strtoll prerequisites to strtoll.m4.
59085         Moved the strtoimax prerequisites to strtoimax.m4.
59086
59087         Module xstrtoumax.
59088         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59089         jm_AC_PREREQ_XSTRTOUMAX.
59090         Moved the strtoul prerequisites to strtoul.m4.
59091         Moved the strtoull prerequisites to strtoull.m4.
59092         Moved the strtoumax prerequisites to strtoumax.m4.
59093
59094         Module chown.
59095         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59096         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59097
59098         Module dup2.
59099         * m4/dup2.m4: New file.
59100
59101         Module ftruncate.
59102         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59103         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59104
59105         Module getgroups.
59106         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59107         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59108
59109         Module gettimeofday.
59110         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59111         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59112         gl_PREREQ_GETTIMEOFDAY.
59113
59114         Module mkdir.
59115         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59116         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59117
59118         Module mkstemp.
59119         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59120         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59121         jm_AC_TYPE_UINTMAX_T.
59122         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59123
59124         Module stat.
59125         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59126         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59127
59128         Module lstat.
59129         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59130         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59131
59132         Module timespec.
59133         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59134         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59135         * m4/st_mtim.m4: Indentation.
59136
59137         Module nanosleep.
59138         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59139         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59140         gl_PREREQ_NANOSLEEP.
59141
59142         Module regex.
59143         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59144         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59145         (gl_REGEX): New macro.
59146
59147         Module rename.
59148         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59149         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59150
59151         Module rmdir.
59152         * m4/rmdir.m4: New file.
59153
59154         Module utime.
59155         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59156         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59157         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59158
59159         Module dirname.
59160         * m4/dirname.m4: New file.
59161
59162         Module getopt.
59163         * m4/getopt.m4: New file.
59164
59165         Module unistd-safer.
59166         * m4/unistd-safer.m4: New file.
59167
59168         Module fnmatch.
59169         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59170         declaration.
59171         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59172         (gl_FUNC_FNMATCH_POSIX): New macro.
59173         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59174         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59175         simply fnmatch.
59176
59177         Module exclude.
59178         * m4/exclude.m4: New file.
59179
59180         Module human.
59181         * m4/human.m4: New file.
59182
59183         Module acl.
59184         * m4/acl.m4: Nop.
59185
59186         Module backupfile.
59187         * m4/backupfile.m4: New file.
59188         * m4/d-ino.m4: Indentation.
59189
59190         Module fsusage.
59191         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59192         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59193         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59194
59195         Module dirfd.
59196         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59197         requirements.
59198
59199         Module euidaccess.
59200         * m4/euidaccess.m4: New file.
59201
59202         Module file-type.
59203         * m4/file-type.m4: New file.
59204
59205         Module fileblocks.
59206         * m4/fileblocks.m4: New file.
59207
59208         Module filemode.
59209         * m4/filemode.m4: New file.
59210
59211         Module isdir.
59212         * m4/isdir.m4: New file.
59213
59214         Module lchown.
59215         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59216         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59217
59218         Module makepath.
59219         * m4/makepath.m4: New file.
59220
59221         Module modechange.
59222         * m4/modechange.m4: New file.
59223
59224         Module mountlist.
59225         * m4/mountlist.m4: New file.
59226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59227         Indentation.
59228
59229         Module path-concat.
59230         * m4/path-concat.m4: New file.
59231
59232         Module pathmax.
59233         * m4/pathmax.m4: New file.
59234
59235         Module same.
59236         * m4/same.m4: New file.
59237
59238         Module save-cwd.
59239         * m4/save-cwd.m4: New file.
59240
59241         Module savedir.
59242         * m4/savedir.m4: New file.
59243
59244         Module xgetcwd.
59245         * m4/xgetcwd.m4: New file.
59246         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59247
59248         Module xreadlink.
59249         * m4/xreadlink.m4: New file.
59250
59251         Module safe-read.
59252         * m4/safe-read.m4: New file.
59253
59254         Module safe-write.
59255         * m4/safe-write.m4: New file.
59256
59257         Module closeout.
59258         * m4/closeout.m4: New file.
59259
59260         Module stdio-safer.
59261         * m4/stdio-safer.m4: New file.
59262
59263         Module getpass.
59264         * m4/getpass.m4: New file.
59265
59266         Module getugroups.
59267         * m4/getugroups.m4: New file.
59268
59269         Module group-member.
59270         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59271         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59272
59273         Module idcache.
59274         * m4/idcache.m4: New file.
59275
59276         Module userspec.
59277         * m4/userspec.m4: New file.
59278
59279         Module gettime.
59280         * m4/clock_time.m4: New file.
59281         * m4/gettime.m4: New file.
59282
59283         Module settime.
59284         * m4/settime.m4: New file.
59285
59286         Module posixtm.
59287         * m4/posixtm.m4: New file.
59288
59289         Module gethostname.
59290         * m4/gethostname.m4: New file.
59291
59292         Module canon-host.
59293         * m4/canon-host.m4: New file.
59294
59295         Module gettext.
59296         * m4/codeset.m4: New file, from gettext-0.11.5.
59297         * m4/gettext.m4: New file, from gettext-0.11.5.
59298         * m4/glibc21.m4: New file, from gettext-0.11.5.
59299         * m4/iconv.m4: New file, from gettext-0.11.5.
59300         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59301         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59302         * m4/inttypes.m4: New file, from gettext-0.11.5.
59303         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59304         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59305         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59306         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59307         * m4/lib-link.m4: New file, from gettext-0.11.5.
59308         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59309         * m4/progtest.m4: New file, from gettext-0.11.5.
59310         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59311         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59312         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59313
59314         Module localcharset.
59315         * m4/localcharset.m4: New file.
59316
59317         Module hard-locale.
59318         * m4/hard-locale.m4: New file.
59319
59320         Module mbswidth.
59321         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59322         onceonly macros.
59323         * m4/mbrtowc.m4: Add comment.
59324
59325         Module memcasecmp.
59326         * m4/memcasecmp.m4: New file.
59327
59328         Module memcoll.
59329         * m4/memcoll.m4: New file.
59330
59331         Module unicodeio.
59332         * m4/unicodeio.m4: New file.
59333
59334         Module rpmatch.
59335         * m4/rpmatch.m4: New file.
59336
59337         Module yesno.
59338         * m4/yesno.m4: New file.
59339
59340         Module exitfail.
59341         * m4/exitfail.m4: New file.
59342
59343         Module c-stack.
59344         * m4/c-stack.m4 (gl_C_STACK): New macro.
59345         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59346
59347         Module error.
59348         * m4/error.m4 (gl_ERROR): New macro.
59349         (jm_PREREQ_ERROR): Use onceonly macros.
59350
59351         Module fatal.
59352         * m4/fatal.m4: New file.
59353
59354         Module getloadavg.
59355         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59356         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59357
59358         Module getpagesize.
59359         * m4/getpagesize.m4: New file.
59360
59361         Module getusershell.
59362         * m4/getusershell.m4: New file.
59363
59364         Module physmem.
59365         * m4/physmem.m4: New file.
59366
59367         Module posixver.
59368         * m4/posixver.m4: New file.
59369
59370         Module quotearg.
59371         * m4/quotearg.m4: New file.
59372
59373         Module quote.
59374         * m4/quote.m4: New file.
59375
59376         Module readutmp.
59377         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59378
59379         Module sig2str.
59380         * m4/sig2str.m4: New file.
59381
59382         Other.
59383         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59384         ulonglong.m4.
59385         * m4/intmax_t.m4: New file.
59386         * m4/d-type.m4: Indentation.
59387         * m4/jm-macros.m4: Update.
59388         * m4/prereq.m4 (jm_PREREQ): Update.
59389         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59390         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59391         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59392         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59393         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59394         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59395         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59396         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59397         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59398         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59399         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59400         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59401         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59402         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59403         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59404         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59405         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59406         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59407         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59408
59409 2002-12-24  Bruno Haible  <bruno@clisp.org>
59410
59411         * MODULES.txt: Update according to m4/ changes.
59412
59413         Module gettext.
59414         * config.rpath: New file, from gettext-0.11.5.
59415
59416         * modules/*: New module descriptions.
59417         * gnulib-tool: New file.
59418         * MODULES.html.sh: New file.
59419
59420 2002-12-21  Karl Berry  <karl@gnu.org>
59421
59422         * doc/fdl.texi: update to version 1.2.
59423
59424 2002-12-19  Karl Berry  <karl@gnu.org>
59425
59426         * config/config.guess: update from prep.
59427
59428 2002-12-18  Bruno Haible  <bruno@clisp.org>
59429
59430         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59431         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59432
59433 2002-12-17  Bruno Haible  <bruno@clisp.org>
59434
59435         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59436         stdlib.h, string.h.
59437
59438 2002-12-17  Bruno Haible  <bruno@clisp.org>
59439
59440         * lib/canon-host.c (strdup): Remove unused declaration.
59441
59442         * lib/fsusage.c: Include full_read.h.
59443         (get_fs_usage): Use full_read instead of safe_read.
59444
59445         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59446
59447 2002-12-12  Karl Berry  <karl@gnu.org>
59448
59449         * config/config.guess: update from prep.
59450
59451 2002-12-11  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/setenv.m4: New file, from gettext-0.11.5.
59454
59455 2002-12-11  Bruno Haible  <bruno@clisp.org>
59456
59457         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59458         not unsetenv().
59459         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59460         modifications:
59461
59462         2002-12-11  Bruno Haible  <bruno@clisp.org>
59463
59464                 * setenv.c (alloca): Fall back to malloc.
59465                 (freea): New macro.
59466                 (setenv): Use freea() to free memory allocated with alloca().
59467
59468         2002-11-13  Bruno Haible  <bruno@clisp.org>
59469
59470                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59471                 function declarations.
59472                 * unsetenv.c (unsetenv): Likewise.
59473
59474         2002-03-04  Bruno Haible  <bruno@clisp.org>
59475
59476                 Portability to AIX 4.3.3.
59477                 * unsetenv.c: New file, extracted from setenv.c.
59478                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59479
59480         2001-12-20  Bruno Haible  <bruno@clisp.org>
59481
59482                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59483                 use malloc instead. For SunOS 4.
59484
59485         2001-12-11  Bruno Haible  <bruno@clisp.org>
59486
59487                 * setenv.c: Declare alloca.
59488                 (compar_fn_t): New typedef.
59489                 (KNOWN_VALUE, STORE_VALUE): Use it.
59490
59491         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59492         setenv.h.
59493
59494 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59495
59496         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59497         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59498         Choose values that are less likely to collide with system fnmatch
59499         options.
59500         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59501         defined (e.g., a pure POSIX system).
59502         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59503         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59504
59505 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59506
59507         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59508         a pain in practice to deal with generated m4 files.  This change
59509         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59510
59511         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59512         and jm-glibc-io.m4, as they are no longer a special case.
59513         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59514         kludge and the auto-generation stuff.  Check only whether the
59515         functions are declared, not whether they exist, since older hosts
59516         that don't declare the functions can't use the optimization anyway.
59517
59518 2002-12-06  Jim Meyering  <jim@meyering.net>
59519
59520         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59521
59522         Merge in changes from libc's misc/error.c, in preparation
59523         for the merge of gnulib's changes back into libc.
59524
59525         * lib/error.c (_): Define only if not already defined.
59526         Move definition to follow all #include directives.
59527         Include unlocked-io.h only if !_LIBC.
59528         [_LIBC]: Include <libio/libioP.h>.
59529         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59530         (fflush): Tweak definition to use INTUSE.
59531         (putc): Define.
59532
59533 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59534
59535         * lib/alloca.c [defined emacs]: Include "lisp.h".
59536         (xalloc_die) [defined emacs]: New macro.
59537         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59538         [! defined emacs]: Include <xalloc.h>.
59539         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59540         (pointer): Typedef to POINTER_TYPE *.
59541         (malloc): Remove decl; we now always use xmalloc.
59542         (alloca): Use old-style definition, since Emacs needs this.
59543         Check for arithmetic overflow when computing combined size.
59544
59545 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59546
59547         Do not generate unlocked-io.h automatically, since it's easier to
59548         maintain it by hand.
59549
59550         * lib/unlocked-io.h: New file, from GNU diffutils,
59551         but with proper copyright notice and attribution.
59552         * lib/gen-uio: Remove.
59553         * lib/Makefile.am: Add copyright notice.
59554         (libfetish_a_SOURCES): Add unlocked-io.h.
59555         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59556         (DISTCLEANFILES, io_functions): Remove macros.
59557         (EXTRA_DIST): Remove gen_uio.
59558         (unlocked-io.h): Remove rule.
59559
59560 2002-12-04  Jim Meyering  <jim@meyering.net>
59561
59562         Reflect the fact that stat.c and lstat.c are no longer generated.
59563         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59564         (DISTCLEANFILES): Likewise.
59565         (EXTRA_DIST): Likewise.
59566         (all_local): Don't depend on stat.c or lstat.c.
59567         (stat.c, lstat.c): Remove rules.
59568         (EXTRA_DIST): Remove xstat.in.
59569
59570         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59571         * lib/stat.c: New file.  Contents mostly from xstat.in.
59572         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59573         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59574
59575         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59576         too.
59577         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59578
59579 2002-12-03  Jim Meyering  <jim@meyering.net>
59580
59581         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59582         but not semantics, to minimize the differences between these two files.
59583         (safe_read): Change comment to mention SAFE_READ_ERROR.
59584
59585         * lib/safe-read.c (IS_EINTR): Define.
59586         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59587
59588 2002-12-02  Jim Meyering  <jim@meyering.net>
59589
59590         * lib/safe-read.c (EINTR): Define.
59591         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59592         (INT_MAX): Provide fallback.
59593         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59594
59595         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59596
59597 2002-12-02  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59600         Define, taken from safe-read.c.
59601         (INT_MAX): Provide fallback.
59602         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59603         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59604
59605         * lib/safe-read.c (EINTR): Remove definition.
59606         (safe_read): Don't use EINTR if it is absent.
59607
59608 2002-12-01  Jim Meyering  <jim@meyering.net>
59609
59610         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59611         zero.
59612         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59613
59614 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59615
59616         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59617         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59618         with `if (! (value < limit)) abort ();', for readability.
59619
59620 2002-11-26  Karl Berry  <karl@gnu.org>
59621
59622         * lib/strdup.c: copy from libc again, with jim's ok.
59623         * lib/.cppi-disable: re-add strdup.c
59624
59625 2002-11-25  Karl Berry  <karl@gnu.org>
59626
59627         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59628         instead of "strtol.c".
59629
59630 2002-11-25  Karl Berry  <karl@gnu.org>
59631
59632         * config/install-sh: update from automake for variable quoting, $0 in
59633         error msgs, etc.
59634
59635         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59636         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59637         entry.
59638
59639 2002-11-25  Jim Meyering  <jim@meyering.net>
59640
59641         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59642
59643 2002-11-24  Karl Berry  <karl@gnu.org>
59644
59645         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59646         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59647
59648 2002-11-24  Jim Meyering  <jim@meyering.net>
59649
59650         Update from coreutils:
59651
59652         * lib/mktime.c: Merge in changes from libc.
59653
59654         Avoid a link-time failure on some Linux systems.
59655         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59656         (otherwise).
59657         (__mon_yday): Declare with the STATIC attribute.
59658         (__mktime_internal): Likewise.
59659         Based on a report from Greg Schafer.
59660
59661 2002-11-23  Jim Meyering  <jim@meyering.net>
59662
59663         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59664         Use `unsigned', not `int', as type of index.
59665
59666         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59667
59668         * lib/fsusage.c: Remove unneeded parentheses around operands of
59669         `defined'.
59670
59671 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59672
59673         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59674         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59675         so that we can be included first.
59676         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59677         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59678         No need to include stddef.h or sys/types.h any more.
59679         Surround local include files with "", not "<>".
59680         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59681         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59682         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59683         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59684         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59685         (ISPRINT): Remove; no longer needed now that we assume C89.
59686
59687         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59688         Preserve errno.
59689
59690         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59691         quotearg_char): Use SIZE_MAX rather than
59692         (size_t) -1 when we are talking about "infinity".
59693
59694         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59695
59696 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59697
59698         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59699         hint that one should use `if (! x) abort ();' rather than `assert
59700         (x);', and anyway it's one less thing to worry about configuring.
59701         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59702         hash_rehash, hash_insert): Use abort rather than assert.
59703
59704 2002-11-22  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/safe-read.h: Assume C89. Add comments.
59707         (safe_read): Change return type to size_t.
59708         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59709         byte counts > SSIZE_MAX correctly.
59710         * lib/safe-write.h: New file.
59711         * lib/safe-write.c: New file.
59712         * lib/full-read.h: New file.
59713         * lib/full-read.c: New file.
59714         * lib/full-write.h: Assume C89. Add comments.
59715         * lib/full-write.c: Include safe-write.h.
59716         (full_write): Rewritten to use safe_write.
59717         Suggested by Jim Meyering and Paul Eggert.
59718
59719 2002-11-21  Jim Meyering  <jim@meyering.net>
59720
59721         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59722
59723         Merge in changes from the coreutils.
59724
59725         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59726         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59727         <stdint.h>.
59728         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59729         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59730         int.  Work more efficiently if X is the same width as uintmax_t.
59731         Do not compare X to -1, to avoid bogus compiler warning.
59732         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59733         Don't assume that f_frsize and f_bsize are the same type.
59734
59735         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59736         warning on FreeBSD.
59737
59738         * lib/makepath.c (make_path): Restore umask *before* creating the final
59739         component.
59740         (make_path): Minor reformatting.
59741
59742         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59743         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59744         HAVE_MALLOC/HAVE_REALLOC.
59745
59746         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59747         dummy ones.  At least on GNU/Linux systems, `auto' means something
59748         else.
59749         From Michael Stone.
59750
59751 2002-11-21  Bruno Haible  <bruno@clisp.org>
59752
59753         Remove case insensitive option matching.
59754         * lib/argmatch.h (argcasematch): Remove declaration.
59755         (ARGCASEMATCH): Remove macro.
59756         (__xargmatch_internal): Remove case_sensitive argument.
59757         (XARGMATCH): Update.
59758         (XARGCASEMATCH): Remove macro.
59759         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59760         case_sensitive argument.
59761         (argcasematch): Remove function.
59762         (__xargmatch_internal): Remove case_sensitive argument.
59763         (main): Use XARGMATCH instead of XARGCASEMATCH.
59764
59765         * lib/xmalloc.c: Change compile-time error message. Add comment about
59766         required autoconf version.
59767
59768 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59769
59770         Merge argmatch cleanups from Bison.  Assume C89.
59771
59772         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59773         Include stdlib.h, for EXIT_FAILURE.
59774         Always include <string.h>, since we assume C89.
59775         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59776         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59777         Include <stddef.h> instead, since it's all we need for size_t.
59778         (PARAMS): Remove.  All uses removed.
59779         (ARRAY_CARDINALITY): Do not bother to #undef.
59780         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59781         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59782         Remove unnecessary parentheses.
59783         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59784         Insert necessary parentheses.
59785         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59786         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59787
59788 2002-11-19  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59791         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59792
59793         * lib/mbswidth.h (PARAMS): Remove macro.
59794         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59795         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59796
59797         * lib/gcd.h (PARAMS): Remove macro.
59798         (gcd): Use ANSI C function declarations.
59799         * lib/gcd.c (gcd): Likewise.
59800
59801 2002-11-15  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/strcspn.c: Include <stddef.h>.
59804         (strcspn): Use ANSI C function declaration. Change return type to
59805         size_t. Use NULL.
59806         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59807         (strpbrk): Use NULL.
59808         * lib/strpbrk.h (PARAMS): Remove macro.
59809         (strpbrk): Use ANSI C function declaration.
59810         * lib/strstr.c: Don't include <sys/types.h>.
59811         * lib/strstr.h (PARAMS): Remove macro.
59812         (strstr): Use ANSI C function declarations.
59813
59814 2002-11-14  Karl Berry  <karl@gnu.org>
59815
59816         * config/mkinstalldirs: `do' on separate line, instead of
59817         `for var; do'.
59818
59819 2002-11-06  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59822         * lib/gcd.c (gcd): Likewise.
59823
59824 2002-11-05  Bruno Haible  <bruno@clisp.org>
59825
59826         * lib/gcd.h: New file, from gettext-0.11.5.
59827         * lib/gcd.c: New file, from gettext-0.11.5.
59828
59829 2002-11-05  Bruno Haible  <bruno@clisp.org>
59830
59831         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59832         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59833         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59834         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59835
59836         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59837         <libintl.h>.
59838         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59839         <libintl.h>.
59840
59841         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59842         * lib/human.c: Include gettext.h instead of <libintl.h>.
59843         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59844         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59845         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59846         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59847         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59848         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59849         (textdomain): Remove definition.
59850         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59851
59852         * lib/long-options.c: Remove include of <libintl.h> and definition of
59853         _.
59854         * lib/same.c: Remove include of <libintl.h> and definition of _.
59855
59856 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59857
59858         * lib/config.charset: A few additions for Solaris.
59859
59860 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59861
59862         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59863         * lib/localcharset.c (locale_charset): Declare as extern "C".
59864
59865 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59866
59867         * lib/config.charset: msdos in uk_UA uses CP1125.
59868
59869 2002-11-04  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59872         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59873         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59874         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59875         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59876
59877 2002-11-04  Bruno Haible  <bruno@clisp.org>
59878
59879         * lib/localcharset.c (locale_charset): Don't return an empty string.
59880
59881 2002-11-04  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59884         aliases.
59885
59886 2002-11-04  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/config.charset: Update for newest glibc. Add canonical names
59889         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59890
59891 2002-11-04  Bruno Haible  <bruno@clisp.org>
59892
59893         * lib/config.charset: Add support for NetBSD.
59894
59895 2002-11-04  Bruno Haible  <bruno@clisp.org>
59896
59897         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59898
59899 2002-11-01  Bruno Haible  <bruno@clisp.org>
59900
59901         * configure.in: Add AC_CONFIG_AUX_DIR call.
59902         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59903         test/Makefile.
59904         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59905
59906 2002-09-28  Karl Berry  <karl@gnu.org>
59907
59908         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59909         installed automake until the next release, since changes have been
59910         made.
59911
59912 2002-09-25  Karl Berry  <karl@gnu.org>
59913
59914         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59915         * lib/getopt*: copy from libc/posix.
59916         * lib/gettext.h: copy from gettext.
59917         * lib/.cppi-disable: add strdup.c, gettext.h.
59918
59919 2002-09-25  Karl Berry  <karl@gnu.org>
59920
59921         * config/srclist.txt: enable gettext.h check.
59922         * config/config.{guess,sub}: update from prep.
59923         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59924                 from automake 1.6.3.
59925         See srclist*.
59926
59927 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59928
59929         * regex.c (PATFETCH): Remove the translating fetch.
59930         (PATFETCH_RAW): Rename to PATFETCH.
59931         (set_image_of_range): New fun.
59932         (SET_RANGE_TABLE_WORK_AREA): Use it.
59933         (regex_compile): Don't translate the pattern chars so eagerly.
59934         Only do it when inserting an `exactn' bytecode or when handling
59935         a char-range.
59936         (mutually_exclusive_p): Avoid empty statement.
59937
59938 2002-07-06  Jim Meyering  <meyering@lucent.com>
59939
59940         * m4/README: Don't mention Makefile.am.in.
59941         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59942
59943 2002-07-01  Jim Meyering  <meyering@lucent.com>
59944
59945         * lib/c-stack.c: Include sys/time.h.
59946         From Volker Borchert.
59947
59948 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59949
59950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59951
59952 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59953
59954         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59955         New macro.  Use it uniformly instead of
59956         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59957         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59958         reported by Vin Shelton.
59959
59960 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59961
59962         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59963         Do not assume SA_SIGINFO behavior.
59964         Bug reported by Jim Meyering on NetBSD 1.5.2.
59965
59966 2002-06-22  Jim Meyering  <meyering@lucent.com>
59967
59968         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59970
59971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59972         now that configure.ac uses AC_GNU_SOURCE.
59973         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59974         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59975
59976         Update to latest tools.  Suggestions from Paul Eggert.
59977         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59978         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59979         * m4/fnmatch.m4: Likewise.
59980         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59981         to AC_HEADER_STDBOOL
59982
59983 2002-06-22  Jim Meyering  <meyering@lucent.com>
59984
59985         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59986         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59987
59988 2002-06-22  Jim Meyering  <meyering@lucent.com>
59989
59990         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59991
59992         * lib/exitfail.c, exitfail.h: Likewise.
59993         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59994
59995         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59996         of fnmatch.h.
59997         (EXTRA_DIST): Add fnmatch_loop.c.
59998         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59999
60000         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60001         * lib/fnmatch.c: Update from diffutils-2.8.2.
60002         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60003         * lib/fnmatch.h: Remove file.
60004
60005 2002-06-21  Jim Meyering  <meyering@lucent.com>
60006
60007         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60008         * m4/mbrtowc.m4: Likewise.
60009
60010         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60011         * m4/mbswidth.m4: Reflect name change:
60012         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60013         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60014
60015         * m4/lib-link.m4: Update from gettext-0.11.2.
60016         * m4/gettext.m4: Likewise.
60017
60018         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60019         From Alfred M. Szmidt.
60020
60021 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60022
60023         * lib/file-type.h: Report an error if neither S_ISREG nor
60024         S_IFREG is defined, instead of using a test specific to glibc
60025         2.2.  This should be safe, since POSIX requires S_ISREG and
60026         Unix Version 7 had S_IFREG.  We don't need to check for
60027         <sys/types.h> since we don't use any symbols that it defines.
60028
60029 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60030
60031         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60032         $@-t, so that each temporary file name is unique and valid in the first
60033         8 characters, for operation under DOS.
60034
60035 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60036
60037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60038
60039 2002-06-15  Jim Meyering  <meyering@lucent.com>
60040
60041         Work even with DJGPP 2.03, which lacks support for symlinks.
60042         From Richard Dawe.
60043         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60044         is defined.
60045         * lib/lchown.c (S_ISLNK): Likewise.
60046
60047 2002-06-15  Jim Meyering  <meyering@lucent.com>
60048
60049         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60050         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60051         have been included before this file.
60052
60053 2002-06-14  Jim Meyering  <meyering@lucent.com>
60054
60055         * lib/file-type.h: Use the version from diffutils-2.8.2.
60056         * lib/file-type.c: Likewise.
60057
60058 2002-06-07  Jim Meyering  <meyering@lucent.com>
60059
60060         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60061         They're needed at least for NetBSD 1.5.2.
60062         ($statxfs_includes): Include those same headers.
60063         ($statxfs_includes): Include sys/vfs.h if available.
60064         ($statxfs_includes): Likewise for sys/statvfs.h.
60065         Check for the following members in both structs statfs and statvfs:
60066         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60067
60068 2002-06-01  Jim Meyering  <meyering@lucent.com>
60069
60070         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60071         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60072
60073 2002-05-28  Jim Meyering  <meyering@lucent.com>
60074
60075         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60076         Reported by Volker Borchert.
60077
60078 2002-05-27  Jim Meyering  <meyering@lucent.com>
60079
60080         Fix a problem seen only on nonconforming systems whereby ls.c's
60081         use of localtime, and then of gettimeofday would cause trouble:
60082         the localtime call used to initialize rpl_gettimeofday's save
60083         mechanism would clobber ls's current local time information so
60084         that in any long listing the first file would always be listed
60085         with date 1970-01-01.  Analysis by Volker Borchert.
60086
60087         * lib/gettimeofday.c (localtime): Undefine.
60088         (rpl_localtime): New function.
60089
60090 2002-05-27  Jim Meyering  <meyering@lucent.com>
60091
60092         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60093         localtime.
60094
60095         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60096         use the replacement function; it wouldn't resolve at link time.
60097         Reported by Volker Borchert.
60098
60099 2002-05-22  Jim Meyering  <meyering@lucent.com>
60100
60101         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60102         file-type.h.
60103         * lib/file-type.h: New file.
60104         * lib/file-type.c (file_type): New file/function.  Extracted from
60105         diffutils.
60106
60107 2002-04-30  Jim Meyering  <meyering@lucent.com>
60108
60109         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60110
60111 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60112
60113         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60114
60115 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60116
60117         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60118         Do not check for alloca.h (no longer used) or stdbool.h (was never
60119         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60120
60121 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60122
60123         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60124
60125 2002-04-29  Jim Meyering  <meyering@lucent.com>
60126
60127         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60128         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60129         Use AC_FUNC_STRNLEN here instead.
60130
60131         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60132         With autoconf-2.53a, it's part of AC_PROG_CC.
60133
60134 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60135
60136         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60138
60139 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60140
60141         * lib/sig2str.h, lib/sig2str.c: New files.
60142         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60143
60144 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60145
60146         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60147         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60148         of 127, since 64 is the largest conceivable number for ancient
60149         nonstandard hosts.
60150         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60151
60152 2002-04-28  Jim Meyering  <meyering@lucent.com>
60153
60154         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60155
60156 2002-04-24  Jim Meyering  <meyering@lucent.com>
60157
60158         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60159         (jm_PREREQ): Use it.
60160
60161         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60162         mach/mach.h fcntl.h.
60163         Check for this function: setlocale.
60164
60165 2002-04-24  Jim Meyering  <meyering@lucent.com>
60166
60167         * lib/gettext.h: New file, from Gettext.
60168         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60169         (libfetish_a_SOURCES): Add gettext.h.
60170
60171 2002-04-16  Jim Meyering  <meyering@lucent.com>
60172
60173         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60174         ut_pid, ut_id, ut_exit.
60175
60176 2002-04-16  Jim Meyering  <meyering@lucent.com>
60177
60178         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60179         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60180         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60181
60182 2002-04-12  Jim Meyering  <meyering@lucent.com>
60183
60184         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60185         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60186         existence of the getmntinfo function.  Needed for Darwin 5.3.
60187
60188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60189         This is necessary at least on Darwin 5.3.
60190
60191         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60192         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60193         strnlen.o in the library, and that makes some versions of ranlib
60194         object.
60195
60196 2002-04-12  Jim Meyering  <meyering@lucent.com>
60197
60198         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60199
60200 2002-04-09  Jim Meyering  <meyering@lucent.com>
60201
60202         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60203         to be more precise.  Rather than saying we're checking whether the
60204         function `works', say what we're testing.
60205         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60206         Reported by Bruno Haible.
60207
60208 2002-03-10  Jim Meyering  <meyering@lucent.com>
60209
60210         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60211         Suggestion from Santiago Vila.
60212
60213 2002-03-08  Jim Meyering  <meyering@lucent.com>
60214
60215         * lib/rename.c: Mention that this wrapper is needed also on
60216         mips-dec-ultrix4.4 systems.
60217
60218 2002-03-02  Jim Meyering  <meyering@lucent.com>
60219
60220         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60221         not HAVE_CLOCK_SETTIME.
60222
60223 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60224
60225         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60226         Check for clock_settime.
60227
60228 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60229
60230         * lib/nanosleep.h: Rename to....
60231         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60232
60233         * lib/gettime.c: New file.
60234         * lib/settime.c: New file.
60235         * lib/stime.c: Remove.
60236
60237         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60238         timespec.h.  Remove nanosleep.h.
60239
60240 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60241
60242         * m4/acl.m4: New file.
60243         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60244         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60245
60246 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60247
60248         * lib/acl.c, lib/acl.h: New files.
60249         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60250
60251 2002-02-24  Jim Meyering  <meyering@lucent.com>
60252
60253         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60254         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60255         cause trouble.  Reported by Nelson Beebe.
60256
60257 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60258
60259         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60260         compilers that don't know that xalloc_die never returns.
60261
60262 2002-02-20  Jim Meyering  <meyering@lucent.com>
60263
60264         * lib/getdate.c: Regenerate using bison-1.33.
60265
60266 2002-02-17  Jim Meyering  <meyering@lucent.com>
60267
60268         * config/config.guess (main): Don't use `head -1'; it's no longer
60269         portable. Use `sed 1q' instead.
60270
60271 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60272
60273         * m4/codeset.m4: Upgrade to gettext-0.11.
60274         * m4/gettext.m4: Upgrade to gettext-0.11.
60275         * m4/glibc21.m4: Upgrade to gettext-0.11.
60276         * m4/iconv.m4: Upgrade to gettext-0.11.
60277         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60278         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60279         * m4/lib-ld.m4: New file, from gettext-0.11.
60280         * m4/lib-link.m4: New file, from gettext-0.11.
60281         * m4/lib-prefix.m4: New file, from gettext-0.11.
60282         * m4/progtest.m4: Upgrade to gettext-0.11.
60283
60284 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60285
60286         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60287         (jm_PREREQ): Use it.
60288
60289 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60290
60291         * lib/posixver.c, lib/posixver.h: New files.
60292         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60293
60294 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60295             Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60298         (fwrite_success_callback): New declaration.
60299         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60300         print_unicode_char. Call failure callback instead of error.
60301         (fwrite_success_callback): New function.
60302         (exit_failure_callback): New function.
60303         (fallback_failure_callback): New function.
60304         (print_unicode_char): Call unicode_to_mb.
60305
60306 2002-01-26  Jim Meyering  <meyering@lucent.com>
60307
60308         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60309         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60310
60311 2002-01-26  Jim Meyering  <meyering@lucent.com>
60312
60313         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60314
60315 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60316
60317         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60318
60319 2002-01-22  Jim Meyering  <meyering@lucent.com>
60320
60321         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60322         Otherwise, some versions of automake would omit the rule that makes
60323         Makefile from Makefile.in.
60324
60325 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60326
60327         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60328         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60329         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60330         (memcoll): Set errno to zero if there is no error.
60331
60332         * lib/quotearg.c (quotearg_buffer_restyled):
60333         Fix bug with quoting buffers containing NUL when backslashing escapes.
60334         This bug was exposed by the other changes in this patch.
60335         (quotearg_n_options): New arg ARGSIZE.
60336         All callers changed.
60337         (quoting_options_from_style): New function.
60338         (quotearg_n_style): Use it.
60339         (quotearg_n_style_mem): New function.
60340
60341         * lib/quotearg.h (quotearg_n_style_mem): New function.
60342
60343 2002-01-19  Jim Meyering  <meyering@lucent.com>
60344
60345         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60346         Remove useless quotes: DF_PROG="df".
60347         * m4/strnlen.m4: New file.
60348
60349 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60350
60351         * lib/backupfile.c (ISDIGIT): Comment fix.
60352         * lib/getdate.y (ISDIGIT): Likewise.
60353         * lib/posixtm.c (ISDIGIT, year): Likewise.
60354         * lib/strverscmp.c (ISDIGIT): Likewise.
60355         * lib/userspec.c (ISDIGIT): Likewise.
60356
60357 2002-01-16  Jim Meyering  <meyering@lucent.com>
60358
60359         * lib/getdate.y: Add three semicolons, each just before a closing
60360         brace. Bison (as of version 1.31) no longer papers over that mistake.
60361
60362 2002-01-05  Jim Meyering  <meyering@lucent.com>
60363
60364         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60365
60366 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60367
60368         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60369         not silently exit merely because the output buffer happens to
60370         have nothing pending.
60371
60372 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60373
60374         See the big note in ../ChangeLog.
60375         * lib/human.c (suffixes): Prefer K to k for 1024.
60376         (generate_suffix_backwards): New function.
60377         (human_readable_inexact): Use it.
60378         * lib/xstrtol.c (__xstrtol): If there is no number but there
60379         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60380         Accept 'K' as well as 'k'.
60381
60382 2001-12-15  Jim Meyering  <meyering@lucent.com>
60383
60384         * lib/regex.h (__restrict_arr): Update from libc.
60385
60386         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60387         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60388         (STREQ): Define.
60389
60390 2001-12-14  Jim Meyering  <meyering@lucent.com>
60391
60392         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60393         Suggestion from Bruno Haible.
60394
60395 2001-12-10  Jim Meyering  <meyering@lucent.com>
60396
60397         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60398         xrealloc, Instead, include "xalloc.h".
60399         (initbuffer): Don't cast xmalloc return value to char*.
60400         (readline): Reword comment.
60401         Don't cast xrealloc return value to char*
60402         Return NULL, not 0.
60403
60404 2001-12-09  Jim Meyering  <meyering@lucent.com>
60405
60406         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60407         about `signed and unsigned type in conditional expression'.
60408         * lib/posixtm.c (posix_time_parse): Likewise.
60409
60410         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60411
60412         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60413         to avoid a pedantic warning.
60414
60415         * lib/getstr.c: Don't include assert.h.
60416         (getstr): Remove warning-evoking assertions.
60417         Return -1 if offset parameter is out of bounds.
60418         Change the type of a local from int to size_t.
60419
60420         * lib/strftime.c (my_strftime_localtime_r): Include this function
60421         definition in the `#if ! HAVE_TM_GMTOFF' block.
60422
60423         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60424         Include xalloc.h instead.
60425
60426 2001-12-02  Jim Meyering  <meyering@lucent.com>
60427
60428         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60429         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60430         included.
60431
60432         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60433         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60434
60435 2001-11-30  Akim Demaille  <akim@epita.fr>
60436
60437         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60438         before being defined.
60439
60440 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60441
60442         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60443         First arg is int, not unsigned.
60444         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60445         (SIZE_MAX, UINT_MAX): New macros.
60446         (quotearg_n_options): Abort if N is negative.
60447         Avoid overflow check on hosts where size_t is 64 bits and int
60448         is 32 bits, as overflow is impossible there.
60449         Fix off-by-one typo that caused unnecessary reallocation.
60450
60451 2001-11-27  Jim Meyering  <meyering@lucent.com>
60452
60453         * lib/tempname.c: Merge with version from libc.
60454         * lib/regex.c: Likewise.
60455
60456         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60457         systems for which STDC_HEADERS is 0, it was not included, resulting in
60458         a warning about an integer-to-pointer conversion problem with getenv.
60459         Reported by Volker Borchert.
60460
60461 2001-11-26  Jim Meyering  <meyering@lucent.com>
60462
60463         * lib/gtod.h: Remove file.
60464         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60465         * lib/gettimeofday.c: Don't include gtod.h.
60466         (GTOD_init): Remove function.
60467         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60468         Suggestion from Volker Borchert.
60469
60470 2001-11-23  Jim Meyering  <meyering@lucent.com>
60471
60472         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60473         it.
60474         * lib/hash.c (struct hash_table): Define it here instead.
60475
60476 2001-11-22  Jim Meyering  <meyering@lucent.com>
60477
60478         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60479
60480 2001-11-20  Jim Meyering  <meyering@lucent.com>
60481
60482         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60483         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60484
60485 2001-11-19  Jim Meyering  <meyering@lucent.com>
60486
60487         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60488         directory.  Use "conftestXXXXXX" as the template.
60489         Suggestion from Paul Eggert.
60490
60491         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60492         immediately, so the test doesn't mistakenly hit the max-open-files
60493         limit.
60494
60495 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60496
60497         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60498         (TEMPORARIES): New macro.
60499         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60500         removes an artificial limitation (e.g. HP-UX 10.20, where
60501         TMP_MAX is 17576).
60502
60503 2001-11-18  Jim Meyering  <meyering@lucent.com>
60504
60505         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60506
60507 2001-11-18  Jim Meyering  <meyering@lucent.com>
60508
60509         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60510         on SunOS 4.
60511
60512         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60513         files will be created before anything else.
60514
60515 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60516
60517         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60518         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60519
60520 2001-11-17  Jim Meyering  <meyering@lucent.com>
60521
60522         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60523         Prompted by a report from Bob Proulx.
60524
60525         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60526         Instead, require UTILS_FUNC_MKSTEMP.
60527
60528 2001-11-17  Jim Meyering  <meyering@lucent.com>
60529
60530         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60531         Now, that's done as part of AC_FUNC_STRTOD.
60532
60533 2001-11-17  Jim Meyering  <meyering@lucent.com>
60534
60535         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60536         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60537         rather than group writable.  Patch by Juan F. Codagnone.
60538
60539         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60540         xrealloc, Instead, include "xalloc.h".
60541
60542         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60543         Remove explicit declarations of xmalloc, xrealloc,
60544         and xstrdup.  Instead, include "xalloc.h".
60545
60546         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60547         unlocked-io.h.
60548         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60549         Likewise.
60550         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60551
60552         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60553         Reported by Padraig Brady.
60554
60555         * lib/mkstemp.c: #undef mkstemp.
60556         Include config.h.
60557         (rpl_mkstemp): Rename from mkstemp.
60558         Protoize.
60559
60560 2001-11-16  Jim Meyering  <meyering@lucent.com>
60561
60562         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60563         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60564         determine the amount of total physical memory, use pstat_getstatic.
60565         HPUX-11 doesn't define _SC_PHYS_PAGES.
60566         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60567         If sysconf couldn't be used to determine the amount of available
60568         physical memory, use both pstat_getstatic and pstat_getdynamic.
60569         Based on a patch from Bob Proulx.
60570
60571 2001-11-10  Jim Meyering  <meyering@lucent.com>
60572
60573         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60574         (jm_PREREQ): Use it.
60575
60576 2001-11-09  Jim Meyering  <meyering@lucent.com>
60577
60578         * m4/jm-macros.m4: Require autoconf-2.52f.
60579         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60580         Use these AC_-prefixed names, not the AM_-prefixed ones.
60581
60582         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60583
60584 2001-11-05  Jim Meyering  <meyering@lucent.com>
60585
60586         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60587
60588 2001-11-04  Jim Meyering  <meyering@lucent.com>
60589
60590         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60591         $DEFS.
60592
60593 2001-11-03  Jim Meyering  <meyering@lucent.com>
60594
60595         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60596         of AC_DEFUN.
60597
60598         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60599         know the name of the variable in the macro definition.
60600
60601 2001-11-03  Jim Meyering  <meyering@lucent.com>
60602
60603         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60604         in argmatch_to_argument call.
60605
60606         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60607         argument.
60608
60609         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60610         e.g., a fault due to an attempt to free a NULL pointer.
60611
60612 2001-11-01  Jim Meyering  <meyering@lucent.com>
60613
60614         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60615         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60616
60617 2001-11-01  Jim Meyering  <meyering@lucent.com>
60618
60619         * lib/dirfd.c, lib/dirfd.h: New files.
60620         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60621
60622         * lib/hash.c (hash_print) [TESTING]: Clean up.
60623
60624 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60625
60626         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60627         to avoid a warning if -Wall.
60628
60629 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60630
60631         * README: New file
60632         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60633         (per RMS's instructions, this is now the canonical source)
60634         * lgpl/, gpl/: New directories.
60635
60636 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60637
60638         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60639
60640 2001-10-21  Jim Meyering  <meyering@lucent.com>
60641
60642         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60643         this code would end up calling gettext even in packages built
60644         with --disable-nls.
60645         * lib/getopt.c (_): Likewise.
60646         * lib/regex.c (_): Likewise.
60647
60648 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60649
60650         * m4/error.m4 (jm_PREREQ_ERROR):
60651         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60652         AC_FUNC_STRERROR_R does that.
60653         Check for strerror declaration.
60654
60655         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60656         are supposed to have them these days.
60657         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60658         Merge changes from latest Autoconf CVS.
60659         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60660         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60661         POSIX decided to standardize on the int flavor of strerror_r.
60662
60663 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60664
60665         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60666         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60667         Use strerror_r that is only a macro, even if it is not a function.
60668         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60669         (private_strerror): Use prototypes, not old-style function definition.
60670         (print_errno_message): New function.
60671         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60672         char*-flavored one.
60673         (error_tail, error, error_at_line): Use it.
60674
60675 2001-10-11  Jim Meyering  <meyering@lucent.com>
60676
60677         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60678         and quote_n (1, ... to avoid clobbering a buffer.
60679
60680 2001-10-05  Jim Meyering  <meyering@lucent.com>
60681
60682         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60683         hash-pjw.h.
60684         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60685         * lib/hash-pjw.h: New file.
60686
60687 2001-09-30  Jim Meyering  <meyering@lucent.com>
60688
60689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60690         `struct fsstat' has the `f_fstypename' member.
60691         Use that to define FS_TYPE, which is now used to make
60692         the getfsstat link test tighter.
60693
60694 2001-09-30  Jim Meyering  <meyering@lucent.com>
60695
60696         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60697         Include <sys/ucred.h>, for Apple Darwin.
60698         Include sys/mount.h and sys/fs_types.h only if available.
60699         (FS_TYPE): Define.
60700         (read_filesystem_list): Use FS_TYPE.
60701
60702 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60703
60704         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60705         a boolean context.
60706
60707 2001-09-29  Jim Meyering  <meyering@lucent.com>
60708
60709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60710         [one-argument getmntent function]): Include stdio.h before mntent.h.
60711         SunOS 4.1.x needs it for the declaration of `FILE'.
60712         Patch by Volker Borchert.
60713
60714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60715         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60716         sys/fs_types.h, and make the link-test for getfsstat guard #include
60717         directives with appropriate #if HAVE_*_H tests so that we can
60718         detect getfsstat on Apple Darwin1.3.7 systems.
60719         Reported by Nelson Beebe.
60720         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60721
60722 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60723
60724         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60725         #defines strtoimax.  Also treat the other strto* functions
60726         like strtoimax.
60727
60728         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60729         Check for strtoul and strtoumax,
60730         as those declarations are made even in the signed case.
60731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60732         Likewise, for strtol and strtoimax.
60733
60734 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60735
60736         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60737         #defines strtoimax.  Also treat the other strto* functions
60738         like strtoimax.
60739
60740         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60741         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60742         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60743
60744 2001-09-26  Jim Meyering  <meyering@lucent.com>
60745
60746         Most macros in unlocked-io.h had the wrong number of arguments.
60747         * lib/gen-uio: New script.
60748         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60749         * lib/unlocked-io.hin: Remove file.
60750         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60751         rather than trying to embed it here.
60752         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60753         Reported by Padraig Brady.
60754
60755 2001-09-25  Volker Borchert  <bt@teknon.de>
60756
60757         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60758         `result'.
60759
60760 2001-09-24  Jim Meyering  <meyering@lucent.com>
60761
60762         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60763
60764 2001-09-23  Jim Meyering  <meyering@lucent.com>
60765
60766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60767         instead of the mere test for existence of mntent.h.  The latter
60768         would get a false-positive on AIX 3.4 systems.
60769         In the outer getmntent if-block, don't die if neither of the getmntent
60770         tests succeeds.  Instead, just fall through and continue with the
60771         remaining tests.
60772
60773 2001-09-23  Jim Meyering  <meyering@lucent.com>
60774
60775         * lib/mountlist.c: Remove useless parentheses in #if directives.
60776         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60777         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60778
60779 2001-09-22  Jim Meyering  <meyering@lucent.com>
60780
60781         * m4/gettext.m4: New file.  From gettext.
60782         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60783         * m4/progtest.m4: Likewise
60784         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60785         * m4/glibc21.m4: Likewise.
60786
60787         * m4/libintl.m4: Remove.  No longer used.
60788
60789 2001-09-22  Jim Meyering  <meyering@lucent.com>
60790
60791         * lib/localcharset.c: Update from latest gettext.
60792         * lib/config.charset: Likewise.
60793
60794 2001-09-20  Jim Meyering  <meyering@lucent.com>
60795
60796         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60797         strtoimax.
60798         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60799         strtoumax.
60800
60801 2001-09-20  Jim Meyering  <meyering@lucent.com>
60802
60803         * lib/xstrtol.c (strtoimax): Guard declaration with
60804         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60805         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60806         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60807         (strtoumax): Likewise, for completeness (it wasn't necessary).
60808
60809 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60810
60811         * lib/strtoimax.c (HAVE_LONG_LONG):
60812         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60813         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60814         to work around bug in IBM C compiler.
60815
60816 2001-09-17  Jim Meyering  <meyering@lucent.com>
60817
60818         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60819         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60820         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60821         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60822         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60823         whenever the right hand side need not be expanded by the shell.
60824
60825 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60826
60827         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60828         library.  It's not correct, as some older glibcs are buggy.
60829         fnmatch wasn't fixed until glibc 2.2.
60830
60831         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60832         special shell magic here.
60833
60834 2001-09-16  Jim Meyering  <meyering@lucent.com>
60835
60836         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60837         * m4/jm-macros.m4: Require it.
60838
60839 2001-09-16  Jim Meyering  <meyering@lucent.com>
60840
60841         * lib/mkdir.c: New file.
60842
60843 2001-09-15  Jim Meyering  <meyering@lucent.com>
60844
60845         * m4/jm-macros.m4: Check for help2man.
60846
60847 2001-09-11  Jim Meyering  <meyering@lucent.com>
60848
60849         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60850         The body, by Paul Eggert, was moved here from configure.in.
60851         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60852
60853 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60854
60855         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60856         (jm_PREREQ): Use it.
60857
60858 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60859
60860         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60861         Use ssize_t, not int, to store result of readlink.
60862         Check for ssize_t overflow as well as size_t overflow,
60863         as POSIX says the result of readlink is implementation-defined
60864         when ssize_t overflows.
60865         Remove unnecessary cast to char*.
60866         Use free+malloc instead of realloc, as the storage doesn't need
60867         to be preserved and it's clearer and can be more efficient that way.
60868         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60869         * lib/xreadlink.h (xreadlink): Update prototype.
60870
60871 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60872
60873         * lib/xgetcwd.c: Revert some of the previous change; intead,
60874         fix the HAVE_GETCWD_NULL code to behave more like the
60875         !HAVE_GETCWD_NULL code used to.
60876
60877         Include "xalloc.h".
60878         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60879         invoke xalloc_die.
60880
60881 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60882
60883         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60884         sys/param.h, as pathmax.h includes them.
60885
60886 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60887
60888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60889         (jm_PREREQ_XGETCWD): New macro.
60890
60891         * m4/getcwd.m4: New file.
60892
60893 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60894
60895         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60896         like the HAVE_GETCWD_NULL code.
60897         Include pathmax.h if not HAVE_GETCWD.
60898         Do not include xalloc.h.
60899         (INITIAL_BUFFER_SIZE): New symbol.
60900         Do not use xmalloc / xrealloc, since the caller is responsible for
60901         handling errors.  Preserve errno around `free' during failure.
60902         Do not overrun buffer when using getwd.
60903
60904 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60905
60906         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60907         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60908         getcwd (NULL, 0).
60909
60910 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60911
60912         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60913         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60914         spotted by Jim Meyering.
60915
60916 2001-09-03  Jim Meyering  <meyering@lucent.com>
60917
60918         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60919         failure.
60920
60921 2001-09-02  Jim Meyering  <meyering@lucent.com>
60922
60923         * lib/error.c: Update from GNU libc.
60924
60925 2001-09-01  Jim Meyering  <meyering@lucent.com>
60926
60927         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60928         Used by df.
60929
60930 2001-09-01  Jim Meyering  <meyering@lucent.com>
60931
60932         * lib/xreadlink.c: New file.
60933         * lib/xreadlink.h: New file.
60934         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60935         xreadlink.h.
60936
60937         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60938         doesn't conflict with sparc Solaris 7's definition in
60939         /usr/include/sys/int_types.h.
60940
60941         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60942         files.
60943         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60944         and strncasecmp as r-values.  Unixware didn't have declarations.
60945
60946 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60947
60948         * lib/xstrtol.h: Add copyright notice.
60949         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60950         LONGINT_INVALID_SUFFIX_CHAR.
60951
60952 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60953
60954         * lib/xstrtol.c (strtoimax): New decl.
60955
60956 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60957
60958         * lib/xgetcwd.c: Don't include pathmax.h.
60959         Include stdlib.h and unistd.h if available.
60960         Include xalloc.h.
60961         (xmalloc, xstrdup, free): Remove decls.
60962         (xgetcwd): Don't assume sizes fit in unsigned.
60963         Check for overflow when computing sizes.
60964         Simplify reallocation code.
60965
60966 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60967
60968         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60969         a directory's st_size can have an arbitrary value, so the old
60970         usage could waste an arbitrary amount of memory.  All uses
60971         changed.
60972         * lib/savedir.h: Update prototype.
60973
60974 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60975
60976         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60977
60978         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60979         old strtoimax.c.
60980
60981         Also, make the following further changes to make this file's
60982         configuration more similar to that of strtol.c:
60983         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60984         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60985         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60986         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60987         changed to signed values.
60988
60989         And make the following changes as well:
60990         Fix copyright notice, as 1999 was missing.
60991         (verify): New macro.
60992         (strtoimax): Check sizes at compile-time, not run-time.
60993         Prefer strtol to strtoll if both work.
60994         (main): Remove; it was not that useful and was a pain to maintain.
60995
60996         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60997
60998 2001-08-31  Jim Meyering  <meyering@lucent.com>
60999
61000         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61001         Use an initial, malloc'd, buffer of length 128 rather than
61002         a statically allocated one of length 1024.
61003
61004 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61005
61006         Simplify code, partly by assuming autoconf 2.52 semantics.
61007
61008         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61009
61010         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61011         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61012         All uses removed.
61013         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61014         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61015         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61016         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61017         jm_AC_HEADER_INTTYPES_H.
61018         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61019
61020         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61021
61022         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61023         Quote first arg of AC_DEFUN.
61024         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61025         since they are needed to parse the include file even if we need
61026         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61028         but with opposite signedness.
61029
61030 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61031
61032         Merge 'exclude' changes from tar 1.13.22.
61033         This fixes one or two unlikely storage allocation overflow bugs,
61034         but doesn't change user-visible behavior otherwise.
61035
61036 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61037
61038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61039         (jm_PREREQ_EXCLUDE): New macro.
61040
61041 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61042
61043         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61044         tm to be declared.
61045
61046 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61047
61048         * lib/hash.c: Remove '2001' from copyright notice.
61049
61050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61051
61052         * lib/full-write.h: New file.
61053         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61054         * lib/full-write.c: Correct credits, as cccp.c no longer
61055         exists and anyway it was so heavily changed from the old cccp
61056         code as to be unrecognizable.  Include full-write.h.
61057         (full_write) Return size_t, with short writes meaning failure.
61058         All callers changed.  This fixes a bug with large buffers
61059         on 64-bit hosts.
61060         * lib/utime.c: Include full-write.h.
61061
61062 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61063
61064         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61065         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61066         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61067         Include if available.
61068         (<xalloc.h>): Include
61069         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61070         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61071         collide with FNM macros.
61072         (struct patopts): New struct.
61073         (struct exclude): Use it, as exclude patterns now come with options.
61074         (new_exclude): Support above changes.
61075         (new_exclude, add_exclude_file):
61076         Initial size must now be a power of two to simplify overflow checking.
61077         (free_exclude, fnmatch_no_wildcards): New function.
61078         (excluded_filename): No longer requires options arg, as the options
61079         are determined by add_exclude.  Now returns bool, not int.
61080         (excluded_filename, add_exclude):
61081         Add support for the fancy new exclusion options.
61082         (add_exclude, add_exclude_file): Now takes int options arg.
61083         Check for arithmetic overflow when computing sizes.
61084         (add_exclude_file): xrealloc might modify errno, so don't
61085         realloc until after errno might be used.
61086
61087         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61088         New macros.
61089         (free_exclude): New decl.
61090         (add_exclude, add_exclude_file): Now takes int options arg.
61091         (excluded_filename): No longer requires options arg, as the options
61092         are determined by add_exclude.  Now returns bool, not int.
61093
61094 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61095
61096         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61097
61098 2001-08-27  Jim Meyering  <meyering@lucent.com>
61099
61100         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61101
61102         * lib/version-etc.c (N_): Remove definition.
61103         Revert most of last change.
61104         Instead, simply don't mark the `Copyright...' string for translation.
61105         Based on advice from Paul Eggert.
61106
61107         * lib/strtoxmax.c: Tweak comment.
61108
61109 2001-08-26  Jim Meyering  <meyering@lucent.com>
61110
61111         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61112
61113         * m4/xstrtoimax.m4: New file.
61114         * m4/xstrtoumax.m4: Add comments explaining why we
61115         AC_REPLACE_FUNCS(strtol).
61116
61117 2001-08-26  Jim Meyering  <meyering@lucent.com>
61118
61119         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61120         of copyright with `%s' so translators don't get an untranslated
61121         message in 2002.
61122         (COPYRIGHT_YEAR): Define.
61123         (version_etc): Use fprintf rather than fputs.
61124         Suggestion from Ulrich Drepper.
61125
61126         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61127
61128         * lib/strtoll.c: New file, from GNU libc.
61129         * lib/xstrtoimax.c: New file.
61130
61131         * lib/xstrtol.h: Add xstrtoimax.
61132         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61133         * lib/strtoimax.c: New file.  Likewise, but first define
61134         STRTOUXMAX_SIGNED.
61135
61136         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61137         ...
61138         * lib/strtoxmax.c: ... then renamed to this.
61139
61140 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61141
61142         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61143         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61144         (jm_AC_TYPE_INTMAX_T): New macro.
61145         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61146
61147         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61148
61149         * m4/longlong.m4: Renamed from ulonglong.m4.
61150         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61151         * m4/uintmax_t.m4: Removed.
61152
61153 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61154
61155         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61156         Port to Solaris 8, where 'sed' requires a space after the 'r'
61157         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61158         Redirect output to $tmp just once.
61159
61160 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61161
61162         * lib/addext.c (<errno.h>): Include.
61163         (errno): Declare if not defined.
61164         (addext): Work correctly when pathconf returns -1 and leaves
61165         errno alone because there is no limit.  Also, work even if
61166         pathconf returns a value greater than SIZE_MAX.
61167
61168 2001-08-12  Jim Meyering  <meyering@lucent.com>
61169
61170         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61171         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61172         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61173         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61174         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61175         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61176         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61177         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61178         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61179         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61180         utime.m4, utimes.m4, xstrtoumax.m4:
61181         Quote the first argument in each use of AC_DEFUN.
61182
61183 2001-08-12  Jim Meyering  <meyering@lucent.com>
61184
61185         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61186         Simply `return getcwd (NULL, 0);'.
61187         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61188         Use 1300 as initial value for length, not PATH_MAX.
61189
61190         * lib/pathmax.h: Clean up cpp syntax.
61191
61192 2001-08-12  Jim Meyering  <meyering@lucent.com>
61193
61194         * lib/gettimeofday.c: New file.
61195         * lib/gtod.h: New file.
61196         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61197
61198 2001-08-05  Jim Meyering  <meyering@lucent.com>
61199
61200         * m4/jm-macros.m4: Require autoconf-2.52.
61201
61202 2001-08-04  Jim Meyering  <meyering@lucent.com>
61203
61204         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61205         stmt, to get in sync with glibc.
61206
61207 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61208
61209         The following changes are from gettext 0.10.39 as maintained by
61210         Bruno Haible.
61211
61212         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61213         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61214         with inverted sense.  All uses changed.
61215
61216         * lib/mbswidth.c: Don't include <limits.h>.
61217         Include <stdlib.h> and <string.h> unconditionally.
61218         (iswcntrl, mbsinit, ISCNTRL): New macros.
61219         (mbsnwidth): Use K&R style function declarations.
61220         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61221         can optimize it when MB_CUR_MAX == 1.
61222         The width of control characters is zero, not 1.
61223
61224 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61225
61226         The following changes are from gettext 0.10.39 as maintained by
61227         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61228
61229         * m4/codeset.m4: Upgrade to serial AM1.
61230         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61231         all uses changed.  Quote first arg of AC_DEFUN.
61232         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61233
61234         * m4/iconv.m4: Upgrade to serial AM2.
61235         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61236         Add --with-libconv-prefix.
61237         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61238         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61239         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61240         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61241         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61242
61243         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61244         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61245         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61246         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61247         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61248         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61249         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61250         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61251         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61252
61253         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61254         string.h any more.
61255
61256         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61257         not the default value.
61258
61259         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61260         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61261         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61262         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61263         Also check for iswcntrl, used for wcwidth fallback.
61264         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61265         to Autoconf 2.13.
61266
61267 2001-08-03  Jim Meyering  <meyering@lucent.com>
61268
61269         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61270         as it was in the original.  Reported by Paul Eggert.
61271
61272 2001-07-16  Jim Meyering  <meyering@lucent.com>
61273
61274         * m4/gettimeofday.m4: New file.
61275         Prompted by a report from Bernhard Baehr.
61276
61277 2001-07-15  Jim Meyering  <meyering@lucent.com>
61278
61279         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61280         stuff. Now it's in ../Makefile.cfg.
61281
61282 2001-07-15  Jim Meyering  <meyering@lucent.com>
61283
61284         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61285         (BUILT_SOURCES): Add unlocked-io.h.
61286         (io_functions): Define.
61287         (unlocked-io.h): New rule.
61288         (DISTCLEANFILES): Add unlocked-io.h.
61289         (all-local): Depend on unlocked-io.h, to ensure it is created.
61290
61291         * lib/unlocked-io.hin: New file
61292
61293         * lib/regex.c: Update from glibc.
61294
61295 2001-07-05  Jim Meyering  <meyering@lucent.com>
61296
61297         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61298         recommendation.
61299         (libfetish_a_SOURCES): Put all .h files here instead.
61300         Remove a thus-exposed (better checks in automake) duplicate and
61301         two unnecessary .h files.
61302
61303 2001-07-04  Jim Meyering  <meyering@lucent.com>
61304
61305         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61306         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61307         distcheck failure.
61308
61309 2001-07-02  Jim Meyering  <meyering@lucent.com>
61310
61311         The following changes were prompted by suggestions from Bruno Haible.
61312
61313         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61314         is now generated.
61315         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61316         definition of EXTRA_DIST.
61317         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61318         ensure that the generated file is created/updated whenever the list
61319         of $(unlocked_functions) is changed.
61320         (jm-glibc-io.m4): New rule.
61321         (unlocked-io.h): New rule -- currently unused.
61322
61323 2001-06-24  Jim Meyering  <meyering@lucent.com>
61324
61325         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61326         unmatched right bracket, rather than kludging it with an extra,
61327         falsely-matching quote in a comment.  Patch by Akim Demaille.
61328
61329 2001-06-11  Jim Meyering  <meyering@lucent.com>
61330
61331         * lib/regex.c: Update from GNU libc.
61332
61333 2001-05-27  Jim Meyering  <meyering@lucent.com>
61334
61335         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61336         Check for ut_type in struct utmp.
61337
61338 2001-05-27  Jim Meyering  <meyering@lucent.com>
61339
61340         * lib/readutmp.h (UT_TYPE): Define.
61341
61342 2001-05-24  Jim Meyering  <meyering@lucent.com>
61343
61344         * lib/argmatch.c: Include "quote.h".
61345         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61346         quote function.  Reported by Göran Uddeborg.
61347
61348 2001-05-22  Jim Meyering  <meyering@lucent.com>
61349
61350         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61351         now that we use the package-supplied version unconditionally.
61352         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61353
61354 2001-05-21  Jim Meyering  <meyering@lucent.com>
61355
61356         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61357         shell syntax errors.
61358
61359 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61360
61361         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61362
61363 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61364
61365         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61366         Don't bother to check library strftime, since
61367         we'll be using our own my_strftime function anyway.
61368         Define my_strftime instead of strftime.
61369
61370 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61371
61372         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61373         which is not yet declared.
61374
61375 2001-05-15  Jim Meyering  <meyering@lucent.com>
61376
61377         * m4/regex.m4: Use proper quoting so brackets appear in the test
61378         program.
61379         Reported by, and with help from, Bruno Haible.
61380
61381 2001-05-13  Jim Meyering  <meyering@lucent.com>
61382
61383         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61384         undefined.
61385
61386 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61387
61388         dirname code cleanup.  base_name now behaves more compatibly
61389         with POSIX basename when given file names that have trailing
61390         slashes, and similarly for dir_name.  Add new primitives
61391         base_len and dir_len.  Put the directory-name-related decls
61392         into dirname.h.
61393
61394         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61395         * lib/backupfile.c (base_name): Likewise.
61396         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61397         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61398         * lib/makepath.c (strip_trailing_slashes): Likewise.
61399         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61400         ISSLASH): Likewise.
61401         * lib/rename.c (strip_trailing_slashes): Likewise.
61402         * lib/same.c (base_name): Likewise.
61403         * lib/stripslash.c (ISSLASH): Likewise.
61404
61405         * lib/addext.c: Include <dirname.h> after size_t is defined.
61406         * lib/backupfile.c: Likewise.
61407
61408         * lib/addext.c (addext): Use base_len to trim redundant
61409         trailing slashes instead of doing it ourselves.
61410         But do not trim the last slash if it is not redundant.
61411
61412         * lib/backupfile.c (find_backup_file_name,
61413         max_backup_version): Use base_len instead of rolling it ourselves.
61414         Handle the case of "" and (on DOS) "C:" correctly.
61415
61416         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61417         needed. Include <string.h>, <dirname.h>.
61418         (base_name): Allow file names ending in slashes, other than names
61419         that are all slashes.  In this case, return the basename followed
61420         by the slashes.  This is more general, and can be used in places
61421         where the original base_name purposely had an assertion failure.
61422         (base_len): New function.
61423
61424         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61425         Do not include <assert.h>; no longer needed.
61426         Include xalloc.h.
61427         (memrchr): Remove decl.
61428         (dir_name_r): Remove.
61429         (dir_len): Renamed from dirlen.  All callers changed.
61430         Rewrite in terms of base_name, for simplicity and consistency.
61431         (dir_name): Never return NULL.  All callers changed.
61432         Do not include <stdlib.h> in test program; no longer needed.
61433         return 0; is fine for test program.
61434
61435         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61436         New macros.
61437         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61438
61439         * lib/path-concat.c (path_concat): Use base_len to compute
61440         base length, not strlen; this means we cannot rely on memcpy
61441         to null-terminate.
61442
61443         * lib/same.c (STREQ): Remove.
61444         (same_name): Handle the case where the basename ends in trailing '/'.
61445
61446         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61447         a slash was stripped.  Do not strip the last slash after a
61448         file system prefix.
61449
61450 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61451
61452         * lib/Makefile.am (libfetish_a_SOURCES):
61453         Add strftime.c, since we now compile it on all hosts.
61454
61455         * lib/strftime.c (my_strftime):
61456         Define to nstrftime if emacs, but only if my_strftime is not defined.
61457         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61458         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61459         Add one more extra argument: a nanoseconds value.
61460         All uses changed.
61461         (ns): New macro.
61462         (my_strftime function): Add %N format.
61463         (emacs_strftimeu): Renamed from emacs_strftime,
61464         with extra ut argument.
61465
61466 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61467
61468         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61469
61470 2001-04-21  Jim Meyering  <meyering@lucent.com>
61471
61472         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61473         doesn't interfere.
61474
61475 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61476
61477         * m4/ftruncate.m4: Check for chsize.
61478         Link with ftruncate.o unconditionally if ftruncate is missing.
61479         This was required when cross-compiling to i586-mingw32msvc.
61480
61481 2001-04-08  Jim Meyering  <meyering@lucent.com>
61482
61483         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61484         recomputed; that's necessary when the offset spans a DST transition.
61485         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61486
61487 2001-04-02  Jim Meyering  <meyering@lucent.com>
61488
61489         * lib/regex.h, regex.c: Update from GNU libc.
61490
61491 2001-03-24  Jim Meyering  <meyering@lucent.com>
61492
61493         * m4/jm-macros.m4: Require autoconf-2.49d.
61494
61495 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61496
61497         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61498
61499 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61500
61501         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61502
61503 2001-03-17  Jim Meyering  <meyering@lucent.com>
61504
61505         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61506         now that the version in autoconf is equivalent.
61507         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61508
61509         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61510         Suggestion from Akim Demaille.
61511
61512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61513         (jm_PREREQ_TEMPNAME): New function.
61514
61515 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61516
61517         * lib/tempname.c (uint64_t): Define to uintmax_t if
61518         not defined, and if UINT64_MAX is not defined.
61519         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61520         Reported by John David Anglin.
61521
61522 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61523
61524         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61525         resolve alias if codeset is empty.
61526         * lib/config.charset (BeOS): Use wildcard syntax.
61527
61528 2001-03-13  Jim Meyering  <meyering@lucent.com>
61529
61530         * lib/path-concat.c (path_concat)
61531         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61532         concatenating e.g., `C:' and `foo'.
61533         From Bruno Haible.
61534
61535 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61536
61537         * lib/localcharset.c (locale_charset): Don't use
61538         setlocale(LC_CTYPE,NULL). Don't return NULL.
61539         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61540
61541 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61542
61543         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61544         support for DOS/DJGPP.
61545
61546 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61547
61548         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61549         lacks mkstemp.  Compile our own tempname.c if we compile our own
61550         mkstemp.c, as mkstemp relies on tempname.
61551
61552 2001-03-01  Jim Meyering  <meyering@lucent.com>
61553
61554         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61555         AH_VERBATIM really does output its argument verbatim.
61556
61557 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61558
61559         * lib/Makefile.am (libfetish_a_SOURCES):
61560         Add dup-safer.c, fopen-safer.c.
61561         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61562
61563         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61564         * lib/unistd-safer.h: New files.
61565
61566 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61567
61568         The mkstemp replacement is taken from glibc 2.2.2, with some
61569         portability fixes for use outside glibc, as follows:
61570
61571         * lib/tempname.c (struct_stat64): New macro.
61572         (direxists, __gen_tempname): Use it.
61573         This avoids a portability problem with Solaris 8.
61574
61575         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61576         (<stddef.h>, <stdint.h>, <string.h>):
61577         Include only if STDC_HEADERS || _LIBC.
61578         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61579         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61580         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61581         (__set_errno): Define this macro if <errno.h> doesn't.
61582         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61583         Define these macros if <stdio.h> doesn't.
61584         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61585         Define these macros if <sys/stat.h>
61586         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61587         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61588         __xstat64): Define if not _LIBC.
61589         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61590         (__gen_tempname): Invoke gettimeofday only if
61591         HAVE_GETTIMEOFDAY || _LIBC;
61592         otherwise, fall back on plain "time".
61593         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61594
61595         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61596
61597         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61598
61599 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61600
61601         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61602
61603 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61604
61605         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61606         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61607         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61608         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61609
61610 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61611
61612         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61613         Remove workaround macros for hosts that have mbrtowc but not
61614         mbstate_t, as we now insist on proper declarations for both
61615         before using mbrtowc.
61616
61617 2001-02-17  Jim Meyering  <meyering@lucent.com>
61618
61619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61620         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61621         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61622         UnixWare 7.1.1.
61623
61624         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61625         rather than AC_CACHE_VAL.
61626
61627 2001-02-17  Jim Meyering  <meyering@lucent.com>
61628
61629         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61630         around included file name.
61631
61632         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61633
61634         * lib/strftime.c: Update from GNU libc (the only changes were to
61635         comments).
61636
61637 2001-02-17  Jim Meyering  <meyering@lucent.com>
61638
61639         * lib/regex.c: Update from libc.
61640
61641 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61642
61643         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61644         clash.
61645
61646 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61647
61648         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61649         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61650         Reported by Mark Hounschell via Paul Eggert.
61651
61652 2001-02-07  Jim Meyering  <meyering@lucent.com>
61653
61654         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61655
61656 2001-02-05  Jim Meyering  <meyering@lucent.com>
61657
61658         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61659         it includes the patch required for `large file' support with at least
61660         HP-UX's 10.20 /bin/cc.
61661
61662 2001-02-03  Jim Meyering  <meyering@lucent.com>
61663
61664         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61665         AS_IF, now that it works once again (mysteriously).
61666         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61667
61668 2001-01-30  Jim Meyering  <meyering@lucent.com>
61669
61670         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61671         * m4/chown.m4: Rename conftestchown to conftest.chown.
61672         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61673         s/conftestdir2/conftest.d2/.
61674         * m4/utimes.m4: s/conftestdata/conftest.data/
61675         Inspired by Pavel Roskin's change in autoconf.
61676
61677 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61678
61679         * lib/config.charset: Update for FreeBSD 4.2.
61680
61681 2001-01-27  Jim Meyering  <meyering@lucent.com>
61682
61683         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61684         a use of AS_IF.
61685         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61686
61687 2001-01-26  Jim Meyering  <meyering@lucent.com>
61688
61689         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61690         quotearg.c includes it.
61691
61692 2001-01-26  Jim Meyering  <meyering@lucent.com>
61693
61694         * lib/quotearg.c: Include stddef.h.
61695         * lib/quote.c: Include stddef.h.
61696         Reported by Axel Kittenberger.
61697
61698         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61699         line in double quotes so that it evokes a better diagnostic.
61700         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61701         Reported by Axel Kittenberger.
61702
61703 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61704
61705         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61706         as if it was a `charset'.
61707
61708 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61709
61710         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61711         has const.
61712
61713 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61714
61715         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61716         to avoid a warning.  Add back 'const' to inptr.
61717
61718 2001-01-20  Jim Meyering  <meyering@lucent.com>
61719
61720         Be sure that headers are checked before used in code compiled
61721         for the type checks.
61722         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61723         In place of that, invoke jm_CHECK_ALL_TYPES.
61724         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61725         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61726         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61727         The check for ssize_t was mistakenly run before the test for unistd.h.
61728
61729         The configure-time check for stdbool.h was missing.
61730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61731         (jm_PREREQ_HASH): New function.
61732
61733 2001-01-17  Jim Meyering  <meyering@lucent.com>
61734
61735         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61736         for autoconf-2.49c.
61737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61738
61739 2001-01-16  Jim Meyering  <meyering@lucent.com>
61740
61741         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61742         From Bruno Haible.
61743
61744 2001-01-14  Jim Meyering  <meyering@lucent.com>
61745
61746         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61747         foo and bar.  Create conftestdir/ in the script, not in the C code.
61748         Remove directories in the script, not in the C code.
61749         Remove conftestdir{,2} before trying to create the directory.
61750         Make the entire configure script fail if the mkdir fails.
61751
61752 2001-01-14  Jim Meyering  <meyering@lucent.com>
61753
61754         * lib/rename.c: New file.  From Volker Borchert.
61755         Include stdlib.h, string.h or strings.h, and xalloc.h.
61756         Use strip_trailing_slashes rather than open-coding it.
61757
61758 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61759
61760         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61761
61762 2001-01-03  Jim Meyering  <meyering@lucent.com>
61763
61764         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61765         of local `inptr' to avoid warning with some system declarations of
61766         iconv.
61767
61768 2001-01-02  Volker Borchert  <bt@teknon.de>
61769
61770         * m4/rename.m4: New file.
61771         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61772
61773 2001-01-01  Jim Meyering  <meyering@lucent.com>
61774
61775         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61776         even on systems with utmpx.h.  It's necessary for the declaration of
61777         utmp's ut_user member.  Reported by Andreas Jaeger.
61778
61779         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61780         available. They are required for the declarations of getgrgid and
61781         getpwuid resp.
61782         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61783         Reported by Andreas Jaeger.
61784
61785 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61786
61787         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61788         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61789         so `make install' also works in VPATH builds.
61790
61791 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61792
61793         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61794         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61795         can be used in subdirectories.
61796
61797 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61798
61799         * lib/modechange.c: Do not assume that mode_t uses the
61800         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61801         the other-execute bit of FOO even if S_IXOTH != 1.
61802
61803         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61804         WOTH, XOTH, ALLM): New macros.
61805         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61806          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61807         Use them.
61808         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61809         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61810         (mode_compile):
61811         No need to use uintmax_t; unsigned long is long enough.
61812         Don't bother to get suffix since we don't use it.
61813
61814 2000-12-26  Jim Meyering  <meyering@lucent.com>
61815
61816         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61817         better with autoheader.
61818
61819 2000-12-24  Jim Meyering  <meyering@lucent.com>
61820
61821         * lib/hash.c (is_prime): Return explicit boolean values.
61822         (hash_get_first): Return NULL to appease Irix5.6's 89.
61823         Reported by Nelson Beebe.
61824
61825 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61826
61827         * lib/localcharset.c (locale_charset): Add support for Win32.
61828
61829 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61830
61831         * lib/physmem.h, lib/physmem.c: New files.
61832
61833         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61834         (noinst_HEADERS): Add physmem.h.
61835
61836         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61837         't' for compatibility with Solaris 8 sort.
61838
61839 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61840
61841         * lib/config.charset: Add support for BeOS.
61842
61843 2000-12-17  Jim Meyering  <meyering@lucent.com>
61844
61845         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61846         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61847
61848 2000-12-16  Jim Meyering  <meyering@lucent.com>
61849
61850         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61851         N and M) would have treated it like `chown N:N FILE'.
61852
61853         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61854
61855 2000-12-16  Jim Meyering  <meyering@lucent.com>
61856
61857         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61858         SHELLS_FILE to a file name that's useful on djgpp systems.
61859         Include stdlib.h.
61860         (ADDITIONAL_DEFAULT_SHELLS): Define.
61861         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61862         Based mostly on a patch from Prashant TR.
61863
61864 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61865
61866         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61867         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61868         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61869
61870 2000-12-08  Andreas Schwab  <schwab@suse.de>
61871
61872         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61873         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61874
61875 2000-12-07  Jim Meyering  <meyering@lucent.com>
61876
61877         * lib/stripslash.c (ISSLASH): Define.
61878         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61879         `/'.
61880         From Prashant TR.
61881
61882         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61883         (dir_name_r): Declare this function as static.
61884         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61885         manifest itself on a name containing a mix of slashes and
61886         backslashes.
61887         Make this function work with names starting with a DOS-style
61888         drive letter and colon prefix.
61889         (dir_name): Append `.' if necessary.
61890         Based mostly on patches from Prashant TR and Eli Zaretskii.
61891
61892         * lib/dirname.h (dir_name_r): Remove prototype.
61893
61894 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61895
61896         * m4/off_t-format.m4: Remove this file.
61897         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61898
61899 2000-12-06  Jim Meyering  <meyering@lucent.com>
61900
61901         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61902         replacement strtoull, we may well need the replacement strtoul, too.
61903         Check for declarations of strtoul and strtoull.
61904         Check for strtol.  Mainly as a cue to cause automake to include
61905         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61906         Check for limits.h -- strtol.c needs it.
61907
61908 2000-12-05  Jim Meyering  <meyering@lucent.com>
61909
61910         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61911
61912 2000-12-04  Jim Meyering  <meyering@lucent.com>
61913
61914         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61915         Also include memory.h, stdlib.h, unistd.h if appropriate.
61916         Reported by Andreas Jaeger (conflicting declaration of malloc).
61917
61918 2000-12-02  Jim Meyering  <meyering@lucent.com>
61919
61920         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61921         * m4/jm-macros.m4 (jm_MACROS): require it.
61922
61923 2000-12-02  Jim Meyering  <meyering@lucent.com>
61924
61925         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61926
61927 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61928
61929         * lib/memrchr.c: Include <config.h> before any system include file.
61930
61931 2000-11-30  Jim Meyering  <meyering@lucent.com>
61932
61933         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61934
61935 2000-11-30  Jim Meyering  <meyering@lucent.com>
61936
61937         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61938
61939 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61940
61941         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61942
61943 2000-11-26  Jim Meyering  <meyering@lucent.com>
61944
61945         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61946
61947 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61948
61949         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61950         size of (size_t) -1; it's not portable.
61951
61952 2000-11-17  Jim Meyering  <meyering@lucent.com>
61953
61954         * lib/strstr.c: Update from GNU libc.
61955
61956 2000-11-17  Akim Demaille  <akim@epita.fr>
61957
61958         * lib/obstack.h: Formatting changes.
61959         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61960         prevent type checking.
61961         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61962         cast the value to (void *): assigning a `foo *' to a `void *'
61963         variable is valid.
61964         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61965
61966 2000-11-16  Jim Meyering  <meyering@lucent.com>
61967
61968         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61969
61970 2000-11-11  Jim Meyering  <meyering@lucent.com>
61971
61972         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61973
61974 2000-11-10  Jim Meyering  <meyering@lucent.com>
61975
61976         * lib/obstack.h: Update from GNU libc.
61977         * lib/obstack.c: Likewise.
61978
61979 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61980
61981         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61982
61983 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61984
61985         * lib/getusershell.c (setusershell): Use rewind rather than
61986         fseek/fseeko, to avoid configuration hassles with fseeko.
61987         Don't bother opening SHELLS_FILE if shellstream is NULL;
61988         it's not necessary.
61989
61990 2000-11-05  Jim Meyering  <meyering@lucent.com>
61991
61992         * lib/makepath.h (make_dir): Declare.
61993         * lib/makepath.c (make_dir): Remove `static' attribute.
61994         Tweak a comment.
61995
61996 2000-11-04  Jim Meyering  <meyering@lucent.com>
61997
61998         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61999
62000 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62001
62002         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62003         last one in a bucket, advance to the next bucket.
62004
62005 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62006
62007         * lib/fnmatch.c: Do not comment out all the code if we are using
62008         the GNU C library, because in some cases we are replacing buggy
62009         code in the GNU C library itself.
62010
62011 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62012
62013         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62014         (regex_compile): Catch bogus \(\1\).
62015
62016 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62017
62018         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62019         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62020         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62021
62022 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62023
62024         * lib/error.h, getline.h, modechange.h:
62025         Remove "2000" from Copyright line, as the file hasn't been
62026         changed this year other than in the copyright notice.
62027
62028         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62029         was changed this year.
62030
62031 2000-10-29  Jim Meyering  <meyering@lucent.com>
62032
62033         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62034         renaming.
62035         * m4/ls-mntd-fs.m4: Likewise
62036
62037 2000-10-29  Jim Meyering  <meyering@lucent.com>
62038
62039         * lib/xstat.in: Fix grammar in comment.
62040
62041 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62042
62043         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62044         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62045         doesn't define __restrict_arr.
62046
62047 2000-10-28  Jim Meyering  <meyering@lucent.com>
62048
62049         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62050         (jm_PREREQ_MEMCHR): New function.
62051
62052 2000-10-28  Jim Meyering  <meyering@lucent.com>
62053
62054         * lib/memchr.c: Update from libc.
62055         Adjust for portability:
62056         [HAVE_STDLIB_H]: Include stdlib.h.
62057         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62058         Undef __memchr, too.
62059         [!weak_alias]: Define __memchr to memchr.
62060
62061         * lib/regex.c: Update from libc.
62062         * lib/regex.h: Likewise.
62063         * lib/getopt1.c: Likewise.
62064         * lib/memcmp.c: Likewise.
62065
62066         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62067         Avoid using fseek, when possible -- it's broken by design.
62068         Patch by Ulrich Drepper.
62069
62070 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62071
62072         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62073         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62074         Giving in to popular pressure to shut up the compiler with casts.
62075
62076 2000-10-26  Jim Meyering  <meyering@lucent.com>
62077
62078         * lib/strftime.c: Update from libc.
62079
62080 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62081
62082         * regex.c: More `unsigned char' -> `re_char' changes.
62083         Also change several `int' into `re_wchar_t'.
62084         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62085         (PUSH_FAILURE_POINTER): Don't cast any more.
62086         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62087         We want GCC to complain, since this piece of code makes
62088         re_match non-reentrant, which *should* be fixed.
62089         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62090         (EXTEND_BUFFER): Use RETALLOC.
62091         (SET_LIST_BIT): Don't cast.
62092         (re_wchar_t): New type.
62093         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62094         that those two functions will always properly return.
62095         (IMMEDIATE_QUIT_CHECK): Cast to void.
62096         (analyse_first): Use recursion rather than an explicit stack.
62097         (re_compile_fastmap): Can't fail anymore.
62098         (re_search_2): Don't check re_compile_fastmap for failure.
62099         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62100         Now also sets the new value (passed in a new argument).
62101         (re_match_2_internal): Use it.
62102         Also, use a new var `reg' of type size_t when looping through regs
62103         rather than reuse the inappropriate `mcnt'.
62104
62105 2000-10-25  Jim Meyering  <meyering@lucent.com>
62106
62107         * lib/obstack.c: Update from libc.
62108
62109 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62110
62111         * regex.c (regex_compile): Change the way of handling a range from
62112         a char less than 256 to a char not less than 256.
62113
62114 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62115
62116         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62117         NT-Emacs only.
62118         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62119         so that re_search functions only quit when callers expect them to.
62120
62121 2000-10-23  Jim Meyering  <meyering@lucent.com>
62122
62123         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62124         wrong.  That set_locale call must not have any side effects.
62125         From Paul Eggert.
62126
62127 2000-10-22  Jim Meyering  <meyering@lucent.com>
62128
62129         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62130         [CYCLIC]: Remove now-unused definition.
62131
62132         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62133         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62134         Suggestion from Ulrich Drepper.
62135
62136 2000-10-21  Jim Meyering  <meyering@lucent.com>
62137
62138         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62139         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62141
62142 2000-10-21  Jim Meyering  <meyering@lucent.com>
62143
62144         * lib/dirname.c (memrchr): Declare if necessary.
62145         (dir_name): Remove the restriction that there be no
62146         trailing slashes.  Now, this code skips past them, effectively
62147         ignoring them.
62148         [TEST_DIRNAME] (main): New unit tests.
62149
62150         * lib/memrchr.c: New file from GNU libc.
62151         Undef __memrchr, too.
62152         [!weak_alias]: Define __memrchr to memrchr.
62153         Guard weak_alias use with `#ifdef weak_alias'.
62154
62155 2000-10-21  Jim Meyering  <meyering@lucent.com>
62156
62157         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62158         (dir_name): Use dir_name_r.
62159         * lib/dirname.h (dir_name_r): Declare it.
62160
62161 2000-10-17  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/quote.h (PARAMS): Define and use.
62164         Reported by Akim Demaille.
62165
62166         * lib/getopt.c: Update from libc.
62167
62168 2000-10-16  Jim Meyering  <meyering@lucent.com>
62169
62170         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62171         setlocale.
62172         From Jan Fedak.
62173
62174 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62175
62176         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62177
62178 2000-09-25  Jim Meyering  <meyering@lucent.com>
62179
62180         * lib/md5.h (rol): Define (from GnuPG).
62181
62182         * lib/sha.c: Give credit (GnuPG) where due.
62183         (M): Use rol rather than open-coding it.
62184         Add a FIXME comment.
62185
62186 2000-09-21  Jim Meyering  <meyering@lucent.com>
62187
62188         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62189         Reported by Michael Stone.
62190
62191 2000-09-20  Jim Meyering  <meyering@lucent.com>
62192
62193         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62194         (noinst_HEADERS): Add sha.h.
62195         Based on code from Scott G. Miller and from GnuPG.
62196
62197 2000-09-18  Jim Meyering  <meyering@lucent.com>
62198
62199         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62200         LIBS. Otherwise, everyone ends up linking with -lelf for some
62201         configurations.
62202         Reported by Mike Stone.
62203
62204 2000-09-15  Jim Meyering  <meyering@lucent.com>
62205
62206         * lib/regex.c: Update from libc.
62207
62208 2000-09-10  Jim Meyering  <meyering@lucent.com>
62209
62210         * lib/getopt.c (_getopt_internal): Update from glibc.
62211
62212 2000-09-09  Jim Meyering  <meyering@lucent.com>
62213
62214         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62215         think it should be used as a general replacement for isascii.
62216         * lib/fnmatch.c: Likewise.
62217         * lib/mbswidth.c: Likewise
62218         * lib/regex.c: Likewise.
62219
62220         Don't use atoi.
62221         * lib/userspec.c: Include sys/param.h and limits.h.
62222         Include xstrtol.h.
62223         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62224         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62225         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62226         UID, GID.  Check range.
62227
62228 2000-09-06  Jim Meyering  <meyering@lucent.com>
62229
62230         * lib/getopt.c (_getopt_internal): Update from glibc.
62231
62232 2000-08-30  Jim Meyering  <meyering@lucent.com>
62233
62234         * lib/strftime.c: Merge in changes from GNU libc.
62235
62236 2000-08-26  Jim Meyering  <meyering@lucent.com>
62237
62238         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62239         * m4/fpending.m4: New file.
62240
62241 2000-08-26  Jim Meyering  <meyering@lucent.com>
62242
62243         * lib/closeout.c: Include "__fpending.h".
62244         (close_stdout_status): Return right away if there's nothing to flush.
62245
62246         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62247         * lib/__fpending.c: New file.
62248         * lib/__fpending.h: New file.
62249
62250 2000-08-20  Jim Meyering  <meyering@lucent.com>
62251
62252         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62253         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62254         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62255
62256 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62257
62258         Improve fileutils installation on systems where running
62259         programs (like install) can't be unlinked.
62260         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62261         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62262
62263 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62264
62265         Standardize on "memory exhausted" instead of "Memory exhausted"
62266         or "virtual memory exhausted".
62267         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62268         "virtual memory exhausted".
62269         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62270         our own message.
62271         * lib/userspec.c (parse_user_spec): Likewise.
62272         * lib/bumpalloc.h: comment fix
62273         * lib/same.c, userspec.c: Include xalloc.h.
62274
62275         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62276         not char *const and pointing to a constant array.
62277         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62278         (xrealloc): Comment fix.
62279
62280         * lib/userspec.c (parse_user_spec):
62281         Don't translate a message until just before returning,
62282         to avoid unnecessary translation.
62283
62284 2000-08-07  Jim Meyering  <meyering@lucent.com>
62285
62286         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62287         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62288         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62289         getgroups.c, gethostname.c, getopt.h, group-member.c,
62290         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62291         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62292         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62293         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62294         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62295         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62296         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62297         yesno.c: Back out Copyright date changes for each file with no change
62298         this year.  This eases coordination with other programs using the same
62299         source code modules.  From Paul Eggert.
62300
62301 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62302
62303         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62304         not char, for compatibility with glibc 2.1.3 strftime.c.
62305
62306 2000-08-03  Greg McGary  <greg@mcgary.org>
62307
62308         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62309         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62310         (EXTEND_BUFFER): Use them.
62311
62312 2000-08-01  Jim Meyering  <meyering@lucent.com>
62313
62314         * lib/dirname.c (ISSLASH): Define.
62315         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62316         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62317         both `\' and `/' may be use as path separators.
62318         Based on a patch from Prashant TR.
62319
62320 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62321
62322         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62323         slot vector a constant, since it might get modified.
62324
62325 2000-07-31  Jim Meyering  <meyering@lucent.com>
62326
62327         * lib/xmalloc.c: Use `virtual memory exhausted', not
62328         `Memory exhausted'.
62329         * lib/obstack.c (print_and_abort): Likewise.
62330
62331 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62332
62333         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62334         buffer, so that the caller can always quote one small
62335         component of a "memory exhausted" message in slot 0.
62336         From a suggestion by Jim Meyering.
62337
62338 2000-07-30  Jim Meyering  <meyering@lucent.com>
62339
62340         * lib/makepath.c (make_path): Quote the other instance, too.
62341
62342         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62343         (STATIC_BUF_SIZE): Define.
62344         (quotearg_n_options): Use only statically allocated storage when
62345         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62346         than STATIC_BUF_SIZE.
62347
62348 2000-07-29  Jim Meyering  <meyering@lucent.com>
62349
62350         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62351         * lib/dirname.c (dir_name): Likewise.
62352
62353         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62354         `/'.
62355
62356         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62357         (dir_name): Assert that there are no trailing slashes.
62358
62359 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62360
62361         * lib/mbswidth.h (mbswidth): Add a flags argument.
62362         (mbswidth): New declaration.
62363         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62364         * lib/mbswidth.c (mbswidth): Add a flags argument.
62365         (mbsnwidth): New function.
62366
62367 2000-07-24  Jim Meyering  <meyering@lucent.com>
62368
62369         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62370
62371 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62372
62373         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62374
62375 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62376
62377         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62378         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62379         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62380         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62381         invoke multibyte primitives.
62382
62383 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62384
62385         * lib/quotearg.c:
62386         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62387         so that mbstate_t is always defined.
62388
62389         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62390         be 1 in at least one GCC installation, and this configuration
62391         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62392         performance on hosts that have mbrtowc but have only unibyte
62393         locales, but I assume these hosts are rare.
62394
62395 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62396
62397         * lib/mbswidth.c (_XOPEN_SOURCE):
62398         Don't define; this causes problems on Solaris 7.
62399         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62400
62401 2000-07-23  Jim Meyering  <meyering@lucent.com>
62402
62403         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62404         too: getgrgid, getpwuid, getuid.
62405
62406 2000-07-23  Jim Meyering  <meyering@lucent.com>
62407
62408         * lib/basename.c (base_name): Add an assertion.
62409
62410 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62411
62412         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62413         shadow its mbsinit function.
62414
62415 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62416
62417         * lib/mbswidth.h: New file.
62418         * lib/mbswidth.c: New file.
62419         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62420         (noinst_HEADERS): Add mbswidth.h.
62421
62422 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62423
62424         * lib/config.charset: Add support for FreeBSD. Improve support for
62425         HP-UX and IRIX 6.
62426
62427 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62428
62429         * m4/mbswidth.m4: New file.
62430         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62431
62432 2000-07-15  Jim Meyering  <meyering@lucent.com>
62433
62434         * lib/makepath.c: Include quote.h.
62435         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62436         corresponding argument in a `quote (...)' call.
62437         Give better diagnostics.
62438
62439         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62440         (noinst_HEADERS): Add quote.h.
62441
62442         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62443         from tar's src/misc.c.
62444         * lib/quote.h: New file.  Prototypes for same.
62445
62446 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62447
62448         From a suggestion by Bruno Haible.
62449         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62450         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62451         to decide whether to define the BeOS workaround macro;
62452         this adjusts to the change to AC_MBSTATE_T.
62453
62454 2000-07-14  Jim Meyering  <meyering@lucent.com>
62455
62456         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62457         jm_AC_TYPE_UINTMAX_T.
62458
62459 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62460
62461         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62462
62463         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62464         quotearg_buffer_restyled): Add support for
62465         clocale_quoting_style.  Undo previous change to
62466         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62467         and "{RIGHT QUOTATION MARK}" msgids.
62468
62469 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62470
62471         From a suggestion by Bruno Haible.
62472         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62473         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62474         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62475         and mbstate_t, to a single-part test that simply defines mbstate_t.
62476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62477         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62478
62479 2000-07-10  Jim Meyering  <meyering@lucent.com>
62480
62481         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62482
62483         * m4/gnu-source.m4: Output to confdefs.h directly.
62484         Suggestion from Akim Demaille.
62485
62486 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62487
62488         The old behavior of quoting `like this' doesn't look good with
62489         newer, ISO-style fonts.  See:
62490         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62491
62492         Instead, quote "like this" by default.  Let the translator
62493         tailor the locale-specific quoting behavior by providing
62494         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62495
62496         * lib/quotearg.c (N_): New macro.
62497         (gettext_default): New function.
62498         (quotearg_buffer_restyled): Use
62499         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62500         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62501
62502 2000-07-09  Jim Meyering  <meyering@lucent.com>
62503
62504         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62505         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62506
62507         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62509
62510 2000-07-09  Jim Meyering  <meyering@lucent.com>
62511
62512         * lib/Most files: Update copyright dates to include 2000.
62513
62514 2000-07-08  Jim Meyering  <meyering@lucent.com>
62515
62516         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62517         if not defined.
62518         (xgethostname): Remove now-unnecessary #ifdef.
62519         Move declaration of `err' into loop where it's used.
62520
62521 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62522         and Bruno Haible  <haible@clisp.cons.org>
62523
62524         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62525         only if the test for an object-type mbstate_t fails.  This
62526         prevents us from mistakenly reporting that mbstate_t is a
62527         system object type after we "#define mbstate_t int" to work
62528         around its lack.
62529
62530 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62531         and Bruno Haible  <haible@clisp.cons.org>
62532
62533         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62534
62535 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62536
62537         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62538         to strerror_r.
62539         Include <ctype.h> for use of isalpha.
62540
62541 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62542
62543         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62544         by allocating a larger buffer. Test the gethostname return value for
62545         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62546         returns an error and ENAMETOOLONG isn't defined.
62547
62548 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62549
62550         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62551         dimension.
62552
62553 2000-07-04  Jim Meyering  <meyering@lucent.com>
62554
62555         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62556         of the deprecated AC_CHECKING.
62557
62558 2000-07-04  Jim Meyering  <meyering@lucent.com>
62559
62560         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62561         Reported by Bruno Haible.
62562
62563 2000-07-04  Jim Meyering  <meyering@lucent.com>
62564
62565         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62566         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62567         lacks mbrtowc.
62568
62569 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62570
62571         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62572         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62573
62574 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62575         and Bruno Haible  <haible@clisp.cons.org>
62576
62577         * lib/quotearg.c (mbrtowc):
62578         Assign to *pwc, and return 1 only if result is nonzero.
62579         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62580
62581 2000-07-03  Jim Meyering  <meyering@lucent.com>
62582
62583         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62584
62585 2000-07-03  Jim Meyering  <meyering@lucent.com>
62586
62587         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62588         This is necessary to get a definition of e.g., UTMP_FILE on
62589         HP-UX 10.20.
62590         From Bob Proulx.
62591
62592 2000-07-02  Jim Meyering  <meyering@lucent.com>
62593
62594         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62595
62596         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62597         AC_LIBOBJ(function_name).
62598         * m4/chown.m4: Likewise.
62599         * m4/fnmatch.m4: Likewise.
62600         * m4/ftruncate.m4: Likewise.
62601         * m4/getgroups.m4: Likewise.
62602         * m4/getline.m4: Likewise.
62603         * m4/group-member.m4: Likewise.
62604         * m4/jm-macros.m4: Likewise.
62605         * m4/lstat.m4: Likewise.
62606         * m4/malloc.m4: Likewise.
62607         * m4/memcmp.m4: Likewise.
62608         * m4/nanosleep.m4: Likewise.
62609         * m4/putenv.m4: Likewise.
62610         * m4/realloc.m4: Likewise.
62611         * m4/regex.m4: Likewise.
62612         * m4/stat.m4: Likewise.
62613         * m4/strftime.m4: Likewise.
62614
62615 2000-07-02  Jim Meyering  <meyering@lucent.com>
62616
62617         * lib/quotearg.c (mbstate_t): Don't define here.
62618
62619 2000-07-02  Jim Meyering  <meyering@lucent.com>
62620
62621         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62622
62623 2000-07-01  Jim Meyering  <meyering@lucent.com>
62624
62625         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62626
62627 2000-07-01  Jim Meyering  <meyering@lucent.com>
62628
62629         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62630         problem.
62631
62632 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62633
62634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62635         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62636
62637 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62638
62639         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62640         per change in ../m4/ls-mntd-fs.m4.
62641         (read_filesystem_list): Ignore symbolic links.
62642
62643 2000-06-29  Jim Meyering  <meyering@lucent.com>
62644
62645         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62646         for declaration of strcmp.
62647
62648         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62649
62650         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62651         Avoid warning by casting result to `char *' to remove `const'.
62652
62653 2000-06-28  Jim Meyering  <meyering@lucent.com>
62654
62655         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62656         included by quotearg.c, for which we perform this test.  From
62657         Bruno Haible.
62658
62659 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62660
62661         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62662         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62663         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62664
62665 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62666
62667         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62668
62669 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62670
62671         savedir now sets errno on failure and invokes xmalloc to get memory.
62672         Fix a couple of other minor bugs while we're at it.
62673
62674         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62675         (NAMLEN): Remove macro.
62676         (malloc, realloc): Remove decls.
62677         (stpcpy): Likewise.
62678         ("xalloc.h"): Include.
62679         (NAME_SIZE_DEFAULT): New macro.
62680         (savedir): Use xmalloc / xrealloc to allocate memory.
62681         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62682         Skip "" directory entries.
62683         Use strlen to calculate directory entry length, since the old method
62684         is rarely used these days and isn't worth supporting.
62685         Don't use a pointer after freeing it.
62686         Check for integer overflow when calculating allocation size.
62687         Use memcpy to copy entries, instead of stpcpy.
62688         Set errno properly when returning NULL.
62689         Check for readdir error.
62690
62691 2000-06-26  Jim Meyering  <meyering@lucent.com>
62692
62693         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62694
62695 2000-06-25  Jim Meyering  <meyering@lucent.com>
62696
62697         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62698         Linux header bug when _XOPEN_SOURCE is defined to 500.
62699
62700 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62701
62702         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62703         deficiency.
62704
62705 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62706
62707         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62708         Include xalloc.h.
62709         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62710
62711 2000-06-24  Jim Meyering  <meyering@lucent.com>
62712
62713         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62714         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62715         for which strerror does return char*, but which lacks a conveniently
62716         accessible declaration of the function.  If the compile-test says
62717         strerror_r doesn't work, then resort to a `run'-test that works on
62718         BeOS and segfaults on DEC Unix.
62719
62720 2000-06-24  Jim Meyering  <meyering@lucent.com>
62721
62722         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62723
62724 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62725
62726         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62727         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62728
62729 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62730
62731         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62732         (mbrtowc, mbstate_t): Define substitutes if
62733         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62734         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62735         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62736
62737 2000-06-23  Jim Meyering  <meyering@lucent.com>
62738
62739         * m4/afs.m4: Add missing AC_MSG_RESULT.
62740         Reported by Bruno Haible.
62741
62742         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62743         Suggestion from Bruno Haible.
62744
62745 2000-06-23  Jim Meyering  <meyering@lucent.com>
62746
62747         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62748
62749 2000-06-21  Jim Meyering  <meyering@lucent.com>
62750
62751         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62752
62753 2000-06-21  Jim Meyering  <meyering@lucent.com>
62754
62755         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62756         (noinst_HEADERS): Add getstr.h.
62757
62758         * lib/getline.c (getstr): Move into a separate file.
62759         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62760         the following changes: new parameter, delim2; both delim[12]
62761         parameters have type `int', not `char'.  The latter would lose
62762         with 8-bit delimiters.
62763         * lib/getstr.h: New file.
62764
62765 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62766
62767         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62768         than 1024, return a memory chunk of least possible size, instead
62769         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62770         Use free/xmalloc instead of xrealloc to avoid copying for very long
62771         paths.
62772
62773 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62774
62775         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62776         the empty string.
62777
62778 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62779
62780         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62781         address, not strdup.  Include <stdlib.h> and don't declare free().
62782
62783 2000-06-19  Jim Meyering  <meyering@lucent.com>
62784
62785         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62786
62787 2000-06-18  Jim Meyering  <meyering@lucent.com>
62788
62789         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62790
62791         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62792         `checking whether...' message to be consistent with that of the
62793         lstat test.
62794
62795 2000-06-18  Jim Meyering  <meyering@lucent.com>
62796
62797         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62798         Besides, these days every porting target provides a mkdir function.
62799
62800         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62801         needed. (this snippet comes from src/system.h).
62802
62803 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62804
62805         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62806
62807 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62808
62809         * lib/human.c (adjust_value): New function.
62810         (human_readable_inexact): Apply rounding style even when
62811         printing approximate values.
62812
62813 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62814
62815         * lib/human.c (human_readable_inexact): Allow an input block
62816         size that is not a multiple of the output block size, and vice versa.
62817         Reported by Piergiorgio Sartor.
62818
62819 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62820
62821         * lib/getdate.y (get_date): Apply relative times after time
62822         zone indicator, not before.  Reported by Todd A. Jacobs.
62823
62824 2000-06-13  Jim Meyering  <meyering@lucent.com>
62825
62826         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62827
62828         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62829
62830 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62831
62832         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62833
62834 2000-06-12  Jim Meyering  <meyering@lucent.com>
62835
62836         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62837         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62838         optional argument.
62839         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62840         the optional argument, `lib'.
62841
62842 2000-06-08  Jim Meyering  <meyering@lucent.com>
62843
62844         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62845
62846 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62847
62848         Rewrite largefile configuration so that we don't need to run
62849         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62850         AC_CANONICAL_HOST in configure.in -- jmm]
62851
62852         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62853         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62854         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62855         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62856         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62857         All uses changed.
62858         Instead of inspecting the output of getconf, try to compile the
62859         test program without and with the macro definition.
62860         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62861         for getconf.  Instead, check for the needed flags by compiling
62862         test programs.
62863
62864 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62865
62866         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62867
62868 2000-06-04  Jim Meyering  <meyering@lucent.com>
62869
62870         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62871         SunOS 4.1.4 for which gid_t is an unsigned type.
62872
62873 2000-06-03  Jim Meyering  <meyering@lucent.com>
62874
62875         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62876         now that autoconf requires that.
62877
62878         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62879         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62880         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62881
62882 2000-06-03  Jim Meyering  <meyering@lucent.com>
62883
62884         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62885
62886 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62887
62888         * m4/glibc21.m4: New file.
62889         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62890
62891 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62892
62893         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62894         newer, don't install charset.alias.
62895         * lib/config.charset: Change the Linux/glibc rules so they become empty
62896         on glibc-2.1 or newer.
62897
62898 2000-06-02  Jim Meyering  <meyering@lucent.com>
62899
62900         * lib/mountlist.c: Back out last change.  Instead, do this...
62901         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62902         me_dummy member using the same `ignore'-testing code.
62903         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62904         fs_type strings.
62905         From Mark D. Roth.
62906
62907 2000-05-29  Jim Meyering  <meyering@lucent.com>
62908
62909         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62910         mounts with the `ignore' attribute.  Based on a patch from
62911         Mark D. Roth.
62912
62913 2000-05-28  Jim Meyering  <meyering@lucent.com>
62914
62915         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62916         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62917         * m4/stat.m4: Likewise.
62918         * m4/lstat.m4: Likewise.
62919         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62920
62921         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62922         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62923
62924 2000-05-26  Jim Meyering  <meyering@lucent.com>
62925
62926         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62927
62928 2000-05-24  Jim Meyering  <meyering@lucent.com>
62929
62930         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62931         autoconf requires that.
62932         * m4/lib-check.m4: Likewise.
62933         * m4/jm-macros.m4: Likewise.
62934         * m4/strftime.m4: Likewise.
62935
62936         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62937         AC_CHECK_DECLS, now that autoconf requires that.
62938
62939 2000-05-22  Jim Meyering  <meyering@lucent.com>
62940
62941         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62942         * m4/lstat.m4: Likewise.
62943
62944 2000-05-22  Jim Meyering  <meyering@lucent.com>
62945
62946         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62947
62948 2000-05-20  Jim Meyering  <meyering@lucent.com>
62949
62950         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62951         (jm_PREREQ): Use it.
62952
62953 2000-05-18  Jim Meyering  <meyering@lucent.com>
62954
62955         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62956         back, too, since it may have been modified by allocate_entry.
62957         (hash_delete): Rewrite to use neither the assignment operator
62958         nor the comma operator in an if-expression.
62959
62960 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62961
62962         * lib/closeout.c:
62963         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62964         Remove; no longer needed.
62965         "quotearg.h": Add include.
62966         (file_name): Do not bother to explicitly initialize to NULL; it's less
62967         efficient on some hosts.
62968         (close_stdout_status): Remove test as to whether stdout was already
62969         closed; it breaks for the case "echo x | sort >&-".
62970         Quote file name colons.
62971         Do not assume that _("write error") lacks format strings.
62972
62973 2000-05-15  Jim Meyering  <meyering@lucent.com>
62974
62975         * lib/version-etc.c (version_etc_copyright): Update the copyright
62976         string used in all --version output.
62977
62978 2000-05-14  Jim Meyering  <meyering@lucent.com>
62979
62980         * lib/closeout.c (close_stdout_set_file_name): New function.
62981         (close_stdout_status): Use new file-scoped global.
62982         Return right away if fstat says the stdout file descriptor is invalid.
62983         * lib/closeout.h (close_stdout_set_file_name): Declare.
62984
62985 2000-05-10  Jim Meyering  <meyering@lucent.com>
62986
62987         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62988         (close_stdout_set_status): New function.
62989         * lib/closeout.h (close_stdout_set_status): Declare.
62990
62991 2000-05-09  Jim Meyering  <meyering@lucent.com>
62992
62993         * m4/gettext.m4: Rename this...
62994         * m4/libintl.m4: ...to this.
62995
62996 2000-05-08  Jim Meyering  <meyering@lucent.com>
62997
62998         * lib/long-options.c: Don't include closeout.h.
62999         (parse_long_options): Don't call close_stdout for --version.
63000
63001 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63002
63003         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63004         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63005         2.1.3 bug.  This avoids a clash when files like regex.c define
63006         _GNU_SOURCE.
63007
63008 2000-05-06  Jim Meyering  <meyering@lucent.com>
63009
63010         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63011         (AC_REPLACE_FUNCS): Add strnlen.
63012
63013         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63014         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63015
63016         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63017         AC_SEARCH_LIBS call for nanosleep.
63018         (LIB_NANOSLEEP): Set and AC_SUBST.
63019
63020 2000-05-06  Jim Meyering  <meyering@lucent.com>
63021
63022         * lib/strnlen.c: Undefine __strnlen and strnlen.
63023         [!weak_alias]: Define __strnlen to strnlen.
63024
63025         * lib/atexit.c: New file, from libiberty.
63026
63027 2000-05-06  Jim Meyering  <meyering@lucent.com>
63028
63029         * lib/closeout.c (close_stdout_status): Also check for errors on the
63030         stderr stream.
63031
63032 2000-05-05  Jim Meyering  <meyering@lucent.com>
63033
63034         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63035         AC_SEARCH_LIBS call for clock_gettime.
63036         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63037
63038         * m4/search-libs.m4: Update from autoconf.
63039
63040         su doesn't work on Solaris 2.6.
63041         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63042         <shadow.h>.  Reported by Dragos Harabor.
63043
63044 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63045
63046         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63047         memcpy instead of xmalloc, xrealloc, path_concat.
63048         (locale_charset): Treat empty environment variables as absent.
63049         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63050
63051 2000-05-04  Jim Meyering  <meyering@lucent.com>
63052
63053         * lib/getopt.c: Update from glibc.
63054         * lib/obstack.c: Likewise.
63055         * lib/obstack.h: Likewise.
63056         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63057         file
63058
63059         * lib/regex.h: Likewise.
63060         * lib/strndup.c: Likewise.
63061         * lib/strnlen.c: New file, from glibc.
63062
63063 2000-05-03  Jim Meyering  <meyering@lucent.com>
63064
63065         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63066
63067 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63068
63069         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63070         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63071         compile-time test, rather than inspecting host and OS, to
63072         decide whether to define _LARGEFILE_SOURCE.
63073
63074 2000-05-01  Jim Meyering  <meyering@lucent.com>
63075
63076         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63077
63078         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63079         Based on a patch from Bruno Haible.
63080
63081 2000-05-01  Jim Meyering  <meyering@lucent.com>
63082
63083         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63084
63085 2000-04-29  Jim Meyering  <meyering@lucent.com>
63086
63087         * lib/path-concat.c: Declare strdup only if it's not defined.
63088         * lib/canon-host.c: Likewise.
63089
63090 2000-04-28  Jim Meyering  <meyering@lucent.com>
63091
63092         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63093         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63094         is included first, then limits.h is included by locale.h by libintl.h.
63095         From John David Anglin.
63096
63097 2000-04-25  Jim Meyering  <meyering@lucent.com>
63098
63099         * lib/makepath.c (S_IRWXUGO): Define.
63100         (make_path): Always perform explicit chmod if MODE specifies any
63101         of the `special' permission bits.  Prompted by a bug report against
63102         install from Mate Wierdl and Joost van Baal.
63103
63104 2000-04-18  Jim Meyering  <meyering@lucent.com>
63105
63106         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63107         (jm_PREREQ): Use it.
63108
63109 2000-04-18  Jim Meyering  <meyering@lucent.com>
63110
63111         * lib/README: New file.
63112
63113         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63114         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63115
63116 2000-04-17  Jim Meyering  <meyering@lucent.com>
63117
63118         Get it right :-)
63119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63120         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63121         Suggestion from Akim Demaille.
63122
63123 2000-04-17  Jim Meyering  <meyering@lucent.com>
63124
63125         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63126         the definition of it to rpl_strftime also defined-away the system's
63127         declaration.
63128
63129 2000-04-15  Jim Meyering  <meyering@lucent.com>
63130
63131         Use `C' to denote so-called `contiguous' files, the same way
63132         that tar does.
63133         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63134         (ftypelet): Use S_ISCTG.
63135         From Michael Deutschmann.
63136
63137 2000-04-14  Jim Meyering  <meyering@lucent.com>
63138
63139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63140         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63141         clobbered.
63142
63143 2000-04-14  Jim Meyering  <meyering@lucent.com>
63144
63145         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63146
63147 2000-04-13  Jim Meyering  <meyering@lucent.com>
63148
63149         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63150         AH_VERBATIM to insert required #ifndef into config.h.in.
63151         Suggestion from Akim Demaille.
63152
63153 2000-04-12  Jim Meyering  <meyering@lucent.com>
63154
63155         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63156         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63157         Christian Krackowizer.
63158
63159         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63160         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63161         (AC_SYS_LARGEFILE): Require.
63162         (AM_C_PROTOTYPES): Require.
63163
63164 2000-04-08  Jim Meyering  <meyering@lucent.com>
63165
63166         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63167         names don't conflict.  Reported by Eli Zaretskii.
63168
63169 2000-04-07  Jim Meyering  <meyering@lucent.com>
63170
63171         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63172         sys/types.h, to work around system header problems on AIX 3.2.5.
63173         From Bruno Haible.
63174
63175 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63176
63177         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63178         bug.  Deal with the different error behavior of Irix iconv.
63179
63180 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63181
63182         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63183         IRIX if the installer said otherwise.
63184
63185 2000-04-05  Jim Meyering  <meyering@lucent.com>
63186
63187         Portability tweaks required for ultrix4.3.
63188         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63189         (jm_CHECK_DECLS): Add getutent to the list of functions.
63190         (_jm_DECL_HEADERS): Add utmpx.h.
63191         From John David Anglin.
63192
63193         * m4/strftime.m4: Back out the 2000-04-02 change.
63194         Instead of that change, simply undefine putenv in the test program.
63195
63196 2000-04-05  Jim Meyering  <meyering@lucent.com>
63197
63198         Portability tweaks required for ultrix4.3.
63199         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63200         getutent.
63201         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63202         * lib/canon-host.c: Declare strdup.
63203         * lib/path-concat.c: Likewise.
63204         From John David Anglin.
63205
63206 2000-04-04  Jim Meyering  <meyering@lucent.com>
63207
63208         Be more DOS 8.3-friendly.
63209         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63210         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63211         * lib/Makefile.am: Reflect renaming.
63212         Reported by Eli Zaretskii.
63213
63214         Use a temporary file name that won't clash with `charset.alias'
63215         in the DOS 8.3 name space.
63216         * lib/Makefile.am (charset_tmp): Define.
63217         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63218         (uninstall-local): Likewise.
63219         Reported by Eli Zaretskii.
63220
63221 2000-04-03  Jim Meyering  <meyering@lucent.com>
63222
63223         * m4/gettext.m4: Fix typo in comment.
63224
63225         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63226         textutils/configure.in).  Suggestion from Paul Eggert.
63227         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63228
63229 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63230
63231         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63232         variable in the shell rather than using putenv, which isn't
63233         portable.  This avoids the configure-time inter-test dependency
63234         on the potentially-renamed putenv function.
63235
63236 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63237
63238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63239         before checking struct stat.st_blksize, so that
63240         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63241
63242 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63243
63244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63245         since strftime.c uses HAVE_STRFTIME to decide whether to use
63246         the underlying strftime.
63247
63248 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63249
63250         * lib/time/strftime.c (my_strftime): Make sure we call the system
63251         strftime, not ourselves, when invoking the underlying strftime.
63252
63253 2000-03-24  Jim Meyering  <meyering@lucent.com>
63254
63255         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63256         (charset_alias): Define.
63257         (install-exec-local): Factor out common code.
63258         (uninstall-local): Split lines longer than 80.
63259         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63260         (SUFFIXES): Define.
63261         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63262         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63263
63264 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63265
63266         * lib/config.charset: Output a line containing "Packages using this
63267         file".
63268         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63269         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63270         ref-del.sed): New rules.
63271
63272 2000-03-17  Jim Meyering  <meyering@lucent.com>
63273
63274         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63275         Otherwise, include <strings.h>
63276
63277 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63278
63279         * lib/unicodeio.c (utf8_wctomb): New function.
63280         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63281         format instead of in UCS-4 with platform dependent endianness.
63282
63283 2000-03-10  Jim Meyering  <meyering@lucent.com>
63284
63285         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63286         From Marco Franzen.
63287
63288 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63289
63290         * lib/savedir.c (savedir): Work even if directory size is
63291         negative; this can happen with some screwy NFS configurations.
63292
63293 2000-03-06  Jim Meyering  <meyering@lucent.com>
63294
63295         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63296         if it's NULL (because we ran out of memory).  From Bruno Haible.
63297
63298 2000-03-05  Jim Meyering  <meyering@lucent.com>
63299
63300         * lib/localcharset.c ("path-concat.h"): Include.
63301         (get_charset_aliases): Use path_concat instead of ANSI string
63302         concatenation.
63303
63304         * lib/unicodeio.h (PARAMS): Define.
63305         Use it to guard prototype.
63306
63307 2000-03-04  Jim Meyering  <meyering@lucent.com>
63308
63309         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63310         for lib/localcharset.c.
63311
63312 2000-03-04  Jim Meyering  <meyering@lucent.com>
63313
63314         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63315         installing into it.
63316         (uninstall-local): Uncomment this rule so `make distcheck' works
63317         once again.
63318
63319         * lib/unicodeio.c (<errno.h>): Include it.
63320         (errno): Declare if not defined.
63321
63322         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63323
63324         * lib/config.charset: New version, incorporating remarks from a linux
63325         i18n mailing list.  From Bruno Haible.
63326
63327 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63328
63329         * m4/codeset.m4: New file.
63330         * m4/iconv.m4: New file.
63331         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63332
63333 2000-03-03  Jim Meyering  <meyering@lucent.com>
63334
63335         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63336
63337 2000-03-02  Jim Meyering  <meyering@lucent.com>
63338
63339         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63340         the messages come out on separate lines.
63341
63342         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63343         rather than jm_CHECK_DECLARATIONS.
63344         * m4/decl.m4: Remove now-unused file.
63345
63346         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63347         geteuid.
63348
63349 2000-03-02  Jim Meyering  <meyering@lucent.com>
63350
63351         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63352
63353 2000-03-01  Jim Meyering  <meyering@lucent.com>
63354
63355         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63356         * lib/unicodeio.c: Likewise.
63357
63358 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63359
63360         * lib/config.charset: New file.
63361         * lib/localcharset.c: New file.
63362         * lib/unicodeio.h, lib/unicodeio.c: New files.
63363         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63364         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63365         (noinst_HEADERS): Add unicodeio.h.
63366         (all-local, install-exec-local, charset.alias): New targets.
63367
63368 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63369
63370         * lib/quotearg.c (ALERT_CHAR): New macro.
63371         (quotearg_buffer_restyled): Use it.
63372
63373 2000-02-27  Jim Meyering  <meyering@lucent.com>
63374
63375         * m4/check-decl.m4: Add getenv to the list.
63376
63377 2000-02-27  Jim Meyering  <meyering@lucent.com>
63378
63379         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63380         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63381
63382         * lib/backupfile.c: Guard inclusion of stdlib.h with
63383         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63384         Declare malloc if needed.
63385
63386         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63387         `#ifndef HAVE_DECL..'
63388         now that autoconf always defines the HAVE_DECL_ symbols.
63389         * lib/human.c: Likewise.
63390         * lib/same.c: Likewise.
63391         * lib/strtoumax.c: Likewise.
63392
63393         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63394         declaration check was not run.
63395         * lib/hash.c: Likewise.
63396         * lib/human.c: Likewise.
63397         * lib/same.c: Likewise.
63398         * lib/strtoumax.c: Likewise.
63399
63400         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63401         `.', then first look up the entire `.'-containing string as a login
63402         name.
63403
63404 2000-02-23  Jim Meyering  <meyering@lucent.com>
63405
63406         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63407         in place of my hack.
63408
63409 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63410
63411         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63412         (textint): New typedef.
63413         (parser_control): Member year changed from int to textint.
63414         All uses changed.
63415         (YYSTYPE): Removed; replaced by %union with int and textint members.
63416         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63417         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63418         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63419         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63420         (date, number, to_year): Use width of number in digits, not its value,
63421         to determine whether it's a 2-digit year, or a 2-digit time.
63422         (yylex): Store number of digits of numeric tokens.
63423         Reported by John Kendall.
63424
63425         (parser_control): Changed from struct parser_control to typedef (for
63426         consistency).  All uses changed.
63427
63428         (tID): Removed; not used.
63429         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63430
63431 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63432
63433         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63434         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63435
63436 2000-02-12  Jim Meyering  <meyering@lucent.com>
63437
63438         * lib/userspec.c (ISDIGIT): Define it.
63439         (isdigit): Remove definition.
63440         (is_number): Use ISDIGIT, not isdigit.
63441         <libintl.h>: Include.
63442         (_ and N_): Define.
63443         (parse_user_spec): Mark translatable strings.
63444
63445 2000-02-10  Jim Meyering  <meyering@lucent.com>
63446
63447         With these changes, nanosleep.[ch] are finally enough like the other
63448         lib/* replacement files to compile on a few more losing systems.
63449
63450         * lib/nanosleep.h: Don't include config.h.
63451         Remove prototype from declaration of nanosleep.
63452         (PARAMS): Remove now-unneeded definition.
63453         * lib/nanosleep.c: #undef nanosleep.
63454         (rpl_nanosleep): Rename from nanosleep.
63455
63456 2000-02-10  Jim Meyering  <meyering@lucent.com>
63457
63458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63459         gnu_nanosleep to rpl_nanosleep.
63460
63461 2000-02-09  Jim Meyering  <meyering@lucent.com>
63462
63463         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63464         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63465
63466 2000-02-08  Akim Demaille  <akim@epita.fr>
63467
63468         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63469         `[' and `]' and remove uses of `changequote'.
63470         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63471         (AC_SYS_LARGEFILE): Likewise.
63472         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63473         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63474         of changequote.
63475         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63476         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63477         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63478         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63479
63480 2000-02-05  Jim Meyering  <meyering@lucent.com>
63481
63482         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63483         Remove explicit use of AC_HEADER_TIME.  It is required by
63484         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63485         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63486         in autoconf whereby the expansion of the latter ended up preceding
63487         the expansion of its prerequisite, AC_HEADER_TIME.
63488         Reported by Volker Borchert.
63489
63490 2000-02-03  Jim Meyering  <meyering@lucent.com>
63491
63492         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63493
63494 2000-02-03  Jim Meyering  <meyering@lucent.com>
63495
63496         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63497         rather than with `#if HAVE_UTMPNAME'.
63498
63499 2000-02-02  Jim Meyering  <meyering@lucent.com>
63500
63501         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63502         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63503         Reported by Eli Zaretskii.
63504
63505 2000-02-01  Jim Meyering  <meyering@lucent.com>
63506
63507         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63508
63509 2000-01-31  Jim Meyering  <meyering@lucent.com>
63510
63511         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63512         functions.  Add the time.h and sys/time.h headers along with the
63513         AC_REQUIRE'ment of AC_HEADER_TIME.
63514
63515 2000-01-31  Jim Meyering  <meyering@lucent.com>
63516
63517         * lib/nanosleep.h (nanosleep): Guard declaration with
63518         `#if ! HAVE_DECL_NANOSLEEP'.
63519         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63520         the declaration in that vendor's sys/timers.h.
63521         Reported by Christian Krackowizer.
63522
63523         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63524         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63525         (ISPRINT): Likewise.
63526         Reported by Tom Tromey.
63527
63528 2000-01-30  Jim Meyering  <meyering@lucent.com>
63529
63530         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63531
63532         * m4/prereq.m4 (utmp_includes): Define.
63533         Check for ut_user and ut_name members in both struct utmpx
63534         and struct utmp.
63535
63536 2000-01-30  Jim Meyering  <meyering@lucent.com>
63537
63538         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63539         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63540         header files where only utmpx.ut_user is declared.
63541
63542         * lib/readutmp.h (UT_USER): Define.
63543
63544 2000-01-29  Jim Meyering  <meyering@lucent.com>
63545
63546         * m4/lib-check.m4: New file containing library-related checks from
63547         fileutils and sh-utils (textutils had none).
63548
63549 2000-01-28  Jim Meyering  <meyering@lucent.com>
63550
63551         * m4/perl.m4: Change format of warning message to look more like that
63552         from the missing script.  Suggestion from François Pinard.
63553
63554 2000-01-25  Jim Meyering  <meyering@lucent.com>
63555
63556         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63557         well as time.h in the compile check.
63558         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63559         Fix typo in cross-compiling case: s/yes/no/.
63560
63561 2000-01-23  Jim Meyering  <meyering@lucent.com>
63562
63563         * m4/jm-macros.m4: Move df-related tests here from
63564         fileutils/configure.in
63565
63566         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63567         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63568
63569         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63570         s/space/ac_fsusage_space/.
63571         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63572
63573         * m4/ftruncate.m4: New file (derived from part of
63574         fileutils/configure.in).
63575         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63576         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63577
63578         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63579         AC_SUBST these here, rather than just in sh-util/configure.in, so
63580         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63581         all the same.
63582         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63583         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63584         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63585         (AC_SUBST(POW_LIBM)): Likewise.
63586         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63587
63588 2000-01-23  Jim Meyering  <meyering@lucent.com>
63589
63590         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63591         obstack.c.
63592
63593 2000-01-22  Jim Meyering  <meyering@lucent.com>
63594
63595         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63596
63597         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63598
63599         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63600         configure.in
63601         (AC_CHECK_HEADERS): Likewise for sh-utils.
63602         (AC_CHECK_HEADERS): Likewise for textutils.
63603         Merge the three lists of headers.
63604
63605         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63606         from fileutils' configure.in.
63607
63608         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63609         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63610         check-decl.m4.
63611
63612         * m4/check-decl.m4: Use #if rather than #ifdef.
63613         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63614         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63615         (_jm_DECL_HEADERS): Define new function.
63616         (jm_CHECK_DECLARATIONS): Require it.
63617
63618 2000-01-22  Jim Meyering  <meyering@lucent.com>
63619
63620         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63621         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63622         Required for some AIX systems.  Reported by Christian Krackowizer.
63623         [TESTING] (main): New function.
63624
63625         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63626         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63627         letters.
63628
63629         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63630         iswprint.
63631
63632         * lib/strverscmp.c (ISDIGIT): Define.
63633         (strverscmp): Use ISDIGIT, not isdigit.
63634
63635 2000-01-19  Jim Meyering  <meyering@lucent.com>
63636
63637         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63638         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63639         defines `struct timespec' in <sys/time.h>
63640
63641         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63642         Thanks to Akim for explaining.
63643
63644 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63645
63646         * lib/nanosleep.c (nanosleep):
63647         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63648         POSIX.1 doesn't require SA_INTERRUPT and some systems
63649         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63650         it's been part of POSIX.1 since day 1 (in 1988).
63651
63652 2000-01-17  Jim Meyering  <meyering@lucent.com>
63653
63654         * lib/interlock: Remove unused file.  Reported by François Pinard.
63655
63656 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63657
63658         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63659         alert, backslash, formfeed, and vertical tab unnecessarily in
63660         shell quoting style.
63661
63662 2000-01-16  Jim Meyering  <meyering@lucent.com>
63663
63664         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63665         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63666         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63667         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63668
63669 2000-01-16  Jim Meyering  <meyering@lucent.com>
63670
63671         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63672         because the latter didn't work.
63673
63674 2000-01-15  Jim Meyering  <meyering@lucent.com>
63675
63676         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63677         (AC_REPLACE_FUNCS): Add memcpy and memset.
63678         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63679         Add strpbrk.
63680         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63681
63682 2000-01-12  Jim Meyering  <meyering@lucent.com>
63683
63684         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63685         (jm_PREREQ): Use it.
63686         (jm_PREREQ_READUTMP): New macro.
63687         (jm_PREREQ): Use it.
63688
63689 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63690
63691         Quote multibyte characters correctly.
63692         * m4/c-bs-a.m4: New file.
63693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63694         (jm_PREREQ): Use it.
63695
63696 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63697
63698         * m4/uintmax_t.m4: Port to autoconf 2.13.
63699
63700 2000-01-08  Jim Meyering  <meyering@ascend.com>
63701
63702         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63703         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63704
63705 2000-01-04  Jim Meyering  <meyering@ascend.com>
63706
63707         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63708         jm_STRUCT_DIRENT_D_TYPE.
63709         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63710         jm_STRUCT_DIRENT_D_INO.
63711         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63712         jm_STRUCT_UTIMBUF.
63713         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63714         renamings.
63715         * m4/utime.m4: Likewise.
63716
63717         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63718         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63719
63720 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63721
63722         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63723         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63724
63725 2000-01-02  Jim Meyering  <meyering@ascend.com>
63726
63727         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63728         remember if this is necessary.
63729
63730 1999-12-26  Jim Meyering  <meyering@ascend.com>
63731
63732         * m4/jm-macros.m4: Use it here.
63733         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63734
63735 1999-12-23  Jim Meyering  <meyering@ascend.com>
63736
63737         * m4/jm-macros.m4: Check for clock_gettime (moved from
63738         fileutils/configure.in)
63739         Check for gettimeofday.
63740
63741 1999-12-20  Jim Meyering  <meyering@ascend.com>
63742
63743         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63744         autoconf-2.14a-1999-12-20.
63745
63746 1999-12-19  Jim Meyering  <meyering@ascend.com>
63747
63748         * m4/lstat-slash.m4: New file.
63749         * m4/jm-macros.m4: Use the new macro:
63750         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63751
63752 1999-12-07  Jim Meyering  <meyering@ascend.com>
63753
63754         * m4/perl.m4: Require that File::Compare be available, too.
63755         Too many systems seem to lack it.
63756
63757         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63758         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63759
63760 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63761
63762         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63763         problem with the QNX 4.25 shell, which doesn't propagate exit
63764         status of failed commands inside shell assignments.
63765
63766 1999-11-17  Jim Meyering  <meyering@ascend.com>
63767
63768         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63769
63770 1999-11-07  Jim Meyering  <meyering@ascend.com>
63771
63772         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63773
63774 1999-11-06  Jim Meyering  <meyering@ascend.com>
63775
63776         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63777         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63778
63779 1999-11-05  Jim Meyering  <meyering@ascend.com>
63780
63781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63782         configure.in of textutils, fileutils, and sh-utils into this one
63783         (shared between those packages) file.
63784         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63785         AC_STRUCT_ST_BLKSIZE.
63786
63787 1999-11-03  Jim Meyering  <meyering@ascend.com>
63788
63789         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63790         of AC_CHECK_TYPE checks includes unistd.h.
63791         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63792         Suggestion from Akim Demaille.
63793
63794 1999-10-30  Jim Meyering  <meyering@ascend.com>
63795
63796         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63797         m4-quoted string.
63798         * m4/ls-mntd-fs.m4: Likewise.
63799         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63800         * m4/jm-winsz1.m4: Likewise.
63801
63802         * m4/const.m4: Remove file, since the fix made it into the experimental
63803         version of autoconf.
63804         * m4/mktime.m4: Likewise.
63805
63806         * m4/check-type.m4: Remove file, now that the latest version of
63807         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63808
63809         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63810         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63811         AC_CHECK_TYPE.
63812
63813 1999-10-04  Jim Meyering  <meyering@ascend.com>
63814
63815         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63816
63817 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63818
63819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63820         2.95.1 bug with HP-UX 10.20.
63821
63822 1999-09-17  Jim Meyering  <meyering@ascend.com>
63823
63824         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63825         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63826         due to missing strdup (against sh-utils-2.0).
63827
63828 1999-08-29  Jim Meyering  <meyering@ascend.com>
63829
63830         * m4/jm-macros.m4: Require jm_BISON.
63831         * m4/bison.m4: New file.
63832
63833 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63834
63835         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63836         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63837
63838 1999-08-05  Jim Meyering  <meyering@ascend.com>
63839
63840         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63841         to avoid conflicts with `conftest' on 8+3 filesystems.
63842         Suggestion from Eli Zaretskii.
63843
63844 1999-08-04  Jim Meyering  <meyering@ascend.com>
63845
63846         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63847         fileutils and sh-utils (textutils's getline test was inadequate).
63848         (AM_FUNC_GETLINE): Run this test.
63849         (AC_CHECK_FUNCS): Check for getdelim.
63850         Reported by Bob Proulx.
63851
63852 1999-08-02  Jim Meyering  <meyering@ascend.com>
63853
63854         * m4/jm-macros.m4: Add a comment.
63855
63856 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63857
63858         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63859         <inttypes.h> defines strtoumax as a macro (and not as a
63860         function).
63861
63862 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63863
63864         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63865         that we can shift, multiply and divide unsigned long long
63866         values; Ultrix cc can't do it.
63867
63868 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63869
63870         * m4/mktime.m4: New file, which is a preview of what should appear
63871         in the next public autoconf release.
63872
63873 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63874
63875         * m4/lfs.m4: Remove this file.
63876         * m4/largefile.m4: New file.  It contains the old contents of
63877         lfs.m4, except that all names with prefix AC_LFS have been
63878         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63879         compatible with future autoconf versions.  Also, some minor m4
63880         quoting problems have been fixed.
63881
63882 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63883
63884         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63885         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63886         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63887         and simplify the shell code.
63888
63889 1999-08-01  Jim Meyering  <meyering@ascend.com>
63890
63891         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63892         m4.
63893
63894 1999-07-20  Jim Meyering  <meyering@ascend.com>
63895
63896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63897
63898 1999-07-15  Jim Meyering  <meyering@ascend.com>
63899
63900         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63901
63902 1999-05-22  Jim Meyering  <meyering@ascend.com>
63903
63904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63905
63906 1999-05-20  Jim Meyering  <meyering@ascend.com>
63907
63908         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63909         Add a colon after each `then' in case $4 is empty.
63910
63911 1999-05-16  Jim Meyering  <meyering@ascend.com>
63912
63913         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63914
63915 1999-05-10  Jim Meyering  <meyering@ascend.com>
63916
63917         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63918
63919         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63920         AC_FUNC_MKTIME.
63921
63922 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63923
63924         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63925
63926 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63927
63928         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63929         not CPPFLAGS, so that linking works correctly in IRIX.
63930
63931 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63932
63933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63934
63935 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63936
63937         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63938         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63940         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63941         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63942
63943         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63944
63945 1999-04-20  Jim Meyering  <meyering@ascend.com>
63946
63947         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63948         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63949         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63950
63951 1999-04-18  Jim Meyering  <meyering@ascend.com>
63952
63953         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63954         * m4/jm-macros.m4: Use it.
63955
63956 1999-04-06  Jim Meyering  <meyering@ascend.com>
63957
63958         * m4/strftime.m4: Remove test for %f.
63959
63960 1999-03-29  Jim Meyering  <meyering@ascend.com>
63961
63962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63963         superset of the AC_TYPE_* checks in the textutils, fileutils,
63964         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63965         AC_TYPE_PID_T.
63966
63967 1999-03-28  Jim Meyering  <meyering@ascend.com>
63968
63969         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63970         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63971         replaced e.g., in the *.sh files of the sh-utils.
63972
63973 1999-03-20  Jim Meyering  <meyering@ascend.com>
63974
63975         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63976         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63977         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63978
63979 1999-03-19  Jim Meyering  <meyering@ascend.com>
63980
63981         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63982
63983 1999-03-12  Jim Meyering  <meyering@ascend.com>
63984
63985         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63986
63987 1999-03-07  Jim Meyering  <meyering@ascend.com>
63988
63989         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63990         declared.
63991
63992 1999-02-17  Jim Meyering  <meyering@ascend.com>
63993
63994         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63995         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63996
63997 1999-02-07  Jim Meyering  <meyering@ascend.com>
63998
63999         * m4/group-member.m4: New file -- extracted from sh-utils'
64000         configure.in.
64001
64002         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64003         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64004
64005 1999-02-06  Jim Meyering  <meyering@ascend.com>
64006
64007         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64008         * m4/fnmatch.m4: Likewise.
64009         * m4/getgroups.m4: Likewise.
64010         * m4/lstat.m4: Likewise.
64011         * m4/malloc.m4: Likewise.
64012         * m4/putenv.m4: Likewise.
64013         * m4/realloc.m4: Likewise.
64014         * m4/regex.m4: Likewise.
64015         * m4/stat.m4: Likewise.
64016         * m4/strftime.m4: Likewise.
64017         Suggestion from Alain Magloire.
64018
64019         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64020         * m4/fnmatch.m4: Likewise.
64021         * m4/getgroups.m4: Likewise.
64022         * m4/getline.m4: Likewise.
64023         * m4/lstat.m4: Likewise.
64024         * m4/malloc.m4: Likewise.
64025         * m4/memcmp.m4: Likewise.
64026         * m4/putenv.m4: Likewise.
64027         * m4/realloc.m4: Likewise.
64028         * m4/regex.m4: Likewise.
64029         * m4/stat.m4: Likewise.
64030         * m4/strftime.m4: Likewise.
64031         Suggestion from Alain Magloire.
64032
64033         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64034         an argument.
64035
64036         * m4/regex.m4: Add a run-time Test for proper operation of
64037         re_compile_pattern.
64038
64039 1999-01-31  Jim Meyering  <meyering@ascend.com>
64040
64041         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64042
64043 1999-01-30  Jim Meyering  <meyering@ascend.com>
64044
64045         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64046
64047         * m4/jm-mktime.m4: Make this a wrapper around the official
64048         AM_FUNC_MKTIME rather than my private copy, now that the official one
64049         is up to date.
64050         * m4/mktime.m4: Remove file.
64051
64052         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64053         * m4/uptime.m4: Likewise.
64054         * m4/uintmax_t.m4: Likewise.
64055
64056 1999-01-28  Jim Meyering  <meyering@ascend.com>
64057
64058         * m4/jm-macros.m4: Use jm_AFS.
64059         * m4/afs.m4: New file (from fileutils' configure.in).
64060
64061         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64062         * m4/chown.m4: Likewise.
64063         * m4/d-ino.m4: Likewise.
64064         * m4/d-type.m4: Likewise.
64065         * m4/fnmatch.m4: Likewise.
64066         * m4/getgroups.m4: Likewise.
64067         * m4/gettext.m4: Likewise.
64068         * m4/jm-mktime.m4: Likewise.
64069         * m4/jm-winsz2.m4: Likewise.
64070         * m4/lcmessage.m4: Likewise.
64071         * m4/ls-mntd-fs.m4: Likewise.
64072         * m4/malloc.m4: Likewise.
64073         * m4/memcmp.m4: Likewise.
64074         * m4/putenv.m4: Likewise.
64075         * m4/realloc.m4: Likewise.
64076         * m4/st_mtim.m4: Likewise.
64077         * m4/strftime.m4: Likewise.
64078
64079 1999-01-16  Jim Meyering  <meyering@ascend.com>
64080
64081         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64082         (ARGMATCH_DIE_DECL): Define.
64083
64084 1999-01-12  Jim Meyering  <meyering@ascend.com>
64085
64086         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64087         Reported by Lars Hecking.
64088
64089 1999-01-10  Jim Meyering  <meyering@ascend.com>
64090
64091         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64092         gross kludge.
64093         * m4/inttypes_h.m4: Likewise.
64094         * m4/lstat.m4: Likewise.
64095         * m4/malloc.m4: Likewise.
64096         * m4/readdir.m4: Likewise.
64097         * m4/realloc.m4: Likewise.
64098         * m4/st_dm_mode.m4: Likewise.
64099         * m4/stat.m4: Likewise.
64100         * m4/utimbuf.m4: Likewise.
64101         * m4/utimes.m4: Likewise.
64102
64103         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64104         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64105         comments in config.h.in are meaningful.
64106
64107         * m4/jm-macros.m4: Require autoconf-2.13 here.
64108
64109         * m4/regex.m4: By default, don't use the included regex.c on systems
64110         with glibc 2.  Suggestion from Uli Drepper.
64111
64112 1999-01-02  Jim Meyering  <meyering@ascend.com>
64113
64114         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64115
64116 1998-12-18  Jim Meyering  <meyering@ascend.com>
64117
64118         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64119         Based on a suggestion from Lars Hecking.
64120
64121 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64122
64123         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64124
64125 1998-11-16  Jim Meyering  <meyering@ascend.com>
64126
64127         * m4/lfs.m4: Double-quote the `uname...` expression.
64128
64129 1998-11-14  Jim Meyering  <meyering@ascend.com>
64130
64131         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64132         * m4/stat.m4: Likewise.
64133
64134 1998-11-03  Jim Meyering  <meyering@ascend.com>
64135
64136         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64137         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64138
64139 1998-10-18  Jim Meyering  <meyering@ascend.com>
64140
64141         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64142
64143 1998-10-17  Jim Meyering  <meyering@ascend.com>
64144
64145         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64146         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64147         calls for those previously hard-coded headers.  Instead, take a new
64148         parameter.
64149         (jm_CHECK_DECLARATIONS): Reflect interface change.
64150         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64151         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64152
64153         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64154
64155 1998-10-14  Jim Meyering  <meyering@ascend.com>
64156
64157         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64158         instead of "TZ=America/Vancouver".  From Paul Eggert.
64159
64160 1998-10-11  Jim Meyering  <meyering@ascend.com>
64161
64162         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64163         This adds a test for a recently added compatibility fix for mktime.c.
64164         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64165
64166 1998-09-27  Jim Meyering  <meyering@ascend.com>
64167
64168         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64169
64170         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64171         ../configure.in, including a change from Gordon Matzigkeit to allow
64172         cross-compiling for the Hurd.
64173
64174         * m4/glibc.m4: New file/macro to test for the GNU C Library
64175         versions 1 and 2.  From Gordon Matzigkeit.
64176         Indent.
64177
64178 1998-09-21  Jim Meyering  <meyering@ascend.com>
64179
64180         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64181
64182 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64183
64184         Port nanosecond-resolution times to UnixWare 2.1.2 and
64185         pedantic Solaris 2.6.
64186
64187         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64188         AC_STRUCT_ST_MTIM.
64189         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64190         Generate name of ns member, instead of just 1 or undef.
64191         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64192
64193 1998-08-15  Jim Meyering  <meyering@ascend.com>
64194
64195         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64196         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64197         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64198         instead of jm_TYPE_SSIZE_T.
64199
64200 1998-08-12  Jim Meyering  <meyering@ascend.com>
64201
64202         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64203
64204 1998-08-02  Jim Meyering  <meyering@ascend.com>
64205
64206         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64207         in acconfig.h manually.
64208
64209 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64210
64211         * m4/st_mtim.m4: New file.
64212
64213 1998-07-28  Jim Meyering  <meyering@ascend.com>
64214
64215         * m4/utimes.m4: Undef stat.
64216
64217 1998-07-25  Jim Meyering  <meyering@ascend.com>
64218
64219         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64220         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64221
64222 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64223
64224         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64225         uid and gid actually remain unchanged.
64226
64227 1998-07-07  Jim Meyering  <meyering@ascend.com>
64228
64229         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64230
64231 1998-07-04  Jim Meyering  <meyering@ascend.com>
64232
64233         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64234         to prove that this macro can be used in packages without regex.c.
64235
64236 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64237
64238         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64239         is to be used.
64240
64241 1998-07-03  Jim Meyering  <meyering@ascend.com>
64242
64243         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64244
64245         * m4/gettext.m4: New file -- from gettext-0.10.35.
64246         * m4/lcmessage.m4: Likewise.
64247         * m4/progtest.m4: Likewise.
64248
64249         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64250         * m4/jm-macros.m4: Require the new macro.
64251
64252 1998-06-29  Jim Meyering  <meyering@ascend.com>
64253
64254         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64255         for the definition of NGROUPS (used in a system header included
64256         by sys/mount.h).
64257
64258 1998-06-28  Jim Meyering  <meyering@ascend.com>
64259
64260         * m4/ls-mntd-fs.m4: New file.
64261         * m4/fstypename.m4: New file.
64262
64263         * m4/jm-macros.m4: Require the new macro.
64264         * m4/jm-glibc-io.m4: New file.
64265
64266 1998-05-19  Jim Meyering  <meyering@ascend.com>
64267
64268         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64269         * m4/lchown.m4: New file.
64270
64271         * m4/Makefile.am.in: New file.
64272         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64273
64274 1998-05-14  Jim Meyering  <meyering@ascend.com>
64275
64276         * m4/Makefile.am (EXTRA_DIST): Add them.
64277         * m4/jm-macros.m4: New file.
64278         * m4/utimbuf.m4: New file.
64279
64280 1998-05-12  Jim Meyering  <meyering@ascend.com>
64281
64282         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64283
64284 1998-05-11  Jim Meyering  <meyering@ascend.com>
64285
64286         * m4/isc-posix.m4: New file.
64287
64288 1998-05-10  Jim Meyering  <meyering@ascend.com>
64289
64290         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64291
64292 1998-05-09  Jim Meyering  <meyering@ascend.com>
64293
64294         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64295         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64296         with automake.
64297
64298         * m4/ssize_t.m4: New file.
64299         * m4/mktime.m4: Remove file -- the new automake has this now.
64300
64301 1998-04-26  Jim Meyering  <meyering@ascend.com>
64302
64303         * m4/assert.m4: New file.
64304         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64305
64306 1998-04-05  Jim Meyering  <meyering@ascend.com>
64307
64308         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64309         (jm_PREREQ): Use it here.
64310
64311 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64312
64313         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64314         in acconfig.h.
64315
64316 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64317
64318         * m4/prereq.m4: New file.
64319         * m4/error.m4: New file.
64320         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64321
64322 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64323
64324         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64325         cache-check for the same variable -- that defeated the purpose of
64326         the test; the test program was never run.  This was a problem only
64327         on systems with losing getline functions -- HP-UX 10.20 is one.
64328         Reported by Bjorn Helgaas.
64329
64330 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64331
64332         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64333
64334 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64335
64336         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64337
64338         * m4/const.m4: New file.  Use an initializer in this declaration
64339         typedef int charset[2]; const charset x;
64340         Reported by Bob Glickstein.
64341
64342 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64343
64344         * m4/chown.m4: Fix reversed types on -1 args to chown.
64345         From Kaveh Ghazi.
64346
64347 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64348
64349         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64350         Add lseek and memchr.
64351
64352         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64353         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64354         have a 20-character limit on names.
64355
64356 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64357
64358         * m4/inttypes_h.m4: New file.
64359         * m4/uintmax_t.m4: New file.
64360         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64361
64362
64363         -----
64364
64365         Local Variables:
64366         coding: utf-8
64367         End:
64368
64369         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64370
64371         Copying and distribution of this file, with or without
64372         modification, are permitted provided the copyright notice
64373         and this notice are preserved.