8e79cc67039a470fdac6573744746d7e89ce2717
[gnulib.git] / ChangeLog
1 2010-03-25  Bruno Haible  <bruno@clisp.org>
2
3         Use ANSI C.
4         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5
6 2010-03-25  Bruno Haible  <bruno@clisp.org>
7
8         Minor formatting changes.
9         * lib/acosl.c: Insert space before function argument list.
10         * lib/argz.c: Likewise.
11         * lib/asinl.c: Likewise.
12         * lib/expl.c: Likewise.
13         * lib/gen-uni-tables.c: Likewise.
14         * lib/gettext.h: Likewise.
15         * lib/glthread/lock.h: Likewise.
16         * lib/tanl.c: Likewise.
17         * lib/uniname/uniname.c: Likewise.
18         * tests/test-idpriv-drop.c: Likewise.
19         * tests/test-idpriv-droptemp.c: Likewise.
20         * tests/test-lock.c: Likewise.
21         * tests/test-tls.c: Likewise.
22         * lib/argp-help.c: Insert space before function-like macro argument
23         list.
24         * lib/memcmp.c: Likewise.
25         * tests/test-base64.c: Likewise.
26         * lib/localename.c: Insert space before sizeof's argument list.
27         * lib/safe-alloc.h: Likewise.
28         * lib/file-set.h: Insert space before macro argument list.
29         * tests/test-argp.c: Likewise.
30         * lib/argp-namefrob.h: Insert space before function parameter list.
31         * lib/getaddrinfo.c: Likewise.
32         * lib/netdb.in.h: Likewise.
33         * lib/parse-duration.h: Likewise.
34         * lib/parse-duration.c: Likewise.
35         * lib/poll.c: Likewise.
36         * lib/select.c: Likewise.
37         * lib/trim.h: Likewise.
38         * tests/test-usleep.c: Likewise.
39         * lib/ldexpl.c: Insert space before function parameter list and before
40         function argument list.
41         * lib/logl.c: Likewise.
42         * lib/sqrtl.c: Likewise.
43         * lib/trim.c: Likewise.
44         * lib/cosl.c: Use GNU style indentation. Insert space before function
45         argument list.
46         * lib/sinl.c: Likewise.
47         * lib/tsearch.c: Insert space after 'for'.
48         Reported by Jim Meyering.
49
50 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
51
52         * maint.mk (sc_Wundef_boolean): Check for the presence of the
53         config header before grepping, as it's not present before
54         autoreconf/configure are run.  Reported by Simon Josefsson.
55
56 2010-03-23  Bruno Haible  <bruno@clisp.org>
57
58         pt_chown: Make it work with automake < 1.11.
59         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
60         Reported by Simon Josefsson.
61
62 2010-03-23  Bruno Haible  <bruno@clisp.org>
63
64         pt_chown: Don't depend on GPLed modules.
65         * lib/pt_chown.c: Don't include idpriv.h.
66         (main): Don't drop privileges.
67         * modules/pt_chown (Depends-on): Remove idpriv-drop.
68         Reported by Simon Josefsson.
69
70 2010-03-24  Simon Josefsson  <simon@josefsson.org>
71
72         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
73         suggestions from karl@freefriends.org (Karl Berry).
74
75 2010-03-22  Eric Blake  <eblake@redhat.com>
76
77         gethostname: further tweaks
78         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
79         are overriding gethostname.
80         Suggested by Bruno Haible.
81
82 2010-03-21  Bruno Haible  <bruno@clisp.org>
83
84         Fix comments.
85         * lib/forkpty.c (rpl_forkpty): Fix comment.
86         * lib/openpty.c (rpl_openpty): Likewise.
87         Reported by Eric Blake.
88
89 2010-03-22  Eric Blake  <eblake@redhat.com>
90
91         gethostname: fix build on mingw
92         * lib/unistd.in.h (includes): Work around fact that mingw
93         <winsock2.h> re-includes <unistd.h>, by avoiding any
94         redeclarations if we are being included by <winsock2.h>.
95         Reported by Matthias Bolte.
96
97 2010-03-21  Bruno Haible  <bruno@clisp.org>
98
99         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
100         * lib/forkpty.c (forkpty): New replacement function, from glibc with
101         modifications.
102         * lib/pty.in.h (forkpty): Update declaration. Add comments.
103         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
104         provide the replacement.
105         * modules/forkpty (Depends-on): Add openpty, login_tty.
106         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
107         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
108         * doc/glibc-functions/forkpty.texi: More supported platforms.
109         * config/srclist.txt: Add forkpty.c (commented).
110
111 2010-03-21  Bruno Haible  <bruno@clisp.org>
112
113         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
114         (Makefile.am): Verify that PTY_LIB is defined.
115
116         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
117
118 2010-03-21  Bruno Haible  <bruno@clisp.org>
119
120         Tests for module 'login_tty'.
121         * modules/login_tty-tests: New file.
122         * tests/test-login_tty.c: New file.
123
124         New module 'login_tty'.
125         * lib/login_tty.c: New file.
126         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
127         * modules/login_tty: New file.
128         * doc/glibc-functions/login_tty.texi: Mention the new module.
129
130 2010-03-21  Bruno Haible  <bruno@clisp.org>
131
132         login_tty: Documentation.
133         * doc/glibc-functions/login_tty.texi: New file.
134         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
135
136 2010-03-21  Bruno Haible  <bruno@clisp.org>
137
138         pty: Consistent macro naming.
139         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
140         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
141         * modules/pty (configure.ac): Update.
142
143 2010-03-21  Bruno Haible  <bruno@clisp.org>
144
145         Tests for openpty: Make stricter.
146         * tests/test-openpty.c (main): Add test of canonical processing and
147         erase.
148         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
149
150         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
151         * lib/openpty.c (openpty): New replacement function.
152         * lib/pty.in.h: Include <termios.h>.
153         (openpty): Update declaration. Add comments.
154         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
155         is not declared, arrange to provide the replacement. Check for _getpty
156         and posix_openpt.
157         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
158         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
159         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
160         * modules/pty-tests (test_pty_c___LDADD): New variable.
161         * doc/glibc-functions/openpty.texi: More supported platforms.
162
163 2010-03-21  Bruno Haible  <bruno@clisp.org>
164
165         setenv: Tweaks.
166         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
167         the test program.
168         * doc/posix-functions/setenv.texi: Update platforms list.
169
170 2010-03-21  Bruno Haible  <bruno@clisp.org>
171
172         New module 'unlockpt'.
173         * lib/unlockpt.c: New file, from glibc with modifications.
174         * m4/unlockpt.m4: New file.
175         * modules/unlockpt: New file.
176         * lib/stdlib.in.h (unlockpt): New declaration.
177         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
178         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
179         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
180         HAVE_UNLOCKPT.
181         * doc/posix-functions/unlockpt.texi: Mention the new module.
182         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
183         * config/srclist.txt: Add unlockpt.c (commented).
184
185 2010-03-21  Jim Meyering  <meyering@redhat.com>
186
187         maint.mk: prohibit inclusion of "intprops.h" without use
188         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
189
190 2010-03-21  Bruno Haible  <bruno@clisp.org>
191
192         New module 'grantpt'.
193         * lib/grantpt.c: New file, from glibc with modifications.
194         * m4/grantpt.m4: New file.
195         * modules/grantpt: New file.
196         * lib/stdlib.in.h (grantpt): New declaration.
197         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
198         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
199         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
200         HAVE_GRANTPT.
201         * doc/posix-functions/grantpt.texi: Mention the new module.
202         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
203         * config/srclist.txt: Add grantpt.c (commented).
204
205 2010-03-21  Bruno Haible  <bruno@clisp.org>
206
207         New module 'pt_chown'.
208         * lib/pt_chown.c: New file, from glibc with modifications.
209         * lib/pty-private.h: New file, from glibc with modifications.
210         * modules/pt_chown: New file.
211         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
212
213 2010-03-21  Bruno Haible  <bruno@clisp.org>
214
215         Tests for module 'ptsname'.
216         * modules/ptsname-tests: New file.
217         * tests/test-ptsname.c: New file.
218
219         New module 'ptsname'.
220         * lib/ptsname.c: New file, from glibc with modifications.
221         * m4/ptsname.m4: New file.
222         * modules/ptsname: New file.
223         * lib/stdlib.in.h (ptsname): New declaration.
224         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
225         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
226         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
227         HAVE_PTSNAME.
228         * doc/posix-functions/ptsname.texi: Mention the new module.
229         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
230         * config/srclist.txt: Add ptsname.c (commented).
231
232 2010-03-21  Bruno Haible  <bruno@clisp.org>
233
234         Tests for module 'ttyname_r'.
235         * modules/ttyname_r-tests: New file.
236         * tests/test-ttyname_r.c: New file.
237
238         New module 'ttyname_r'.
239         * lib/ttyname_r.c: New file.
240         * m4/ttyname_r.m4: New file.
241         * modules/ttyname_r: New file.
242         * lib/unistd.in.h (ttyname_r): New declaration.
243         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
244         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
245         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
246         HAVE_TTYNAME_R.
247         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
248         * doc/posix-functions/ttyname_r.texi: Mention the new module.
249
250 2010-03-20  Bruno Haible  <bruno@clisp.org>
251
252         signal: Undefine macro definitions in C++ mode.
253         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
254         sigfillset): Undefine macro definitions from the system header in C++
255         mode.
256         Reported by John W. Eaton <jwe@gnu.org>.
257
258 2010-03-20  Bruno Haible  <bruno@clisp.org>
259
260         Ensure no #include statements inside extern "C" { ... }.
261         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
262         contain #include statements.
263         * lib/time.in.h: Likewise.
264
265 2010-03-20  Bruno Haible  <bruno@clisp.org>
266
267         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
268         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
269         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
270         Reported by John W. Eaton <jwe@gnu.org>.
271
272 2010-03-20  Bruno Haible  <bruno@clisp.org>
273
274         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
275         Reported by Jim Meyering.
276
277 2010-03-20  Bruno Haible  <bruno@clisp.org>
278
279         pipe: Set errno upon failure.
280         * lib/pipe.h: Specify that when -1 is returned, errno is set.
281         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
282         errno value in error message.
283
284 2010-03-20  Bruno Haible  <bruno@clisp.org>
285             Jim Meyering  <meyering@redhat.com>
286
287         lchown: Avoid "unused variable" warning.
288         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
289
290 2010-03-20  Bruno Haible  <bruno@clisp.org>
291
292         Work around unlink() bug on MacOS X 10.5.6.
293         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
294         attempting to unlink a parent directory.
295         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
296         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
297         activate for the replacement function.
298         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
299
300 2010-03-20  Bruno Haible  <bruno@clisp.org>
301
302         Fix link errors on Solaris 8.
303         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
304         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
305
306 2010-03-19  Jim Meyering  <meyering@redhat.com>
307
308         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
309         The _LIBC implementation of build_range_exp correctly honors the
310         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
311         However, the non-_LIBC implementation would ignore that syntax-bit
312         flag and return REG_ERANGE unconditionally.
313         This change makes it honor that flag.
314         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
315         Make two pointer parameters "const".
316         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
317         (parse_bracket_exp): Update caller.
318
319         regex.m4: correct the reversed range endpoint ([b-a]) test
320         * m4/regex.m4: When requiring that [b-a] evoke failure,
321         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
322         test pass once again for x86-based systems.
323
324 2010-03-19  Bruno Haible  <bruno@clisp.org>
325
326         scandir: Fix link error on Solaris 8.
327         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
328         macros.
329
330 2010-03-19  Bruno Haible  <bruno@clisp.org>
331
332         getusershell: Fix documentation.
333         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
334         module.
335         * doc/glibc-functions/setusershell.texi: Likewise.
336
337         getusershell: Provide declaration, missing on Solaris 9.
338         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
339         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
340         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
341         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
343         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
344         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
345         HAVE_GETUSERSHELL.
346         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
347
348 2010-03-19  Bruno Haible  <bruno@clisp.org>
349
350         wctype: Provide iswblank function.
351         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
352         exists and is fine.
353         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
354         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
355         * tests/test-wctype.c (main): Re-enable the iswblank tests.
356         * doc/posix-functions/iswblank.texi: Update.
357
358 2010-03-19  Bruno Haible  <bruno@clisp.org>
359
360         Tests of module 'pty' in C++ mode.
361         * modules/pty-tests: New file.
362         * tests/test-pty-c++.cc: New file.
363         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
364
365 2010-03-19  Eric Blake  <eblake@redhat.com>
366
367         logb: fix documentation
368         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
369         1.5 declaration bug.
370
371         forkpty, openpty: prefer glibc's const-safe prototype
372         * lib/forkpty.c (rpl_forkpty): New file.
373         * lib/openpty.c (rpl_openpty): Likewise.
374         * modules/forkpty (Files): Distribute it.
375         * modules/openpty (Files): Likewise.
376         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
377         check...
378         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
379         replacement for for non-const BSD signature.
380         * modules/pty (Makefile.am): Substitute witnesses.
381         * lib/pty.in.h (forkpty, openpty): Declare replacements.
382         * tests/test-forkpty.c: Update signature check.
383         * tests/test-openpty.c: Likewise.
384         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
385         * doc/glibc-functions/openpty.texi (openpty): Likewise.
386
387         forkpty, openpty: split functions into new modules
388         * modules/pty (Makefile.am): Substitute new witnesses.
389         (Libraries): Move library detection...
390         * modules/forkpty: ...into new module.
391         * modules/openpty: Another new module.
392         * modules/pty-tests: Rename and split...
393         * modules/forkpty-tests: ...to this...
394         * modules/openpty-tests: ...and this.
395         * tests/test-pty.c: Rename and split...
396         * tests/test-forkpty.c: ...to this...
397         * tests/test-openpty.c: ...and this.
398         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
399         (gl_PTY): Split library searching...
400         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
401         (gl_FORKPTY, gl_OPENPTY): New macros.
402         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
403         * NEWS: Mention the split.
404         * MODULES.html.sh (Misc): Document the modules.
405         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
406         * doc/glibc-functions/openpty.texi (openpty): Likewise.
407
408         pty: improve replacement header
409         * lib/pty.in.h: New file.
410         * modules/pty (Files): Ship it.
411         (Makefile.am): Always build replacement.
412         * m4/pty.m4: Rename...
413         * m4/pty_h.m4: ...to this.
414         (gl_PTY): Modernize setting of witness macros; update check of
415         forkpty to take proper advantage of cache.
416         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
417
418         getopt: avoid compiler warning
419         * lib/getopt.c (attribute_hidden): Remove unused macro.
420
421 2010-03-18  Bruno Haible  <bruno@clisp.org>
422
423         Fix link errors on Solaris 8.
424         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
425         * modules/search-tests (test_search_c___LDADD): Likewise.
426         * modules/signal-tests (test_signal_c___LDADD): Likewise.
427         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
428         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
429         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
430         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
431         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
432         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
433
434 2010-03-18  Bruno Haible  <bruno@clisp.org>
435
436         Fix bug introduced on 2010-03-14.
437         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
438         (gl_SPAWN_H): Require it.
439         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
440         Reported by Simon Josefsson.
441
442 2010-03-18  Bruno Haible  <bruno@clisp.org>
443
444         Fix typo introduced on 2009-12-31.
445         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
446         posix_spawn_file_actions_adddup2.
447
448 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
449         and Eric Blake  <eblake@redhat.com>
450
451         test-vc-list-files-git: make more robust
452         * tests/test-vc-list-files-git.sh: Unset problematic environment
453         variables.  Chain commands together.
454
455 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
456
457         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
458         `AC_CHECK_DECL' invocation.
459
460 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
461
462         * lib/inttostr.c (inttostr): Make sure the invocation of verify
463         appears before executable statements. Suggested by Petr Sumbera
464         <Petr.Sumbera@Sun.COM>.
465
466 2010-03-14  Bruno Haible  <bruno@clisp.org>
467
468         * tests/test-flock.c (test_exclusive): Comment out a test that causes
469         portability problems. Instead use a simpler test.
470         (main): Check that invalid arguments are rejected only on Linux.
471
472 2010-03-14  Bruno Haible  <bruno@clisp.org>
473
474         Fix bug introduced on 2009-12-31.
475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
476         gl_PREREQ_SYS_H_WINSOCK2 always.
477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
478         SYS_SOCKET_H variable.
479         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
480         Update comments.
481         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
482         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
483         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
484         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
485         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
486
487 2010-03-14  Bruno Haible  <bruno@clisp.org>
488
489         Fix values returned by sinl, cosl.
490         * lib/trigl.h: Add specification comments.
491         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
492         that combines the values from the precomputed table with the values of
493         the Chebyshev polynomials.
494
495 2010-03-14  Bruno Haible  <bruno@clisp.org>
496
497         Fix compilation error when modules 'posix_spawn[p]' are not used.
498         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
499         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
500
501 2010-03-14  Bruno Haible  <bruno@clisp.org>
502
503         Fix compilation error on mingw when module 'time_r' is not used.
504         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
505         is 1.
506         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
507         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
508         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
509         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
510
511 2010-03-14  Bruno Haible  <bruno@clisp.org>
512
513         Fix compilation error with Sun C.
514         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
515         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
516         instead of GCC specific ULONG_LONG_MAX.
517         * lib/xstrtoll.c: Likewise.
518         * lib/xstrtoull.c: Likewise.
519
520 2010-03-13  Bruno Haible  <bruno@clisp.org>
521
522         Allow the user to disable C++ code and tests.
523         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
524         (gl_PROG_ANSI_CXX): Require it.
525
526 2010-03-13  Bruno Haible  <bruno@clisp.org>
527
528         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
529         cases.
530
531 2010-03-13  Bruno Haible  <bruno@clisp.org>
532
533         Test that gnulib does not break the standard C++ headers.
534         * tests/test-locale-c++2.cc: New file.
535         * modules/locale-tests (Files): Add it.
536         (Makefile.am): Compile it for test-locale-c++.
537         * tests/test-math-c++2.cc: New file.
538         * modules/math-tests (Files): Add it.
539         (Makefile.am): Compile it for test-math-c++.
540         * tests/test-signal-c++2.cc: New file.
541         * modules/signal-tests (Files): Add it.
542         (Makefile.am): Compile it for test-signal-c++.
543         * tests/test-stdio-c++2.cc: New file.
544         * modules/stdio-tests (Files): Add it.
545         (Makefile.am): Compile it for test-stdio-c++.
546         * tests/test-stdlib-c++2.cc: New file.
547         * modules/stdlib-tests (Files): Add it.
548         (Makefile.am): Compile it for test-stdlib-c++.
549         * tests/test-string-c++2.cc: New file.
550         * modules/string-tests (Files): Add it.
551         (Makefile.am): Compile it for test-string-c++.
552         * tests/test-time-c++2.cc: New file.
553         * modules/time-tests (Files): Add it.
554         (Makefile.am): Compile it for test-time-c++.
555         Reported by John W. Eaton <jwe@gnu.org>.
556
557 2010-03-13  Bruno Haible  <bruno@clisp.org>
558
559         * gnulib-tool (func_usage): Clarify which options are available for
560         --create-testdir and --create-megatestdir.
561
562 2010-03-13  Bruno Haible  <bruno@clisp.org>
563
564         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
565         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
566         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
567         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
568         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
569         when appropriate.
570         Reported by Jim Meyering.
571
572 2010-03-12  Simon Josefsson  <simon@josefsson.org>
573
574         * gnulib-tool (func_import): Explain origin of code.
575
576 2010-03-12  Bruno Haible  <bruno@clisp.org>
577
578         Fix problem with automake's definition of CXXLINK.
579         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
580         Reported by Simon Josefsson and Ludovic Courtès.
581
582 2010-03-12  Bruno Haible  <bruno@clisp.org>
583
584         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
585         stable releases.
586
587 2010-03-11  Bruno Haible  <bruno@clisp.org>
588
589         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
590         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
591         whether the system provides one variant or multiple variants of the
592         function.
593         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
594         C++ compilers.
595         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
596         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
597         Reported by Jim Meyering.
598
599 2010-03-09  Simon Josefsson  <simon@josefsson.org>
600
601         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
602
603 2010-03-08  Bruno Haible  <bruno@clisp.org>
604
605         gnulib-tool: Add support for --libtool in --create-testdir.
606         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
607         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
608
609 2010-03-08  Eric Blake  <eblake@redhat.com>
610
611         gnulib-tool.texi: mention possibility of git submodule
612         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
613         submodules.
614         * doc/.gitignore: Ignore another generated file.
615
616 2010-03-08  Karl Berry  <karl@gnu.org>
617
618         * doc/gnulib-tool.texi (VCS Issues): Mention third option
619         of committing gnulib files while skipping others.
620
621 2010-03-07  Bruno Haible  <bruno@clisp.org>
622
623         Tests of module 'wctype' in C++ mode.
624         * tests/test-wctype-c++.cc: New file.
625         * modules/wctype-tests (Files): Add it and tests/signature.h.
626         (Depends-on): Add ansi-c++-opt.
627         (Makefile.am): Arrange to compile and run test-wctype-c++.
628
629         Tests of module 'wchar' in C++ mode.
630         * tests/test-wchar-c++.cc: New file.
631         * modules/wchar-tests (Files): Add it and tests/signature.h.
632         (Depends-on): Add ansi-c++-opt.
633         (Makefile.am): Arrange to compile and run test-wchar-c++.
634         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
635         gl_MODULE_INDICATOR.
636
637         Tests of module 'unistd' in C++ mode.
638         * tests/test-unistd-c++.cc: New file.
639         * modules/unistd-tests (Files): Add it and tests/signature.h.
640         (Depends-on): Add ansi-c++-opt.
641         (Makefile.am): Arrange to compile and run test-unistd-c++.
642         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
643         gl_MODULE_INDICATOR.
644
645         Tests of module 'time' in C++ mode.
646         * tests/test-time-c++.cc: New file.
647         * modules/time-tests (Files): Add it and tests/signature.h.
648         (Depends-on): Add ansi-c++-opt.
649         (Makefile.am): Arrange to compile and run test-time-c++.
650         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
651
652         Tests of module 'sys_time' in C++ mode.
653         * tests/test-sys_time-c++.cc: New file.
654         * modules/sys_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-sys_time-c++.
657         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
658         gl_MODULE_INDICATOR.
659
660         Tests of module 'sys_stat' in C++ mode.
661         * tests/test-sys_stat-c++.cc: New file.
662         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
663         (Depends-on): Add ansi-c++-opt.
664         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
665         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
666         gl_MODULE_INDICATOR.
667
668         Tests of module 'sys_socket' in C++ mode.
669         * tests/test-sys_socket-c++.cc: New file.
670         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
671         (Depends-on): Add ansi-c++-opt.
672         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
674         gl_MODULE_INDICATOR.
675
676         Tests of module 'sys_select' in C++ mode.
677         * tests/test-sys_select-c++.cc: New file.
678         * modules/sys_select-tests (Files): Add it and tests/signature.h.
679         (Depends-on): Add ansi-c++-opt.
680         (Makefile.am): Arrange to compile and run test-sys_select-c++.
681         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
682         gl_MODULE_INDICATOR.
683
684         Tests of module 'sys_ioctl' in C++ mode.
685         * tests/test-sys_ioctl-c++.cc: New file.
686         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
687         (Depends-on): Add ansi-c++-opt.
688         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
689         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
690         gl_MODULE_INDICATOR.
691
692         Tests of module 'string' in C++ mode.
693         * tests/test-string-c++.cc: New file.
694         * modules/string-tests (Files): Add it and tests/signature.h.
695         (Depends-on): Add ansi-c++-opt.
696         (Makefile.am): Arrange to compile and run test-string-c++.
697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
698         gl_MODULE_INDICATOR.
699
700         Tests of module 'stdlib' in C++ mode.
701         * tests/test-stdlib-c++.cc: New file.
702         * modules/stdlib-tests (Files): Add it and tests/signature.h.
703         (Depends-on): Add ansi-c++-opt.
704         (Makefile.am): Arrange to compile and run test-stdlib-c++.
705         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
706         gl_MODULE_INDICATOR.
707
708         Tests of module 'stdio' in C++ mode.
709         * tests/test-stdio-c++.cc: New file.
710         * modules/stdio-tests (Files): Add it and tests/signature.h.
711         (Depends-on): Add ansi-c++-opt.
712         (Makefile.am): Arrange to compile and run test-stdio-c++.
713         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
714         gl_MODULE_INDICATOR.
715
716         Tests of module 'spawn' in C++ mode.
717         * tests/test-spawn-c++.cc: New file.
718         * modules/spawn-tests (Files): Add it and tests/signature.h.
719         (Depends-on): Add ansi-c++-opt.
720         (Makefile.am): Arrange to compile and run test-spawn-c++.
721         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
722         gl_MODULE_INDICATOR.
723
724         Tests of module 'signal' in C++ mode.
725         * tests/test-signal-c++.cc: New file.
726         * modules/signal-tests (Files): Add it and tests/signature.h.
727         (Depends-on): Add ansi-c++-opt.
728         (Makefile.am): Arrange to compile and run test-signal-c++.
729         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
730         gl_MODULE_INDICATOR.
731
732         Tests of module 'search' in C++ mode.
733         * tests/test-search-c++.cc: New file.
734         * modules/search-tests (Files): Add it and tests/signature.h.
735         (Depends-on): Add ansi-c++-opt.
736         (Makefile.am): Arrange to compile and run test-search-c++.
737         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
738         gl_MODULE_INDICATOR.
739
740         Tests of module 'math' in C++ mode.
741         * tests/test-math-c++.cc: New file.
742         * modules/math-tests (Files): Add it and tests/signature.h.
743         (Depends-on): Add ansi-c++-opt.
744         (Makefile.am): Arrange to compile and run test-math-c++.
745         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
746
747         Tests of module 'locale' in C++ mode.
748         * tests/test-locale-c++.cc: New file.
749         * modules/locale-tests (Files): Add it and tests/signature.h.
750         (Depends-on): Add ansi-c++-opt.
751         (Makefile.am): Arrange to compile and run test-locale-c++.
752         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
753         gl_MODULE_INDICATOR.
754
755         Tests of module 'langinfo' in C++ mode.
756         * tests/test-langinfo-c++.cc: New file.
757         * modules/langinfo-tests (Files): Add it and tests/signature.h.
758         (Depends-on): Add ansi-c++-opt.
759         (Makefile.am): Arrange to compile and run test-langinfo-c++.
760         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
761         gl_MODULE_INDICATOR.
762
763         Tests of module 'iconv-h' in C++ mode.
764         * tests/test-iconv-h-c++.cc: New file.
765         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
766         (Depends-on): Add ansi-c++-opt.
767         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
768
769         Tests of module 'glob' in C++ mode.
770         * tests/test-glob-c++.cc: New file.
771         * modules/glob-tests (Files): Add it.
772         (Depends-on): Add ansi-c++-opt.
773         (Makefile.am): Arrange to compile and run test-glob-c++.
774
775         Tests of module 'fcntl-h' in C++ mode.
776         * tests/test-fcntl-h-c++.cc: New file.
777         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
778         (Depends-on): Add ansi-c++-opt.
779         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
780         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
781         gl_MODULE_INDICATOR.
782
783         Tests of module 'dirent' in C++ mode.
784         * tests/test-dirent-c++.cc: New file.
785         * modules/dirent-tests (Files): Add it and tests/signature.h.
786         (Depends-on): Add ansi-c++-opt.
787         (Makefile.am): Arrange to compile and run test-dirent-c++.
788         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
789         gl_MODULE_INDICATOR.
790
791         New module 'ansi-c++-opt'.
792         * modules/ansi-c++-opt: New file.
793         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
794
795         Document C++ namespace mode.
796         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
797
798         wctype: Avoid #define replacements in C++ mode.
799         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
800         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
801         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
802         In C++, define a namespaced alias symbol.
803         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
804         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
805         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
806         rule.
807
808         wchar: Avoid #define replacements in C++ mode.
809         * lib/wchar.in.h: Include c++defs.h.
810         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
811         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
812         symbol.
813         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
814         * modules/wchar (Depends-on): Add c++defs.
815         (Makefile.am): Update wchar.h rule.
816
817         unistd: Avoid #define replacements in C++ mode.
818         * lib/unistd.in.h: Include c++defs.h.
819         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
820         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
821         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
822         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
823         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
824         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
825         symbol.
826         (environ): Update.
827         * modules/unistd (Depends-on): Add c++defs.
828         (Makefile.am): Update unistd.h rule.
829
830         time: Avoid #define replacements in C++ mode.
831         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
832         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
833         define a namespaced alias symbol.
834         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
835         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
836         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
837         * modules/time (Depends-on): Add c++defs, warn-on-use.
838         (Makefile.am): Update time.h rule.
839         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
840         * modules/nanosleep (configure.ac): Likewise.
841         * modules/strptime (configure.ac): Likewise.
842         * modules/timegm (configure.ac): Likewise.
843
844         sys_time: Avoid #define replacements in C++ mode.
845         * lib/sys_time.in.h: Include c++defs.h.
846         (gettimeofday): In C++, define a namespaced alias symbol.
847         * modules/sys_time (Depends-on): Add c++defs.
848         (Makefile.am): Update sys/time.h rule.
849
850         sys_stat: Avoid #define replacements in C++ mode.
851         * lib/sys_stat.in.h: Include c++defs.h.
852         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
853         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
854         namespaced alias symbol.
855         In C++, define a namespaced alias symbol.
856         * modules/sys_stat (Depends-on): Add c++defs.
857         (Makefile.am): Update sys/stat.h rule.
858
859         sys_socket: Avoid #define replacements in C++ mode.
860         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
861         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
862         definitions also when the system has a <sys/socket.h>.
863         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
864         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
865         In C++, define a namespaced alias symbol.
866         * modules/sys_socket (Depends-on): Add c++defs.
867         (Makefile.am): Update sys/socket.h rule.
868
869         sys_select: Avoid #define replacements in C++ mode.
870         * lib/sys_select.in.h: Include c++defs.h. Enable the function
871         definitions also when the system has a <sys/select.h>.
872         (select): In C++, define a namespaced alias symbol.
873         * modules/sys_select (Depends-on): Add c++defs.
874         (Makefile.am): Update sys/select.h rule.
875
876         sys_ioctl: Avoid #define replacements in C++ mode.
877         * lib/sys_ioctl.in.h: Include c++defs.h.
878         (ioctl): In C++, define a namespaced alias symbol.
879         * modules/sys_ioctl (Depends-on): Add c++defs.
880         (Makefile.am): Update sys/ioctl.h rule.
881
882         string: Avoid #define replacements in C++ mode.
883         * lib/string.in.h: Include c++defs.h.
884         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
885         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
886         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
887         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
888         strsignal, strverscmp): In C++, define a namespaced alias symbol.
889         * modules/string (Depends-on): Add c++defs.
890         (Makefile.am): Update string.h rule.
891
892         stdlib: Avoid #define replacements in C++ mode.
893         * lib/stdlib.in.h: Include c++defs.h.
894         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
895         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
896         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
897         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
898         symbol.
899         * modules/stdlib (Depends-on): Add c++defs.
900         (Makefile.am): Update stdlib.h rule.
901
902         stdio: Avoid #define replacements in C++ mode.
903         * lib/stdio.in.h: Include c++defs.h.
904         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
905         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
906         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
907         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
908         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
909         namespaced alias symbol.
910         * modules/stdio (Depends-on): Add c++defs.
911         (Makefile.am): Update stdio.h rule.
912
913         spawn: Avoid #define replacements in C++ mode.
914         * lib/spawn.in.h: Include c++defs.h.
915         (posix_spawn, posix_spawnp, posix_spawnattr_init,
916         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
917         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
918         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
919         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
920         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
921         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
922         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
923         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
924         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
925         In C++, define a namespaced alias symbol.
926         * modules/spawn (Depends-on): Add c++defs.
927         (Makefile.am): Update spawn.h rule.
928
929         signal: Avoid #define replacements in C++ mode.
930         * lib/signal.in.h: Include c++defs.h.
931         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
932         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
933         namespaced alias symbol.
934         * modules/signal (Depends-on): Add c++defs.
935         (Makefile.am): Update signal.h rule.
936
937         search: Avoid #define replacements in C++ mode.
938         * lib/search.in.h: Include c++defs.h.
939         (_gl_search_compar_fn, _gl_search_action_fn): New types.
940         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
941         symbol.
942         * modules/search (Depends-on): Add c++defs.
943         (Makefile.am): Update search.h rule.
944
945         math: Avoid #define replacements in C++ mode.
946         * lib/math.in.h: Include c++defs.h.
947         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
948         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
949         trunc, truncl): In C++, define a namespaced alias symbol.
950         * modules/math (Depends-on): Add c++defs.
951         (Makefile.am): Update math.h rule.
952
953         locale: Avoid #define replacements in C++ mode.
954         * lib/locale.in.h: Include c++defs.h.
955         (duplocale): In C++, define a namespaced alias symbol.
956         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
957         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
958         * modules/locale (Depends-on): Add c++defs.
959         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
960
961         langinfo: Avoid #define replacements in C++ mode.
962         * lib/langinfo.in.h: Include c++defs.h.
963         (nl_langinfo): In C++, define a namespaced alias symbol.
964         * modules/langinfo (Depends-on): Add c++defs.
965         (Makefile.am): Update langinfo.h rule.
966
967         iconv-h: Avoid #define replacements in C++ mode.
968         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
969         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
970         symbol.
971         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
972         whenever iconv is present.
973         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
974         (Makefile.am): Update iconv.h rule.
975
976         glob: Avoid #define replacements in C++ mode.
977         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
978         (_gl_glob_errfunc_fn): New type.
979         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
980         symbol.
981         * modules/glob (Depends-on): Add c++defs, warn-on-use.
982         (Makefile.am): Update glob.h rule.
983
984         fcntl-h: Avoid #define replacements in C++ mode.
985         * lib/fcntl.in.h: Include c++defs.h.
986         (fcntl, open, openat): In C++, define a namespaced alias symbol.
987         * modules/fcntl-h (Depends-on): Add c++defs.
988         (Makefile.am): Update fcntl.h rule.
989
990         dirent: Avoid #define replacements in C++ mode.
991         * lib/dirent.in.h: Include c++defs.h.
992         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
993         namespaced alias symbol.
994         (dirfd): Update declaration.
995         * modules/dirent (Depends-on): Add c++defs.
996         (Makefile.am): Update dirent.h rule.
997
998         ctype: Make it usable in C++ code.
999         * lib/ctype.in.h: Include c++defs.h.
1000         (isblank): Declare as extern "C".
1001         * modules/ctype (Depends-on): Add c++defs.
1002         (Makefile.am): Update ctype.h rule.
1003
1004         New module 'c++defs'.
1005         * modules/c++defs: New file.
1006         * build-aux/c++defs.h: New file.
1007         Reported by John W. Eaton <jwe@gnu.org>.
1008
1009 2010-03-07  Bruno Haible  <bruno@clisp.org>
1010
1011         logb: Provide missing declaration for Cygwin.
1012         * lib/math.in.h (logb): New declaration.
1013         * m4/logb.m4: New file.
1014         * modules/logb (Files): Add m4/logb.m4.
1015         (Depends-on): Add math.
1016         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1017         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1019         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1020         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1021
1022 2010-03-07  Bruno Haible  <bruno@clisp.org>
1023
1024         Fix test-cond link error.
1025         * tests/test-cond.c: Include <stdio.h>.
1026
1027 2010-03-07  Bruno Haible  <bruno@clisp.org>
1028
1029         Fix test-dirent-safer link error.
1030         * modules/dirent-safer-tests (Makefile.am): Define
1031         test_dirent_safer_LDADD.
1032
1033 2010-03-07  Bruno Haible  <bruno@clisp.org>
1034
1035         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1036         among default module list.
1037
1038 2010-03-07  Bruno Haible  <bruno@clisp.org>
1039
1040         Fix link error on platforms with GNU libiconv.
1041         * modules/unistr/u8-strcoll-tests (Makefile): Define
1042         test_u8_strcoll_LDADD.
1043         * modules/unistr/u16-strcoll-tests (Makefile): Define
1044         test_u16_strcoll_LDADD.
1045         * modules/unistr/u32-strcoll-tests (Makefile): Define
1046         test_u32_strcoll_LDADD.
1047
1048 2010-03-07  Bruno Haible  <bruno@clisp.org>
1049
1050         Use POSIX declarations for socket functions.
1051         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1052         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1053         rpl_sendto): Change declaration to match POSIX.
1054         * lib/connect.c (rpl_connect): Likewise.
1055         * lib/accept.c (rpl_accept): Likewise.
1056         * lib/bind.c (rpl_bind): Likewise.
1057         * lib/getpeername.c (rpl_getpeername): Likewise.
1058         * lib/getsockname.c (rpl_getsockname): Likewise.
1059         * lib/recv.c (rpl_recv): Likewise.
1060         * lib/send.c (rpl_send): Likewise.
1061         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1062         * lib/sendto.c (rpl_sendto): Likewise.
1063
1064 2010-03-06  Bruno Haible  <bruno@clisp.org>
1065
1066         Clarify access, euidaccess, faccessat.
1067         * doc/posix-functions/faccessat.texi: Mention security problem under
1068         "Other problems", not "Portability problems".
1069         * doc/posix-functions/access.texi: Likewise. Mention a related security
1070         problem.
1071         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1072         * lib/euidaccess.c: Add comments about platforms.
1073         * lib/unistd.in.h (access, euidaccess): Add warnings.
1074
1075 2010-03-07  Bruno Haible  <bruno@clisp.org>
1076
1077         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1078         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1079         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1080         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1081         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1082         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1083         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1084         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1085         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1087         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1088         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1089         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1090         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1091         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1092         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1093         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1094         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1095         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1096         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1097         Likewise.
1098         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1099         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1100         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1101         Likewise.
1102         * tests/test-spawn.c (main): Make it work when
1103         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1104
1105 2010-03-07  Bruno Haible  <bruno@clisp.org>
1106
1107         Fix incorrect Makefile.am generation in German locale.
1108         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1109         Execute sed command with character range in C locale.
1110
1111 2010-03-06  Bruno Haible  <bruno@clisp.org>
1112
1113         Tests for module 'iconv-h'.
1114         * modules/iconv-h-tests: New file.
1115         * tests/test-iconv-h.c: New file.
1116
1117         New module 'iconv-h'.
1118         * modules/iconv-h: New file.
1119         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1120         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1121         (configure.ac): Remove gl_ICONV_H.
1122         (Makefile.am): Remove rule for iconv.h.
1123
1124 2010-03-06  Bruno Haible  <bruno@clisp.org>
1125
1126         More consistent naming of *.m4 files.
1127         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1128         * modules/wctype (Files): Update.
1129
1130         More consistent naming of *.m4 files.
1131         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1132         * modules/wchar (Files): Update.
1133
1134 2010-03-06  Jim Meyering  <meyering@redhat.com>
1135
1136         euidaccess: relax license to LGPLv2+
1137         * modules/euidaccess (License): Relax to LGPLv2+.
1138
1139 2010-03-06  Bruno Haible  <bruno@clisp.org>
1140
1141         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1142         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1143         (Makefile.am): Augment lib_SOURCES instead.
1144
1145 2010-03-04  Jim Meyering  <meyering@redhat.com>
1146
1147         utime: remove obsolete module
1148         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1149         unnecessary for years, and has been marked as obsolete for 10 months.
1150         * modules/utime: Remove file.
1151         * lib/utime.c: Remove file.
1152         * m4/utime.m4: Remove file.
1153         * m4/utimes-null.m4: Remove file.
1154         * doc/posix-functions/utime.texi (utime): Remove reference to
1155         the module.  Move the sole "fixed by gnulib" item into the
1156         "problems not fixed by Gnulib" list.
1157         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1158
1159 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1160
1161         * modules/exit (License): Relax license to LGPLv2+.
1162         (Status): Mark as obsolete.
1163         * NEWS: Mention deprecated 'exit' module.
1164         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1165         of now obsolete 'exit'.
1166
1167 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1168
1169         fts-lgpl: remove unused module
1170         * modules/fts-lgpl: Remove.
1171         * MODULES.html.sh (func_all_modules): Adjust.
1172         * check-module (find_included_lib_files): Adjust.
1173         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1174
1175 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1176
1177         copy-acl: enhance Solaris ACL error handling
1178         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1179         * lib/set-mode-acl.c (qset_acl): Likewise.
1180
1181 2010-03-02  Bruno Haible  <bruno@clisp.org>
1182
1183         spawn: Don't override the system defined values on FreeBSD 8.
1184         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1185         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1186         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1187         if HAVE_POSIX_SPAWN is 1.
1188         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1189
1190 2010-03-01  Bruno Haible  <bruno@clisp.org>
1191
1192         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1193         regarding Automake.
1194
1195 2010-02-25  Bruno Haible  <bruno@clisp.org>
1196
1197         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1198         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1199         setting, not afterwards.
1200         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1201
1202 2010-02-24  Eric Blake  <eblake@redhat.com>
1203
1204         bootstrap, git-version-gen: use timestamp
1205         * build-aux/git-version-gen (scriptversion): Force UTC.
1206         * build-aux/bootstrap (scriptversion): New variable.
1207
1208         bootstrap: allow older git
1209         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1210         older than 1.6.4.  Requested by the libvirt project.
1211
1212 2010-02-23  Eric Blake  <eblake@redhat.com>
1213
1214         warn-on-use: work with old autoconf
1215         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1216         AS_VAR semantics of autoconf 2.60.
1217         Reported by Bruno Haible.
1218
1219         bootstrap: improve some comments
1220         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1221         clarification comments.
1222
1223         gettimeofday: provide correct function
1224         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1225         when replacement is declared, otherwise provide gettimeofday.
1226         Reported by Michael Goffioul.
1227
1228 2010-02-23  Jim Meyering  <meyering@redhat.com>
1229
1230         lib-ignore: relax license to "unlimited", not LGPLv2+
1231         * modules/lib-ignore (License): Relax to "unlimited".
1232
1233 2010-02-23  Jim Meyering  <meyering@redhat.com>
1234
1235         lib-ignore: relax license to LGPLv2+
1236         * modules/lib-ignore (License): Relax to LGPLv2+.
1237
1238 2010-02-22  Eric Blake  <eblake@redhat.com>
1239
1240         lseek: avoid bash 3.2 broken pipe bug
1241         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1242         warning from bash 3.2.
1243         Reported by Ben Pfaff, with analysis from Bruno Haible.
1244
1245         bootstrap: support non-FSF copyright holder
1246         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1247         bootstrap.conf override of COPYRIGHT_HOLDER.
1248         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1249
1250         bootstrap: interoperate with gettext 0.14.1
1251         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1252
1253         bootstrap: allow for alternate submodule location
1254         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1255         hardcoding submodule location.
1256         (gnulib_mk): Allow direct use of Makefile.am.
1257
1258         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1259         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1260         rather than reconfiguring where the submodule points.
1261
1262         gettimeofday: restore support for platforms that lack function
1263         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1264         replacement if function is missing.
1265         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1266         * modules/sys_time (Makefile.am): Substitute it.
1267         * lib/sys_time.in.h (gettimeofday): Check it.
1268         Reported by Michael Goffioul.
1269
1270 2010-02-21  Bruno Haible  <bruno@clisp.org>
1271
1272         * lib/stdio.in.h (obstack_printf): Fix typo.
1273
1274 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1275
1276         vc-list-files: use bzr ls's -R option
1277         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1278         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1279
1280 2010-02-21  Jim Meyering  <meyering@redhat.com>
1281
1282         init.sh: fix EXEEXT shims to work also for names like test-prog
1283         * tests/init.sh: Re-exec a better shell, when needed.
1284         If the current shell lacks support for posix $(...), an init.sh-using
1285         test will now try to find a shell that supports that.  If EXEEXT is
1286         nonempty, we also require support for hyphen-in-alias-name and shell
1287         substitutions like ${var#glob}.  Failure to find such a shell results
1288         in a skipped test.
1289
1290 2010-02-21  Bruno Haible  <bruno@clisp.org>
1291
1292         Really work around around "broken pipe" error message from bash 3.2.
1293         * gnulib-tool (func_reset_sigpipe): Remove function.
1294         (echo): In bash 3.2, define to a function that uses printf.
1295         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1296
1297 2010-02-20  Bruno Haible  <bruno@clisp.org>
1298
1299         Restore support for automake 1.9.6 with autoconf 2.61.
1300         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1301         Reported by James Youngman <jay@gnu.org>.
1302
1303 2010-02-20  Bruno Haible  <bruno@clisp.org>
1304
1305         Improve *printf warning condition.
1306         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1307         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1308         and the function is overridden due to SIGPIPE emulation.
1309
1310 2010-02-20  Bruno Haible  <bruno@clisp.org>
1311
1312         * lib/stdio.in.h: Tweak comments.
1313
1314 2010-02-19  Bruno Haible  <bruno@clisp.org>
1315
1316         Make it easier to find modules. New gnulib-tool option '--find'.
1317         * gnulib-tool: New option --find.
1318         (func_usage): Document it.
1319         (func_sanitize_modulelist): New function, extracted from
1320         func_all_modules.
1321         (func_all_modules): Invoke it.
1322         * doc/gnulib-tool.texi (Which modules?): New node.
1323
1324 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1325
1326         * lib/sys_select.in.h: Provide select replacement even if
1327         sys/select.h exists on a system, for Interix.
1328
1329 2010-02-18  Jim Meyering  <meyering@redhat.com>
1330
1331         init.sh: don't use $(...) just yet
1332         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1333         to accommodate e.g., Solaris' /bin/sh.
1334
1335 2010-02-17  Bruno Haible  <bruno@clisp.org>
1336
1337         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1338         Reported by Ludovic Courtès <ludo@gnu.org>.
1339
1340 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1341
1342         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1343         linking with -lintl.
1344
1345 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1346
1347         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1348         if not provided by the system's netdb.h.  Reported by
1349         ludo@gnu.org (Ludovic Courtès).
1350
1351 2010-02-15  Jim Meyering  <meyering@redhat.com>
1352
1353         init.sh: improve portability and efficiency
1354         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1355         "dummy" in a for loop.
1356         Use '!', not '^' to select the complement of a character set used
1357         in a "case" statement.
1358         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1359         Suggestions from Eric Blake.
1360
1361         init.sh: automatically accommodate programs with the .exe suffix
1362         Automatically arrange for an invocation of "prog" to execute the
1363         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1364         may use the simpler "prog", yet still work when built on a system
1365         that requires specifying the added suffix.
1366         Do this by constructing a function named "prog" that invokes
1367         "prog.exe" for each .exe file in selected directories.
1368         * tests/init.sh (find_exe_basenames_): New function.
1369         (create_exe_shim_functions_): New function.
1370         (path_prepend_): Use it.
1371
1372         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1373         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1374         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1375
1376 2010-02-14  Jim Meyering  <meyering@redhat.com>
1377
1378         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1379         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1380         (sc_prohibit_hash_pjw_without_use): New rule.
1381
1382         maint.mk: allow the default upload destination dir to be overridden
1383         * top/maint.mk (upload_dest_dir_): Define with a default that
1384         preserves the status quo.
1385         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1386         Reported by Peter Simons.
1387
1388         maint.mk: prohibit inclusion of "hash.h" without_use
1389         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1390
1391 2010-02-10  Jim Meyering  <meyering@redhat.com>
1392
1393         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1394         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1395
1396 2010-02-09  Eric Blake  <ebb9@byu.net>
1397         and Bruno Haible  <bruno@clisp.org>
1398
1399         obstack-printf-posix: ensure declaration
1400         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1401         extracted from gl_FUNC_OBSTACK_PRINTF.
1402         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1403         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1404         Likewise.
1405         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1406         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1407         0.
1408
1409 2010-02-08  Bruno Haible  <bruno@clisp.org>
1410
1411         gnulib-tool: Fix typo in 2010-02-07 commit.
1412         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1413         Reported by Eric Blake.
1414
1415 2010-02-07  Bruno Haible  <bruno@clisp.org>
1416
1417         gnulib-tool: Fix up caching patches.
1418         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1419         option --no-cache. Use associative arrays when supported by the shell.
1420         (sed_comments): New variable.
1421         (modcache): Renamed from do_cache.
1422         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1423         abbreviate unnecessarily.
1424         (have_associative): New variable.
1425         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1426         way also for ksh and zsh.
1427         (func_init_sed_convert_to_cache_statements): New function, extracted
1428         from func_cache_lookup_module. Add support for associative arrays.
1429         Don't set the c_MODULE_cached variable here. Ignore all lines before
1430         the first field header. Remove only the final newline, not all trailing
1431         newlines. Support empty fields correctly. Limit the use of 'eval' to
1432         assignments.
1433         (func_get_description, func_get_status, func_get_notice,
1434         func_get_applicability, func_get_filelist, func_get_dependencies,
1435         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1436         func_get_automake_snippet, func_get_include_directive,
1437         func_get_link_directive, func_get_license, func_get_maintainer):
1438         Update documentation. List the unoptimized code first. Add support for
1439         associative arrays. Limit the use of 'eval' to assignments.
1440         (func_get_applicability): Undo stylistic pessimisations.
1441         (func_get_automake_snippet, func_get_include_directive): Reduce code
1442         duplication.
1443         (func_modules_transitive_closure, func_modules_add_dummy,
1444         func_modules_notice, func_modules_to_filelist, func_add_file,
1445         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1446         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1447         func_create_testdir, func_create_megatestdir): Update documentation.
1448
1449 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1450
1451         * gnulib-tool (func_cache_lookup_module): Store the module name
1452         belonging to the cache variable; error out if two different
1453         module names map to the same cache variable name.
1454
1455 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1456
1457         gnulib-tool: Make caching optional.
1458         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1459         Update matching short versions of --no-changelog.
1460         (func_usage): Update.
1461         (sed_extract_cache_prog): Renamed from ...
1462         (sed_extract_prog): ... this; revert to old extraction script.
1463         (func_get_description, func_get_status)
1464         (func_get_notice, func_get_applicability, func_get_filelist)
1465         (func_get_dependencies, func_get_autoconf_early_snippet)
1466         (func_get_autoconf_snippet, func_get_automake_snippet)
1467         (func_get_include_directive, func_get_link_directive)
1468         (func_get_license, func_get_maintainer): If $do_cache is false,
1469         use old, non-caching extraction scripts.
1470         Suggestion by Bruno Haible.
1471
1472 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1473
1474         gnulib-tool: cache module metainformation.
1475         * gnulib-tool (sed_extract_prog): Match newline before each
1476         header, and rewrite header to a shell variable suffix.
1477         (func_cache_var, func_cache_lookup_module): New functions,
1478         to turn a module name into a cache variable prefix, and to
1479         look up and cache module metainformation.
1480         (func_get_description, func_get_status)
1481         (func_get_notice, func_get_applicability, func_get_filelist)
1482         (func_get_dependencies, func_get_autoconf_early_snippet)
1483         (func_get_autoconf_snippet, func_get_automake_snippet)
1484         (func_get_include_directive, func_get_link_directive)
1485         (func_get_license, func_get_maintainer): Use
1486         func_cache_lookup_module.
1487
1488 2010-02-07  Bruno Haible  <bruno@clisp.org>
1489
1490         fnctl: Fix missing dependency.
1491         * modules/fcntl (Depends-on): Add getdtablesize.
1492         Reported by John W. Eaton <jwe@gnu.org>.
1493
1494 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1495
1496         Argp: fix recognition of short alias options.
1497
1498         * lib/argp-parse.c (convert_options): Fix improper use of
1499         `|' between character values.
1500         * tests/test-argp.c (group1_option): New alias option
1501         --read (-r).
1502         (group1_parser): Special handling for 'r'.
1503         (test15): New test case.
1504         (test_fun): Add test15.
1505         * tests/test-argp-2.sh: Update expected --help and --usage
1506         outputs.
1507
1508 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1509
1510         * tests/test-argp.c: Fix indentation.
1511
1512 2010-02-04  Eric Blake  <ebb9@byu.net>
1513
1514         gettimeofday: expose type of second argument
1515         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1516         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1517         * tests/test-gettimeofday.c: Use it to silence warning.
1518         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1519         the issue.
1520
1521 2010-02-03  Jim Meyering  <meyering@redhat.com>
1522
1523         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1524         * lib/regcomp.c (TYPE_SIGNED): Define.
1525         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1526
1527         regcomp.c: avoid a new -Wshadow warning
1528         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1529
1530 2010-02-01  Jim Meyering  <meyering@redhat.com>
1531
1532         removing useless parentheses in cpp #define directives
1533         For motivation, see commit c0221df4, "define STREQ(a,b)
1534         consistently, removing useless parentheses"
1535         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1536         * lib/mountlist.c (MNT_IGNORE): Likewise.
1537         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1538
1539 2010-02-01  Eric Blake  <ebb9@byu.net>
1540
1541         sys_time: use link-warning
1542         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1543         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1544         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1545         * modules/sys_time (Depends-on): Add warn-on-use.
1546         (Makefile.am): Always build replacement.
1547         (configure.ac): Update substitutions.
1548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1549         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1550         bother with SYS_TIME_H.
1551         * modules/gettimeofday (configure.ac): Declare indicator.
1552         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1553         in use.
1554
1555         closein-tests: silence compiler warning
1556         * tests/test-closein.c (main): Ignore fread result.
1557         * modules/closein-tests (Depends-on): Add ignore-value.
1558
1559         tests: silence warning about system return
1560         * tests/test-areadlink-with-size.c (main): Ignore system result.
1561         * tests/test-areadlink.c (main): Likewise.
1562         * tests/test-areadlinkat-with-size.c (main): Likewise.
1563         * tests/test-areadlinkat.c (main): Likewise.
1564         * tests/test-canonicalize-lgpl.c (main): Likewise.
1565         * tests/test-canonicalize.c (main): Likewise.
1566         * tests/test-chown.c (main): Likewise.
1567         * tests/test-fchownat.c (main): Likewise.
1568         * tests/test-fdutimensat.c (main): Likewise.
1569         * tests/test-fstatat.c (main): Likewise.
1570         * tests/test-futimens.c (main): Likewise.
1571         * tests/test-lchown.c (main): Likewise.
1572         * tests/test-link.c (main): Likewise.
1573         * tests/test-linkat.c (main): Likewise.
1574         * tests/test-lstat.c (main): Likewise.
1575         * tests/test-mkdir.c (main): Likewise.
1576         * tests/test-mkdirat.c (main): Likewise.
1577         * tests/test-mkfifo.c (main): Likewise.
1578         * tests/test-mkfifoat.c (main): Likewise.
1579         * tests/test-mknod.c (main): Likewise.
1580         * tests/test-readlink.c (main): Likewise.
1581         * tests/test-remove.c (main): Likewise.
1582         * tests/test-rename.c (main): Likewise.
1583         * tests/test-renameat.c (main): Likewise.
1584         * tests/test-rmdir.c (main): Likewise.
1585         * tests/test-symlink.c (main): Likewise.
1586         * tests/test-symlinkat.c (main): Likewise.
1587         * tests/test-unlink.c (main): Likewise.
1588         * tests/test-unlinkat.c (main): Likewise.
1589         * tests/test-utimens.c (main): Likewise.
1590         * tests/test-utimensat.c (main): Likewise.
1591         * modules/areadlink-tests (Depends-on): Add ignore-value.
1592         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1593         * modules/areadlinkat-tests (Depends-on): Likewise.
1594         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1595         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1596         * modules/canonicalize-tests (Depends-on): Likewise.
1597         * modules/chown-tests (Depends-on): Likewise.
1598         * modules/fdutimensat-tests (Depends-on): Likewise.
1599         * modules/futimens-tests (Depends-on): Likewise.
1600         * modules/lchown-tests (Depends-on): Likewise.
1601         * modules/link-tests (Depends-on): Likewise.
1602         * modules/linkat-tests (Depends-on): Likewise.
1603         * modules/lstat-tests (Depends-on): Likewise.
1604         * modules/mkdir-tests (Depends-on): Likewise.
1605         * modules/mkfifo-tests (Depends-on): Likewise.
1606         * modules/mkfifoat-tests (Depends-on): Likewise.
1607         * modules/mknod-tests (Depends-on): Likewise.
1608         * modules/openat-tests (Depends-on): Likewise.
1609         * modules/readlink-tests (Depends-on): Likewise.
1610         * modules/remove-tests (Depends-on): Likewise.
1611         * modules/rename-tests (Depends-on): Likewise.
1612         * modules/renameat-tests (Depends-on): Likewise.
1613         * modules/rmdir-tests (Depends-on): Likewise.
1614         * modules/symlink-tests (Depends-on): Likewise.
1615         * modules/symlinkat-tests (Depends-on): Likewise.
1616         * modules/unlink-tests (Depends-on): Likewise.
1617         * modules/utimens-tests (Depends-on): Likewise.
1618         * modules/utimensat-tests (Depends-on): Likewise.
1619
1620 2010-01-31  Bruno Haible  <bruno@clisp.org>
1621
1622         Perform the same test for many <math.h> functions.
1623         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1624         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1625         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1626         of gl_MATHFUNC.
1627         * modules/acos (configure.ac): Likewise.
1628         * modules/asin (configure.ac): Likewise.
1629         * modules/atan (configure.ac): Likewise.
1630         * modules/atan2 (configure.ac): Likewise.
1631         * modules/cbrt (configure.ac): Likewise.
1632         * modules/copysign (configure.ac): Likewise.
1633         * modules/cos (configure.ac): Likewise.
1634         * modules/cosh (configure.ac): Likewise.
1635         * modules/erf (configure.ac): Likewise.
1636         * modules/erfc (configure.ac): Likewise.
1637         * modules/exp (configure.ac): Likewise.
1638         * modules/fmod (configure.ac): Likewise.
1639         * modules/hypot (configure.ac): Likewise.
1640         * modules/j0 (configure.ac): Likewise.
1641         * modules/j1 (configure.ac): Likewise.
1642         * modules/jn (configure.ac): Likewise.
1643         * modules/lgamma (configure.ac): Likewise.
1644         * modules/log (configure.ac): Likewise.
1645         * modules/log10 (configure.ac): Likewise.
1646         * modules/log1p (configure.ac): Likewise.
1647         * modules/pow (configure.ac): Likewise.
1648         * modules/remainder (configure.ac): Likewise.
1649         * modules/sin (configure.ac): Likewise.
1650         * modules/sinh (configure.ac): Likewise.
1651         * modules/tan (configure.ac): Likewise.
1652         * modules/tanh (configure.ac): Likewise.
1653         * modules/y0 (configure.ac): Likewise.
1654         * modules/y1 (configure.ac): Likewise.
1655         * modules/yn (configure.ac): Likewise.
1656         Suggested by Paolo Bonzini.
1657
1658 2010-01-31  Bruno Haible  <bruno@clisp.org>
1659
1660         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1661
1662 2010-01-31  Bruno Haible  <bruno@clisp.org>
1663
1664         Work around getdelim() bug on FreeBSD 8.0.
1665         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1666         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1667         not work.
1668         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1669         is 1.
1670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1671         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1672         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1673         a non-zero size.
1674         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1675
1676 2010-01-31  Bruno Haible  <bruno@clisp.org>
1677
1678         Work around getline() bug on FreeBSD 8.0.
1679         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1680         and a non-zero size.
1681         * tests/test-getline.c (main): Likewise.
1682         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1683         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1684
1685 2010-01-28  Eric Blake  <ebb9@byu.net>
1686
1687         regex: fix build failure
1688         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1689         platforms.
1690
1691 2010-01-28  Jim Meyering  <meyering@redhat.com>
1692
1693         regex: do not ignore memory allocation failure
1694         * lib/regex_internal.c (create_cd_newstate): Detect
1695         re_node_set_init_copy failure.   Extracted from glibc commit
1696         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1697
1698         regex: sync more white-space changes from libc
1699         * lib/regex_internal.c: White-space only changes.
1700         * lib/regexec.c: Likewise.
1701
1702         regex: add many uses of __attribute_warn_unused_result__
1703         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1704         * lib/regexec.c: Likewise.
1705         Extracted from a messy glibc commit.
1706
1707         regcomp.c: spelling and merge-artifact from glibc
1708         * lib/regcomp.c: Merge remainder of glibc's
1709         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1710
1711         regcomp.c: sync white-space changes from glibc
1712         * lib/regcomp.c: Merge to accommodate white space
1713         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1714
1715         regcomp.c: do not ignore internal return values
1716         * lib/regcomp.c: Do not ignore internal return values.
1717         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1718         but without its white-space changes and spelling fixes.
1719
1720         regex_internal.h: define __attribute_warn_unused_result__
1721         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1722
1723         maint: add a syntax-check rule to check for vulnerable Makefile.in
1724         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1725
1726 2010-01-27  Jim Meyering  <meyering@redhat.com>
1727
1728         ncftpput-ftp: clean up spaces
1729         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1730         Remove trailing blanks.
1731
1732 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1733
1734         * build-aux/git-version-gen: Fix copyright statement.
1735         * build-aux/gnupload: Likewise.
1736         * tests/test-arcfour.c: Likewise.
1737         * tests/test-arctwo.c: Likewise.
1738         * tests/test-count-one-bits.c: Likewise.
1739         * tests/test-crc.c: Likewise.
1740         * tests/test-des.c: Likewise.
1741         * tests/test-gc-arcfour.c: Likewise.
1742         * tests/test-gc-arctwo.c: Likewise.
1743         * tests/test-gc-des.c: Likewise.
1744         * tests/test-gc-hmac-md5.c: Likewise.
1745         * tests/test-gc-hmac-sha1.c: Likewise.
1746         * tests/test-gc-md2.c: Likewise.
1747         * tests/test-gc-md4.c: Likewise.
1748         * tests/test-gc-md5.c: Likewise.
1749         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1750         * tests/test-gc-rijndael.c: Likewise.
1751         * tests/test-gc-sha1.c: Likewise.
1752         * tests/test-gc.c: Likewise.
1753         * tests/test-gethostname.c: Likewise.
1754         * tests/test-gettimeofday.c: Likewise.
1755         * tests/test-hash.c: Likewise.
1756         * tests/test-hmac-md5.c: Likewise.
1757         * tests/test-hmac-sha1.c: Likewise.
1758         * tests/test-md2.c: Likewise.
1759         * tests/test-md4.c: Likewise.
1760         * tests/test-md5.c: Likewise.
1761         * tests/test-memchr.c: Likewise.
1762         * tests/test-memchr2.c: Likewise.
1763         * tests/test-memcmp.c: Likewise.
1764         * tests/test-memmem.c: Likewise.
1765         * tests/test-memrchr.c: Likewise.
1766         * tests/test-rawmemchr.c: Likewise.
1767         * tests/test-read-file.c: Likewise.
1768         * tests/test-rijndael.c: Likewise.
1769         * tests/test-sockets.c: Likewise.
1770         * tests/test-strchrnul.c: Likewise.
1771         * tests/test-strstr.c: Likewise.
1772         * tests/test-strtod.c: Likewise.
1773         * build-aux/ncftpput-ftp: Likewise.
1774
1775 2010-01-26  Eric Blake  <ebb9@byu.net>
1776
1777         ignore-value: update recommended header name
1778         * modules/ignore-value (Include): Only use <> for headers that
1779         exist in glibc.
1780
1781 2010-01-26  Jim Meyering  <meyering@redhat.com>
1782
1783         test-userspec.c: avoid compiler warnings
1784         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1785         and "initialization discards qualifiers..." warnings.
1786         Put the first "uid" in its own scope, and make char* members "const".
1787
1788 2010-01-25  Bruno Haible  <bruno@clisp.org>
1789
1790         gnulib-tool: Make warning diagnostics consistent.
1791         * gnulib-tool (func_warning): New function.
1792         Use it everywhere where gnulib-tool produces output to stderr and it is
1793         not a fatal error.
1794
1795 2010-01-25  Bruno Haible  <bruno@clisp.org>
1796
1797         Fix test dependencies.
1798         * modules/xstrtol-tests (Depends-on): Add inttypes.
1799         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1800
1801 2010-01-25 Pádraig Brady <P@draigBrady.com>
1802
1803         syntax-check: detect incorrect boolean macro values in config.h
1804         * modules/maintainer-makefile (configure.ac): Parameterize the location
1805         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1806         The logic is from Eric Blake and the location indicated by Jim Meyering.
1807         Note the more natural CONFIG_HEADER name is prohibited by automake
1808         for backwards compatibility reasons.
1809         * top/maint.mk (sc_Wundef_boolean): New rule.
1810
1811 2010-01-25  Jim Meyering  <meyering@redhat.com>
1812
1813         bootstrap: detect MacOS 10.6's shasum, too
1814         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1815         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1816
1817 2010-01-23  Jim Meyering  <meyering@redhat.com>
1818
1819         xstrtoll: new module
1820         * modules/xstrtoll: New file.
1821         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1822         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1823         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1824         ./configure fails if you use this module and lack "long long".
1825         * modules/xstrtoll-tests: New module.
1826         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1827         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1828         new init.sh-based test framework.
1829
1830 2010-01-24  Bruno Haible  <bruno@clisp.org>
1831
1832         Tests for module 'yn'.
1833         * modules/yn-tests: New file.
1834         * tests/test-yn.c: New file.
1835
1836         Tests for module 'y1'.
1837         * modules/y1-tests: New file.
1838         * tests/test-y1.c: New file.
1839
1840         Tests for module 'y0'.
1841         * modules/y0-tests: New file.
1842         * tests/test-y0.c: New file.
1843
1844         Tests for module 'tanh'.
1845         * modules/tanh-tests: New file.
1846         * tests/test-tanh.c: New file.
1847
1848         Tests for module 'tan'.
1849         * modules/tan-tests: New file.
1850         * tests/test-tan.c: New file.
1851
1852         Tests for module 'sqrt'.
1853         * modules/sqrt-tests: New file.
1854         * tests/test-sqrt.c: New file.
1855
1856         Tests for module 'sinh'.
1857         * modules/sinh-tests: New file.
1858         * tests/test-sinh.c: New file.
1859
1860         Tests for module 'sin'.
1861         * modules/sin-tests: New file.
1862         * tests/test-sin.c: New file.
1863
1864         Tests for module 'rint'.
1865         * modules/rint-tests: New file.
1866         * tests/test-rint.c: New file.
1867
1868         Tests for module 'remainder'.
1869         * modules/remainder-tests: New file.
1870         * tests/test-remainder.c: New file.
1871
1872         Tests for module 'pow'.
1873         * modules/pow-tests: New file.
1874         * tests/test-pow.c: New file.
1875
1876         Tests for module 'nextafter'.
1877         * modules/nextafter-tests: New file.
1878         * tests/test-nextafter.c: New file.
1879
1880         Tests for module 'modf'.
1881         * modules/modf-tests: New file.
1882         * tests/test-modf.c: New file.
1883
1884         Tests for module 'logb'.
1885         * modules/logb-tests: New file.
1886         * tests/test-logb.c: New file.
1887
1888         Tests for module 'log1p'.
1889         * modules/log1p-tests: New file.
1890         * tests/test-log1p.c: New file.
1891
1892         Tests for module 'log10'.
1893         * modules/log10-tests: New file.
1894         * tests/test-log10.c: New file.
1895
1896         Tests for module 'log'.
1897         * modules/log-tests: New file.
1898         * tests/test-log.c: New file.
1899
1900         Tests for module 'lgamma'.
1901         * modules/lgamma-tests: New file.
1902         * tests/test-lgamma.c: New file.
1903
1904         Tests for module 'ldexp'.
1905         * modules/ldexp-tests: New file.
1906         * tests/test-ldexp.c: New file.
1907
1908         Tests for module 'jn'.
1909         * modules/jn-tests: New file.
1910         * tests/test-jn.c: New file.
1911
1912         Tests for module 'j1'.
1913         * modules/j1-tests: New file.
1914         * tests/test-j1.c: New file.
1915
1916         Tests for module 'j0'.
1917         * modules/j0-tests: New file.
1918         * tests/test-j0.c: New file.
1919
1920         Tests for module 'hypot'.
1921         * modules/hypot-tests: New file.
1922         * tests/test-hypot.c: New file.
1923
1924         Tests for module 'fmod'.
1925         * modules/fmod-tests: New file.
1926         * tests/test-fmod.c: New file.
1927
1928         Tests for module 'fabs'.
1929         * modules/fabs-tests: New file.
1930         * tests/test-fabs.c: New file.
1931
1932         Tests for module 'exp'.
1933         * modules/exp-tests: New file.
1934         * tests/test-exp.c: New file.
1935
1936         Tests for module 'erfc'.
1937         * modules/erfc-tests: New file.
1938         * tests/test-erfc.c: New file.
1939
1940         Tests for module 'erf'.
1941         * modules/erf-tests: New file.
1942         * tests/test-erf.c: New file.
1943
1944         Tests for module 'cosh'.
1945         * modules/cosh-tests: New file.
1946         * tests/test-cosh.c: New file.
1947
1948         Tests for module 'cos'.
1949         * modules/cos-tests: New file.
1950         * tests/test-cos.c: New file.
1951
1952         Tests for module 'copysign'.
1953         * modules/copysign-tests: New file.
1954         * tests/test-copysign.c: New file.
1955
1956         Tests for module 'cbrt'.
1957         * modules/cbrt-tests: New file.
1958         * tests/test-cbrt.c: New file.
1959
1960         Tests for module 'atan2'.
1961         * modules/atan2-tests: New file.
1962         * tests/test-atan2.c: New file.
1963
1964         Tests for module 'atan'.
1965         * modules/atan-tests: New file.
1966         * tests/test-atan.c: New file.
1967
1968         Tests for module 'asin'.
1969         * modules/asin-tests: New file.
1970         * tests/test-asin.c: New file.
1971
1972         Tests for module 'acos'.
1973         * modules/acos-tests: New file.
1974         * tests/test-acos.c: New file.
1975
1976 2010-01-24  Bruno Haible  <bruno@clisp.org>
1977
1978         Fix tests for common <math.h> functions.
1979         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1980         code snippet that references the function pointer, rather than merely
1981         calling the function. Substitute the FUNC_LIBM variable.
1982         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1983         * modules/acos (configure.ac): Likewise.
1984         * modules/asin (configure.ac): Likewise.
1985         * modules/atan (configure.ac): Likewise.
1986         * modules/atan2 (configure.ac): Likewise.
1987         * modules/cbrt (configure.ac): Likewise.
1988         * modules/copysign (configure.ac): Likewise.
1989         * modules/cos (configure.ac): Likewise.
1990         * modules/cosh (configure.ac): Likewise.
1991         * modules/erf (configure.ac): Likewise.
1992         * modules/erfc (configure.ac): Likewise.
1993         * modules/exp (configure.ac): Likewise.
1994         * modules/fabs (configure.ac): Likewise.
1995         * modules/fmod (configure.ac): Likewise.
1996         * modules/hypot (configure.ac): Likewise.
1997         * modules/j0 (configure.ac): Likewise.
1998         * modules/j1 (configure.ac): Likewise.
1999         * modules/jn (configure.ac): Likewise.
2000         * modules/ldexp (configure.ac): Likewise.
2001         * modules/lgamma (configure.ac): Likewise.
2002         * modules/log (configure.ac): Likewise.
2003         * modules/log10 (configure.ac): Likewise.
2004         * modules/log1p (configure.ac): Likewise.
2005         * modules/logb (configure.ac): Likewise.
2006         * modules/modf (configure.ac): Likewise.
2007         * modules/nextafter (configure.ac): Likewise.
2008         * modules/pow (configure.ac): Likewise.
2009         * modules/remainder (configure.ac): Likewise.
2010         * modules/rint (configure.ac): Likewise.
2011         * modules/sin (configure.ac): Likewise.
2012         * modules/sinh (configure.ac): Likewise.
2013         * modules/tan (configure.ac): Likewise.
2014         * modules/tanh (configure.ac): Likewise.
2015         * modules/y0 (configure.ac): Likewise.
2016         * modules/y1 (configure.ac): Likewise.
2017         * modules/yn (configure.ac): Likewise.
2018
2019 2010-01-24  Bruno Haible  <bruno@clisp.org>
2020
2021         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2022         * tests/test-acosl.c (x): New variable.
2023         (main): Store argument in x and fetch it from x.
2024         * tests/test-asinl.c (x): New variable.
2025         (main): Store argument in x and fetch it from x.
2026         * tests/test-atanl.c (x): New variable.
2027         (main): Store argument in x and fetch it from x.
2028         * tests/test-cosl.c (x): New variable.
2029         (main): Store argument in x and fetch it from x.
2030         * tests/test-expl.c (x): New variable.
2031         (main): Store argument in x and fetch it from x.
2032         * tests/test-logl.c (x): New variable.
2033         (main): Store argument in x and fetch it from x.
2034         * tests/test-sinl.c (x): New variable.
2035         (main): Store argument in x and fetch it from x.
2036         * tests/test-sqrtl.c (x): New variable.
2037         (main): Store argument in x and fetch it from x.
2038         * tests/test-tanl.c (x): New variable.
2039         (main): Store argument in x and fetch it from x.
2040
2041 2010-01-24  Bruno Haible  <bruno@clisp.org>
2042
2043         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2044         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2045         assignments to the initial TESTS_ENVIRONMENT.
2046         * doc/gnulib.texi (Unit test modules): Document it.
2047         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2048         TESTS_ENVIRONMENT.
2049         * modules/btowc-tests (Makefile.am): Likewise.
2050         * modules/c-stack-tests (Makefile.am): Likewise.
2051         * modules/c-strcase-tests (Makefile.am): Likewise.
2052         * modules/copy-file-tests (Makefile.am): Likewise.
2053         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2054         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2055         * modules/mbrtowc-tests (Makefile.am): Likewise.
2056         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2057         * modules/mbscasestr-tests (Makefile.am): Likewise.
2058         * modules/mbschr-tests (Makefile.am): Likewise.
2059         * modules/mbscspn-tests (Makefile.am): Likewise.
2060         * modules/mbsinit-tests (Makefile.am): Likewise.
2061         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2062         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2063         * modules/mbspbrk-tests (Makefile.am): Likewise.
2064         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2065         * modules/mbsrchr-tests (Makefile.am): Likewise.
2066         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2067         * modules/mbsspn-tests (Makefile.am): Likewise.
2068         * modules/mbsstr-tests (Makefile.am): Likewise.
2069         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2070         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2071         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2072         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2073         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2074         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2075         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2076         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2077         * modules/wcrtomb-tests (Makefile.am): Likewise.
2078         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2079         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2080         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2081         assignments from TESTS_ENVIRONMENT.
2082         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2083         augmentation.
2084         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2085         * modules/atexit-tests (Makefile.am): Likewise.
2086         * modules/binary-io-tests (Makefile.am): Likewise.
2087         * modules/closein-tests (Makefile.am): Likewise.
2088         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2089         * modules/exclude-tests (Makefile.am): Likewise.
2090         * modules/fflush-tests (Makefile.am): Likewise.
2091         * modules/fpending-tests (Makefile.am): Likewise.
2092         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2093         * modules/freadahead-tests (Makefile.am): Likewise.
2094         * modules/freadptr-tests (Makefile.am): Likewise.
2095         * modules/freadseek-tests (Makefile.am): Likewise.
2096         * modules/fseek-tests (Makefile.am): Likewise.
2097         * modules/fseeko-tests (Makefile.am): Likewise.
2098         * modules/ftell-tests (Makefile.am): Likewise.
2099         * modules/ftello-tests (Makefile.am): Likewise.
2100         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2101         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2102         * modules/lseek-tests (Makefile.am): Likewise.
2103         * modules/parse-duration-tests (Makefile.am): Likewise.
2104         * modules/perror-tests (Makefile.am): Likewise.
2105         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2106         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2107         * modules/pipe-tests (Makefile.am): Likewise.
2108         * modules/pread-tests (Makefile.am): Likewise.
2109         * modules/printf-posix-tests (Makefile.am): Likewise.
2110         * modules/select-tests (Makefile.am): Likewise.
2111         * modules/sigpipe-tests (Makefile.am): Likewise.
2112         * modules/tsearch-tests (Makefile.am): Likewise.
2113         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2114         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2115         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2116         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2117         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2118         * modules/version-etc-tests (Makefile.am): Likewise.
2119         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2120         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2121         * modules/xalloc-die-tests (Makefile.am): Likewise.
2122         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2123         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2124         * modules/xstrtol-tests (Makefile.am): Likewise.
2125         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2126         * modules/yesno-tests (Makefile.am): Likewise.
2127         Suggested by Jim Meyering.
2128
2129 2010-01-24  Bruno Haible  <bruno@clisp.org>
2130
2131         More documentation.
2132         * doc/gnulib.texi (Writing modules): New chapter.
2133         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2134         the new chapter.
2135
2136 2010-01-24  Jim Meyering  <meyering@redhat.com>
2137
2138         maint.mk: do not prepend "./" after filtering
2139         * top/maint.mk (_prepend_srcdir_prefix): New variable
2140         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2141         "./" when $(srcdir) is ".".
2142
2143         define STREQ(a,b) consistently, removing useless parentheses
2144         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2145         since the only risk is that "a" or "b" contains an unparenthesized
2146         comma, but if either did that, STREQ would have 3 or more arguments.
2147         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2148         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2149         * lib/hash-triple.c (STREQ): Likewise.
2150         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2151         * lib/getugroups.c (STREQ): Likewise.
2152
2153 2010-01-23  Jim Meyering  <meyering@redhat.com>
2154
2155         maint.mk: fix syntax-check in a non-srcdir build directory
2156         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2157         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2158
2159 2010-01-22  Jim Meyering  <meyering@redhat.com>
2160
2161         userspec: add unit tests
2162         * tests/test-userspec.c: New file.
2163         * modules/userspec-tests: Likewise.
2164
2165 2010-01-21  Jim Meyering  <meyering@redhat.com>
2166
2167         maint.mk: handle source file names containing "." robustly
2168         * top/maint.mk (_dot_escaped_srcdir): Define.
2169         (VC_LIST): Use it in LHS of sed substitution.
2170
2171 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2172
2173         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2174         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2175         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2176         from a non-srcdir build.
2177
2178 2010-01-20  Eric Blake  <ebb9@byu.net>
2179
2180         warn-on-use: use instead of link-warning
2181         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2182         * modules/unistd (Depends-on, Makefile.am): Likewise.
2183         * modules/arpa_inet (Depends-on): Replace link-warning with
2184         warn-on-use.
2185         (Makefile.am): Update rules accordingly.
2186         * modules/ctype (Depends-on, Makefile.am): Likewise.
2187         * modules/dirent (Depends-on, Makefile.am): Likewise.
2188         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2189         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2190         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2191         * modules/locale (Depends-on, Makefile.am): Likewise.
2192         * modules/math (Depends-on, Makefile.am): Likewise.
2193         * modules/search (Depends-on, Makefile.am): Likewise.
2194         * modules/signal (Depends-on, Makefile.am): Likewise.
2195         * modules/spawn (Depends-on, Makefile.am): Likewise.
2196         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2197         * modules/string (Depends-on, Makefile.am): Likewise.
2198         * modules/strings (Depends-on, Makefile.am): Likewise.
2199         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2200         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2201         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2202         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2203         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2204         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2205         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2206         * modules/wchar (Depends-on, Makefile.am): Likewise.
2207         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2208         should be poisoned.
2209         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2210         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2211         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2212         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2213         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2214         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2215         * m4/math_h.m4 (gl_MATH_H): Likewise.
2216         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2217         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2218         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2219         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2220         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2221         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2222         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2223         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2230         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2231         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2232         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2233         GL_LINK_WARNING.
2234         * lib/ctype.in.h: Likewise.
2235         * lib/dirent.in.h: Likewise.
2236         * lib/fcntl.in.h: Likewise.
2237         * lib/inttypes.in.h: Likewise.
2238         * lib/langinfo.in.h: Likewise.
2239         * lib/locale.in.h: Likewise.
2240         * lib/math.in.h: Likewise.
2241         * lib/search.in.h: Likewise.
2242         * lib/signal.in.h: Likewise.
2243         * lib/spawn.in.h: Likewise.
2244         * lib/stdio.in.h: Likewise.
2245         * lib/stdlib.in.h: Likewise.
2246         * lib/string.in.h: Likewise.
2247         * lib/strings.in.h: Likewise.
2248         * lib/sys_file.in.h: Likewise.
2249         * lib/sys_ioctl.in.h: Likewise.
2250         * lib/sys_select.in.h: Likewise.
2251         * lib/sys_socket.in.h: Likewise.
2252         * lib/sys_stat.in.h: Likewise.
2253         * lib/sys_times.in.h: Likewise.
2254         * lib/sys_utsname.in.h: Likewise.
2255         * lib/unistd.in.h: Likewise.
2256         * lib/wchar.in.h: Likewise.
2257
2258 2010-01-20  Bruno Haible  <bruno@clisp.org>
2259
2260         Avoid duplicate -lm.
2261         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2262         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2263         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2264         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2265         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2266         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2267         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2268         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2269         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2270         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2271         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2272         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2273         Reported by Paolo Bonzini.
2274
2275 2010-01-19  Bruno Haible  <bruno@clisp.org>
2276
2277         langinfo, nl_langinfo: Relicense under LGPLv2+.
2278         * modules/langinfo (License): Change to LGPLv2+.
2279         * modules/nl_langinfo (License): Likewise.
2280         Patch by David Lutterkort <lutter@redhat.com>.
2281
2282 2010-01-19  Bruno Haible  <bruno@clisp.org>
2283
2284         Avoid compilation error with cc on OSF/1 5.1.
2285         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2286         statement, not before.
2287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2288
2289 2010-01-18  Bruno Haible  <bruno@clisp.org>
2290
2291         Avoid a link error due to the __printf__ symbol.
2292         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2293         and 2.6.x.
2294         (__format__, __printf__): Remove definitions.
2295         * lib/argp-fmtstream.h: Likewise.
2296         * lib/argp.h: Likewise.
2297         * lib/error.h: Likewise.
2298         * lib/vasnprintf.h: Likewise.
2299         * lib/xprintf.h: Likewise.
2300         * lib/xvasprintf.h: Likewise.
2301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2302
2303 2010-01-18  Bruno Haible  <bruno@clisp.org>
2304
2305         Tests for module 'tanl'.
2306         * modules/tanl-tests: New file.
2307         * tests/test-tanl.c: New file.
2308
2309         Tests for module 'sqrtl'.
2310         * modules/sqrtl-tests: New file.
2311         * tests/test-sqrtl.c: New file.
2312
2313         Tests for module 'sinl'.
2314         * modules/sinl-tests: New file.
2315         * tests/test-sinl.c: New file.
2316
2317         Tests for module 'logl'.
2318         * modules/logl-tests: New file.
2319         * tests/test-logl.c: New file.
2320
2321         Tests for module 'expl'.
2322         * modules/expl-tests: New file.
2323         * tests/test-expl.c: New file.
2324
2325         Tests for module 'cosl'.
2326         * modules/cosl-tests: New file.
2327         * tests/test-cosl.c: New file.
2328
2329         Tests for module 'atanl'.
2330         * modules/atanl-tests: New file.
2331         * tests/test-atanl.c: New file.
2332
2333         Tests for module 'asinl'.
2334         * modules/asinl-tests: New file.
2335         * tests/test-asinl.c: New file.
2336
2337         Tests for module 'acosl'.
2338         * modules/acosl-tests: New file.
2339         * tests/test-acosl.c: New file.
2340
2341         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2342         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2343         tanl): Use the standard gnulib idiom.
2344         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2345         * lib/sinl.c: Likewise.
2346         * lib/tanl.c: Don't include trigl.c.
2347         (kernel_tanl): Make static.
2348         * lib/sincosl.c: Include trigl.h first.
2349         * lib/trigl.c: Likewise.
2350         * m4/acosl.m4: New file.
2351         * m4/asinl.m4: New file.
2352         * m4/atanl.m4: New file.
2353         * m4/cosl.m4: New file.
2354         * m4/expl.m4: New file.
2355         * m4/logl.m4: New file.
2356         * m4/sinl.m4: New file.
2357         * m4/sqrtl.m4: New file.
2358         * m4/tanl.m4: New file.
2359         * m4/mathl.m4: Remove file.
2360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2361         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2362         Don't initialize GNULIB_MATHL.
2363         * modules/acosl: New file.
2364         * modules/asinl: New file.
2365         * modules/atanl: New file.
2366         * modules/cosl: New file.
2367         * modules/expl: New file.
2368         * modules/logl: New file.
2369         * modules/sinl: New file.
2370         * modules/sqrtl: New file.
2371         * modules/tanl: New file.
2372         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2373         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2374         substitute GNULIB_MATHL.
2375         * modules/mathl: Rewritten.
2376         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2377         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2378         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2379         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2380         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2381         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2382         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2383         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2384         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2385
2386 2010-01-18  Bruno Haible  <bruno@clisp.org>
2387
2388         sqrt: Make gl_FUNC_SQRT requirable.
2389         * m4/sqrt.m4: New file.
2390         * modules/sqrt (Files): Add it.
2391         (configure.ac): Invoke gl_FUNC_SQRT.
2392
2393 2010-01-18  Bruno Haible  <bruno@clisp.org>
2394
2395         New modules for common <math.h> functions.
2396         * m4/mathfunc.m4: New file.
2397         * modules/acos: New file.
2398         * modules/asin: New file.
2399         * modules/atan: New file.
2400         * modules/atan2: New file.
2401         * modules/cbrt: New file.
2402         * modules/copysign: New file.
2403         * modules/cos: New file.
2404         * modules/cosh: New file.
2405         * modules/erf: New file.
2406         * modules/erfc: New file.
2407         * modules/exp: New file.
2408         * modules/fabs: New file.
2409         * modules/fmod: New file.
2410         * modules/hypot: New file.
2411         * modules/j0: New file.
2412         * modules/j1: New file.
2413         * modules/jn: New file.
2414         * modules/ldexp: New file.
2415         * modules/lgamma: New file.
2416         * modules/log: New file.
2417         * modules/log10: New file.
2418         * modules/log1p: New file.
2419         * modules/logb: New file.
2420         * modules/modf: New file.
2421         * modules/nextafter: New file.
2422         * modules/pow: New file.
2423         * modules/remainder: New file.
2424         * modules/rint: New file.
2425         * modules/sin: New file.
2426         * modules/sinh: New file.
2427         * modules/sqrt: New file.
2428         * modules/tan: New file.
2429         * modules/tanh: New file.
2430         * modules/y0: New file.
2431         * modules/y1: New file.
2432         * modules/yn: New file.
2433         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2434         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2435         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2436         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2437         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2438         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2439         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2440         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2441         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2442         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2443         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2444         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2445         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2446         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2447         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2448         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2449         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2450         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2451         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2452         * doc/posix-functions/log.texi: Mention the 'log' module.
2453         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2454         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2455         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2456         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2457         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2458         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2459         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2460         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2461         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2462         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2463         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2464         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2465         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2466         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2467         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2468         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2469
2470 2010-01-18  Jim Meyering  <meyering@redhat.com>
2471
2472         ignore-value: relax license to LGPLv2+
2473         * modules/ignore-value (License): Relax to LGPLv2+.
2474
2475         getdate: don't leak when TZ contains two or more '"'s
2476         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2477         double quote in TZ after the first one.
2478
2479         readtokens: do not leak internal token_lengths buffer
2480         * lib/readtokens.c (readtokens): Free the local, lengths,
2481         when the supplied "token_lengths" parameter is NULL.
2482
2483 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2484
2485         Fix a couple of missing LIBTHREAD link failures on AIX.
2486         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2487         $(LIBTHREAD).
2488         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2489
2490         Link test-poll against INET_PTON_LIB.
2491         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2492         for inet_pton on Solaris 10.
2493
2494 2010-01-17  Bruno Haible  <bruno@clisp.org>
2495
2496         unistdio/*-sprintf: Fix typo in module description.
2497         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2498         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2499         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2500         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2501         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2502         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2503         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2505
2506 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2507
2508         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2509         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2510         variables in shell case patterns, for AIX and HP-UX ksh.
2511
2512         Split large sed scripts, for HP-UX sed.
2513         * modules/stdio: Split sed scripts around 50 sed commands,
2514         to avoid HP-UX limit of 99 commands, in the near future.
2515         * modules/string: Likewise.
2516         * modules/unistd: Likewise.
2517
2518         gnulib-tool: avoid writing in the current directory.
2519         * gnulib-tool (func_emit_lib_Makefile_am)
2520         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2521         not in the current directory, so concurrent gnulib-tool
2522         instances do not interfere.
2523
2524 2010-01-16  Jim Meyering  <meyering@redhat.com>
2525
2526         doc: update users.txt
2527         * users.txt: Add grep.
2528         (diffutils, gzip): Update URLs.
2529
2530 2010-01-12  Bruno Haible  <bruno@clisp.org>
2531
2532         posix_spawn: Avoid test failure on Cygwin.
2533         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2534         characters.
2535         Reported by Simon Josefsson.
2536
2537 2010-01-12  Bruno Haible  <bruno@clisp.org>
2538
2539         * tests/test-cond.c (main): When skipping the test, show the reason.
2540
2541 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2542
2543         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2544
2545 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2546
2547         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2548         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2549
2550 2010-01-12  Eric Blake  <ebb9@byu.net>
2551
2552         build: guarantee AS_VAR_IF
2553         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2554         (gl_AS_VAR_IF): Move...
2555         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2556         Reported by Simon Josefsson.
2557
2558 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2559
2560         * lib/stdio.in.h: Fix typo.
2561
2562 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2563
2564         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2565         libgpg-error.
2566
2567 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2568
2569         * tests/test-xalloc-die.sh: Use $EXEEXT.
2570
2571 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2572             Bruno Haible  <bruno@clisp.org>
2573
2574         getlogin, getlogin_r: Avoid test failure.
2575         * tests/test-getlogin.c: Include <stdio.h>.
2576         (main): Skip the test when the function fails because stdin is not a
2577         tty.
2578         * tests/test-getlogin_r.c: Include <stdio.h>.
2579         (main): Skip the test when the function fails because stdin is not a
2580         tty.
2581
2582 2010-01-11  Eric Blake  <ebb9@byu.net>
2583
2584         tests: avoid more large file warnings
2585         * tests/test-fflush.c: Avoid warning about ftell use.
2586         * tests/test-fseek.c: Avoid warning about fseek use.
2587
2588 2010-01-10  Bruno Haible  <bruno@clisp.org>
2589
2590         nproc: Work better on Linux when /proc and /sys are not mounted.
2591         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2592         as lower bound when, on glibc/Linux systems,
2593         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2594         Suggested by Pádraig Brady <P@draigbrady.com>.
2595         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2596
2597         nproc: Refactor.
2598         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2599         extracted from num_processors.
2600         (num_processors): Call it.
2601
2602 2010-01-11  Jim Meyering  <meyering@redhat.com>
2603
2604         utimecmp: avoid new warning from upcoming gcc-4.5.0
2605         * lib/utimecmp.c (BILLION): Define using #define rather than an
2606         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2607
2608 2010-01-11  Eric Blake  <ebb9@byu.net>
2609
2610         math: add portability warnings for classification macros
2611         * modules/math (Depends-on): Add warn-on-use.
2612         (Makefile.am): Provide new substitutions.
2613         * m4/math_h.m4 (gl_MATH_H): Require inline.
2614         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2615         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2616         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2617         implement warnings.
2618
2619         unistd: warn on use of environ without module
2620         * modules/unistd (Depends-on): Add warn-on-use.
2621         (Makefile.am): Provide new substitutions.
2622         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2623         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2624
2625         stdio: warn on suspicious uses
2626         * modules/stdio (Depends-on): Add warn-on-use.
2627         (Makefile.am): Provide new substitutions.
2628         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2629         fseeko.
2630         * lib/stdio.in.h (gets): Always warn on use.
2631         (fseek, ftell): Adjust when warnings are issued, and honor
2632         _GL_NO_LARGE_FILES as a way to silence the warning.
2633         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2634         any warning about large file offsets.
2635         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2636         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2637         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2638         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2639         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2640         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2641         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2642         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2643
2644         warn-on-use: new module
2645         * modules/warn-on-use: New file.
2646         * build-aux/warn-on-use.h: Likewise.
2647         * m4/warn-on-use.m4: Likewise.
2648         * MODULES.html.sh (Support for building): Mention it.
2649
2650 2010-01-10  Bruno Haible  <bruno@clisp.org>
2651
2652         Tests for module 'unistr/u32-strdup'.
2653         * modules/unistr/u32-strdup-tests: New file.
2654         * tests/unistr/test-u32-strdup.c: New file.
2655
2656         Tests for module 'unistr/u16-strdup'.
2657         * modules/unistr/u16-strdup-tests: New file.
2658         * tests/unistr/test-u16-strdup.c: New file.
2659
2660         Tests for module 'unistr/u8-strdup'.
2661         * modules/unistr/u8-strdup-tests: New file.
2662         * tests/unistr/test-u8-strdup.c: New file.
2663         * tests/unistr/test-strdup.h: New file.
2664
2665         Tests for module 'unistr/u32-strncmp'.
2666         * modules/unistr/u32-strncmp-tests: New file.
2667         * tests/unistr/test-u32-strncmp.c: New file.
2668
2669         Tests for module 'unistr/u16-strncmp'.
2670         * modules/unistr/u16-strncmp-tests: New file.
2671         * tests/unistr/test-u16-strncmp.c: New file.
2672
2673         Tests for module 'unistr/u8-strncmp'.
2674         * modules/unistr/u8-strncmp-tests: New file.
2675         * tests/unistr/test-u8-strncmp.c: New file.
2676         * tests/unistr/test-strncmp.h: New file.
2677
2678         Tests for module 'unistr/u32-strcoll'.
2679         * modules/unistr/u32-strcoll-tests: New file.
2680         * tests/unistr/test-u32-strcoll.c: New file.
2681
2682         Tests for module 'unistr/u16-strcoll'.
2683         * modules/unistr/u16-strcoll-tests: New file.
2684         * tests/unistr/test-u16-strcoll.c: New file.
2685
2686         Tests for module 'unistr/u8-strcoll'.
2687         * modules/unistr/u8-strcoll-tests: New file.
2688         * tests/unistr/test-u8-strcoll.c: New file.
2689
2690         Tests for module 'unistr/u32-strcmp'.
2691         * modules/unistr/u32-strcmp-tests: New file.
2692         * tests/unistr/test-u32-strcmp.c: New file.
2693         * tests/unistr/test-u32-strcmp.h: New file.
2694
2695         Tests for module 'unistr/u16-strcmp'.
2696         * modules/unistr/u16-strcmp-tests: New file.
2697         * tests/unistr/test-u16-strcmp.c: New file.
2698         * tests/unistr/test-u16-strcmp.h: New file.
2699
2700         Tests for module 'unistr/u8-strcmp'.
2701         * modules/unistr/u8-strcmp-tests: New file.
2702         * tests/unistr/test-u8-strcmp.c: New file.
2703         * tests/unistr/test-u8-strcmp.h: New file.
2704         * tests/unistr/test-strcmp.h: New file.
2705
2706         Tests for module 'unistr/u32-strncat'.
2707         * modules/unistr/u32-strncat-tests: New file.
2708         * tests/unistr/test-u32-strncat.c: New file.
2709
2710         Tests for module 'unistr/u16-strncat'.
2711         * modules/unistr/u16-strncat-tests: New file.
2712         * tests/unistr/test-u16-strncat.c: New file.
2713
2714         Tests for module 'unistr/u8-strncat'.
2715         * modules/unistr/u8-strncat-tests: New file.
2716         * tests/unistr/test-u8-strncat.c: New file.
2717         * tests/unistr/test-strncat.h: New file.
2718
2719         Tests for module 'unistr/u32-strcat'.
2720         * modules/unistr/u32-strcat-tests: New file.
2721         * tests/unistr/test-u32-strcat.c: New file.
2722
2723         Tests for module 'unistr/u16-strcat'.
2724         * modules/unistr/u16-strcat-tests: New file.
2725         * tests/unistr/test-u16-strcat.c: New file.
2726
2727         Tests for module 'unistr/u8-strcat'.
2728         * modules/unistr/u8-strcat-tests: New file.
2729         * tests/unistr/test-u8-strcat.c: New file.
2730         * tests/unistr/test-strcat.h: New file.
2731
2732         Tests for module 'unistr/u32-stpncpy'.
2733         * modules/unistr/u32-stpncpy-tests: New file.
2734         * tests/unistr/test-u32-stpncpy.c: New file.
2735
2736         Tests for module 'unistr/u16-stpncpy'.
2737         * modules/unistr/u16-stpncpy-tests: New file.
2738         * tests/unistr/test-u16-stpncpy.c: New file.
2739
2740         Tests for module 'unistr/u8-stpncpy'.
2741         * modules/unistr/u8-stpncpy-tests: New file.
2742         * tests/unistr/test-u8-stpncpy.c: New file.
2743         * tests/unistr/test-stpncpy.h: New file.
2744
2745         Tests for module 'unistr/u32-strncpy'.
2746         * modules/unistr/u32-strncpy-tests: New file.
2747         * tests/unistr/test-u32-strncpy.c: New file.
2748
2749         Tests for module 'unistr/u16-strncpy'.
2750         * modules/unistr/u16-strncpy-tests: New file.
2751         * tests/unistr/test-u16-strncpy.c: New file.
2752
2753         Tests for module 'unistr/u8-strncpy'.
2754         * modules/unistr/u8-strncpy-tests: New file.
2755         * tests/unistr/test-u8-strncpy.c: New file.
2756         * tests/unistr/test-strncpy.h: New file.
2757
2758         Tests for module 'unistr/u32-stpcpy'.
2759         * modules/unistr/u32-stpcpy-tests: New file.
2760         * tests/unistr/test-u32-stpcpy.c: New file.
2761
2762         Tests for module 'unistr/u16-stpcpy'.
2763         * modules/unistr/u16-stpcpy-tests: New file.
2764         * tests/unistr/test-u16-stpcpy.c: New file.
2765
2766         Tests for module 'unistr/u8-stpcpy'.
2767         * modules/unistr/u8-stpcpy-tests: New file.
2768         * tests/unistr/test-u8-stpcpy.c: New file.
2769         * tests/unistr/test-stpcpy.h: New file.
2770
2771         Tests for module 'unistr/u32-strcpy'.
2772         * modules/unistr/u32-strcpy-tests: New file.
2773         * tests/unistr/test-u32-strcpy.c: New file.
2774
2775         Tests for module 'unistr/u16-strcpy'.
2776         * modules/unistr/u16-strcpy-tests: New file.
2777         * tests/unistr/test-u16-strcpy.c: New file.
2778
2779         Tests for module 'unistr/u8-strcpy'.
2780         * modules/unistr/u8-strcpy-tests: New file.
2781         * tests/unistr/test-u8-strcpy.c: New file.
2782         * tests/unistr/test-strcpy.h: New file.
2783
2784         Tests for module 'unistr/u32-strnlen'.
2785         * modules/unistr/u32-strnlen-tests: New file.
2786         * tests/unistr/test-u32-strnlen.c: New file.
2787
2788         Tests for module 'unistr/u16-strnlen'.
2789         * modules/unistr/u16-strnlen-tests: New file.
2790         * tests/unistr/test-u16-strnlen.c: New file.
2791
2792         Tests for module 'unistr/u8-strnlen'.
2793         * modules/unistr/u8-strnlen-tests: New file.
2794         * tests/unistr/test-u8-strnlen.c: New file.
2795         * tests/unistr/test-strnlen.h: New file.
2796
2797         Tests for module 'unistr/u32-strlen'.
2798         * modules/unistr/u32-strlen-tests: New file.
2799         * tests/unistr/test-u32-strlen.c: New file.
2800
2801         Tests for module 'unistr/u16-strlen'.
2802         * modules/unistr/u16-strlen-tests: New file.
2803         * tests/unistr/test-u16-strlen.c: New file.
2804
2805         Tests for module 'unistr/u8-strlen'.
2806         * modules/unistr/u8-strlen-tests: New file.
2807         * tests/unistr/test-u8-strlen.c: New file.
2808
2809         Tests for module 'unistr/u32-prev'.
2810         * modules/unistr/u32-prev-tests: New file.
2811         * tests/unistr/test-u32-prev.c: New file.
2812
2813         Tests for module 'unistr/u16-prev'.
2814         * modules/unistr/u16-prev-tests: New file.
2815         * tests/unistr/test-u16-prev.c: New file.
2816
2817         Tests for module 'unistr/u8-prev'.
2818         * modules/unistr/u8-prev-tests: New file.
2819         * tests/unistr/test-u8-prev.c: New file.
2820
2821         Tests for module 'unistr/u32-next'.
2822         * modules/unistr/u32-next-tests: New file.
2823         * tests/unistr/test-u32-next.c: New file.
2824
2825         Tests for module 'unistr/u16-next'.
2826         * modules/unistr/u16-next-tests: New file.
2827         * tests/unistr/test-u16-next.c: New file.
2828
2829         Tests for module 'unistr/u8-next'.
2830         * modules/unistr/u8-next-tests: New file.
2831         * tests/unistr/test-u8-next.c: New file.
2832
2833         Tests for module 'unistr/u32-strmbtouc'.
2834         * modules/unistr/u32-strmbtouc-tests: New file.
2835         * tests/unistr/test-u32-strmbtouc.c: New file.
2836
2837         Tests for module 'unistr/u16-strmbtouc'.
2838         * modules/unistr/u16-strmbtouc-tests: New file.
2839         * tests/unistr/test-u16-strmbtouc.c: New file.
2840
2841         Tests for module 'unistr/u8-strmbtouc'.
2842         * modules/unistr/u8-strmbtouc-tests: New file.
2843         * tests/unistr/test-u8-strmbtouc.c: New file.
2844
2845         Tests for module 'unistr/u32-strmblen'.
2846         * modules/unistr/u32-strmblen-tests: New file.
2847         * tests/unistr/test-u32-strmblen.c: New file.
2848
2849         Tests for module 'unistr/u16-strmblen'.
2850         * modules/unistr/u16-strmblen-tests: New file.
2851         * tests/unistr/test-u16-strmblen.c: New file.
2852
2853         Tests for module 'unistr/u8-strmblen'.
2854         * modules/unistr/u8-strmblen-tests: New file.
2855         * tests/unistr/test-u8-strmblen.c: New file.
2856
2857         Tests for module 'unistr/u32-cpy-alloc'.
2858         * modules/unistr/u32-cpy-alloc-tests: New file.
2859         * tests/unistr/test-u32-cpy-alloc.c: New file.
2860
2861         Tests for module 'unistr/u16-cpy-alloc'.
2862         * modules/unistr/u16-cpy-alloc-tests: New file.
2863         * tests/unistr/test-u16-cpy-alloc.c: New file.
2864
2865         Tests for module 'unistr/u8-cpy-alloc'.
2866         * modules/unistr/u8-cpy-alloc-tests: New file.
2867         * tests/unistr/test-u8-cpy-alloc.c: New file.
2868         * tests/unistr/test-cpy-alloc.h: New file.
2869
2870         Tests for module 'unistr/u32-mbsnlen'.
2871         * modules/unistr/u32-mbsnlen-tests: New file.
2872         * tests/unistr/test-u32-mbsnlen.c: New file.
2873
2874         Tests for module 'unistr/u16-mbsnlen'.
2875         * modules/unistr/u16-mbsnlen-tests: New file.
2876         * tests/unistr/test-u16-mbsnlen.c: New file.
2877
2878         Tests for module 'unistr/u8-mbsnlen'.
2879         * modules/unistr/u8-mbsnlen-tests: New file.
2880         * tests/unistr/test-u8-mbsnlen.c: New file.
2881
2882         Tests for module 'unistr/u32-chr'.
2883         * modules/unistr/u32-chr-tests: New file.
2884         * tests/unistr/test-u32-chr.c: New file.
2885
2886         Tests for module 'unistr/u16-chr'.
2887         * modules/unistr/u16-chr-tests: New file.
2888         * tests/unistr/test-u16-chr.c: New file.
2889
2890         Tests for module 'unistr/u8-chr'.
2891         * modules/unistr/u8-chr-tests: New file.
2892         * tests/unistr/test-u8-chr.c: New file.
2893         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2894
2895         Tests for module 'unistr/u32-cmp2'.
2896         * modules/unistr/u32-cmp2-tests: New file.
2897         * tests/unistr/test-u32-cmp2.c: New file.
2898
2899         Tests for module 'unistr/u16-cmp2'.
2900         * modules/unistr/u16-cmp2-tests: New file.
2901         * tests/unistr/test-u16-cmp2.c: New file.
2902
2903         Tests for module 'unistr/u8-cmp2'.
2904         * modules/unistr/u8-cmp2-tests: New file.
2905         * tests/unistr/test-u8-cmp2.c: New file.
2906         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2907
2908         Tests for module 'unistr/u32-cmp'.
2909         * modules/unistr/u32-cmp-tests: New file.
2910         * tests/unistr/test-u32-cmp.c: New file.
2911
2912         Tests for module 'unistr/u16-cmp'.
2913         * modules/unistr/u16-cmp-tests: New file.
2914         * tests/unistr/test-u16-cmp.c: New file.
2915
2916         Tests for module 'unistr/u8-cmp'.
2917         * modules/unistr/u8-cmp-tests: New file.
2918         * tests/unistr/test-u8-cmp.c: New file.
2919         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2920
2921         Tests for module 'unistr/u32-set'.
2922         * modules/unistr/u32-set-tests: New file.
2923         * tests/unistr/test-u32-set.c: New file.
2924
2925         Tests for module 'unistr/u16-set'.
2926         * modules/unistr/u16-set-tests: New file.
2927         * tests/unistr/test-u16-set.c: New file.
2928
2929         Tests for module 'unistr/u8-set'.
2930         * modules/unistr/u8-set-tests: New file.
2931         * tests/unistr/test-u8-set.c: New file.
2932         * tests/unistr/test-set.h: New file.
2933
2934         Tests for module 'unistr/u32-move'.
2935         * modules/unistr/u32-move-tests: New file.
2936         * tests/unistr/test-u32-move.c: New file.
2937
2938         Tests for module 'unistr/u16-move'.
2939         * modules/unistr/u16-move-tests: New file.
2940         * tests/unistr/test-u16-move.c: New file.
2941
2942         Tests for module 'unistr/u8-move'.
2943         * modules/unistr/u8-move-tests: New file.
2944         * tests/unistr/test-u8-move.c: New file.
2945         * tests/unistr/test-move.h: New file.
2946
2947         Tests for module 'unistr/u32-cpy'.
2948         * modules/unistr/u32-cpy-tests: New file.
2949         * tests/unistr/test-u32-cpy.c: New file.
2950
2951         Tests for module 'unistr/u16-cpy'.
2952         * modules/unistr/u16-cpy-tests: New file.
2953         * tests/unistr/test-u16-cpy.c: New file.
2954
2955         Tests for module 'unistr/u8-cpy'.
2956         * modules/unistr/u8-cpy-tests: New file.
2957         * tests/unistr/test-u8-cpy.c: New file.
2958         * tests/unistr/test-cpy.h: New file.
2959
2960 2010-01-09  Bruno Haible  <bruno@clisp.org>
2961
2962         Tests for module 'unistr/u32-uctomb'.
2963         * modules/unistr/u32-uctomb-tests: New file.
2964         * tests/unistr/test-u32-uctomb.c: New file.
2965
2966         Tests for module 'unistr/u16-uctomb'.
2967         * modules/unistr/u16-uctomb-tests: New file.
2968         * tests/unistr/test-u16-uctomb.c: New file.
2969
2970         Tests for module 'unistr/u8-uctomb'.
2971         * modules/unistr/u8-uctomb-tests: New file.
2972         * tests/unistr/test-u8-uctomb.c: New file.
2973
2974         Tests for module 'unistr/u32-mbtoucr'.
2975         * modules/unistr/u32-mbtoucr-tests: New file.
2976         * tests/unistr/test-u32-mbtoucr.c: New file.
2977
2978         Tests for module 'unistr/u16-mbtoucr'.
2979         * modules/unistr/u16-mbtoucr-tests: New file.
2980         * tests/unistr/test-u16-mbtoucr.c: New file.
2981
2982         Tests for module 'unistr/u8-mbtoucr'.
2983         * modules/unistr/u8-mbtoucr-tests: New file.
2984         * tests/unistr/test-u8-mbtoucr.c: New file.
2985
2986         Tests for module 'unistr/u32-mbtouc'.
2987         * modules/unistr/u32-mbtouc-tests: New file.
2988         * tests/unistr/test-u32-mbtouc.c: New file.
2989
2990         Tests for module 'unistr/u16-mbtouc'.
2991         * modules/unistr/u16-mbtouc-tests: New file.
2992         * tests/unistr/test-u16-mbtouc.c: New file.
2993
2994         Tests for module 'unistr/u8-mbtouc'.
2995         * modules/unistr/u8-mbtouc-tests: New file.
2996         * tests/unistr/test-u8-mbtouc.c: New file.
2997
2998         Tests for module 'unistr/u32-mbtouc-unsafe'.
2999         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3000         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3001         * tests/unistr/test-u32-mbtouc.h: New file.
3002
3003         Tests for module 'unistr/u16-mbtouc-unsafe'.
3004         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3005         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3006         * tests/unistr/test-u16-mbtouc.h: New file.
3007
3008         Tests for module 'unistr/u8-mbtouc-unsafe'.
3009         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3010         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3011         * tests/unistr/test-u8-mbtouc.h: New file.
3012
3013         Tests for module 'unistr/u32-mblen'.
3014         * modules/unistr/u32-mblen-tests: New file.
3015         * tests/unistr/test-u32-mblen.c: New file.
3016
3017         Tests for module 'unistr/u16-mblen'.
3018         * modules/unistr/u16-mblen-tests: New file.
3019         * tests/unistr/test-u16-mblen.c: New file.
3020
3021         Tests for module 'unistr/u8-mblen'.
3022         * modules/unistr/u8-mblen-tests: New file.
3023         * tests/unistr/test-u8-mblen.c: New file.
3024
3025         Tests for module 'unistr/u32-to-u16'.
3026         * modules/unistr/u32-to-u16-tests: New file.
3027         * tests/unistr/test-u32-to-u16.c: New file.
3028
3029         Tests for module 'unistr/u32-to-u8'.
3030         * modules/unistr/u32-to-u8-tests: New file.
3031         * tests/unistr/test-u32-to-u8.c: New file.
3032
3033         Tests for module 'unistr/u16-to-u32'.
3034         * modules/unistr/u16-to-u32-tests: New file.
3035         * tests/unistr/test-u16-to-u32.c: New file.
3036
3037         Tests for module 'unistr/u16-to-u8'.
3038         * modules/unistr/u16-to-u8-tests: New file.
3039         * tests/unistr/test-u16-to-u8.c: New file.
3040
3041         Tests for module 'unistr/u8-to-u32'.
3042         * modules/unistr/u8-to-u32-tests: New file.
3043         * tests/unistr/test-u8-to-u32.c: New file.
3044
3045         Tests for module 'unistr/u8-to-u16'.
3046         * modules/unistr/u8-to-u16-tests: New file.
3047         * tests/unistr/test-u8-to-u16.c: New file.
3048
3049         Tests for module 'unistr/u32-check'.
3050         * modules/unistr/u32-check-tests: New file.
3051         * tests/unistr/test-u32-check.c: New file.
3052
3053         Tests for module 'unistr/u16-check'.
3054         * modules/unistr/u16-check-tests: New file.
3055         * tests/unistr/test-u16-check.c: New file.
3056
3057         Tests for module 'unistr/u8-check'.
3058         * modules/unistr/u8-check-tests: New file.
3059         * tests/unistr/test-u8-check.c: New file.
3060
3061         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3062         (category_equals): New function.
3063         (main): Add more tests.
3064         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3065
3066         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3067
3068 2010-01-10  Bruno Haible  <bruno@clisp.org>
3069
3070         unistr/u*-strcoll: Try harder to distinguish different strings.
3071         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3072         compare s1 and s2 to see if they are different.
3073
3074 2010-01-10  Bruno Haible  <bruno@clisp.org>
3075
3076         unistr/u*-stpncpy: Fix the return value.
3077         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3078         description of the return value consistent with stpncpy in glibc.
3079         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3080         written non-NUL unit.
3081
3082 2010-01-10  Bruno Haible  <bruno@clisp.org>
3083
3084         unistr/u*-next: Add missing dependencies.
3085         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3086         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3087         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3088
3089 2010-01-10  Bruno Haible  <bruno@clisp.org>
3090
3091         unistr/u8-mbsnlen: Fix return value for incomplete character.
3092         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3093         u8_mblen.
3094         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3095         Remove unistr/u8-mblen.
3096         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3097         u16_mblen.
3098         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3099         Remove unistr/u16-mblen.
3100
3101 2010-01-10  Bruno Haible  <bruno@clisp.org>
3102
3103         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3104         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3105         Reported by Brian Gough <bjg@gnu.org> and
3106         Chris Clayton <chris2553@googlemail.com> via
3107         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3108
3109 2010-01-09  Bruno Haible  <bruno@clisp.org>
3110
3111         unistr/u16-to-u32: Reject invalid input.
3112         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3113         u16_mbtouc.
3114         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3115         Remove unistr/u16-mbtouc.
3116
3117         unistr/u16-to-u8: Reject invalid input.
3118         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3119         u16_mbtouc.
3120         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3121         Remove unistr/u16-mbtouc.
3122
3123         unistr/u8-to-u32: Reject invalid input.
3124         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3125         u8_mbtouc.
3126         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3127         Remove unistr/u8-mbtouc.
3128
3129         unistr/u8-to-u16: Reject invalid input.
3130         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3131         u8_mbtouc.
3132         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3133         Remove unistr/u8-mbtouc.
3134
3135 2010-01-09  Bruno Haible  <bruno@clisp.org>
3136
3137         Tests for module 'getlogin'.
3138         * modules/getlogin-tests: New file.
3139         * tests/test-getlogin.c: New file.
3140
3141         New module 'getlogin'.
3142         * lib/unistd.in.h (getlogin): New declaration.
3143         * lib/getlogin.c: New file.
3144         * m4/getlogin.m4: New file.
3145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3146         HAVE_GETLOGIN.
3147         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3148         HAVE_GETLOGIN.
3149         * modules/getlogin: New file.
3150         * doc/posix-functions/getlogin.texi: Mention the new module.
3151         Reported by John W. Eaton <jwe@gnu.org>.
3152
3153 2010-01-09  Bruno Haible  <bruno@clisp.org>
3154
3155         getlogin_r: Support for native Windows.
3156         * lib/getlogin_r.c: Include <windows.h>
3157         (getlogin_r): Implement for native Windows.
3158         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3159         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3160         via John W. Eaton <jwe@gnu.org>.
3161
3162 2010-01-09  Bruno Haible  <bruno@clisp.org>
3163
3164         getlogin_r: Small fixes.
3165         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3166         succeeds.
3167         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3168         before testing whether getlogin_r is declared. No need to set
3169         HAVE_DECL_GETLOGIN_R to 1.
3170         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3171
3172 2010-01-09  Bruno Haible  <bruno@clisp.org>
3173
3174         * lib/unistd.in.h (getlogin_r): Add comment.
3175
3176 2010-01-09  Bruno Haible  <bruno@clisp.org>
3177
3178         Tests for module 'getlogin_r'.
3179         * modules/getlogin_r-tests: New file.
3180         * tests/test-getlogin_r.c: New file.
3181
3182 2010-01-09  Jim Meyering  <meyering@redhat.com>
3183
3184         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3185         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3186         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3187
3188 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3189
3190         * lib/dup2.c (rpl_dup2): Improve comment.
3191
3192 2010-01-08  Eric Blake  <ebb9@byu.net>
3193
3194         maint.mk: allow packages to add makefile @@ exceptions
3195         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3196         (sc_makefile_check): Rename...
3197         (sc_makefile_at_at_check): ...to this, and use hook.
3198
3199         dup2: work around mingw bug
3200         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3201         Reported by Simon Josefsson.
3202
3203 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3204
3205         glob: Fix C++ compilation.
3206         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3207         C++.
3208
3209 2010-01-07  Bruno Haible  <bruno@clisp.org>
3210
3211         Fix indentation of wctype.in.h, broken since 2007-01-06.
3212         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3213
3214 2010-01-07  Bruno Haible  <bruno@clisp.org>
3215
3216         mbslen: Avoid collision with system function.
3217         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3218         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3219         * m4/mbslen.m4: New file.
3220         * modules/mbslen (Files): Add it.
3221         (configure.ac): Invoke gl_MBSLEN.
3222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3223         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3224         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3225         via Ian Beckwith <ianb@erislabs.net>.
3226
3227 2010-01-07  Bruno Haible  <bruno@clisp.org>
3228
3229         dirent: Document the last fix.
3230         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3231
3232 2010-01-07  Bruno Haible  <bruno@clisp.org>
3233
3234         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3235         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3236         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3237         va_list are defined.
3238         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3239         Reported by Eric Blake.
3240
3241 2010-01-07  Bruno Haible  <bruno@clisp.org>
3242
3243         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3244         * modules/xlist (Depends-on): Add 'list',
3245         * modules/xoset (Depends-on): Add 'oset'.
3246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3247
3248 2010-01-07  Bruno Haible  <bruno@clisp.org>
3249
3250         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3251         * doc/posix-functions/strncasecmp.texi: Likewise.
3252
3253 2010-01-07  Bruno Haible  <bruno@clisp.org>
3254
3255         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3256
3257 2010-01-07  John W. Eaton  <jwe@octave.org>
3258
3259         wctype: allow C++ use
3260         * lib/wctype.in.h: Add extern "C" block for C++.
3261
3262 2010-01-06  Eric Blake  <ebb9@byu.net>
3263
3264         maint.mk: detect incorrect GFDL usage
3265         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3266
3267 2010-01-06  Jim Meyering  <meyering@redhat.com>
3268         and Eric Blake  <ebb9@byu.net>
3269
3270         maint.mk: ignore multi-line copyright in NEWS
3271         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3272
3273 2010-01-06  Eric Blake  <ebb9@byu.net>
3274
3275         select: add missing dependency
3276         * modules/select-tests (Depends-on): Move sockets dependency...
3277         * modules/select (Depends-on): ...here.
3278         Reported by Ian Beckwith.
3279
3280         doc: regenerate INSTALL
3281         * doc/INSTALL: Reflect recent autoconf update.
3282         * doc/INSTALL.ISO: Likewise.
3283         * doc/INSTALL.UTF-8: Likewise.
3284
3285         pread: fix compilation on glibc
3286         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3287         Reported by Ralf Wildenhues.
3288
3289         dirent: fix test failure
3290         * lib/dirent.in.h (includes): Guarantee ino_t.
3291         Reported by Ralf Wildenhues.
3292
3293 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3294
3295         linkat, renameat: avoid bad free
3296         * lib/at-func2.c (at_func2): Fix typo.
3297         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3298
3299 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3300
3301         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3302         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3303         to avoid failure of symlink test later.
3304
3305 2010-01-06  Eric Blake  <ebb9@byu.net>
3306
3307         stdio, unistd: guarantee ssize_t
3308         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3309         2008 are exposed when needed.
3310         * lib/stdio.in.h (includes): Likewise.
3311         Reported by Ralf Wildenhues.
3312
3313 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3314
3315         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3316         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3317         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3318
3319 2010-01-06  Jim Meyering  <meyering@redhat.com>
3320
3321         readtokens: this module *does* require xalloc.h
3322         It uses only functions that were omitted by the old syntax-check rule.
3323         * lib/readtokens.c: Include "xalloc.h" once again.
3324         * modules/readtokens (Depends-on): Add xalloc.
3325         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3326
3327 2010-01-05  Eric Blake  <ebb9@byu.net>
3328
3329         maint: support 'make announcement' from a VPATH build
3330         * top/maint.mk (announcement): Look for correct NEWS file.
3331
3332 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3333
3334         utimens (fdutimens): ignore a negative FD, per contract
3335         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3336         when we have a valid file descriptor.  Otherwise, using a brand
3337         new glibc (with just-patched futimens that now fails with EBADF)
3338         would cause this function to fail with ENOSYS.
3339         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3340         See also http://bugzilla.redhat.com/552320.
3341
3342 2010-01-05  Eric Blake  <ebb9@byu.net>
3343
3344         strcase: document what it provides
3345         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3346         gnulib module.
3347         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3348         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3349
3350 2010-01-05  Jim Meyering  <meyering@redhat.com>
3351
3352         maint: remove useless inclusions of "xalloc.h"
3353         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3354         * lib/readtokens.c: Likewise.
3355         * lib/same.c: Likewise.
3356         * modules/getloadavg (Depends-on): Remove xalloc.
3357         * modules/readtokens: Likewise.
3358         * modules/same: Likewise.
3359
3360         maint.mk: include 4 more function names in alloca.h-checking regexp
3361         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3362         regexp.  Before, we would give a false-positive (saying alloca.h
3363         is included unnecessarily) when the only uses involved omitted symbols.
3364
3365         xalloc.h: use consistent formatting
3366         * lib/xalloc.h: Move declarations to start in the first column.
3367
3368 2010-01-05  Eric Blake  <ebb9@byu.net>
3369
3370         mkdir: avoid xalloc
3371         * lib/mkdir.c (includes): Drop unused header.
3372         Reported by John W. Eaton.
3373
3374 2010-01-04  Jim Meyering  <meyering@redhat.com>
3375
3376         nl_langinfo: avoid configure-time syntax error
3377         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3378         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3379         the empty string.  Don't let that provoke a shell syntax error.
3380
3381         regcomp, regexec, fnmatch: avoid array bounds read error
3382         * lib/regcomp.c (build_equiv_class): From glibc:
3383         Use only the low 24 bits of a findidx return value as an index
3384         into the weights array.  Patch by Ulrich Drepper:
3385         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3386         * lib/regexec.c (check_node_accept_bytes): Likewise.
3387         * lib/fnmatch_loop.c (FCT): Likewise.
3388
3389         regcomp: skip collseq lookup when there are no rules
3390         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3391         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3392
3393         regcomp: recognize ill-formed { } expressions
3394         * lib/regcomp.c (parse_dup_op): From glibc:
3395         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3396
3397         regcomp: fix typo in comment
3398         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3399         s/satisfy/satisfies/.
3400
3401         regcomp: sync from glibc: remove dead store
3402         * lib/regcomp.c (duplicate_node_closure): Remove useless
3403         search_duplicated_node call and dead store.
3404
3405         regcomp: sync from glibc; always use nl_langinfo
3406         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3407         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3408         * modules/regex (Depends-on): Add nl_langinfo.
3409
3410 2010-01-04  Eric Blake  <ebb9@byu.net>
3411
3412         fdopendir: fix configure test
3413         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3414
3415 2010-01-01  Bruno Haible  <bruno@clisp.org>
3416
3417         wchar: Remove unused configure check.
3418         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3419
3420 2010-01-01  Eric Blake  <ebb9@byu.net>
3421
3422         headers: make check of system header explicit
3423         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3424         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3425         ourselves.
3426         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3427         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3429         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3430         internals.
3431         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3432         missing.
3433         Suggested by Bruno Haible.
3434
3435 2010-01-01  Jim Meyering  <meyering@redhat.com>
3436
3437         ChangeLog: tweak to eliminate unnecessary copyright line
3438         * ChangeLog: Remove a copyright line that was mistakenly updated
3439         by today's update-copyright run.  Reported by Eric Blake.
3440
3441         test-update-copyright: don't let envvar setting cause test failure
3442         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3443
3444 2010-01-01  Bruno Haible  <bruno@clisp.org>
3445
3446         localename: Avoid gcc warning.
3447         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3448         function if it is not used.
3449
3450 2010-01-01  Jim Meyering  <meyering@redhat.com>
3451
3452         update nearly all FSF copyright year lists to include 2010
3453         Use the same procedure as for 2009, outlined in
3454         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3455
3456         version-etc: set COPYRIGHT_YEAR to 2010
3457         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3458
3459 2009-12-31  Eric Blake  <ebb9@byu.net>
3460
3461         doc: correct availability of cygwin 1.5.x getopt
3462         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3463         variables.
3464         * doc/posix-functions/opterr.texi (opterr): Likewise.
3465         * doc/posix-functions/optind.texi (optind): Likewise.
3466         * doc/posix-functions/optopt.texi (optopt): Likewise.
3467         * doc/posix-functions/tzname.texi (tzname): Likewise.
3468
3469         openat: update maintainer
3470         * modules/openat (Maintainer): Add myself.
3471
3472         utimens: avoid shadowing warning
3473         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3474         buffers into one, to avoid shadowing, as well as avoiding a
3475         redundant stat.
3476         Reported by Jim Meyering.
3477
3478         test-dup2: avoid compiler warning
3479         * tests/test-dup2.c (is_inheritable): Only define if used.
3480
3481 2010-01-01  Bruno Haible  <bruno@clisp.org>
3482
3483         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3484         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3485         defined, use wctomb instead of wcrtomb.
3486
3487 2010-01-01  Bruno Haible  <bruno@clisp.org>
3488
3489         iconv: Reject native Solaris iconv.
3490         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3491         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3492
3493 2009-12-31  Bruno Haible  <bruno@clisp.org>
3494
3495         * tests/test-signal.c (main): Remove test of 'SIG'.
3496
3497 2009-12-31  Bruno Haible  <bruno@clisp.org>
3498
3499         spawn: Fix incomplete fix.
3500         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3501         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3502         warnings for GNULIB_POSIXCHECK again.
3503         Reported by Eric Blake.
3504
3505 2009-12-31  Bruno Haible  <bruno@clisp.org>
3506
3507         Avoid namespace pollution on glibc systems.
3508         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3509         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3510         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3511         glibc systems.
3512
3513 2009-12-31  Bruno Haible  <bruno@clisp.org>
3514
3515         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3516         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3517         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3518         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3519         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3520         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3521         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3522
3523 2009-12-31  Bruno Haible  <bruno@clisp.org>
3524
3525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3526         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3527         afterwards.
3528
3529 2009-12-31  Bruno Haible  <bruno@clisp.org>
3530
3531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3532         SYS_UTSNAME_H.
3533
3534 2009-12-31  Bruno Haible  <bruno@clisp.org>
3535
3536         spawn: Fix misapplied patch.
3537         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3538         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3539         warnings for GNULIB_POSIXCHECK.
3540
3541 2009-12-31  Bruno Haible  <bruno@clisp.org>
3542
3543         times: Update after sys_times changed.
3544         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3545         * modules/times (Files): Add it.
3546         (configure.ac): Invoke gl_FUNC_TIMES.
3547
3548 2009-12-31  Bruno Haible  <bruno@clisp.org>
3549
3550         Use AC_C_INLINE where necessary.
3551         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3552         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3553         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3554         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3555         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3556         * m4/mbiter.m4 (gl_MBITER): Likewise.
3557         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3558         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3559         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3560         * modules/u64 (configure.ac): Likewise.
3561
3562 2009-12-31  Bruno Haible  <bruno@clisp.org>
3563
3564         Use AC_C_INLINE instead of module 'inline' where possible.
3565         * modules/inline (Description): Clarify purpose.
3566         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3567         * modules/count-one-bits (Depends-on): Remove inline.
3568         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3569         * modules/openat (Depends-on): Remove inline.
3570         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3571         instead of depending on module 'inline'.
3572         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3573         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3574         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3575         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3576         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3577         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3578         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3579         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3580         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3581         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3582         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3583         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3584         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3585         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3586         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3587         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3588         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3589         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3590         Likewise.
3591         * modules/unictype/property-ascii-hex-digit (Depends-on,
3592         configure.ac): Likewise.
3593         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3594         configure.ac): Likewise.
3595         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3596         configure.ac): Likewise.
3597         * modules/unictype/property-bidi-block-separator (Depends-on,
3598         configure.ac): Likewise.
3599         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3600         configure.ac): Likewise.
3601         * modules/unictype/property-bidi-common-separator (Depends-on,
3602         configure.ac): Likewise.
3603         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3604         Likewise.
3605         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3606         configure.ac): Likewise.
3607         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3608         configure.ac): Likewise.
3609         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3610         configure.ac): Likewise.
3611         * modules/unictype/property-bidi-european-digit (Depends-on,
3612         configure.ac): Likewise.
3613         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3614         configure.ac): Likewise.
3615         * modules/unictype/property-bidi-left-to-right (Depends-on,
3616         configure.ac): Likewise.
3617         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3618         configure.ac): Likewise.
3619         * modules/unictype/property-bidi-other-neutral (Depends-on,
3620         configure.ac): Likewise.
3621         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3622         Likewise.
3623         * modules/unictype/property-bidi-segment-separator (Depends-on,
3624         configure.ac): Likewise.
3625         * modules/unictype/property-bidi-whitespace (Depends-on,
3626         configure.ac): Likewise.
3627         * modules/unictype/property-combining (Depends-on, configure.ac):
3628         Likewise.
3629         * modules/unictype/property-composite (Depends-on, configure.ac):
3630         Likewise.
3631         * modules/unictype/property-currency-symbol (Depends-on,
3632         configure.ac): Likewise.
3633         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3634         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3635         Likewise.
3636         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3637         configure.ac): Likewise.
3638         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3639         Likewise.
3640         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3641         Likewise.
3642         * modules/unictype/property-extender (Depends-on, configure.ac):
3643         Likewise.
3644         * modules/unictype/property-format-control (Depends-on, configure.ac):
3645         Likewise.
3646         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3647         Likewise.
3648         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3649         Likewise.
3650         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3651         Likewise.
3652         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3653         Likewise.
3654         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3655         Likewise.
3656         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3657         Likewise.
3658         * modules/unictype/property-id-start (Depends-on, configure.ac):
3659         Likewise.
3660         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3661         Likewise.
3662         * modules/unictype/property-ids-binary-operator (Depends-on,
3663         configure.ac): Likewise.
3664         * modules/unictype/property-ids-trinary-operator (Depends-on,
3665         configure.ac): Likewise.
3666         * modules/unictype/property-ignorable-control (Depends-on,
3667         configure.ac): Likewise.
3668         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3669         Likewise.
3670         * modules/unictype/property-join-control (Depends-on, configure.ac):
3671         Likewise.
3672         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3673         Likewise.
3674         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3675         Likewise.
3676         * modules/unictype/property-logical-order-exception (Depends-on,
3677         configure.ac): Likewise.
3678         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3679         Likewise.
3680         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3681         * modules/unictype/property-non-break (Depends-on, configure.ac):
3682         Likewise.
3683         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3684         Likewise.
3685         * modules/unictype/property-numeric (Depends-on, configure.ac):
3686         Likewise.
3687         * modules/unictype/property-other-alphabetic (Depends-on,
3688         configure.ac): Likewise.
3689         * modules/unictype/property-other-default-ignorable-code-point
3690         (Depends-on, configure.ac): Likewise.
3691         * modules/unictype/property-other-grapheme-extend (Depends-on,
3692         configure.ac): Likewise.
3693         * modules/unictype/property-other-id-continue (Depends-on,
3694         configure.ac): Likewise.
3695         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3696         Likewise.
3697         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3698         Likewise.
3699         * modules/unictype/property-other-math (Depends-on, configure.ac):
3700         Likewise.
3701         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3702         Likewise.
3703         * modules/unictype/property-paired-punctuation (Depends-on,
3704         configure.ac): Likewise.
3705         * modules/unictype/property-paragraph-separator (Depends-on,
3706         configure.ac): Likewise.
3707         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3708         Likewise.
3709         * modules/unictype/property-pattern-white-space (Depends-on,
3710         configure.ac): Likewise.
3711         * modules/unictype/property-private-use (Depends-on, configure.ac):
3712         Likewise.
3713         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3714         Likewise.
3715         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3716         Likewise.
3717         * modules/unictype/property-radical (Depends-on, configure.ac):
3718         Likewise.
3719         * modules/unictype/property-sentence-terminal (Depends-on,
3720         configure.ac): Likewise.
3721         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3722         Likewise.
3723         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3724         * modules/unictype/property-terminal-punctuation (Depends-on,
3725         configure.ac): Likewise.
3726         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3727         Likewise.
3728         * modules/unictype/property-unassigned-code-value (Depends-on,
3729         configure.ac): Likewise.
3730         * modules/unictype/property-unified-ideograph (Depends-on,
3731         configure.ac): Likewise.
3732         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3733         Likewise.
3734         * modules/unictype/property-variation-selector (Depends-on,
3735         configure.ac): Likewise.
3736         * modules/unictype/property-white-space (Depends-on, configure.ac):
3737         Likewise.
3738         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3739         Likewise.
3740         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3741         Likewise.
3742         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3743         Likewise.
3744         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3745         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3746         Likewise.
3747
3748 2009-12-31  Bruno Haible  <bruno@clisp.org>
3749
3750         Remove unnecessary AC_C_INLINE invocation.
3751         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3752         since 2009-08-21.
3753
3754 2009-12-31  Jim Meyering  <meyering@redhat.com>
3755
3756         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3757         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3758         With this change, we can all remove the gpg_key_ID = ... definition
3759         from our respective cfg.mk files.
3760
3761         maint.mk: create announcement template in ~/, not in /tmp
3762         * top/maint.mk (emit_upload_commands): Adjust.
3763         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3764         Remove temporary file, .ci-msg.
3765
3766 2009-12-31  Eric Blake  <ebb9@byu.net>
3767
3768         link-warning: always build headers with link warnings
3769         * modules/arpa_inet (Makefile.am): Always build replacement
3770         header.
3771         * modules/ctype (Makefile.am): Likewise.
3772         * modules/dirent (Makefile.am): Likewise.
3773         * modules/inttypes (Makefile.am): Likewise.
3774         * modules/langinfo (Makefile.am): Likewise.
3775         * modules/locale (Makefile.am): Likewise.
3776         * modules/spawn (Makefile.am): Likewise.
3777         * modules/sys_file (Makefile.am): Likewise.
3778         * modules/sys_ioctl (Makefile.am): Likewise.
3779         * modules/sys_select (Makefile.am): Likewise.
3780         * modules/sys_socket (Makefile.am): Likewise.
3781         * modules/sys_times (Makefile.am): Likewise.
3782         * modules/sys_utsname (Makefile.am): Likewise.
3783         * modules/sys_wait (Makefile.am): Likewise.
3784         * modules/wchar (Makefile.am): Likewise.
3785         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3786         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3787         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3788         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3789         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3790         Likewise.
3791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3793         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3794         Likewise.
3795         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3796         Likewise.
3797         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3799         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3801         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3802         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3803         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3804         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3805         (gl_WCHAR_H_DEFAULTS): Likewise.
3806
3807 2009-12-31  Eric Blake  <ebb9@byu.net>
3808
3809         signal, spawn: use link warnings
3810         * lib/signal.in.h (sigset_t): Make unconditional.
3811         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3812         (sigpending, sigprocmask, sigaction): Add link warnings.
3813         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3814         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3815         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3816         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3817         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3818         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3819         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3820         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3821         (posix_spawn_file_actions_destroy)
3822         (posix_spawn_file_actions_addopen)
3823         (posix_spawn_file_actions_addclose)
3824         (posix_spawn_file_actions_adddup2): Likewise.
3825         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3826         * tests/test-signal.c (main): Enhance test.
3827
3828         spawn: improve wrapper support
3829         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3830         (gl_SPAWN_H_DEFAULTS): New defaults.
3831         * modules/spawn (Makefile.am): Substitute them.
3832         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3833         Only declare if missing or broken.
3834
3835         sys_times, sys_utsname: use include_next
3836         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3837         header.
3838         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3839         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3840         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3841         * modules/sys_times (Depends-on): Add include_next.
3842         (Makefile.am): Substitute additional values.
3843         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3844         * lib/sys_times.in.h (includes): Include native header, if
3845         available.
3846         * lib/sys_utsname.in.h (includes): Likewise.
3847         * tests/test-sys_times.c (main): Enhance test.
3848
3849         fdutimensat: revert prior patch
3850         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3851         utimens.h.
3852         Reported by Bruno Haible.
3853
3854 2009-12-30  Eric Blake  <ebb9@byu.net>
3855
3856         sys_wait: drop link-warning dependency
3857         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3858         link-warning efforts.
3859         * lib/sys_wait.in.h: Likewise.
3860
3861         fdutimensat: remove bogus dependency
3862         * modules/fdutimensat (Depends-on): Drop inline.
3863
3864         unistd: fix typo
3865         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3866
3867 2009-12-30  Bruno Haible  <bruno@clisp.org>
3868
3869         Fix compilation error with Solaris cc.
3870         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3871         * lib/unicase/u16-is-invariant.c: Likewise.
3872         * lib/unicase/u32-is-invariant.c: Likewise.
3873         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3874
3875 2009-12-30  Bruno Haible  <bruno@clisp.org>
3876
3877         Fix test crash.
3878         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3879         locales.
3880         Reported by Simon Josefsson <simon@josefsson.org>.
3881
3882 2009-12-30  Bruno Haible  <bruno@clisp.org>
3883
3884         Fix compilation error on most platforms.
3885         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3886         Reported by Simon Josefsson <simon@josefsson.org>
3887         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3888
3889 2009-12-30  Eric Blake  <ebb9@byu.net>
3890
3891         futimens, utimensat: work around ntfs-3g bug
3892         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3893         a ctime bug is present, and expand workaround to cover ntfs-3g.
3894         * lib/utimens.c (fdutimens, lutimens): Likewise.
3895         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3896         (validate_timespec): Adjust return value.
3897         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3898         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3899         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3900
3901 2009-12-29  Eric Blake  <ebb9@byu.net>
3902
3903         link-warning: make usage consistent
3904         * modules/ctype (Depends-on): Add link-warning.
3905         (Makefile.am): Update rules accordingly.
3906         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3907         * modules/locale (Depends-on, Makefile.am): Likewise.
3908         * modules/sys_file (Makefile.am): Likewise.
3909         * modules/getopt-posix (Makefile.am): Delete unused link warning
3910         efforts.
3911         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3912         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3913         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3914         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3915
3916         stdio: remove unused variables
3917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3918         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3919         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3920
3921         tests: test more substitute headers
3922         * modules/ctype-tests: New file.
3923         * modules/dirent-tests: Likewise.
3924         * modules/spawn-tests: Likewise.
3925         * modules/sys_file-tests: Likewise.
3926         * modules/sys_ioctl-tests: Likewise.
3927         * modules/sys_wait-tests: Likewise.
3928         * tests/test-ctype.c: Likewise.
3929         * tests/test-dirent.c: Likewise.
3930         * tests/test-spawn.c: Likewise.
3931         * tests/test-sys_file.c: Likewise.
3932         * tests/test-sys_ioctl.c: Likewise.
3933         * tests/test-sys_wait.c: Likewise.
3934         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3935         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3936         whether or not flock is in use.
3937
3938         tests: remove License section from module
3939         * modules/arpa_inet-tests: Remove unneeded section.
3940         * modules/byteswap-tests: Likewise.
3941         * modules/ceilf-tests: Likewise.
3942         * modules/ceill-tests: Likewise.
3943         * modules/crypto/des-tests: Likewise.
3944         * modules/crypto/gc-arcfour-tests: Likewise.
3945         * modules/crypto/gc-arctwo-tests: Likewise.
3946         * modules/crypto/gc-des-tests: Likewise.
3947         * modules/crypto/gc-hmac-md5-tests: Likewise.
3948         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3949         * modules/crypto/gc-md2-tests: Likewise.
3950         * modules/crypto/gc-md4-tests: Likewise.
3951         * modules/crypto/gc-md5-tests: Likewise.
3952         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3953         * modules/crypto/gc-rijndael-tests: Likewise.
3954         * modules/crypto/gc-sha1-tests: Likewise.
3955         * modules/crypto/gc-tests: Likewise.
3956         * modules/crypto/md2-tests: Likewise.
3957         * modules/crypto/md4-tests: Likewise.
3958         * modules/fcntl-h-tests: Likewise.
3959         * modules/floorf-tests: Likewise.
3960         * modules/floorl-tests: Likewise.
3961         * modules/frexp-nolibm-tests: Likewise.
3962         * modules/frexp-tests: Likewise.
3963         * modules/frexpl-nolibm-tests: Likewise.
3964         * modules/frexpl-tests: Likewise.
3965         * modules/getaddrinfo-tests: Likewise.
3966         * modules/inttypes-tests: Likewise.
3967         * modules/isfinite-tests: Likewise.
3968         * modules/isinf-tests: Likewise.
3969         * modules/ldexpl-tests: Likewise.
3970         * modules/locale-tests: Likewise.
3971         * modules/math-tests: Likewise.
3972         * modules/netdb-tests: Likewise.
3973         * modules/netinet_in-tests: Likewise.
3974         * modules/printf-frexp-tests: Likewise.
3975         * modules/printf-frexpl-tests: Likewise.
3976         * modules/priv-set-tests: Likewise.
3977         * modules/random_r-tests: Likewise.
3978         * modules/round-tests: Likewise.
3979         * modules/roundf-tests: Likewise.
3980         * modules/roundl-tests: Likewise.
3981         * modules/search-tests: Likewise.
3982         * modules/select-tests: Likewise.
3983         * modules/signal-tests: Likewise.
3984         * modules/stdbool-tests: Likewise.
3985         * modules/stddef-tests: Likewise.
3986         * modules/stdint-tests: Likewise.
3987         * modules/stdio-tests: Likewise.
3988         * modules/stdlib-tests: Likewise.
3989         * modules/string-tests: Likewise.
3990         * modules/strings-tests: Likewise.
3991         * modules/sys_select-tests: Likewise.
3992         * modules/sys_socket-tests: Likewise.
3993         * modules/sys_stat-tests: Likewise.
3994         * modules/sys_time-tests: Likewise.
3995         * modules/sys_utsname-tests: Likewise.
3996         * modules/sysexits-tests: Likewise.
3997         * modules/time-tests: Likewise.
3998         * modules/trunc-tests: Likewise.
3999         * modules/truncf-tests: Likewise.
4000         * modules/truncl-tests: Likewise.
4001         * modules/tsearch-tests: Likewise.
4002         * modules/unistd-tests: Likewise.
4003         * modules/wchar-tests: Likewise.
4004         * modules/wctype-tests: Likewise.
4005
4006         tests: fix license on several tests
4007         * tests/test-des.c: Update to GPLv3+.
4008         * tests/test-flock.c: Likewise.
4009         * tests/test-fsync.c: Likewise.
4010         * tests/test-futimens.h: Likewise.
4011         * tests/test-gc-arcfour.c: Likewise.
4012         * tests/test-gc-arctwo.c: Likewise.
4013         * tests/test-gc-des.c: Likewise.
4014         * tests/test-gc-hmac-md5.c: Likewise.
4015         * tests/test-gc-hmac-sha1.c: Likewise.
4016         * tests/test-gc-md2.c: Likewise.
4017         * tests/test-gc-md4.c: Likewise.
4018         * tests/test-gc-md5.c: Likewise.
4019         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4020         * tests/test-gc-rijndael.c: Likewise.
4021         * tests/test-gc-sha1.c: Likewise.
4022         * tests/test-gc.c: Likewise.
4023         * tests/test-getcwd.c: Likewise.
4024         * tests/test-link.c: Likewise.
4025         * tests/test-link.h: Likewise.
4026         * tests/test-lutimens.h: Likewise.
4027         * tests/test-md2.c: Likewise.
4028         * tests/test-md4.c: Likewise.
4029         * tests/test-mkdir.h: Likewise.
4030         * tests/test-rename.c: Likewise.
4031         * tests/test-rename.h: Likewise.
4032         * tests/test-safe-alloc.c: Likewise.
4033         * tests/test-utimens-common.h: Likewise.
4034         * tests/test-utimens.h: Likewise.
4035
4036         maint: sync license texts
4037         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4038         * doc/gpl-3.0.texi: Revert copyright year update.
4039         * doc/lgpl-3.0.texi: Likewise.
4040
4041 2009-12-29  Jim Meyering  <meyering@redhat.com>
4042
4043         update nearly all FSF copyright year lists to include 2009
4044         The files named by the following are exempted:
4045             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4046               test -f "$dst" && { echo "$dst"; continue; }
4047               test -d "$dst" || continue
4048               echo "$dst"/$(basename "$src")
4049             done > exempt
4050             git ls-files tests/unictype >> exempt
4051         In the remaining files, convert to all-interval notation if
4052         - there is already at least one year interval like 2000-2003
4053         - the file is maintained by me
4054         - the file is in lib/uni*/, where that style already prevails
4055         Otherwise, use update-copyright's default.
4056
4057 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4058         and Eric Blake  <ebb9@byu.net>
4059
4060         tests: don't require debug system() to pass
4061         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4062         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4063         * tests/test-unlink.h (test_unlink_func): Likewise.
4064         * tests/test-fstatat.c (main): ...into callers.
4065         * tests/test-lstat.c (main): Likewise.
4066         * tests/test-rmdir.c (main): Likewise.
4067         * tests/test-unlink.c (main): Likewise.
4068         * tests/test-unlinkat.c (main): Likewise.
4069         * tests/test-areadlink-with-size.c (main): Don't require a
4070         debug-only system call to pass, aiding cross-testing to mingw.
4071         * tests/test-areadlink.c (main): Likewise.
4072         * tests/test-areadlinkat-with-size.c (main): Likewise.
4073         * tests/test-areadlinkat.c (main): Likewise.
4074         * tests/test-canonicalize-lgpl.c (main): Likewise.
4075         * tests/test-canonicalize.c (main): Likewise.
4076         * tests/test-chown.c (main): Likewise.
4077         * tests/test-fchownat.c (main): Likewise.
4078         * tests/test-lchown.c (main): Likewise.
4079         * tests/test-fdutimensat.c (main): Likewise.
4080         * tests/test-futimens.c (main): Likewise.
4081         * tests/test-link.c (main): Likewise.
4082         * tests/test-linkat.c (main): Likewise.
4083         * tests/test-mkdir.c (main): Likewise.
4084         * tests/test-mkdirat.c (main): Likewise.
4085         * tests/test-mkfifo.c (main): Likewise.
4086         * tests/test-mkfifoat.c (main): Likewise.
4087         * tests/test-mknod.c (main): Likewise.
4088         * tests/test-readlink.c (main): Likewise.
4089         * tests/test-remove.c (main): Likewise.
4090         * tests/test-rename.c (main): Likewise.
4091         * tests/test-renameat.c (main): Likewise.
4092         * tests/test-symlink.c (main): Likewise.
4093         * tests/test-symlinkat.c (main): Likewise.
4094         * tests/test-utimens.c (main): Likewise.
4095         * tests/test-utimensat.c (main): Likewise.
4096
4097 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4098
4099         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4100         on $(UNUSED_PARAMETER_H) to avoid build failure.
4101
4102 2009-12-28  Jim Meyering  <meyering@redhat.com>
4103
4104         update-copyright: you may specify a max. line length other than 72
4105         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4106
4107         maint: use consistent FSF copyright line syntax
4108         * lib/posixtm.c: Add missing comma in FSF copyright line.
4109         * lib/posixtm.h: Likewise.
4110         * lib/getugroups.c: Add missing ", Inc.".
4111
4112         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4113         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4114         FSF copyright line.  Remove trailing blanks.
4115
4116 2009-12-28  Eric Blake  <ebb9@byu.net>
4117
4118         test-dup2: reduce dependencies
4119         * modules/cloexec (Configure.ac): Set witness.
4120         * modules/dup2-tests (Depends-on): Drop cloexec.
4121         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4122         not present.
4123         Suggested by Bruno Haible.
4124
4125 2009-12-26  Bruno Haible  <bruno@clisp.org>
4126
4127         Remove an unneeded dependency.
4128         * modules/fseterr (Depends-on): Remove dup2.
4129
4130 2009-12-26  Eric Blake  <ebb9@byu.net>
4131
4132         tests: use macros.h in more places
4133         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4134         (ASSERT_STREAM): Provide default of stderr.
4135         * tests/test-dirent-safer.c: Include macros.h, using alternate
4136         stream for assertions.
4137         * tests/test-dup-safer.c: Likewise.
4138         * tests/test-freopen-safer.c: Likewise.
4139         * tests/test-getopt.c: Likewise.
4140         * tests/test-openat-safer.c: Likewise.
4141         * tests/test-pipe.c: Likewise.
4142         * tests/test-popen-safer.c: Likewise.
4143         * modules/dirent-safer-tests (Files): Include macros.h.
4144         * modules/unistd-safer-tests (Files): Likewise.
4145         * modules/freopen-safer-tests (Files): Likewise.
4146         * modules/getopt-posix-tests (Files): Likewise.
4147         * modules/openat-safer-tests (Files): Likewise.
4148         * modules/pipe-tests (Files): Likewise.
4149
4150 2009-12-26  Bruno Haible  <bruno@clisp.org>
4151
4152         javacomp: Portability fix.
4153         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4154         that it also works on Solaris.
4155
4156 2009-12-26  Bruno Haible  <bruno@clisp.org>
4157
4158         localename: Fix storage allocation of gl_locale_name_thread's result.
4159         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4160         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4161         all platforms that have 'uselocale'.
4162         (gl_locale_name_thread_unsafe): New function, extracted from
4163         gl_locale_name_thread.
4164         (gl_locale_name_thread): Call struniq on all platforms that have
4165         'uselocale'.
4166         * tests/test-localename.c (test_locale_name_thread): Check that the
4167         resulting strings are permanently allocated.
4168         * modules/localename-tests (Depends-on): Add strdup.
4169
4170 2009-12-26  Bruno Haible  <bruno@clisp.org>
4171
4172         * tests/test-localename.c (categories): Fill in the strings.
4173
4174 2009-12-26  Jim Meyering  <meyering@redhat.com>
4175
4176         isdir: complete the removal of m4/isdir.m4
4177         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4178
4179         isdir: clean up, since at least grep still uses it
4180         * lib/isdir.c: Include "isdir.h".
4181         (S_ISDIR): Remove now-unneeded definition.
4182         * modules/isdir (Files): Add lib/isdir.h.
4183         * lib/isdir.h: New file, with declaration.
4184         * m4/isdir.m4: Remove file -- unneeded.
4185
4186 2009-12-25  Bruno Haible  <bruno@clisp.org>
4187
4188         selinux-h: Make generated .h files standalone.
4189         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4190         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4191         * lib/se-selinux.in.h: Likewise.
4192         * modules/selinux-h (Depends-on): Add unused-parameter.
4193         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4194         selinux/selinux.h and selinux/context.h.
4195         Suggested by Eric Blake.
4196
4197 2009-12-25  Bruno Haible  <bruno@clisp.org>
4198
4199         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4200         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4201         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4202         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4203         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4204
4205 2009-12-24  Bruno Haible  <bruno@clisp.org>
4206
4207         openat: Fix warning.
4208         * lib/openat-proc.c: Include <unistd.h>.
4209
4210 2009-12-24  Bruno Haible  <bruno@clisp.org>
4211
4212         New module 'unused-parameter'.
4213         * build-aux/unused-parameter.h: New file, extracted from earlier
4214         gnulib-common.m4.
4215         * modules/unused-parameter: New file.
4216         * lib/unistr.h: Include unused-parameter.h.
4217         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4218         _GL_UNUSED.
4219         * modules/unistr/base (Depends-on): Add unused-parameter.
4220
4221 2009-12-24  Bruno Haible  <bruno@clisp.org>
4222
4223         Add missing dependencies to 'extensions' module.
4224         * m4/extensions.m4: Add comment.
4225         * modules/accept4 (Depends-on): Add extensions.
4226         * modules/dup3 (Depends-on): Likewise.
4227         * modules/fcntl (Depends-on): Likewise.
4228         * modules/futimens (Depends-on): Likewise.
4229         * modules/mknod (Depends-on): Likewise.
4230         * modules/pipe2 (Depends-on): Likewise.
4231         * modules/stat-time (Depends-on): Likewise.
4232         * modules/strcasestr-simple (Depends-on): Likewise.
4233         * modules/strsignal (Depends-on): Likewise.
4234         * modules/utimensat (Depends-on): Likewise.
4235         * modules/localcharset (Depends-on): Likewise. Needed because of
4236         gl_FCNTL_O_FLAGS.
4237         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4238         AC_TYPE_MBSTATE_T.
4239         * modules/wcsnrtombs (Depends-on): Likewise.
4240         * modules/wcsrtombs (Depends-on): Likewise.
4241
4242 2009-12-24  Bruno Haible  <bruno@clisp.org>
4243
4244         binary-io: Avoid gcc warning due to SET_BINARY.
4245         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4246         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4247
4248 2009-12-24  Bruno Haible  <bruno@clisp.org>
4249
4250         Avoid future namespace pollution on glibc systems.
4251         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4252         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4253         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4254         glibc systems.
4255
4256 2009-12-24  Bruno Haible  <bruno@clisp.org>
4257
4258         Refactor common macros used in tests.
4259         * tests/macros.h: New file.
4260         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4261         and/or <stdlib.h>, if appropriate.
4262         (ASSERT, SIZEOF): Remove macros.
4263         * tests/test-areadlink-with-size.c: Likewise.
4264         * tests/test-areadlinkat.c: Likewise.
4265         * tests/test-areadlinkat-with-size.c: Likewise.
4266         * tests/test-argmatch.c: Likewise.
4267         * tests/test-argv-iter.c: Likewise.
4268         * tests/test-array-mergesort.c: Likewise.
4269         * tests/test-array_list.c: Likewise.
4270         * tests/test-array_oset.c: Likewise.
4271         * tests/test-avltree_list.c: Likewise.
4272         * tests/test-avltree_oset.c: Likewise.
4273         * tests/test-avltreehash_list.c: Likewise.
4274         * tests/test-base64.c: Likewise.
4275         * tests/test-binary-io.c: Likewise.
4276         * tests/test-bitrotate.c: Likewise.
4277         * tests/test-btowc.c: Likewise.
4278         * tests/test-byteswap.c: Likewise.
4279         * tests/test-c-ctype.c: Likewise.
4280         * tests/test-c-stack.c: Likewise.
4281         * tests/test-c-strcasecmp.c: Likewise.
4282         * tests/test-c-strcasestr.c: Likewise.
4283         * tests/test-c-strncasecmp.c: Likewise.
4284         * tests/test-c-strstr.c: Likewise.
4285         * tests/test-canonicalize-lgpl.c: Likewise.
4286         * tests/test-canonicalize.c: Likewise.
4287         * tests/test-carray_list.c: Likewise.
4288         * tests/test-ceilf1.c: Likewise.
4289         * tests/test-ceilf2.c: Likewise.
4290         * tests/test-ceill.c: Likewise.
4291         * tests/test-chown.c: Likewise.
4292         * tests/test-cloexec.c: Likewise.
4293         * tests/test-copy-acl.c: Likewise.
4294         * tests/test-copy-file.c: Likewise.
4295         * tests/test-count-one-bits.c: Likewise.
4296         * tests/test-dprintf-posix.c: Likewise.
4297         * tests/test-dup2.c: Likewise.
4298         * tests/test-dup3.c: Likewise.
4299         * tests/test-duplocale.c: Likewise.
4300         * tests/test-fbufmode.c: Likewise.
4301         * tests/test-fchdir.c: Likewise.
4302         * tests/test-fchownat.c: Likewise.
4303         * tests/test-fcntl-safer.c: Likewise.
4304         * tests/test-fcntl.c: Likewise.
4305         * tests/test-fdopendir.c: Likewise.
4306         * tests/test-fdutimensat.c: Likewise.
4307         * tests/test-fflush2.c: Likewise.
4308         * tests/test-file-has-acl.c: Likewise.
4309         * tests/test-filevercmp.c: Likewise.
4310         * tests/test-flock.c: Likewise.
4311         * tests/test-floorf1.c: Likewise.
4312         * tests/test-floorf2.c: Likewise.
4313         * tests/test-floorl.c: Likewise.
4314         * tests/test-fnmatch.c: Likewise.
4315         * tests/test-fopen.h: Likewise.
4316         * tests/test-fpending.c: Likewise.
4317         * tests/test-fprintf-posix.c: Likewise.
4318         * tests/test-fpurge.c: Likewise.
4319         * tests/test-freadable.c: Likewise.
4320         * tests/test-freadahead.c: Likewise.
4321         * tests/test-freading.c: Likewise.
4322         * tests/test-freadptr.c: Likewise.
4323         * tests/test-freadptr2.c: Likewise.
4324         * tests/test-freadseek.c: Likewise.
4325         * tests/test-freopen.c: Likewise.
4326         * tests/test-frexp.c: Likewise.
4327         * tests/test-frexpl.c: Likewise.
4328         * tests/test-fseek.c: Likewise.
4329         * tests/test-fseeko.c: Likewise.
4330         * tests/test-fstatat.c: Likewise.
4331         * tests/test-fstrcmp.c: Likewise.
4332         * tests/test-fsync.c: Likewise.
4333         * tests/test-ftell.c: Likewise.
4334         * tests/test-ftello.c: Likewise.
4335         * tests/test-func.c: Likewise.
4336         * tests/test-futimens.c: Likewise.
4337         * tests/test-fwritable.c: Likewise.
4338         * tests/test-fwriting.c: Likewise.
4339         * tests/test-getcwd.c: Likewise.
4340         * tests/test-getdate.c: Likewise.
4341         * tests/test-getdelim.c: Likewise.
4342         * tests/test-getdtablesize.c: Likewise.
4343         * tests/test-getgroups.c: Likewise.
4344         * tests/test-getline.c: Likewise.
4345         * tests/test-getndelim2.c: Likewise.
4346         * tests/test-glob.c: Likewise.
4347         * tests/test-hash.c: Likewise.
4348         * tests/test-i-ring.c: Likewise.
4349         * tests/test-iconv-utf.c: Likewise.
4350         * tests/test-iconv.c: Likewise.
4351         * tests/test-idpriv-drop.c: Likewise.
4352         * tests/test-idpriv-droptemp.c: Likewise.
4353         * tests/test-inet_ntop.c: Likewise.
4354         * tests/test-inet_pton.c: Likewise.
4355         * tests/test-isblank.c: Likewise.
4356         * tests/test-isfinite.c: Likewise.
4357         * tests/test-isinf.c: Likewise.
4358         * tests/test-isnan.c: Likewise.
4359         * tests/test-isnand.h: Likewise.
4360         * tests/test-isnanf.h: Likewise.
4361         * tests/test-isnanl.h: Likewise.
4362         * tests/test-lchown.c: Likewise.
4363         * tests/test-ldexpl.c: Likewise.
4364         * tests/test-link.c: Likewise.
4365         * tests/test-linkat.c: Likewise.
4366         * tests/test-linked_list.c: Likewise.
4367         * tests/test-linkedhash_list.c: Likewise.
4368         * tests/test-localename.c: Likewise.
4369         * tests/test-lseek.c: Likewise.
4370         * tests/test-lstat.c: Likewise.
4371         * tests/test-mbmemcasecmp.c: Likewise.
4372         * tests/test-mbmemcasecoll.c: Likewise.
4373         * tests/test-mbrtowc.c: Likewise.
4374         * tests/test-mbscasecmp.c: Likewise.
4375         * tests/test-mbscasestr1.c: Likewise.
4376         * tests/test-mbscasestr2.c: Likewise.
4377         * tests/test-mbscasestr3.c: Likewise.
4378         * tests/test-mbscasestr4.c: Likewise.
4379         * tests/test-mbschr.c: Likewise.
4380         * tests/test-mbscspn.c: Likewise.
4381         * tests/test-mbsinit.c: Likewise.
4382         * tests/test-mbsncasecmp.c: Likewise.
4383         * tests/test-mbsnrtowcs.c: Likewise.
4384         * tests/test-mbspbrk.c: Likewise.
4385         * tests/test-mbspcasecmp.c: Likewise.
4386         * tests/test-mbsrchr.c: Likewise.
4387         * tests/test-mbsrtowcs.c: Likewise.
4388         * tests/test-mbsspn.c: Likewise.
4389         * tests/test-mbsstr1.c: Likewise.
4390         * tests/test-mbsstr2.c: Likewise.
4391         * tests/test-mbsstr3.c: Likewise.
4392         * tests/test-memchr.c: Likewise.
4393         * tests/test-memchr2.c: Likewise.
4394         * tests/test-memcmp.c: Likewise.
4395         * tests/test-memmem.c: Likewise.
4396         * tests/test-memrchr.c: Likewise.
4397         * tests/test-mkdir.c: Likewise.
4398         * tests/test-mkdirat.c: Likewise.
4399         * tests/test-mkfifo.c: Likewise.
4400         * tests/test-mkfifoat.c: Likewise.
4401         * tests/test-mknod.c: Likewise.
4402         * tests/test-nanosleep.c: Likewise.
4403         * tests/test-nl_langinfo.c: Likewise.
4404         * tests/test-obstack-printf.c: Likewise.
4405         * tests/test-open.c: Likewise.
4406         * tests/test-openat.c: Likewise.
4407         * tests/test-pipe-filter-gi1.c: Likewise.
4408         * tests/test-pipe-filter-gi2-main.c: Likewise.
4409         * tests/test-pipe-filter-ii1.c: Likewise.
4410         * tests/test-pipe-filter-ii2-main.c: Likewise.
4411         * tests/test-pipe2.c: Likewise.
4412         * tests/test-popen.h: Likewise.
4413         * tests/test-posixtm.c: Likewise.
4414         * tests/test-pread.c: Likewise.
4415         * tests/test-printf-frexp.c: Likewise.
4416         * tests/test-printf-frexpl.c: Likewise.
4417         * tests/test-printf-posix.c: Likewise.
4418         * tests/test-priv-set.c: Likewise.
4419         * tests/test-quotearg.c: Likewise.
4420         * tests/test-random_r.c: Likewise.
4421         * tests/test-rawmemchr.c: Likewise.
4422         * tests/test-rbtree_list.c: Likewise.
4423         * tests/test-rbtree_oset.c: Likewise.
4424         * tests/test-rbtreehash_list.c: Likewise.
4425         * tests/test-readlink.c: Likewise.
4426         * tests/test-remove.c: Likewise.
4427         * tests/test-rename.c: Likewise.
4428         * tests/test-renameat.c: Likewise.
4429         * tests/test-rmdir.c: Likewise.
4430         * tests/test-round1.c: Likewise.
4431         * tests/test-roundf1.c: Likewise.
4432         * tests/test-roundl.c: Likewise.
4433         * tests/test-safe-alloc.c: Likewise.
4434         * tests/test-sameacls.c: Likewise.
4435         * tests/test-set-mode-acl.c: Likewise.
4436         * tests/test-setenv.c: Likewise.
4437         * tests/test-sigaction.c: Likewise.
4438         * tests/test-signbit.c: Likewise.
4439         * tests/test-sleep.c: Likewise.
4440         * tests/test-snprintf-posix.c: Likewise.
4441         * tests/test-snprintf.c: Likewise.
4442         * tests/test-sprintf-posix.c: Likewise.
4443         * tests/test-stat-time.c: Likewise.
4444         * tests/test-stat.c: Likewise.
4445         * tests/test-strcasestr.c: Likewise.
4446         * tests/test-strchrnul.c: Likewise.
4447         * tests/test-strerror.c: Likewise.
4448         * tests/test-striconv.c: Likewise.
4449         * tests/test-striconveh.c: Likewise.
4450         * tests/test-striconveha.c: Likewise.
4451         * tests/test-strsignal.c: Likewise.
4452         * tests/test-strstr.c: Likewise.
4453         * tests/test-strtod.c: Likewise.
4454         * tests/test-strverscmp.c: Likewise.
4455         * tests/test-symlink.c: Likewise.
4456         * tests/test-symlinkat.c: Likewise.
4457         * tests/test-trunc1.c: Likewise.
4458         * tests/test-trunc2.c: Likewise.
4459         * tests/test-truncf1.c: Likewise.
4460         * tests/test-truncf2.c: Likewise.
4461         * tests/test-truncl.c: Likewise.
4462         * tests/test-uname.c: Likewise.
4463         * tests/test-unlink.c: Likewise.
4464         * tests/test-unlinkat.c: Likewise.
4465         * tests/test-unsetenv.c: Likewise.
4466         * tests/test-usleep.c: Likewise.
4467         * tests/test-utimens.c: Likewise.
4468         * tests/test-utimensat.c: Likewise.
4469         * tests/test-vasnprintf-posix.c: Likewise.
4470         * tests/test-vasnprintf-posix2.c: Likewise.
4471         * tests/test-vasnprintf.c: Likewise.
4472         * tests/test-vasprintf-posix.c: Likewise.
4473         * tests/test-vasprintf.c: Likewise.
4474         * tests/test-vdprintf-posix.c: Likewise.
4475         * tests/test-vfprintf-posix.c: Likewise.
4476         * tests/test-vprintf-posix.c: Likewise.
4477         * tests/test-vsnprintf-posix.c: Likewise.
4478         * tests/test-vsnprintf.c: Likewise.
4479         * tests/test-vsprintf-posix.c: Likewise.
4480         * tests/test-wcrtomb.c: Likewise.
4481         * tests/test-wcsnrtombs.c: Likewise.
4482         * tests/test-wcsrtombs.c: Likewise.
4483         * tests/test-wctype.c: Likewise.
4484         * tests/test-wcwidth.c: Likewise.
4485         * tests/test-xfprintf-posix.c: Likewise.
4486         * tests/test-xmemdup0.c: Likewise.
4487         * tests/test-xprintf-posix.c: Likewise.
4488         * tests/test-xvasprintf.c: Likewise.
4489         * tests/unicase/test-locale-language.c: Likewise.
4490         * tests/unicase/test-mapping-part1.h: Likewise.
4491         * tests/unicase/test-predicate-part1.h: Likewise.
4492         * tests/unicase/test-u8-casecmp.c: Likewise.
4493         * tests/unicase/test-u8-casecoll.c: Likewise.
4494         * tests/unicase/test-u8-casefold.c: Likewise.
4495         * tests/unicase/test-u8-is-cased.c: Likewise.
4496         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4497         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4498         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4499         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4500         * tests/unicase/test-u8-tolower.c: Likewise.
4501         * tests/unicase/test-u8-totitle.c: Likewise.
4502         * tests/unicase/test-u8-toupper.c: Likewise.
4503         * tests/unicase/test-u16-casecmp.c: Likewise.
4504         * tests/unicase/test-u16-casecoll.c: Likewise.
4505         * tests/unicase/test-u16-casefold.c: Likewise.
4506         * tests/unicase/test-u16-is-cased.c: Likewise.
4507         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4508         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4509         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4510         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4511         * tests/unicase/test-u16-tolower.c: Likewise.
4512         * tests/unicase/test-u16-totitle.c: Likewise.
4513         * tests/unicase/test-u16-toupper.c: Likewise.
4514         * tests/unicase/test-u32-casecmp.c: Likewise.
4515         * tests/unicase/test-u32-casecoll.c: Likewise.
4516         * tests/unicase/test-u32-casefold.c: Likewise.
4517         * tests/unicase/test-u32-is-cased.c: Likewise.
4518         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4519         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4520         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4521         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4522         * tests/unicase/test-u32-tolower.c: Likewise.
4523         * tests/unicase/test-u32-totitle.c: Likewise.
4524         * tests/unicase/test-u32-toupper.c: Likewise.
4525         * tests/unicase/test-ulc-casecmp.c: Likewise.
4526         * tests/unicase/test-ulc-casecoll.c: Likewise.
4527         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4528         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4529         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4530         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4531         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4532         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4533         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4534         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4535         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4536         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4537         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4538         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4539         * tests/unictype/test-bidi_byname.c: Likewise.
4540         * tests/unictype/test-bidi_name.c: Likewise.
4541         * tests/unictype/test-bidi_of.c: Likewise.
4542         * tests/unictype/test-bidi_test.c: Likewise.
4543         * tests/unictype/test-block_list.c: Likewise.
4544         * tests/unictype/test-block_of.c: Likewise.
4545         * tests/unictype/test-block_test.c: Likewise.
4546         * tests/unictype/test-categ_and.c: Likewise.
4547         * tests/unictype/test-categ_and_not.c: Likewise.
4548         * tests/unictype/test-categ_byname.c: Likewise.
4549         * tests/unictype/test-categ_name.c: Likewise.
4550         * tests/unictype/test-categ_none.c: Likewise.
4551         * tests/unictype/test-categ_of.c: Likewise.
4552         * tests/unictype/test-categ_or.c: Likewise.
4553         * tests/unictype/test-categ_test_withtable.c: Likewise.
4554         * tests/unictype/test-combining.c: Likewise.
4555         * tests/unictype/test-decdigit.c: Likewise.
4556         * tests/unictype/test-digit.c: Likewise.
4557         * tests/unictype/test-mirror.c: Likewise.
4558         * tests/unictype/test-numeric.c: Likewise.
4559         * tests/unictype/test-pr_byname.c: Likewise.
4560         * tests/unictype/test-pr_test.c: Likewise.
4561         * tests/unictype/test-predicate-part1.h: Likewise.
4562         * tests/unictype/test-scripts.c: Likewise.
4563         * tests/unictype/test-sy_c_ident.c: Likewise.
4564         * tests/unictype/test-sy_java_ident.c: Likewise.
4565         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4566         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4567         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4568         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4569         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4570         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4571         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4572         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4573         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4574         * tests/uninorm/test-compat-decomposition.c: Likewise.
4575         * tests/uninorm/test-composition.c: Likewise.
4576         * tests/uninorm/test-decomposing-form.c: Likewise.
4577         * tests/uninorm/test-decomposition.c: Likewise.
4578         * tests/uninorm/test-u8-nfc.c: Likewise.
4579         * tests/uninorm/test-u8-nfd.c: Likewise.
4580         * tests/uninorm/test-u8-nfkc.c: Likewise.
4581         * tests/uninorm/test-u8-nfkd.c: Likewise.
4582         * tests/uninorm/test-u8-normcmp.c: Likewise.
4583         * tests/uninorm/test-u8-normcoll.c: Likewise.
4584         * tests/uninorm/test-u16-nfc.c: Likewise.
4585         * tests/uninorm/test-u16-nfd.c: Likewise.
4586         * tests/uninorm/test-u16-nfkc.c: Likewise.
4587         * tests/uninorm/test-u16-nfkd.c: Likewise.
4588         * tests/uninorm/test-u16-normcmp.c: Likewise.
4589         * tests/uninorm/test-u16-normcoll.c: Likewise.
4590         * tests/uninorm/test-u32-nfc.c: Likewise.
4591         * tests/uninorm/test-u32-nfd.c: Likewise.
4592         * tests/uninorm/test-u32-nfkc.c: Likewise.
4593         * tests/uninorm/test-u32-nfkd.c: Likewise.
4594         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4595         * tests/uninorm/test-u32-normcmp.c: Likewise.
4596         * tests/uninorm/test-u32-normcoll.c: Likewise.
4597         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4598         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4599         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4600         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4601         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4602         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4603         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4604         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4605         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4606         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4607         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4608         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4609         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4610         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4611         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4612         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4613         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4614         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4615         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4616         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4617         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4618         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4619         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4620         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4621         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4622         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4623         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4624         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4625         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4626         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4627         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4628         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4629         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4630         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4631         * tests/uniwidth/test-u8-width.c: Likewise.
4632         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4633         * tests/uniwidth/test-u16-width.c: Likewise.
4634         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4635         * tests/uniwidth/test-u32-width.c: Likewise.
4636         * tests/uniwidth/test-uc_width.c: Likewise.
4637         * tests/uniwidth/test-uc_width2.c: Likewise.
4638         * modules/acl-tests (Files): Add tests/macros.h.
4639         * modules/areadlink-tests (Files): Likewise.
4640         * modules/areadlink-with-size-tests (Files): Likewise.
4641         * modules/areadlinkat-tests (Files): Likewise.
4642         * modules/areadlinkat-with-size-tests (Files): Likewise.
4643         * modules/argmatch-tests (Files): Likewise.
4644         * modules/argv-iter-tests (Files): Likewise.
4645         * modules/array-list-tests (Files): Likewise.
4646         * modules/array-mergesort-tests (Files): Likewise.
4647         * modules/array-oset-tests (Files): Likewise.
4648         * modules/avltree-list-tests (Files): Likewise.
4649         * modules/avltree-oset-tests (Files): Likewise.
4650         * modules/avltreehash-list-tests (Files): Likewise.
4651         * modules/base64-tests (Files): Likewise.
4652         * modules/binary-io-tests (Files): Likewise.
4653         * modules/bitrotate-tests (Files): Likewise.
4654         * modules/btowc-tests (Files): Likewise.
4655         * modules/byteswap-tests (Files): Likewise.
4656         * modules/c-ctype-tests (Files): Likewise.
4657         * modules/c-stack-tests (Files): Likewise.
4658         * modules/c-strcase-tests (Files): Likewise.
4659         * modules/c-strcasestr-tests (Files): Likewise.
4660         * modules/c-strstr-tests (Files): Likewise.
4661         * modules/canonicalize-lgpl-tests (Files): Likewise.
4662         * modules/canonicalize-tests (Files): Likewise.
4663         * modules/carray-list-tests (Files): Likewise.
4664         * modules/ceilf-tests (Files): Likewise.
4665         * modules/ceill-tests (Files): Likewise.
4666         * modules/chown-tests (Files): Likewise.
4667         * modules/cloexec-tests (Files): Likewise.
4668         * modules/copy-file-tests (Files): Likewise.
4669         * modules/count-one-bits-tests (Files): Likewise.
4670         * modules/dprintf-posix-tests (Files): Likewise.
4671         * modules/dup2-tests (Files): Likewise.
4672         * modules/dup3-tests (Files): Likewise.
4673         * modules/duplocale-tests (Files): Likewise.
4674         * modules/fbufmode-tests (Files): Likewise.
4675         * modules/fchdir-tests (Files): Likewise.
4676         * modules/fcntl-safer-tests (Files): Likewise.
4677         * modules/fcntl-tests (Files): Likewise.
4678         * modules/fdopendir-tests (Files): Likewise.
4679         * modules/fdutimensat-tests (Files): Likewise.
4680         * modules/fflush-tests (Files): Likewise.
4681         * modules/filevercmp-tests (Files): Likewise.
4682         * modules/flock-tests (Files): Likewise.
4683         * modules/floorf-tests (Files): Likewise.
4684         * modules/floorl-tests (Files): Likewise.
4685         * modules/fnmatch-tests (Files): Likewise.
4686         * modules/fopen-safer-tests (Files): Likewise.
4687         * modules/fopen-tests (Files): Likewise.
4688         * modules/fpending-tests (Files): Likewise.
4689         * modules/fprintf-posix-tests (Files): Likewise.
4690         * modules/fpurge-tests (Files): Likewise.
4691         * modules/freadable-tests (Files): Likewise.
4692         * modules/freadahead-tests (Files): Likewise.
4693         * modules/freading-tests (Files): Likewise.
4694         * modules/freadptr-tests (Files): Likewise.
4695         * modules/freadseek-tests (Files): Likewise.
4696         * modules/freopen-tests (Files): Likewise.
4697         * modules/frexp-nolibm-tests (Files): Likewise.
4698         * modules/frexp-tests (Files): Likewise.
4699         * modules/frexpl-nolibm-tests (Files): Likewise.
4700         * modules/frexpl-tests (Files): Likewise.
4701         * modules/fseek-tests (Files): Likewise.
4702         * modules/fseeko-tests (Files): Likewise.
4703         * modules/fstrcmp-tests (Files): Likewise.
4704         * modules/fsync-tests (Files): Likewise.
4705         * modules/ftell-tests (Files): Likewise.
4706         * modules/ftello-tests (Files): Likewise.
4707         * modules/func-tests (Files): Likewise.
4708         * modules/futimens-tests (Files): Likewise.
4709         * modules/fwritable-tests (Files): Likewise.
4710         * modules/fwriting-tests (Files): Likewise.
4711         * modules/getcwd-tests (Files): Likewise.
4712         * modules/getdate-tests (Files): Likewise.
4713         * modules/getdelim-tests (Files): Likewise.
4714         * modules/getdtablesize-tests (Files): Likewise.
4715         * modules/getgroups-tests (Files): Likewise.
4716         * modules/getline-tests (Files): Likewise.
4717         * modules/getndelim2-tests (Files): Likewise.
4718         * modules/glob-tests (Files): Likewise.
4719         * modules/hash-tests (Files): Likewise.
4720         * modules/i-ring-tests (Files): Likewise.
4721         * modules/iconv-tests (Files): Likewise.
4722         * modules/iconv_open-utf-tests (Files): Likewise.
4723         * modules/idpriv-drop-tests (Files): Likewise.
4724         * modules/idpriv-droptemp-tests (Files): Likewise.
4725         * modules/inet_ntop-tests (Files): Likewise.
4726         * modules/inet_pton-tests (Files): Likewise.
4727         * modules/isblank-tests (Files): Likewise.
4728         * modules/isfinite-tests (Files): Likewise.
4729         * modules/isinf-tests (Files): Likewise.
4730         * modules/isnan-tests (Files): Likewise.
4731         * modules/isnand-nolibm-tests (Files): Likewise.
4732         * modules/isnand-tests (Files): Likewise.
4733         * modules/isnanf-nolibm-tests (Files): Likewise.
4734         * modules/isnanf-tests (Files): Likewise.
4735         * modules/isnanl-nolibm-tests (Files): Likewise.
4736         * modules/isnanl-tests (Files): Likewise.
4737         * modules/lchown-tests (Files): Likewise.
4738         * modules/ldexpl-tests (Files): Likewise.
4739         * modules/link-tests (Files): Likewise.
4740         * modules/linkat-tests (Files): Likewise.
4741         * modules/linked-list-tests (Files): Likewise.
4742         * modules/linkedhash-list-tests (Files): Likewise.
4743         * modules/localename-tests (Files): Likewise.
4744         * modules/lseek-tests (Files): Likewise.
4745         * modules/lstat-tests (Files): Likewise.
4746         * modules/mbmemcasecmp-tests (Files): Likewise.
4747         * modules/mbmemcasecoll-tests (Files): Likewise.
4748         * modules/mbrtowc-tests (Files): Likewise.
4749         * modules/mbscasecmp-tests (Files): Likewise.
4750         * modules/mbscasestr-tests (Files): Likewise.
4751         * modules/mbschr-tests (Files): Likewise.
4752         * modules/mbscspn-tests (Files): Likewise.
4753         * modules/mbsinit-tests (Files): Likewise.
4754         * modules/mbsncasecmp-tests (Files): Likewise.
4755         * modules/mbsnrtowcs-tests (Files): Likewise.
4756         * modules/mbspbrk-tests (Files): Likewise.
4757         * modules/mbspcasecmp-tests (Files): Likewise.
4758         * modules/mbsrchr-tests (Files): Likewise.
4759         * modules/mbsrtowcs-tests (Files): Likewise.
4760         * modules/mbsspn-tests (Files): Likewise.
4761         * modules/mbsstr-tests (Files): Likewise.
4762         * modules/memchr-tests (Files): Likewise.
4763         * modules/memchr2-tests (Files): Likewise.
4764         * modules/memcmp-tests (Files): Likewise.
4765         * modules/memmem-tests (Files): Likewise.
4766         * modules/memrchr-tests (Files): Likewise.
4767         * modules/mkdir-tests (Files): Likewise.
4768         * modules/mkfifo-tests (Files): Likewise.
4769         * modules/mkfifoat-tests (Files): Likewise.
4770         * modules/mknod-tests (Files): Likewise.
4771         * modules/nanosleep-tests (Files): Likewise.
4772         * modules/nl_langinfo-tests (Files): Likewise.
4773         * modules/obstack-printf-tests (Files): Likewise.
4774         * modules/open-tests (Files): Likewise.
4775         * modules/openat-tests (Files): Likewise.
4776         * modules/pipe-filter-gi-tests (Files): Likewise.
4777         * modules/pipe-filter-ii-tests (Files): Likewise.
4778         * modules/pipe2-tests (Files): Likewise.
4779         * modules/popen-safer-tests (Files): Likewise.
4780         * modules/popen-tests (Files): Likewise.
4781         * modules/posixtm-tests (Files): Likewise.
4782         * modules/pread-tests (Files): Likewise.
4783         * modules/printf-frexp-tests (Files): Likewise.
4784         * modules/printf-frexpl-tests (Files): Likewise.
4785         * modules/printf-posix-tests (Files): Likewise.
4786         * modules/priv-set-tests (Files): Likewise.
4787         * modules/quotearg-tests (Files): Likewise.
4788         * modules/random_r-tests (Files): Likewise.
4789         * modules/rawmemchr-tests (Files): Likewise.
4790         * modules/rbtree-list-tests (Files): Likewise.
4791         * modules/rbtree-oset-tests (Files): Likewise.
4792         * modules/rbtreehash-list-tests (Files): Likewise.
4793         * modules/readlink-tests (Files): Likewise.
4794         * modules/remove-tests (Files): Likewise.
4795         * modules/rename-tests (Files): Likewise.
4796         * modules/renameat-tests (Files): Likewise.
4797         * modules/rmdir-tests (Files): Likewise.
4798         * modules/round-tests (Files): Likewise.
4799         * modules/roundf-tests (Files): Likewise.
4800         * modules/roundl-tests (Files): Likewise.
4801         * modules/safe-alloc-tests (Files): Likewise.
4802         * modules/setenv-tests (Files): Likewise.
4803         * modules/sigaction-tests (Files): Likewise.
4804         * modules/signbit-tests (Files): Likewise.
4805         * modules/sleep-tests (Files): Likewise.
4806         * modules/snprintf-posix-tests (Files): Likewise.
4807         * modules/snprintf-tests (Files): Likewise.
4808         * modules/sprintf-posix-tests (Files): Likewise.
4809         * modules/stat-tests (Files): Likewise.
4810         * modules/stat-time-tests (Files): Likewise.
4811         * modules/strcasestr-tests (Files): Likewise.
4812         * modules/strchrnul-tests (Files): Likewise.
4813         * modules/strerror-tests (Files): Likewise.
4814         * modules/striconv-tests (Files): Likewise.
4815         * modules/striconveh-tests (Files): Likewise.
4816         * modules/striconveha-tests (Files): Likewise.
4817         * modules/strsignal-tests (Files): Likewise.
4818         * modules/strstr-tests (Files): Likewise.
4819         * modules/strtod-tests (Files): Likewise.
4820         * modules/strverscmp-tests (Files): Likewise.
4821         * modules/symlink-tests (Files): Likewise.
4822         * modules/symlinkat-tests (Files): Likewise.
4823         * modules/trunc-tests (Files): Likewise.
4824         * modules/truncf-tests (Files): Likewise.
4825         * modules/truncl-tests (Files): Likewise.
4826         * modules/uname-tests (Files): Likewise.
4827         * modules/unicase/cased-tests (Files): Likewise.
4828         * modules/unicase/ignorable-tests (Files): Likewise.
4829         * modules/unicase/locale-language-tests (Files): Likewise.
4830         * modules/unicase/tolower-tests (Files): Likewise.
4831         * modules/unicase/totitle-tests (Files): Likewise.
4832         * modules/unicase/toupper-tests (Files): Likewise.
4833         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4834         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4835         * modules/unicase/u8-casefold-tests (Files): Likewise.
4836         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4837         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4838         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4839         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4840         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4841         * modules/unicase/u8-tolower-tests (Files): Likewise.
4842         * modules/unicase/u8-totitle-tests (Files): Likewise.
4843         * modules/unicase/u8-toupper-tests (Files): Likewise.
4844         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4845         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4846         * modules/unicase/u16-casefold-tests (Files): Likewise.
4847         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4848         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4849         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4850         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4851         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4852         * modules/unicase/u16-tolower-tests (Files): Likewise.
4853         * modules/unicase/u16-totitle-tests (Files): Likewise.
4854         * modules/unicase/u16-toupper-tests (Files): Likewise.
4855         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4856         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4857         * modules/unicase/u32-casefold-tests (Files): Likewise.
4858         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4859         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4860         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4861         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4862         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4863         * modules/unicase/u32-tolower-tests (Files): Likewise.
4864         * modules/unicase/u32-totitle-tests (Files): Likewise.
4865         * modules/unicase/u32-toupper-tests (Files): Likewise.
4866         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4867         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4868         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4869         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4870         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4871         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4872         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4873         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4874         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4875         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4876         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4877         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4878         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4879         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4880         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4881         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4882         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4883         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4884         * modules/unictype/block-list-tests (Files): Likewise.
4885         * modules/unictype/block-of-tests (Files): Likewise.
4886         * modules/unictype/block-test-tests (Files): Likewise.
4887         * modules/unictype/category-C-tests (Files): Likewise.
4888         * modules/unictype/category-Cc-tests (Files): Likewise.
4889         * modules/unictype/category-Cf-tests (Files): Likewise.
4890         * modules/unictype/category-Cn-tests (Files): Likewise.
4891         * modules/unictype/category-Co-tests (Files): Likewise.
4892         * modules/unictype/category-Cs-tests (Files): Likewise.
4893         * modules/unictype/category-L-tests (Files): Likewise.
4894         * modules/unictype/category-Ll-tests (Files): Likewise.
4895         * modules/unictype/category-Lm-tests (Files): Likewise.
4896         * modules/unictype/category-Lo-tests (Files): Likewise.
4897         * modules/unictype/category-Lt-tests (Files): Likewise.
4898         * modules/unictype/category-Lu-tests (Files): Likewise.
4899         * modules/unictype/category-M-tests (Files): Likewise.
4900         * modules/unictype/category-Mc-tests (Files): Likewise.
4901         * modules/unictype/category-Me-tests (Files): Likewise.
4902         * modules/unictype/category-Mn-tests (Files): Likewise.
4903         * modules/unictype/category-N-tests (Files): Likewise.
4904         * modules/unictype/category-Nd-tests (Files): Likewise.
4905         * modules/unictype/category-Nl-tests (Files): Likewise.
4906         * modules/unictype/category-No-tests (Files): Likewise.
4907         * modules/unictype/category-P-tests (Files): Likewise.
4908         * modules/unictype/category-Pc-tests (Files): Likewise.
4909         * modules/unictype/category-Pd-tests (Files): Likewise.
4910         * modules/unictype/category-Pe-tests (Files): Likewise.
4911         * modules/unictype/category-Pf-tests (Files): Likewise.
4912         * modules/unictype/category-Pi-tests (Files): Likewise.
4913         * modules/unictype/category-Po-tests (Files): Likewise.
4914         * modules/unictype/category-Ps-tests (Files): Likewise.
4915         * modules/unictype/category-S-tests (Files): Likewise.
4916         * modules/unictype/category-Sc-tests (Files): Likewise.
4917         * modules/unictype/category-Sk-tests (Files): Likewise.
4918         * modules/unictype/category-Sm-tests (Files): Likewise.
4919         * modules/unictype/category-So-tests (Files): Likewise.
4920         * modules/unictype/category-Z-tests (Files): Likewise.
4921         * modules/unictype/category-Zl-tests (Files): Likewise.
4922         * modules/unictype/category-Zp-tests (Files): Likewise.
4923         * modules/unictype/category-Zs-tests (Files): Likewise.
4924         * modules/unictype/category-and-not-tests (Files): Likewise.
4925         * modules/unictype/category-and-tests (Files): Likewise.
4926         * modules/unictype/category-byname-tests (Files): Likewise.
4927         * modules/unictype/category-name-tests (Files): Likewise.
4928         * modules/unictype/category-none-tests (Files): Likewise.
4929         * modules/unictype/category-of-tests (Files): Likewise.
4930         * modules/unictype/category-or-tests (Files): Likewise.
4931         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4932         * modules/unictype/combining-class-tests (Files): Likewise.
4933         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4934         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4935         * modules/unictype/ctype-blank-tests (Files): Likewise.
4936         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4937         * modules/unictype/ctype-digit-tests (Files): Likewise.
4938         * modules/unictype/ctype-graph-tests (Files): Likewise.
4939         * modules/unictype/ctype-lower-tests (Files): Likewise.
4940         * modules/unictype/ctype-print-tests (Files): Likewise.
4941         * modules/unictype/ctype-punct-tests (Files): Likewise.
4942         * modules/unictype/ctype-space-tests (Files): Likewise.
4943         * modules/unictype/ctype-upper-tests (Files): Likewise.
4944         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4945         * modules/unictype/decimal-digit-tests (Files): Likewise.
4946         * modules/unictype/digit-tests (Files): Likewise.
4947         * modules/unictype/mirror-tests (Files): Likewise.
4948         * modules/unictype/numeric-tests (Files): Likewise.
4949         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4950         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4951         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4952         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4953         Likewise.
4954         * modules/unictype/property-bidi-block-separator-tests (Files):
4955         Likewise.
4956         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4957         Likewise.
4958         * modules/unictype/property-bidi-common-separator-tests (Files):
4959         Likewise.
4960         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4961         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4962         Likewise.
4963         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4964         Likewise.
4965         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4966         Likewise.
4967         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4968         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4969         Likewise.
4970         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4971         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4972         Likewise.
4973         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4974         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4975         * modules/unictype/property-bidi-segment-separator-tests (Files):
4976         Likewise.
4977         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4978         * modules/unictype/property-byname-tests (Files): Likewise.
4979         * modules/unictype/property-combining-tests (Files): Likewise.
4980         * modules/unictype/property-composite-tests (Files): Likewise.
4981         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4982         * modules/unictype/property-dash-tests (Files): Likewise.
4983         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4984         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4985         Likewise.
4986         * modules/unictype/property-deprecated-tests (Files): Likewise.
4987         * modules/unictype/property-diacritic-tests (Files): Likewise.
4988         * modules/unictype/property-extender-tests (Files): Likewise.
4989         * modules/unictype/property-format-control-tests (Files): Likewise.
4990         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4991         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4992         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4993         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4994         * modules/unictype/property-hyphen-tests (Files): Likewise.
4995         * modules/unictype/property-id-continue-tests (Files): Likewise.
4996         * modules/unictype/property-id-start-tests (Files): Likewise.
4997         * modules/unictype/property-ideographic-tests (Files): Likewise.
4998         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4999         * modules/unictype/property-ids-trinary-operator-tests (Files):
5000         Likewise.
5001         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5002         * modules/unictype/property-iso-control-tests (Files): Likewise.
5003         * modules/unictype/property-join-control-tests (Files): Likewise.
5004         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5005         * modules/unictype/property-line-separator-tests (Files): Likewise.
5006         * modules/unictype/property-logical-order-exception-tests (Files):
5007         Likewise.
5008         * modules/unictype/property-lowercase-tests (Files): Likewise.
5009         * modules/unictype/property-math-tests (Files): Likewise.
5010         * modules/unictype/property-non-break-tests (Files): Likewise.
5011         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5012         * modules/unictype/property-numeric-tests (Files): Likewise.
5013         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5014         * modules/unictype/property-other-default-ignorable-code-point-tests
5015         (Files): Likewise.
5016         * modules/unictype/property-other-grapheme-extend-tests (Files):
5017         Likewise.
5018         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5019         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5020         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5021         * modules/unictype/property-other-math-tests (Files): Likewise.
5022         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5023         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5024         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5025         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5026         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5027         * modules/unictype/property-private-use-tests (Files): Likewise.
5028         * modules/unictype/property-punctuation-tests (Files): Likewise.
5029         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5030         * modules/unictype/property-radical-tests (Files): Likewise.
5031         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5032         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5033         * modules/unictype/property-space-tests (Files): Likewise.
5034         * modules/unictype/property-terminal-punctuation-tests (Files):
5035         Likewise.
5036         * modules/unictype/property-test-tests (Files): Likewise.
5037         * modules/unictype/property-titlecase-tests (Files): Likewise.
5038         * modules/unictype/property-unassigned-code-value-tests (Files):
5039         Likewise.
5040         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5041         * modules/unictype/property-uppercase-tests (Files): Likewise.
5042         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5043         * modules/unictype/property-white-space-tests (Files): Likewise.
5044         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5045         * modules/unictype/property-xid-start-tests (Files): Likewise.
5046         * modules/unictype/property-zero-width-tests (Files): Likewise.
5047         * modules/unictype/scripts-tests (Files): Likewise.
5048         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5049         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5050         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5051         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5052         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5053         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5054         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5055         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5056         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5057         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5058         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5059         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5060         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5061         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5062         * modules/uninorm/composition-tests (Files): Likewise.
5063         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5064         * modules/uninorm/decomposition-tests (Files): Likewise.
5065         * modules/uninorm/filter-tests (Files): Likewise.
5066         * modules/uninorm/nfc-tests (Files): Likewise.
5067         * modules/uninorm/nfd-tests (Files): Likewise.
5068         * modules/uninorm/nfkc-tests (Files): Likewise.
5069         * modules/uninorm/nfkd-tests (Files): Likewise.
5070         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5071         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5072         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5073         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5074         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5075         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5076         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5077         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5078         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5079         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5080         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5081         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5082         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5083         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5084         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5085         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5086         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5087         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5088         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5089         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5090         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5091         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5092         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5093         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5094         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5095         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5096         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5097         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5098         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5099         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5100         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5101         * modules/uniwidth/u8-width-tests (Files): Likewise.
5102         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5103         * modules/uniwidth/u16-width-tests (Files): Likewise.
5104         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5105         * modules/uniwidth/u32-width-tests (Files): Likewise.
5106         * modules/uniwidth/width-tests (Files): Likewise.
5107         * modules/unlink-tests (Files): Likewise.
5108         * modules/unsetenv-tests (Files): Likewise.
5109         * modules/usleep-tests (Files): Likewise.
5110         * modules/utimens-tests (Files): Likewise.
5111         * modules/utimensat-tests (Files): Likewise.
5112         * modules/vasnprintf-posix-tests (Files): Likewise.
5113         * modules/vasnprintf-tests (Files): Likewise.
5114         * modules/vasprintf-posix-tests (Files): Likewise.
5115         * modules/vasprintf-tests (Files): Likewise.
5116         * modules/vdprintf-posix-tests (Files): Likewise.
5117         * modules/vfprintf-posix-tests (Files): Likewise.
5118         * modules/vprintf-posix-tests (Files): Likewise.
5119         * modules/vsnprintf-posix-tests (Files): Likewise.
5120         * modules/vsnprintf-tests (Files): Likewise.
5121         * modules/vsprintf-posix-tests (Files): Likewise.
5122         * modules/wcrtomb-tests (Files): Likewise.
5123         * modules/wcsnrtombs-tests (Files): Likewise.
5124         * modules/wcsrtombs-tests (Files): Likewise.
5125         * modules/wctype-tests (Files): Likewise.
5126         * modules/wcwidth-tests (Files): Likewise.
5127         * modules/xmemdup0-tests (Files): Likewise.
5128         * modules/xprintf-posix-tests (Files): Likewise.
5129         * modules/xvasprintf-tests (Files): Likewise.
5130
5131 2009-12-24  Eric Blake  <ebb9@byu.net>
5132
5133         test-nanosleep: fix typo
5134         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5135         patch.
5136         Reported by Bruno Haible.
5137
5138 2009-12-24  Bruno Haible  <bruno@clisp.org>
5139
5140         Reduce namespace pollution on glibc systems.
5141         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5142         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5143         systems.
5144         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5145         <getopt.h> on glibc systems.
5146         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5147         systems.
5148         * lib/fcntl.c: Include <unistd.h> here instead.
5149
5150 2009-12-24  Bruno Haible  <bruno@clisp.org>
5151
5152         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5153
5154 2009-12-24  Eric Blake  <ebb9@byu.net>
5155
5156         tests: add signature checks
5157         * tests/signature.h (SIGNATURE_CHECK): New file.
5158         * modules/atexit-tests (Files): Use it.
5159         * modules/btowc-tests (Files): Likewise.
5160         * modules/canonicalize-lgpl-tests (Files): Likewise.
5161         * modules/ceilf-tests (Files): Likewise.
5162         * modules/ceill-tests (Files): Likewise.
5163         * modules/chown-tests (Files): Likewise.
5164         * modules/dprintf-posix-tests (Files): Likewise.
5165         * modules/dup2-tests (Files): Likewise.
5166         * modules/dup3-tests (Files): Likewise.
5167         * modules/duplocale-tests (Files): Likewise.
5168         * modules/fchdir-tests (Files): Likewise.
5169         * modules/fcntl-tests (Files): Likewise.
5170         * modules/fdopendir-tests (Files): Likewise.
5171         * modules/fflush-tests (Files): Likewise.
5172         * modules/flock-tests (Files): Likewise.
5173         * modules/floorf-tests (Files): Likewise.
5174         * modules/floorl-tests (Files): Likewise.
5175         * modules/fnmatch-tests (Files): Likewise.
5176         * modules/fopen-tests (Files): Likewise.
5177         * modules/fprintf-posix-tests (Files): Likewise.
5178         * modules/freopen-tests (Files): Likewise.
5179         * modules/frexp-nolibm-tests (Files): Likewise.
5180         * modules/frexp-tests (Files): Likewise.
5181         * modules/frexpl-nolibm-tests (Files): Likewise.
5182         * modules/frexpl-tests (Files): Likewise.
5183         * modules/fseek-tests (Files): Likewise.
5184         * modules/fseeko-tests (Files): Likewise.
5185         * modules/fsync-tests (Files): Likewise.
5186         * modules/ftell-tests (Files): Likewise.
5187         * modules/ftello-tests (Files): Likewise.
5188         * modules/futimens-tests (Files): Likewise.
5189         * modules/getaddrinfo-tests (Files): Likewise.
5190         * modules/getcwd-tests (Files): Likewise.
5191         * modules/getdelim-tests (Files): Likewise.
5192         * modules/getdtablesize-tests (Files): Likewise.
5193         * modules/getgroups-tests (Files): Likewise.
5194         * modules/gethostname-tests (Files): Likewise.
5195         * modules/getline-tests (Files): Likewise.
5196         * modules/getopt-posix-tests (Files): Likewise.
5197         * modules/gettimeofday-tests (Files): Likewise.
5198         * modules/glob-tests (Files): Likewise.
5199         * modules/iconv-tests (Files): Likewise.
5200         * modules/inet_ntop-tests (Files): Likewise.
5201         * modules/inet_pton-tests (Files): Likewise.
5202         * modules/isblank-tests (Files): Likewise.
5203         * modules/lchown-tests (Files): Likewise.
5204         * modules/ldexpl-tests (Files): Likewise.
5205         * modules/link-tests (Files): Likewise.
5206         * modules/linkat-tests (Files): Likewise.
5207         * modules/lseek-tests (Files): Likewise.
5208         * modules/lstat-tests (Files): Likewise.
5209         * modules/mbrtowc-tests (Files): Likewise.
5210         * modules/mbsinit-tests (Files): Likewise.
5211         * modules/mbsnrtowcs-tests (Files): Likewise.
5212         * modules/mbsrtowcs-tests (Files): Likewise.
5213         * modules/memchr-tests (Files): Likewise.
5214         * modules/memcmp-tests (Files): Likewise.
5215         * modules/memmem-tests (Files): Likewise.
5216         * modules/memrchr-tests (Files): Likewise.
5217         * modules/mkdir-tests (Files): Likewise.
5218         * modules/mkfifo-tests (Files): Likewise.
5219         * modules/mkfifoat-tests (Files): Likewise.
5220         * modules/mknod-tests (Files): Likewise.
5221         * modules/nanosleep-tests (Files): Likewise.
5222         * modules/nl_langinfo-tests (Files): Likewise.
5223         * modules/obstack-printf-tests (Files): Likewise.
5224         * modules/open-tests (Files): Likewise.
5225         * modules/openat-tests (Files): Likewise.
5226         * modules/perror-tests (Files): Likewise.
5227         * modules/pipe2-tests (Files): Likewise.
5228         * modules/poll-tests (Files): Likewise.
5229         * modules/popen-tests (Files): Likewise.
5230         * modules/posix_spawn-tests (Files): Likewise.
5231         * modules/posix_spawnp-tests (Files): Likewise.
5232         * modules/pread-tests (Files): Likewise.
5233         * modules/printf-posix-tests (Files): Likewise.
5234         * modules/pty-tests (Files): Likewise.
5235         * modules/random_r-tests (Files): Likewise.
5236         * modules/rawmemchr-tests (Files): Likewise.
5237         * modules/readlink-tests (Files): Likewise.
5238         * modules/remove-tests (Files): Likewise.
5239         * modules/rename-tests (Files): Likewise.
5240         * modules/renameat-tests (Files): Likewise.
5241         * modules/rmdir-tests (Files): Likewise.
5242         * modules/round-tests (Files): Likewise.
5243         * modules/roundf-tests (Files): Likewise.
5244         * modules/roundl-tests (Files): Likewise.
5245         * modules/select-tests (Files): Likewise.
5246         * modules/setenv-tests (Files): Likewise.
5247         * modules/sigaction-tests (Files): Likewise.
5248         * modules/sleep-tests (Files): Likewise.
5249         * modules/snprintf-posix-tests (Files): Likewise.
5250         * modules/snprintf-tests (Files): Likewise.
5251         * modules/sprintf-posix-tests (Files): Likewise.
5252         * modules/stat-tests (Files): Likewise.
5253         * modules/strcasestr-tests (Files): Likewise.
5254         * modules/strchrnul-tests (Files): Likewise.
5255         * modules/strerror-tests (Files): Likewise.
5256         * modules/strsignal-tests (Files): Likewise.
5257         * modules/strstr-tests (Files): Likewise.
5258         * modules/strtod-tests (Files): Likewise.
5259         * modules/strverscmp-tests (Files): Likewise.
5260         * modules/symlink-tests (Files): Likewise.
5261         * modules/symlinkat-tests (Files): Likewise.
5262         * modules/times-tests (Files): Likewise.
5263         * modules/trunc-tests (Files): Likewise.
5264         * modules/truncf-tests (Files): Likewise.
5265         * modules/truncl-tests (Files): Likewise.
5266         * modules/tsearch-tests (Files): Likewise.
5267         * modules/uname-tests (Files): Likewise.
5268         * modules/unlink-tests (Files): Likewise.
5269         * modules/unsetenv-tests (Files): Likewise.
5270         * modules/usleep-tests (Files): Likewise.
5271         * modules/utimensat-tests (Files): Likewise.
5272         * modules/vasprintf-tests (Files): Likewise.
5273         * modules/vdprintf-posix-tests (Files): Likewise.
5274         * modules/vfprintf-posix-tests (Files): Likewise.
5275         * modules/vprintf-posix-tests (Files): Likewise.
5276         * modules/vsnprintf-posix-tests (Files): Likewise.
5277         * modules/vsnprintf-tests (Files): Likewise.
5278         * modules/vsprintf-posix-tests (Files): Likewise.
5279         * modules/wcrtomb-tests (Files): Likewise.
5280         * modules/wcsnrtombs-tests (Files): Likewise.
5281         * modules/wcsrtombs-tests (Files): Likewise.
5282         * modules/wcwidth-tests (Files): Likewise.
5283         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5284         * tests/test-isinf.c (isinf): Likewise.
5285         * tests/test-isnan.c (isnan): Likewise.
5286         * tests/test-signbit.c (signbit): Likewise.
5287         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5288         declaration, either as macro or with correct signature.
5289         (select): Ensure function under test is declared with correct
5290         signature in correct header.
5291         * tests/test-atexit.c (atexit): Likewise.
5292         * tests/test-btowc.c (btowc): Likewise.
5293         * tests/test-canonicalize-lgpl.c (realpath)
5294         (canonicalize_file_name): Likewise.
5295         * tests/test-ceilf1.c (ceilf): Likewise.
5296         * tests/test-ceill.c (ceill): Likewise.
5297         * tests/test-chown.c (chown): Likewise.
5298         * tests/test-dprintf-posix.c (dprintf): Likewise.
5299         * tests/test-dup2.c (dup2): Likewise.
5300         * tests/test-dup3.c (dup3): Likewise.
5301         * tests/test-duplocale.c (duplocale): Likewise.
5302         * tests/test-fchdir.c (fchdir): Likewise.
5303         * tests/test-fchownat.c (fchownat): Likewise.
5304         * tests/test-fcntl.c (fcntl): Likewise.
5305         * tests/test-fdopendir.c (fdopendir): Likewise.
5306         * tests/test-fflush.c (fflush): Likewise.
5307         * tests/test-flock.c (flock): Likewise.
5308         * tests/test-floorf1.c (floorf): Likewise.
5309         * tests/test-floorl.c (floorl): Likewise.
5310         * tests/test-fnmatch.c (fnmatch): Likewise.
5311         * tests/test-fopen.c (fopen): Likewise.
5312         * tests/test-fprintf-posix.c (fprintf): Likewise.
5313         * tests/test-freopen.c (freopen): Likewise.
5314         * tests/test-frexp.c (frexp): Likewise.
5315         * tests/test-frexpl.c (frexpl): Likewise.
5316         * tests/test-fseek.c (fseek): Likewise.
5317         * tests/test-fseeko.c (fseeko): Likewise.
5318         * tests/test-fstatat.c (fstatat): Likewise.
5319         * tests/test-fsync.c (fsync): Likewise.
5320         * tests/test-ftell.c (ftell): Likewise.
5321         * tests/test-ftello.c (ftello): Likewise.
5322         * tests/test-futimens.c (futimens): Likewise.
5323         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5324         (gai_strerror): Likewise.
5325         * tests/test-getcwd.c (getcwd): Likewise.
5326         * tests/test-getdelim.c (getdelim): Likewise.
5327         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5328         * tests/test-getgroups.c (getgroups): Likewise.
5329         * tests/test-gethostname.c (gethostname): Likewise.
5330         * tests/test-getline.c (getline): Likewise.
5331         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5332         Likewise.
5333         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5334         * tests/test-glob.c (glob, globfree): Likewise.
5335         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5336         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5337         * tests/test-inet_pton.c (inet_pton): Likewise.
5338         * tests/test-isblank.c (isblank): Likewise.
5339         * tests/test-lchown.c (lchown): Likewise.
5340         * tests/test-ldexpl.c (ldexpl): Likewise.
5341         * tests/test-link.c (link): Likewise.
5342         * tests/test-linkat.c (linkat): Likewise.
5343         * tests/test-lseek.c (lseek): Likewise.
5344         * tests/test-lstat.c (lstat): Likewise.
5345         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5346         * tests/test-mbsinit.c (mbsinit): Likewise.
5347         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5348         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5349         * tests/test-memchr.c (memchr): Likewise.
5350         * tests/test-memcmp.c (memcmp): Likewise.
5351         * tests/test-memmem.c (memmem): Likewise.
5352         * tests/test-memrchr.c (memrchr): Likewise.
5353         * tests/test-mkdir.c (mkdir): Likewise.
5354         * tests/test-mkdirat.c (mkdirat): Likewise.
5355         * tests/test-mkfifo.c (mkfifo): Likewise.
5356         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5357         * tests/test-mknod.c (mknod): Likewise.
5358         * tests/test-nanosleep.c (nanosleep): Likewise.
5359         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5360         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5361         Likewise.
5362         * tests/test-open.c (open): Likewise.
5363         * tests/test-openat.c (openat): Likewise.
5364         * tests/test-perror.c (perror): Likewise.
5365         * tests/test-pipe2.c (pipe2): Likewise.
5366         * tests/test-poll.c (poll): Likewise.
5367         * tests/test-popen.c (popen, pclose): Likewise.
5368         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5369         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5370         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5371         (posix_spawn_file_actions_destroy)
5372         (posix_spawn_file_actions_addclose)
5373         (posix_spawn_file_actions_addopen)
5374         (posix_spawn_file_actions_adddup2): Likewise.
5375         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5376         * tests/test-pread.c (pread): Likewise.
5377         * tests/test-printf-posix.c (printf): Likewise.
5378         * tests/test-pty.c (openpty, forkpty): Likewise.
5379         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5380         (random_r): Likewise.
5381         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5382         * tests/test-readlink.c (readlink): Likewise.
5383         * tests/test-remove.c (remove): Likewise.
5384         * tests/test-rename.c (rename): Likewise.
5385         * tests/test-renameat.c (renameat): Likewise.
5386         * tests/test-rmdir.c (rmdir): Likewise.
5387         * tests/test-round1.c (round): Likewise.
5388         * tests/test-roundf1.c (roundf): Likewise.
5389         * tests/test-roundl.c (roundl): Likewise.
5390         * tests/test-setenv.c (setenv): Likewise.
5391         * tests/test-sigaction.c (sigaction): Likewise.
5392         * tests/test-sleep.c (sleep): Likewise.
5393         * tests/test-snprintf.c (snprintf): Likewise.
5394         * tests/test-sprintf-posix.c (sprintf): Likewise.
5395         * tests/test-stat.c (stat): Likewise.
5396         * tests/test-stpncpy.c (stpncpy): Likewise.
5397         * tests/test-strcasestr.c (strcasestr): Likewise.
5398         * tests/test-strchrnul.c (strchrnul): Likewise.
5399         * tests/test-strerror.c (strerror): Likewise.
5400         * tests/test-strsignal.c (strsignal): Likewise.
5401         * tests/test-strstr.c (strstr): Likewise.
5402         * tests/test-strtod.c (strtod): Likewise.
5403         * tests/test-strverscmp.c (strverscmp): Likewise.
5404         * tests/test-symlink.c (symlink): Likewise.
5405         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5406         * tests/test-times.c (times): Likewise.
5407         * tests/test-trunc1.c (trunc): Likewise.
5408         * tests/test-truncf1.c (truncf): Likewise.
5409         * tests/test-truncl.c (truncl): Likewise.
5410         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5411         Likewise.
5412         * tests/test-uname.c (uname): Likewise.
5413         * tests/test-unlink.c (unlink): Likewise.
5414         * tests/test-unlinkat.c (unlinkat): Likewise.
5415         * tests/test-unsetenv.c (unsetenv): Likewise.
5416         * tests/test-usleep.c (usleep): Likewise.
5417         * tests/test-utimensat.c (utimensat): Likewise.
5418         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5419         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5420         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5421         * tests/test-vprintf-posix.c (vprintf): Likewise.
5422         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5423         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5424         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5425         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5426         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5427         * tests/test-wcwidth.c (wcwidth): Likewise.
5428
5429         build: pull in conditional headers during GNULIB_POSIXCHECK
5430         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5431         definitions from any conditionally-included headers.
5432         * lib/stdlib.in.h (includes): Likewise.
5433         * lib/unistd.in.h (includes): Likewise.
5434
5435 2009-12-24  Bruno Haible  <bruno@clisp.org>
5436
5437         * tests/test-argv-iter.c: Include header file being tested immediately
5438         after config.h.
5439         * tests/test-base64.c: Likewise.
5440         * tests/test-flock.c: Likewise.
5441         * tests/test-fsync.c: Likewise.
5442         * tests/test-getdate.c: Likewise.
5443         * tests/test-getndelim2.c: Likewise.
5444         * tests/test-isfinite.c: Likewise.
5445         * tests/test-isinf.c: Likewise.
5446         * tests/test-strerror.c: Likewise.
5447         * tests/test-strsignal.c: Likewise.
5448
5449 2009-12-23  Eric Blake  <ebb9@byu.net>
5450
5451         unistd: work around cygwin bug
5452         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5453         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5454         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5455
5456 2009-12-23  Bruno Haible  <bruno@clisp.org>
5457
5458         localename: More tests.
5459         * tests/test-localename.c (SIZEOF): New macro.
5460         (categories): New variable.
5461         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5462         test_locale_name_default): Add test w.r.t. thread locale.
5463         (test_locale_name_thread): New function.
5464         (main): Invoke it.
5465
5466         localename: Make aware of thread locale.
5467         * lib/localename.h (gl_locale_name_thread): New declaration.
5468         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5469         behaviour with respect to thread locale.
5470         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5471         <langinfo.h>, glthread/lock.h.
5472         (SIZE_BITS): New macro.
5473         (string_hash): New function.
5474         (struct hash_node): New type.
5475         (HASH_TABLE_SIZE): New macro.
5476         (struniq_hash_table, struniq_lock): New variables.
5477         (struniq): New function.
5478         (gl_locale_name_thread): New function.
5479         (gl_locale_name): Invoke it.
5480         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5481         * modules/localename (Depends-on): Add lock.
5482         Reported by Mike Gran <spk121@yahoo.com>.
5483
5484 2009-12-23  Eric Blake  <ebb9@byu.net>
5485
5486         va-args: new module
5487         * modules/va-args: New file.
5488         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5489         * MODULES.html.sh (Core language properties): Mention it.
5490
5491         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5492         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5493         named alias for __attribute__((__unused__)).
5494         * lib/chown.c: Update client.
5495         * lib/fchmodat.c: Likewise.
5496         * lib/fts.c: Likewise.
5497         * lib/getdate.y: Likewise.
5498         * lib/getgroups.c: Likewise.
5499         * lib/getopt.c: Likewise.
5500         * lib/getugroups.c: Likewise.
5501         * lib/mkdir.c: Likewise.
5502         * lib/mkfifo.c: Likewise.
5503         * lib/mkfifoat.c: Likewise.
5504         * lib/mknod.c: Likewise.
5505         * lib/mknodat.c: Likewise.
5506         * lib/readlink.c: Likewise.
5507         * lib/se-context.in.h: Likewise.
5508         * lib/se-selinux.in.h: Likewise.
5509         * lib/sockets.c: Likewise.
5510         * lib/symlink.c: Likewise.
5511         * lib/symlinkat.c: Likewise.
5512         * lib/unicodeio.c: Likewise.
5513         * lib/unistr.h: Likewise.
5514         * tests/test-areadlink.c: Likewise.
5515         * tests/test-areadlinkat.c: Likewise.
5516         * tests/test-filenamecat.c: Likewise.
5517         * tests/test-fseeko.c: Likewise.
5518         * tests/test-ftello.c: Likewise.
5519         * tests/test-getdate.c: Likewise.
5520         * tests/test-getgroups.c: Likewise.
5521         * tests/test-gethostname.c: Likewise.
5522         * tests/test-quotearg.c: Likewise.
5523         * tests/test-version-etc.c: Likewise.
5524         * tests/test-xalloc-die.c: Likewise.
5525         * tests/test-xfprintf-posix.c: Likewise.
5526         * tests/test-xprintf-posix.c: Likewise.
5527         * tests/test-xvasprintf.c: Likewise.
5528
5529         tests: avoid compiler warnings
5530         * tests/test-fcntl.c (main): Delete unused parameters.
5531         * tests/test-freopen-safer.c (main): Likewise.
5532         * tests/test-xalloc-die.c (main): Mark unused parameters.
5533         * tests/test-fseeko.c (main): Likewise.
5534         * tests/test-ftello.c (main): Likewise.
5535         * tests/test-nanosleep.c (main): Avoid declaration warning.
5536         * tests/test-sleep.c (main): Likewise.
5537         * tests/test-unsetenv.c (main): Silence warning about string
5538         literal.
5539         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5540
5541 2009-12-23  Bruno Haible  <bruno@clisp.org>
5542
5543         * tests/test-localename.c (test_locale_name): New function, extracted
5544         from main. Also test mixed situations.
5545         (test_locale_name_posix, test_locale_name_environ,
5546         test_locale_name_default): New functions.
5547         (main): Invoke them all.
5548         * modules/localename-tests (configure.ac): Test for newlocale.
5549
5550 2009-12-23  Bruno Haible  <bruno@clisp.org>
5551
5552         unistd: Ensure getcwd gets declared before being overridden.
5553         * lib/unistd.in.h: Conditionally include <io.h>.
5554
5555 2009-12-22  Bruno Haible  <bruno@clisp.org>
5556
5557         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5558         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5559         (gl_WCHAR_H): Invoke it.
5560         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5561         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5562         Reported by Karl Berry <karl@freefriends.org>.
5563
5564 2009-12-22  Eric Blake  <ebb9@byu.net>
5565
5566         math, unistd: avoid redundant includes
5567         * lib/math.in.h (isnan): No need to re-include <math.h>.
5568         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5569
5570         getsubopt: work around cygwin bug
5571         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5572         avoid conflicting with system getsubopt.
5573         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5574         bug.
5575
5576         getopt: synchronize from glibc
5577         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5578         parameter order.  Adjust all callers.
5579         (_getopt_internal_r, main): Adjust quoting in error messages.
5580         Drop considerations for outdated POSIX 1003.2 error message.
5581         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5582         callers.
5583         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5584
5585         test-getopt: test stderr behavior
5586         * modules/getopt-posix-tests (Depends-on): Add dup2.
5587         * tests/test-getopt.c (ASSERT): Avoid stderr.
5588         (main): Move stderr to a temporary file.
5589         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5590         Instead, add parameter to inform caller if output occurred.
5591         (test_getopt): Adjust all existing tests to expect silence, and
5592         add new tests of leading ":".
5593         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5594         glibc shortcomings with leading "-:" or "+:" in optstring.
5595         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5596         Likewise.
5597         * doc/posix-functions/getopt.texi (getopt): Likewise.
5598
5599         test-getopt: enhance test
5600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5601         supports optind=0.
5602         * tests/test-getopt.c (OPTIND_MIN): Move...
5603         * tests/test-getopt.h (OPTIND_MIN): ...here.
5604         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5605         Require that optind=0 works, since modern BSD supports it in
5606         addition to optreset, and since coreutils expects it.
5607         (test_getopt_long_only): New test.
5608         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5609         glibc shortcomings with 'W;', and enforcement of optind=0.
5610         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5611         Likewise.
5612
5613 2009-12-21  Bruno Haible  <bruno@clisp.org>
5614
5615         localename: Improvements for MacOS X and Cygwin.
5616         * lib/localename.h (gl_locale_name_environ): New declaration.
5617         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5618         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5619         (gl_locale_name_posix): Invoke it.
5620         (gl_locale_name_default): Add comments. Use Windows native API also on
5621         Cygwin.
5622
5623 2009-12-21  Bruno Haible  <bruno@clisp.org>
5624
5625         Update list of Win32 locale ids.
5626         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5627         (LANG_SAMI): Renamed from LANG_SAAMI.
5628         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5629         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5630         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5631         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5632         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5633         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5634         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5635         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5636         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5637         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5638         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5639         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5640         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5641         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5642         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5643         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5644         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5645         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5646         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5647         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5648         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5649         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5650         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5651         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5652         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5653         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5654         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5655         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5656         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5657         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5658         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5659         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5660         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5661         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5662         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5663         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5664         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5665         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5666         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5667         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5668         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5669         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5670         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5671         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5672         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5673         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5674         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5675         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5676         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5677         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5678         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5679         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5680         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5681         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5682         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5683         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5684         Add more languages and countries for Sami, Sorbian. Add more countries
5685         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5686         for Pashto. Change country for Syriac, Tswana.
5687
5688 2009-12-21  Eric Blake  <ebb9@byu.net>
5689
5690         test-utimens: avoid spurious failure
5691         * tests/test-chown.h (nap): Factor...
5692         * tests/nap.h: ...into new file.
5693         * tests/test-lchown.h (nap): Avoid duplication.
5694         * tests/test-utimens-common.h (nap): Use shared implementation,
5695         necessary on file systems with 1-second resolution.
5696         * modules/chown-tests (Files): Include new file.
5697         * modules/fdutimensat-tests (Files): Likewise.
5698         * modules/futimens-tests (Files): Likewise.
5699         * modules/lchown-tests (Files): Likewise.
5700         * modules/openat-tests (Files): Likewise.
5701         * modules/utimens-tests (Files): Likewise.
5702         * modules/utimensat-tests (Files): Likewise.
5703
5704 2009-12-19  Eric Blake  <ebb9@byu.net>
5705
5706         futimens, utimensat: work around Linux bug
5707         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5708         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5709         * lib/utimensat.c (rpl_utimensat): Work around it.
5710         * lib/futimens.c (rpl_futimens): Adjust comment.
5711
5712         utimens: work around Linux ctime bug
5713         * lib/utimens.c (detect_ctime_bug): New helper function.
5714         (update_timespec): Differentiate between workaround needed for
5715         this bug vs. what is needed for systems that lack utimensat.
5716         (fdutimens, lutimens): Work around bug.
5717
5718         utimens: check for ctime update
5719         * tests/test-utimens-common.h (check_ctime): Define.
5720         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5721         * tests/test-futimens.h (test_futimens): Likewise.
5722         * tests/test-lutimens.h (test_lutimens): Likewise.
5723         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5724         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5725
5726 2009-12-19  Bruno Haible  <bruno@clisp.org>
5727
5728         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5729         * tests/test-dprintf-posix2.sh: New file.
5730         * tests/test-dprintf-posix2.c: New file.
5731         * modules/dprintf-posix-tests (Files): Add them.
5732         (configure.ac): Check for getrlimit and setrlimit.
5733         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5734
5735 2009-12-19  Bruno Haible  <bruno@clisp.org>
5736
5737         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5738         * tests/test-fprintf-posix3.sh: New file.
5739         * tests/test-fprintf-posix3.c: New file.
5740         * modules/fprintf-posix-tests (Files): Add them.
5741         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5742
5743 2009-12-19  Eric Blake  <ebb9@byu.net>
5744
5745         dirfd: fix prototype
5746         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5747         * lib/dirfd.c (dirfd): Likewise.
5748
5749         canonicalize: reduce memory usage
5750         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5751         allocation to size.
5752         Reported by Solar Designer <solar@openwall.com>.
5753
5754 2009-12-19  Bruno Haible  <bruno@clisp.org>
5755
5756         New module attribute 'Applicability'.
5757         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5758         * gnulib-tool: New option --extract-applicability.
5759         (func_usage): Document it.
5760         (sed_extract_prog): Recognize it.
5761         (func_get_applicability): New function.
5762         (func_import): Generalize handling of 'link-warning' module.
5763         * modules/link-warning (Applicability): New section.
5764         * modules/arg-nonnull (Applicability): New section.
5765         Repoted by Simon Josefsson <simon@josefsson.org>.
5766
5767 2009-12-19  Bruno Haible  <bruno@clisp.org>
5768
5769         fflush: tweak
5770         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5771         * lib/fseeko.c (rpl_fseeko): Likewise.
5772
5773 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5774
5775         * lib/gl_list.h: Fix typo in comment.
5776
5777 2009-12-16  Eric Blake  <ebb9@byu.net>
5778
5779         fcntl: use to simplify other modules
5780         * modules/cloexec (Depends-on): Add fcntl.
5781         * modules/fchdir (Depends-on): Likewise.
5782         * modules/fd-safer-flag (Depends-on): Likewise.
5783         * modules/unistd-safer (Depends-on): Likewise.
5784         * modules/dup3 (configure.ac): Set module indicator.
5785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5786         missing.
5787         * lib/fchdir.c (_gl_register_dup): Fix comment.
5788         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5789         * lib/dup-safer.c (dup_safer): Likewise.
5790         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5791         * lib/dup3.c (dup3): Likewise.
5792         * tests/test-fchdir.c (main): Enhance test.
5793         Fixes a dup_cloexec bug reported by Ondřej Vašík.
5794
5795         fcntl: port portions of fcntl to mingw
5796         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5797         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5798         replacement for mingw.
5799         * modules/fcntl (Description): Update.
5800         (Depends-on): Add dup2.
5801         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5802         * modules/fcntl-h (Makefile.am): Substitute it.
5803         * lib/fcntl.in.h (fcntl): Update declaration.
5804         (F_DUPFD, F_GETFD): New macros, when needed.
5805         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5806         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5807         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5808         we now guarantee.
5809
5810         fcntl: work around cygwin bug in F_DUPFD
5811         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5812         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5813         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5814         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5815         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5816
5817         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5818         * modules/fcntl (Files): List new files.
5819         (configure.ac): Run a test.
5820         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5821         * lib/fcntl.c (rpl_fcntl): Likewise.
5822         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5823         (gl_FCNTL_H): Always replace fcntl.h.
5824         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5825         * lib/fcntl.in.h (fcntl): Declare replacement.
5826         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5827         needed, plus a witness.
5828         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5829         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5830         * tests/test-fcntl.c: New file.
5831         * modules/fcntl-tests: Likewise.
5832
5833         binary-io: avoid potential compilation warning
5834         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5835         directives.
5836
5837         fflush: avoid compilation error on NetBSD
5838         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5839         between off_t and fpos_t, since the latter is sometimes a struct.
5840         * lib/fseeko.c (rpl_fseeko): Likewise.
5841         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5842
5843 2009-12-15  Eric Blake  <ebb9@byu.net>
5844
5845         fcntl-h, stdio, sys_ioctl: fix declarations
5846         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5847         function must not take arguments.
5848         * lib/sys_ioctl.in.h (ioctl): Likewise.
5849         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5850         (open): Add a link warning.
5851
5852 2009-12-15  Jim Meyering  <meyering@redhat.com>
5853
5854         areadlink, areadlink-with-size: relax license to LGPLv2+
5855         * modules/areadlink (License): Relax to LGPLv2+.
5856         * modules/areadlink-with-size (License): Likewise.
5857
5858 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5859             Bruno Haible  <bruno@clisp.org>
5860
5861         *printf: Fix memory leak.
5862         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5863         * lib/vfprintf.c (vfprintf): Likewise.
5864         * lib/dprintf.c (dprintf): Likewise.
5865         * lib/vdprintf.c (vdprintf): Likewise.
5866
5867 2009-12-14  Eric Blake  <ebb9@byu.net>
5868
5869         accept4: adjust module dependencies
5870         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5871
5872         utimens: one more try at avoiding compiler warning
5873         * lib/utimens.c (lutimens): Lower scope of result.
5874
5875 2009-12-13  Bruno Haible  <bruno@clisp.org>
5876
5877         Move the malloc checking from module 'list' to new module 'xlist'.
5878         * modules/xlist: New file.
5879         * lib/gl_xlist.h: New file.
5880         * lib/gl_xlist.c: New file.
5881         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5882         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5883         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5884         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5885         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5886         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5887         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5888         gl_sortedlist_nx_add): New declarations.
5889         (struct gl_list_implementation): Rename and change methods accordingly.
5890         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5891         (gl_list_nx_create): Renamed from gl_list_create.
5892         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5893         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5894         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5895         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5896         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5897         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5898         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5899         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5900         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5901         gl_list_create_empty.
5902         (gl_list_nx_create): Renamed from gl_list_create.
5903         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5904         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5905         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5906         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5907         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5908         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5909         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5910         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5911         * lib/gl_array_list.c: Don't include xalloc.h.
5912         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5913         NULL upon out-of-memory.
5914         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5915         out-of-memory.
5916         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5917         Change return type to 'int'.
5918         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5919         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5920         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5921         upon out-of-memory.
5922         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5923         upon out-of-memory.
5924         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5925         upon out-of-memory.
5926         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5927         upon out-of-memory.
5928         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5929         out-of-memory.
5930         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5931         Update.
5932         (gl_array_list_implementation): Update.
5933         * lib/gl_carray_list.c: Don't include xalloc.h.
5934         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5935         Return NULL upon out-of-memory.
5936         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5937         out-of-memory.
5938         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5939         Change return type to 'int'.
5940         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5941         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5942         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5943         upon out-of-memory.
5944         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5945         upon out-of-memory.
5946         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5947         out-of-memory.
5948         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5949         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5950         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5951         Update.
5952         (gl_carray_list_implementation): Update.
5953         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5954         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5955         gl_linked_create_empty. Return NULL upon out-of-memory.
5956         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5957         out-of-memory.
5958         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5959         Change return type to 'int'. Return -1 upon out-of-memory.
5960         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5961         out-of-memory.
5962         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5963         upon out-of-memory.
5964         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5965         upon out-of-memory.
5966         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5967         NULL upon out-of-memory.
5968         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5969         upon out-of-memory.
5970         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5971         out-of-memory.
5972         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5973         Update.
5974         * lib/gl_linked_list.c: Don't include xalloc.h.
5975         (gl_linked_list_implementation): Update.
5976         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5977         (add_to_bucket): Change return type to 'int'.
5978         (gl_linkedhash_list_implementation): Update.
5979         * lib/gl_anytree_list1.h (free_subtree): New function.
5980         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5981         gl_tree_create_empty. Return NULL upon out-of-memory.
5982         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5983         Change return type to 'int'. Return -1 upon out-of-memory.
5984         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5985         out-of-memory.
5986         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5987         (gl_tree_remove_node): New function, moved here from
5988         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5989         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5990         Update.
5991         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5992         malloc, not xmalloc. Return NULL upon out-of-memory.
5993         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5994         out-of-memory.
5995         (gl_tree_remove_node_from_tree): New function, extracted from
5996         gl_tree_remove_node.
5997         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5998         upon out-of-memory.
5999         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6000         out-of-memory.
6001         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6002         upon out-of-memory.
6003         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6004         upon out-of-memory.
6005         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6006         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6007         not xmalloc. Return NULL upon out-of-memory.
6008         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6009         out-of-memory.
6010         (gl_tree_remove_node_from_tree): New function, extracted from
6011         gl_tree_remove_node.
6012         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6013         upon out-of-memory.
6014         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6015         out-of-memory.
6016         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6017         upon out-of-memory.
6018         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6019         upon out-of-memory.
6020         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6021         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6022         gl_anytree_list1.h before gl_anyavltree_list2.h.
6023         (gl_avltree_list_implementation): Update.
6024         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6025         gl_anytree_list1.h before gl_anyavltree_list2.h.
6026         (gl_rbtree_list_implementation): Update.
6027         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6028         Change return type to 'int'. Return -1 upon out-of-memory. Use
6029         __builtin_expect.
6030         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6031         (gl_avltreehash_list_implementation): Update.
6032         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6033         (gl_rbtreehash_list_implementation): Update.
6034         * modules/array-list (Depends-on): Remove xalloc.
6035         * modules/carray-list (Depends-on): Likewise.
6036         * modules/linked-list (Depends-on): Likewise.
6037         * modules/linkedhash-list (Depends-on): Likewise.
6038         * modules/avltree-list (Depends-on): Likewise.
6039         * modules/rbtree-list (Depends-on): Likewise.
6040         * modules/avltreehash-list (Depends-on): Likewise.
6041         * modules/rbtreehash-list (Depends-on): Likewise.
6042
6043         * modules/xsublist: New file.
6044         * lib/gl_xsublist.h: New file.
6045         * lib/gl_xsublist.c: New file.
6046         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6047         (gl_sublist_nx_create): New declaration.
6048         * lib/gl_sublist.c: Don't include xalloc.h.
6049         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6050         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6051         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6052         Change return type to 'int'. Return -1 upon out-of-memory.
6053         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6054         upon out-of-memory.
6055         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6056         NULL upon out-of-memory.
6057         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6058         upon out-of-memory.
6059         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6060         NULL upon out-of-memory.
6061         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6062         NULL upon out-of-memory.
6063         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6064         upon out-of-memory.
6065         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6066         (gl_sublist_list_implementation): Update.
6067         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6068         upon out-of-memory.
6069         * modules/sublist (Depends-on): Remove xalloc.
6070
6071         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6072         * tests/test-carray_list.c: Likewise.
6073         * tests/test-linked_list.c: Likewise.
6074         * tests/test-linkedhash_list.c: Likewise.
6075         * tests/test-avltree_list.c: Likewise.
6076         * tests/test-rbtree_list.c: Likewise.
6077         * tests/test-avltreehash_list.c: Likewise.
6078         * tests/test-rbtreehash_list.c: Likewise.
6079         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6080         * modules/carray-list-tests (Makefile.am): Likewise.
6081         * modules/linked-list-tests (Makefile.am): Likewise.
6082         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6083         * modules/avltree-list-tests (Makefile.am): Likewise.
6084         * modules/rbtree-list-tests (Makefile.am): Likewise.
6085         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6086         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6087
6088         * NEWS: Mention the changes.
6089
6090         * lib/clean-temp.c: Include gl_xlist.h.
6091         * modules/clean-temp (Depends-on): Add xlist.
6092
6093         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6094         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6095
6096         * tests/test-array_oset.c: Include gl_xlist.h.
6097         * modules/array-oset-tests (Depends-on): Add xlist.
6098
6099         Reported by José E. Marchesi <jemarch@gnu.org>.
6100
6101 2009-12-13  Bruno Haible  <bruno@clisp.org>
6102
6103         Move the malloc checking from module 'oset' to new module 'xoset'.
6104         * modules/xoset: New file.
6105         * lib/gl_xoset.h: New file.
6106         * lib/gl_xoset.c: New file.
6107         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6108         declarations.
6109         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6110         (struct gl_oset_implementation): Rename and change methods accordingly.
6111         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6112         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6113         'int'. Mark as __warn_unused_result__.
6114         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6115         gl_oset_create_empty.
6116         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6117         'int'.
6118         * lib/gl_array_oset.c: Don't include xalloc.h.
6119         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6120         malloc, not xmalloc.
6121         (grow): Change return type to 'int'. Don't call xalloc_die.
6122         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6123         to 'int'.
6124         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6125         'int'.
6126         (gl_array_oset_implementation): Update.
6127         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6128         gl_tree_create_empty.
6129         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6130         'int'.
6131         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6132         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6133         xmalloc.
6134         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6135         not xmalloc.
6136         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6137         xmalloc.
6138         (gl_avltree_oset_implementation): Update.
6139         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6140         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6141         xmalloc.
6142         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6143         not xmalloc.
6144         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6145         xmalloc.
6146         (gl_rbtree_oset_implementation): Update.
6147         * modules/array-oset (Depends-on): Remove xalloc.
6148         * modules/avltree-oset (Depends-on): Likewise.
6149         * modules/rbtree-oset (Depends-on): Likewise.
6150         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6151         * tests/test-avltree_oset.c: Likewise.
6152         * tests/test-rbtree_oset.c: Likewise.
6153         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6154         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6155         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6156         * NEWS: Mention the change.
6157
6158 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6159
6160         maint.mk: allow a project to override release-prep commands
6161         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6162         commands into a new rule.
6163         (release-prep): New rule.
6164         (release-prep-hook): New overridable variable.
6165
6166 2009-12-13  Bruno Haible  <bruno@clisp.org>
6167
6168         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6169
6170 2009-12-13  Jim Meyering  <meyering@redhat.com>
6171
6172         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6173         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6174
6175 2009-12-12  Bruno Haible  <bruno@clisp.org>
6176
6177         duplocale: Tweak.
6178         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6179
6180 2009-12-12  Karl Berry  <karl@gnu.org>
6181
6182         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6183
6184 2009-12-12  Bruno Haible  <bruno@clisp.org>
6185
6186         * m4/po.m4: Undo incorrect untabification.
6187
6188 2009-12-12  Bruno Haible  <bruno@clisp.org>
6189
6190         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6191         * modules/c-strtod (Depends-on): Add locale.
6192         * modules/c-strtold (Depends-on): Likewise.
6193
6194 2009-12-12  Bruno Haible  <bruno@clisp.org>
6195
6196         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6197
6198 2009-12-11  Eric Blake  <ebb9@byu.net>
6199
6200         setenv: relax requirement in light of POSIX ruling
6201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6202         not NULL.
6203         * tests/test-setenv.c (main): Relax test.
6204         * tests/test-unsetenv.c (main): Likewise.
6205         * doc/posix-functions/setenv.texi (setenv): Document this.
6206         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6207
6208 2009-12-11  Bruno Haible  <bruno@clisp.org>
6209
6210         New module 'fd-safer-flag'.
6211         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6212         * lib/dup-safer.c (dup_safer_flag): Remove function.
6213         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6214         * lib/fd-safer.c (fd_safer_flag): Remove function.
6215         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6216         * modules/cloexec (configure.ac): Drop indicator macro.
6217         * modules/fd-safer-flag: New file.
6218         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6219         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6220         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6221
6222 2009-12-11  Bruno Haible  <bruno@clisp.org>
6223
6224         Tests for module 'nl_langinfo'.
6225         * modules/nl_langinfo-tests: New file.
6226         * tests/test-nl_langinfo.sh: New file.
6227         * tests/test-nl_langinfo.c: New file.
6228
6229         New module 'nl_langinfo'.
6230         * lib/nl_langinfo.c: New file.
6231         * m4/nl_langinfo.m4: New file.
6232         * modules/nl_langinfo: New file.
6233         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6234
6235 2009-12-11  Bruno Haible  <bruno@clisp.org>
6236
6237         Tests for module 'langinfo'.
6238         * modules/langinfo-tests: New file.
6239         * tests/test-langinfo.c: New file.
6240
6241         New module 'langinfo'.
6242         * lib/langinfo.in.h: New file.
6243         * m4/langinfo_h.m4: New file.
6244         * modules/langinfo: New file.
6245         * doc/posix-headers/langinfo.texi: Mention the new module.
6246
6247 2009-12-11  Bruno Haible  <bruno@clisp.org>
6248
6249         * lib/config.charset: Untabify.
6250
6251 2009-12-11  Bruno Haible  <bruno@clisp.org>
6252
6253         * modules/unistd-safer (configure.ac): Drop indicator macro.
6254
6255 2009-12-11  Bruno Haible  <bruno@clisp.org>
6256
6257         Move pipe2-safer code to its own file.
6258         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6259         * lib/pipe-safer.c (pipe2_safer): Remove function.
6260         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6261         (Makefile.am): Add it to lib_SOURCES.
6262
6263 2009-12-10  Bruno Haible  <bruno@clisp.org>
6264
6265         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6266
6267 2009-12-10  Bruno Haible  <bruno@clisp.org>
6268
6269         Declare which arguments expect non-NULL values, for GCC and clang.
6270         * build-aux/arg-nonnull.h: New file.
6271         * modules/arg-nonnull: New file.
6272         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6273         (inet_ntop, inet_pton): Use it.
6274         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6275         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6276         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6277         (open, openat): Use it.
6278         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6279         (fnmatch): Use it.
6280         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6281         (getopt, getopt_long, getopt_long_only): Use it.
6282         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6283         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6284         Use it.
6285         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6286         (iconv_open): Use it.
6287         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6288         (strtoimax, strtoumax): Use it.
6289         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6290         (duplocale): Use it.
6291         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6292         (frexp, frexpl): Use it.
6293         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6294         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6295         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6296         (tsearch, tfind, tdelete, twalk): Use it.
6297         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6298         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6299         sigpending): Use it.
6300         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6301         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6302         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6303         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6304         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6305         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6306         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6307         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6308         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6309         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6310         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6311         Use it.
6312         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6313         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6314         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6315         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6316         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6317         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6318         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6319         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6320         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6321         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6322         strtoull, unsetenv): Use it.
6323         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6324         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6325         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6326         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6327         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6328         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6329         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6330         (strcasecmp, strncasecmp): Use it.
6331         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6332         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6333         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6334         rpl_setsockopt): Use it.
6335         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6336         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6337         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6338         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6339         (gettimeofday): Use it.
6340         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6341         (times): Use it.
6342         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6343         (uname): Use it.
6344         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6345         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6346         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6347         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6348         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6349         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6350         unlinkat, write): Use it.
6351         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6352         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6353         * lib/argv-iter.h: Include arg-nonnull.h.
6354         (_ATTRIBUTE_NONNULL_): Remove macro.
6355         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6356         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6357         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6358         optimization.
6359         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6360         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6361         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6362         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6363         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6364         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6365         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6366         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6367         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6368         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6369         * modules/dirent (Depends-on): Add arg-nonnull.
6370         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6371         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6372         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6373         * modules/fnmatch (Depends-on): Add arg-nonnull.
6374         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6375         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6376         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6377         * modules/glob (Depends-on): Add arg-nonnull.
6378         (Makefile.am): Insert arg-nonnull.h into glob.h.
6379         * modules/iconv_open (Depends-on): Add arg-nonnull.
6380         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6381         * modules/inttypes (Depends-on): Add arg-nonnull.
6382         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6383         * modules/locale (Depends-on): Add arg-nonnull.
6384         (Makefile.am): Insert arg-nonnull.h into locale.h.
6385         * modules/math (Depends-on): Add arg-nonnull.
6386         (Makefile.am): Insert arg-nonnull.h into math.h.
6387         * modules/netdb (Depends-on): Add arg-nonnull.
6388         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6389         * modules/search (Depends-on): Add arg-nonnull.
6390         (Makefile.am): Insert arg-nonnull.h into search.h.
6391         * modules/signal (Depends-on): Add arg-nonnull.
6392         (Makefile.am): Insert arg-nonnull.h into signal.h.
6393         * modules/spawn (Depends-on): Add arg-nonnull.
6394         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6395         * modules/stdio (Depends-on): Add arg-nonnull.
6396         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6397         * modules/stdlib (Depends-on): Add arg-nonnull.
6398         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6399         * modules/string (Depends-on): Add arg-nonnull.
6400         (Makefile.am): Insert arg-nonnull.h into string.h.
6401         * modules/strings (Depends-on): Add arg-nonnull.
6402         (Makefile.am): Insert arg-nonnull.h into strings.h.
6403         * modules/sys_socket (Depends-on): Add arg-nonnull.
6404         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6405         * modules/sys_stat (Depends-on): Add arg-nonnull.
6406         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6407         * modules/sys_time (Depends-on): Add arg-nonnull.
6408         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6409         * modules/sys_times (Depends-on): Add arg-nonnull.
6410         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6411         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6412         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6413         * modules/time (Depends-on): Add arg-nonnull.
6414         (Makefile.am): Insert arg-nonnull.h into time.h.
6415         * modules/unistd (Depends-on): Add arg-nonnull.
6416         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6417         * modules/wchar (Depends-on): Add arg-nonnull.
6418         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6419         * modules/argv-iter (Depends-on): Add arg-nonnull.
6420         * tests/test-canonicalize.c (null_ptr): New function.
6421         (main): Use it.
6422         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6423         (main): Use it.
6424         * tests/test-memmem.c (null_ptr): New function.
6425         (main): Use it.
6426         Reported by Jim Meyering.
6427
6428 2009-12-10  Bruno Haible  <bruno@clisp.org>
6429
6430         Use spaces for indentation, not tabs.
6431         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6432         * m4/*.m4: Untabify.
6433         * build-aux/*.h: Untabify.
6434         * tests/**/*.[hc]: Untabify.
6435         * README: New section "Indent with spaces, not TABs", based on
6436         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6437         * NEWS: Mention the change.
6438
6439 2009-12-10  Bruno Haible  <bruno@clisp.org>
6440
6441         pty test: Fix link error.
6442         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6443         test_pty_LDADD.
6444
6445 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6446
6447         * modules/pty: New file.
6448         * modules/pty-tests: New file.
6449         * m4/pty.m4: New file.
6450         * tests/test-pty.c: New file.
6451         * doc/glibc-headers/pty.texi: Modified.
6452         * doc/glibc-functions/forkpty.texi: Modified.
6453         * doc/glibc-functions/openpty.texi: Modified.
6454
6455 2009-12-10  Bruno Haible  <bruno@clisp.org>
6456
6457         Avoid syntax error in C++ mode.
6458         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6459
6460 2009-12-10  Bruno Haible  <bruno@clisp.org>
6461
6462         Use sed with option -e.
6463         * gnulib-tool (func_version, func_emit_copyright_notice,
6464         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6465         option -e to sed.
6466         * modules/link-warning (Makefile.am): Likewise.
6467
6468 2009-12-10  Jim Meyering  <meyering@redhat.com>
6469
6470         mgetgroups: do not write bytes beyond end of malloc'd buffer
6471         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6472         username, we call getgroups with a one-element-shorter buffer,
6473         but still told it the length was original, max_n_groups.
6474
6475 2009-12-09  Eric Blake  <ebb9@byu.net>
6476
6477         cloexec: relax license
6478         * modules/cloexec (Maintainer): Add myself.
6479         (License): Use LGPL, not GPL.
6480
6481         link-warning: optimize generation
6482         * modules/link-warning (Makefile.am): Reduce process usage.
6483
6484 2009-12-09  Bruno Haible  <bruno@clisp.org>
6485
6486         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6487         workaround was added on 2009-11-17.
6488
6489 2009-12-09  Jim Meyering  <meyering@redhat.com>
6490             Bruno Haible  <bruno@clisp.org>
6491
6492         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6493         * modules/link-warning (Makefile.am): Make the comment-removing sed
6494         command more robust in the face of bootstrap-prepended comment lines.
6495
6496 2009-12-09  Bruno Haible  <bruno@clisp.org>
6497
6498         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6499         most one group.
6500
6501 2009-12-09  Simon Josefsson <simon@josefsson.org>
6502             Bruno Haible  <bruno@clisp.org>
6503
6504         * build-aux/link-warning.h: Add copyright notice.
6505         * modules/link-warning (Makefile.am): Generate link-warning.h from
6506         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6507         * NEWS: Mention change in link-warning module.
6508         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6509         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6510         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6511         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6512         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6513         * modules/math (Makefile.am): Add dependency to math.h.
6514         * modules/search (Makefile.am): Add dependency to search.h.
6515         * modules/signal (Makefile.am): Add dependency to signal.h.
6516         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6517         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6518         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6519         * modules/string (Makefile.am): Add dependency to string.h.
6520         * modules/strings (Makefile.am): Add dependency to strings.h.
6521         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6522         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6523         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6524         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6525         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6526         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6527         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6528         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6529         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6530
6531 2009-12-09  Bruno Haible  <bruno@clisp.org>
6532
6533         fchdir: Optimize away rpl_fstat when possible.
6534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6535         REPLACE_OPEN_DIRECTORY.
6536         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6537
6538 2009-12-09  Bruno Haible  <bruno@clisp.org>
6539
6540         * lib/fchdir.c: Update comment.
6541
6542 2009-12-09  Bruno Haible  <bruno@clisp.org>
6543
6544         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6545
6546 2009-12-08  Eric Blake  <ebb9@byu.net>
6547
6548         fchdir: avoid memory leak on re-registration.
6549         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6550
6551 2009-12-08  Jim Meyering  <meyering@redhat.com>
6552
6553         init.sh: avoid Solaris 10 /bin/sh portability problem
6554         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6555         sourced script:
6556           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6557           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6558           bar
6559         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6560         and two tests used that idiom.
6561         * tests/init.sh: Update suggested usage comments.
6562         (path_prepend_): New function, to be used in place
6563         of the --src-path=DIR option.
6564         (setup_): Move PATH-prepending code into path_prepend_.
6565         * tests/test-pread.sh: Adapt to new usage.
6566         * tests/test-xalloc-die.sh: Likewise.
6567
6568 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6569
6570         * doc/gnulib.texi (Glibc pty.h): Add.
6571         * doc/glibc-functions/forkpty.texi: Add.
6572         * doc/glibc-functions/openpty.texi: Add.
6573         Suggested by Bruno Haible.
6574
6575 2009-12-08  Eric Blake  <ebb9@byu.net>
6576
6577         fchdir: fix logic bugs
6578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6579         * tests/test-fchdir.c (main): Enhance test.
6580         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6581         is in use.
6582
6583         dup2: fix logic bugs
6584         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6585         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6586         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6587         exists.
6588         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6589
6590 2009-12-07  Eric Blake  <ebb9@byu.net>
6591
6592         unlink: fix m4 detection
6593         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6594
6595         unistd-safer: add unit test
6596         * modules/unistd-safer-tests: New file.
6597         * tests/test-dup-safer.c: Likewise.
6598         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6599         * tests/test-dup2.c (setmode): Likewise.
6600         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6601
6602         cloexec: preserve text vs. binary across dup_cloexec
6603         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6604         mode.
6605         * modules/dup2-tests (Depends-on): Add binary-io.
6606         * modules/cloexec-tests (Depends-on): Likewise.
6607         * tests/test-dup2.c (setmode, is_mode): New helpers.
6608         (main): Add tests that translation mode is preserved.
6609         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6610         Reported by Bruno Haible.
6611
6612         mgetgroups: reduce duplicate listings
6613         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6614         resulting array.
6615         * tests/test-chown.h (test_chown): Simplify client.
6616         * tests/test-lchown.h (test_lchown): Likewise.
6617
6618 2009-12-06  Bruno Haible  <bruno@clisp.org>
6619
6620         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6621         value.
6622
6623 2009-12-06  Bruno Haible  <bruno@clisp.org>
6624
6625         * lib/progname.c: Include stdio.h, stdlib.h.
6626         (set_program_name): Reject a NULL argument.
6627
6628 2009-12-05  Eric Blake  <ebb9@byu.net>
6629
6630         pipe2-safer: new module
6631         * modules/pipe2-safer: New file.
6632         * lib/unistd-safer.h (pipe2_safer): New prototype.
6633         * lib/unistd--.h (pipe2): New wrapper.
6634         * lib/pipe-safer.c (pipe2_safer): New function.
6635         * modules/pipe (Depends-on): Add pipe2-safer.
6636         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6637
6638         stdlib-safer: preserve cloexec flag for mkostemp[s]
6639         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6640         fd_safer_flag.
6641
6642         unistd-safer: allow preservation of cloexec status via flag
6643         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6644         prototypes.
6645         * lib/dup-safer.c (dup_safer_flag): New function.
6646         * lib/fd-safer.c (fd_safer_flag): Likewise.
6647         * modules/cloexec (configure.ac): Set witness.
6648
6649         test-dup2: enhance test
6650         * modules/dup2-tests (Depends-on): Add cloexec.
6651         * tests/test-dup2.c (main): Enhance test.
6652
6653         cloexec: add dup_cloexec
6654         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6655         header and comments.
6656         * lib/cloexec.c (set_cloexec_flag): Add comments.
6657         (dup_cloexec): New function, with mingw implementation borrowed
6658         from...
6659         * lib/w32spawn.h (dup_noinherit): ...here.
6660         * modules/execute (Depends-on): Add cloexec.
6661         * modules/pipe (Depends-on): Likewise.
6662         * modules/cloexec (Depends-on): Add dup2.
6663         * modules/cloexec-tests (Files): New file.
6664         * tests/test-cloexec.c: Likewise.
6665
6666         test-xalloc-die: fix test for mingw
6667         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6668         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6669         directory and .exe suffix off argv[0] output.
6670
6671         test-fseeko: fix test for mingw
6672         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6673         than undefining fseek, so test will pass on mingw.
6674
6675 2009-12-05  Bruno Haible  <bruno@clisp.org>
6676
6677         * lib/progname.h (set_program_name): Clarify specification.
6678         * lib/progname.c (set_program_name): Likewise.
6679         Reported by Jim Meyering.
6680
6681 2009-12-05  Jim Meyering  <meyering@redhat.com>
6682
6683         maint.mk: backslash-escape parens in default regexp
6684         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6685         backslash-escape the literal parentheses.
6686
6687         maint.mk: news-date-check: use grep -E
6688         * top/maint.mk (today): Define a Make variable, not a...
6689         (news-date-check): ...shell variable.
6690         (news-date-regexp): Use the Make variable.
6691         Use grep's -E option.  Change the failing diagnostic to mention
6692         the variable, $(news-date-regexp).
6693
6694 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6695
6696         maintainer-makefile: allow customization of NEWS entry format
6697         * top/maint.mk (news-date-regexp): New overridable variable.
6698         (news-date-check): Use it.
6699
6700 2009-12-04  Eric Blake  <ebb9@byu.net>
6701
6702         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6703         * lib/mgetgroups.h (xgetgroups): New prototype.
6704         * lib/mgetgroups.c (xgetgroups): New wrapper.
6705         (mgetgroups): Handle ENOSYS.
6706         * modules/mgetgroups (Depends-on): Add realloc.
6707         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6708
6709         mgetgroups: avoid argument promotion issues with -1
6710         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6711         for invalid gid_t.
6712         * tests/test-chown.h (getegid, test_chown): Likewise.
6713         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6714
6715 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6716
6717         exclude: Fix header file problems.
6718         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6719
6720 2009-12-01  Jim Meyering  <meyering@redhat.com>
6721
6722         fts: fts_open: do not let an empty string cause immediate failure
6723         This is required in support of GNU rm, for which the command
6724         "rm A '' B" must process and remove both A and B, in spite of
6725         the empty string argument.
6726         * lib/fts.c (fts_open): Do not let the presence of an empty string
6727         cause fts_open to fail immediately.  Most fts-using tools must be
6728         able to process all arguments, in order, and can be expected to
6729         diagnose such arguments themselves.
6730
6731 2009-11-30  Eric Blake  <ebb9@byu.net>
6732
6733         utimens: fix compilation error
6734         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6735         Declare variable at right scope.
6736
6737 2009-11-29  Jim Meyering  <meyering@redhat.com>
6738
6739         bootstrap: handle perl-5.11's changed --version output
6740         * build-aux/bootstrap (get_version): Handle perl separately,
6741         since perl-5.11's --version output is different.
6742
6743 2009-11-28  Jim Meyering  <meyering@redhat.com>
6744
6745         userspec: depend on the inttostr module, too
6746         * modules/userspec (Depends-on): Add inttostr.
6747
6748         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6749         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6750         number of MAXUID when it evaluates to (uid_t) -1.
6751         Likewise for group ID.  Reported by Matt McCutchen in
6752         <http://savannah.gnu.org/bugs/?28113>
6753
6754         userspec: reformat to use spaces, not TABs
6755         * lib/userspec.c: Expand TABs to spaces.
6756         Add Emacs' "indent-tabs-mode: nil" hint.
6757
6758 2009-11-27  Eric Blake  <ebb9@byu.net>
6759
6760         getopt-gnu: flush out another BSD bug
6761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6762         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6763         flush out BSD bug.
6764         * tests/test-getopt.h (test_getopt): End lists with NULL.
6765         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6766         (test_getopt_long_posix): Enhance test.
6767         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6768         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6769         getopt-gnu.
6770         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6771         Likewise.
6772
6773 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6774
6775         * modules/idpriv-droptemp-tests (Notice): Fix text.
6776
6777 2009-11-27  Jim Meyering  <meyering@redhat.com>
6778
6779         test-xalloc-die: avoid spurious failure due to libtool argv difference
6780         In a libtool-enabled project, this test would fail due to a difference
6781         in the emitted program name, e.g.,
6782         -test-xalloc-die: memory exhausted
6783         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6784         Use program to avoid that.
6785         * modules/xalloc-die-tests (Depends-on): Add progname.
6786         * tests/test-xalloc-die.c: Include progname.h".
6787         (program_name): Remove decl.
6788         (main): Call set_program_name.
6789         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6790
6791 2009-11-26  Richard Jones  <rjones@redhat.com>
6792
6793         w32sock: leave win32 error in place.
6794         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6795
6796 2009-11-26  Eric Blake  <ebb9@byu.net>
6797
6798         init.sh: suggest to use skip_ and fail_ functions in comments
6799         * tests/init.sh: Add a sentence.
6800
6801 2009-11-25  Bruno Haible  <bruno@clisp.org>
6802
6803         init.sh: add documentation in comments
6804         * tests/init.sh: Add some developer and user documentation.
6805
6806 2009-11-26  Jim Meyering  <meyering@redhat.com>
6807
6808         init.sh: accommodate even those who specify bogus srcdir manually
6809         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6810         configure-time tests to be sanitized, so that there is no need to
6811         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6812         (with no double quotes) suffices.  However, since tests may be
6813         invoked manually, and since you may explicitly set srcdir to the
6814         name of a directory containing spaces, do quote its uses here.
6815         * tests/test-pread.sh: Likewise.
6816         Suggested by Bruno Haible.
6817
6818         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6819         * tests/test-pread.sh: Write no data into the pipe, because
6820         test-pread actually reads none.  This avoids a diagnostic,
6821         "bash: echo: write error: Broken pipe", that arises in the unusual
6822         event something is ignoring SIGPIPE, and might be interpreted
6823         as some sort of failure.  Reported by Bruno Haible.
6824
6825 2009-11-25  Jim Meyering  <meyering@redhat.com>
6826
6827         test-pread: cover failure with ESPIPE and EINVAL
6828         * tests/test-pread.c (main): Test for failure, too.
6829         * tests/test-pread.sh: Invoke with stdin on a pipe.
6830         Suggested by Eric Blake.
6831
6832         pread: improvement and fix
6833         * modules/pread (Depends-on): Depend on lseek, for portability to
6834         e.g., mingw.  Suggested by Eric Blake.
6835         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6836
6837         unistd.in.h: correct declaration of pread
6838         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6839         Reported by Richard W.M. Jones.
6840
6841         test-pread.sh: distribute the test script
6842         * modules/pread-tests (Files): Include test-pread.sh.
6843
6844         test-pread.sh: clean up
6845         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6846         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6847         That is unnecessary, since it's always ".".
6848         Suggestion from Eric Blake.
6849
6850         test-pread.sh: make executable
6851         * tests/test-pread.sh: Set executable bit.
6852         Reported by Eric Blake.
6853
6854         correct typo in test-pread.sh
6855         * tests/test-pread.sh: Add #! line.
6856
6857         test pread
6858         * tests/test-pread.c: New file.
6859         * tests/test-pread.sh: Likewise.
6860         * modules/pread-tests: Likewise.
6861
6862         pread: new module
6863         * modules/pread: New file.
6864         * lib/unistd.in.h (pread): Define/declare.
6865         * lib/pread.c (pread): New file.
6866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6867         * modules/unistd (Makefile.am): Substitute witnesses.
6868         * doc/posix-functions/pread.texi (pread): Update.
6869         * MODULES.html.sh: Add pread.
6870
6871 2009-11-25  Jim Meyering  <meyering@redhat.com>
6872
6873         tests/init.sh: new file to be used via most *.sh tests
6874         * tests/init.sh: New file.
6875
6876 2009-11-25  Eric Blake  <ebb9@byu.net>
6877
6878         utimens: work around older Linux failure with symlinks
6879         * lib/utimens.c (lutimensat_works_really): New variable.
6880         (fdutimens, lutimens): Use it to manage kernels that support
6881         nanosecond times on files, but not on symlinks.
6882         Reported by Ondřej Vašík.
6883
6884         utimes: fix configure grammar
6885         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6886
6887 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6888
6889         regex: Fix fastmap for multibyte character ranges.
6890         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6891         characters when a multibyte character range is included.
6892
6893 2009-11-22  Andy Wingo  <wingo@pobox.com>
6894
6895         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6896         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6897
6898 2009-11-24  Bruno Haible  <bruno@clisp.org>
6899
6900         doc: Most *_l functions exist in MacOS X 10.5.
6901         * doc/posix-functions/duplocale.texi: Update platforms list.
6902         * doc/posix-functions/freelocale.texi: Likewise.
6903         * doc/posix-functions/newlocale.texi: Likewise.
6904         * doc/posix-functions/uselocale.texi: Likewise.
6905         * doc/posix-functions/isalnum_l.texi: Likewise.
6906         * doc/posix-functions/isalpha_l.texi: Likewise.
6907         * doc/posix-functions/isblank_l.texi: Likewise.
6908         * doc/posix-functions/iscntrl_l.texi: Likewise.
6909         * doc/posix-functions/isdigit_l.texi: Likewise.
6910         * doc/posix-functions/isgraph_l.texi: Likewise.
6911         * doc/posix-functions/islower_l.texi: Likewise.
6912         * doc/posix-functions/isprint_l.texi: Likewise.
6913         * doc/posix-functions/ispunct_l.texi: Likewise.
6914         * doc/posix-functions/isspace_l.texi: Likewise.
6915         * doc/posix-functions/isupper_l.texi: Likewise.
6916         * doc/posix-functions/iswalnum_l.texi: Likewise.
6917         * doc/posix-functions/iswalpha_l.texi: Likewise.
6918         * doc/posix-functions/iswblank_l.texi: Likewise.
6919         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6920         * doc/posix-functions/iswctype_l.texi: Likewise.
6921         * doc/posix-functions/iswdigit_l.texi: Likewise.
6922         * doc/posix-functions/iswgraph_l.texi: Likewise.
6923         * doc/posix-functions/iswlower_l.texi: Likewise.
6924         * doc/posix-functions/iswprint_l.texi: Likewise.
6925         * doc/posix-functions/iswpunct_l.texi: Likewise.
6926         * doc/posix-functions/iswspace_l.texi: Likewise.
6927         * doc/posix-functions/iswupper_l.texi: Likewise.
6928         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6929         * doc/posix-functions/isxdigit_l.texi: Likewise.
6930         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6931         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6932         * doc/posix-functions/strcoll_l.texi: Likewise.
6933         * doc/posix-functions/strfmon_l.texi: Likewise.
6934         * doc/posix-functions/strftime_l.texi: Likewise.
6935         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6936         * doc/posix-functions/strxfrm_l.texi: Likewise.
6937         * doc/posix-functions/tolower_l.texi: Likewise.
6938         * doc/posix-functions/toupper_l.texi: Likewise.
6939         * doc/posix-functions/towctrans_l.texi: Likewise.
6940         * doc/posix-functions/towlower_l.texi: Likewise.
6941         * doc/posix-functions/towupper_l.texi: Likewise.
6942         * doc/posix-functions/wcscoll_l.texi: Likewise.
6943         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6944         * doc/posix-functions/wctrans_l.texi: Likewise.
6945         * doc/posix-functions/wctype_l.texi: Likewise.
6946         * doc/glibc-functions/strptime_l.texi: Likewise.
6947         * doc/glibc-functions/strtod_l.texi: Likewise.
6948         * doc/glibc-functions/strtof_l.texi: Likewise.
6949         * doc/glibc-functions/strtol_l.texi: Likewise.
6950         * doc/glibc-functions/strtold_l.texi: Likewise.
6951         * doc/glibc-functions/strtoll_l.texi: Likewise.
6952         * doc/glibc-functions/strtoul_l.texi: Likewise.
6953         * doc/glibc-functions/strtoull_l.texi: Likewise.
6954         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6955         * doc/glibc-functions/wcstod_l.texi: Likewise.
6956         * doc/glibc-functions/wcstof_l.texi: Likewise.
6957         * doc/glibc-functions/wcstol_l.texi: Likewise.
6958         * doc/glibc-functions/wcstold_l.texi: Likewise.
6959         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6960         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6961         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6962
6963 2009-11-24  Bruno Haible  <bruno@clisp.org>
6964
6965         duplocale: Fix logic bug.
6966         * lib/duplocale.c: Don't include <langinfo.h>.
6967         (_NL_LOCALE_NAME): Remove macro.
6968         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6969         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6970
6971 2009-11-23  Jim Meyering  <meyering@redhat.com>
6972
6973         test-update-copyright: don't hard-code /usr/bin/perl
6974         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6975         perl to print the current year.  Gilles Espinasse reported that
6976         the replaced use of perl was hard-coded as /usr/bin/perl.
6977
6978 2009-11-23  Bruno Haible  <bruno@clisp.org>
6979
6980         duplocale: Add support for glibc 2.3.x.
6981         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6982
6983 2009-11-22  Bruno Haible  <bruno@clisp.org>
6984
6985         vasnprintf: Tiny optimization.
6986         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6987         MacOS X.
6988
6989 2009-11-22  Bruno Haible  <bruno@clisp.org>
6990
6991         Tests for module 'duplocale'.
6992         * modules/duplocale-tests: New file.
6993         * tests/test-duplocale.c: New file.
6994
6995         New module 'duplocale'.
6996         * m4/duplocale.m4: New file.
6997         * lib/locale.in.h (duplocale): New declaration.
6998         * lib/duplocale.c: New file.
6999         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7000         gl_LOCALE_H_DEFAULTS): New macros.
7001         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7002         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7003         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7004         REPLACE_DUPLOCALE.
7005         * modules/duplocale: New file.
7006         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7007
7008 2009-11-22  Bruno Haible  <bruno@clisp.org>
7009
7010         * modules/locale-tests (configure.ac): Test for newlocale function.
7011         * tests/test-locale.c: When the system has extended locale functions,
7012         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7013
7014         locale: Make locale_t available when possible.
7015         * lib/locale.in.h: Include <xlocale.h> when it exists.
7016         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7017         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7018         * modules/locale (Depends-on): Add extensions.
7019         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7020         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7021
7022 2009-11-22  Bruno Haible  <bruno@clisp.org>
7023
7024         Add comments.
7025         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7026         invocation.
7027         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7028         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7029         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7030
7031 2009-11-22  Bruno Haible  <bruno@clisp.org>
7032
7033         error: account for the possibility of freopen (stdout).
7034         * lib/error.c: Include <unistd.h>.
7035         (flush_stdout): New function, extracted from error and error_at_line.
7036         Determine stdout's fd dynamically.
7037         (error, error_at_line): Invoke flush_stdout.
7038         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7039         * modules/error (Depends-on): Add unistd.
7040
7041 2009-11-22  Bruno Haible  <bruno@clisp.org>
7042
7043         diffseq: Add comment.
7044         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7045
7046 2009-11-22  Jim Meyering  <meyering@redhat.com>
7047
7048         c-stack: avoid defining an unused static function
7049         * lib/c-stack.c (find_stack_direction): Do not define this function
7050         when it will not be used.
7051
7052         diffseq: avoid spurious gcc warnings
7053         * lib/diffseq.h (IF_LINT2): Define.
7054         (compareseq): Use it to initialize two members of "part".
7055         This avoids two used-uninitialized warnings.
7056
7057 2009-11-21  Jim Meyering  <meyering@redhat.com>
7058
7059         c-stack: avoid "ignoring return value of `write'" warning
7060         * lib/c-stack.c: Include "ignore-value.h".
7061         (die): Explicitly ignore each write return value.
7062         * modules/c-stack (Depends-on): Add ignore-value.
7063
7064 2009-11-21  Bruno Haible  <bruno@clisp.org>
7065
7066         diffseq: reduce scope of variable 'best'.
7067         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7068         variable, earlier used for two different purposes.
7069
7070 2009-11-21  Jim Meyering  <meyering@redhat.com>
7071
7072         diffseq: remove useless assignment to "best"
7073         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7074         assignment.  At that point "best" is already guaranteed to be zero.
7075
7076 2009-11-20  Eric Blake  <ebb9@byu.net>
7077
7078         build: mention ftp redirector in release announcements
7079         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7080         values that used to come from cfg.mk; mention FTP redirect URL.
7081         * build-aux/announce-gen: Mention the mirror list.
7082         Suggested by Karl Berry.
7083
7084         nanosleep: improve port to mingw
7085         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7087         LIB_NANOSLEEP, but only when needed.
7088         * modules/select (Link): Document LIBSOCKET.
7089         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7090         enough.
7091
7092         nanosleep: work around cygwin bug
7093         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7094         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7095         bug.
7096         (getnow): Delete, not needed.
7097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7098         LIB_CLOCK_GETTIME.
7099         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7100         clock-time, gettime.
7101         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7102         bug.
7103         * modules/nanosleep-tests: New test.
7104         * tests/test-nanosleep.c: New file.
7105
7106         sleep: work around cygwin bug
7107         * lib/sleep.c (rpl_sleep): Work around the bug.
7108         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7109         (gl_PREREQ_SLEEP): Delete unused macro.
7110         * modules/sleep (Depends-on): Add verify.
7111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7112         * modules/unistd (Makefile.am): Substitute witness.
7113         * lib/unistd.in.h (sleep): Update prototype.
7114         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7115         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7116         * modules/sleep-tests (Depends-on): Check for alarm.
7117
7118 2009-11-20  Jim Meyering  <meyering@redhat.com>
7119
7120         maint.mk: improve sc_prohibit_magic_number_exit
7121         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7122         so it does not match uses like System.exit(1).
7123         Add comments showing how to correct all offenders.
7124
7125 2009-11-19  Eric Blake  <ebb9@byu.net>
7126
7127         xalloc-die-tests: add missing library
7128         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7129
7130         test-xvasprintf: silence compiler warnings
7131         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7132         empty string from gcc.
7133
7134 2009-11-19  Jim Meyering  <meyering@redhat.com>
7135
7136         xfreopen: new module, from coreutils
7137         * modules/xfreopen: New module.
7138         * lib/xfreopen.c: New file.
7139         * lib/xfreopen.h: New file.
7140         * MODULES.html.sh (File stream based Input/Output"): Add it.
7141
7142 2009-11-19  Eric Blake  <ebb9@byu.net>
7143
7144         manywarnings: depend on warnings
7145         * modules/manywarnings (Depends-on): Add warnings.
7146
7147         build: avoid compiler warnings
7148         * lib/select.c (rpl_select): Delete unused variable.
7149         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7150
7151 2009-11-18  Eric Blake  <ebb9@byu.net>
7152
7153         tests: avoid false negative with --with-packager
7154         * tests/test-version-etc.sh: Discard packager information.
7155         * tests/test-argp-version-etc-1.sh: Likewise.
7156         Reported by Mike Frysinger.
7157
7158         utimens: fix regression on Solaris
7159         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7160         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7161         can only change fd timestamps via futimesat.  Instead, use an
7162         additional witness macro to avoid BSD bug.
7163         Reported by Jim Meyering.
7164
7165 2009-11-17  Eric Blake  <ebb9@byu.net>
7166
7167         usleep: use it to simplify tests
7168         * modules/stat-time-tests (Depends-on): Add usleep.
7169         (configure.ac): Drop usleep check.
7170         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7171         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7172         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7173         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7174         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7175         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7176         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7177         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7178         Likewise.
7179         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7180         * tests/test-lchown.h (nap): Likewise.
7181         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7182         * tests/test-stat-time.c (nap): Likewise.
7183         * tests/test-utimens-common.h (nap): Update comments.
7184
7185         usleep: new module
7186         * modules/usleep: New file.
7187         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7188         * lib/usleep.c (usleep): Likewise.
7189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7190         * modules/unistd (Makefile.am): Substitute witnesses.
7191         * lib/unistd.in.h (usleep): Add declaration.
7192         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7193         * MODULES.html.sh (Date and time): Likewise.
7194         * modules/usleep-tests (Depends-on): New test.
7195         * tests/test-usleep.c: New file.
7196
7197         chown: work around OpenBSD bug
7198         * lib/chown.c (rpl_chown): Work around the bug.
7199         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7200         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7201         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7202         * modules/chown (Depends-on): Add stdbool.
7203         * modules/lchown (Depends-on): Likewise.
7204         * doc/posix-functions/chown.texi (chown): Document the bug.
7205         * doc/posix-functions/lchown.texi (lchown): Likewise.
7206         * tests/test-lchown.h (test_chown): Relax test.
7207
7208         mkstemp: avoid conflict with C++ keyword template
7209         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7210         * lib/mkostemp.c (mkostemp): Likewise.
7211         * lib/mkostemps.c (mkostemps): Likewise.
7212         * lib/mkstemp.c (mkstemp): Likewise.
7213         * lib/mkstemps.c (mkstemps): Likewise.
7214
7215         xalloc-die-tests: optimize
7216         * tests/test-xalloc-die.sh: Reduce number of processes.
7217
7218 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7219
7220         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7221         patch from ludo@gnu.org (Ludovic Courtès).
7222
7223 2009-11-17  Jim Meyering  <meyering@redhat.com>
7224
7225         version-etc: use proper license string
7226         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7227         * modules/version-etc-fsf: Likewise.
7228
7229 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7230
7231         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7232         printed to stdout.  Deal with EOL differences.
7233
7234 2009-11-17  Eric Blake  <ebb9@byu.net>
7235
7236         unsetenv: work around Solaris bug
7237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7238         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7239         Reported by Jim Meyering.
7240
7241         vasnprintf: avoid compiler warnings
7242         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7243         variables.
7244         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7245
7246 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7247
7248         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7249         settings since xalloc-die is no longer the self test,
7250         xalloc-die.sh is.
7251
7252 2009-11-17  Jim Meyering  <meyering@redhat.com>
7253
7254         test-xalloc-die.sh: make the code agree with the commit log
7255         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7256         at the end, just in case you happen to have a test-xalloc-die
7257         program in some other PATH directory.
7258
7259         test-xalloc-die.sh: fix a portability bug
7260         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7261         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7262         Otherwise, argv[0] (as often seen in diagnostics) would be too
7263         system-dependent, sometimes with, and sometimes without the leading "./".
7264
7265         version-etc-fsf: relax license to LGPLv3+
7266         * modules/version-etc-fsf (License): Relax license.
7267
7268 2009-11-16  Eric Blake  <ebb9@byu.net>
7269
7270         xalloc-die-tests: avoid printing null pointer
7271         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7272         shell script.
7273         * tests/test-xalloc-die.c (program_name): Declare.
7274         * tests/test-xalloc-die.sh (tmpfiles): New file.
7275
7276         setenv, unsetenv: work around various bugs
7277         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7278         (setenv) [HAVE_SETENV]: Work around bugs.
7279         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7281         for bugs.
7282         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7283         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7285         * modules/stdlib (Makefile.am): Update substitutions.
7286         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7287         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7288         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7289         * modules/setenv-tests: New test.
7290         * modules/unsetenv-tests: Likewise.
7291         * tests/test-setenv.c: New file.
7292         * tests/test-unsetenv.c: Likewise.
7293
7294 2009-11-16  Jim Meyering  <meyering@redhat.com>
7295
7296         version-etc: relax license to LGPLv3+
7297         * modules/version-etc (License): Relax license.
7298
7299         better AC_REQUIRE expanded-before-required-warning avoidance
7300         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7301         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7302         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7303         which is no longer needed.
7304
7305 2009-11-16  Eric Blake  <ebb9@byu.net>
7306
7307         test-freading: clean up temporary file
7308         * tests/test-freading.c (main): Remove file on success, and use
7309         ASSERT more liberally.
7310         Reported by Jim Meyering.
7311
7312 2009-11-16  Jim Meyering  <meyering@redhat.com>
7313
7314         avoid new AC_REQUIRE expanded-before-required warnings
7315         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7316         merely using it.
7317         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7318         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7319
7320 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7321
7322         * tests/test-xalloc-die.c: New file.
7323         * modules/xalloc-die-tests: New file.
7324         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7325         XFAIL_TESTS so it can be appended by modules.
7326
7327 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7328
7329         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7330         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7331
7332 2009-11-14  Eric Blake  <ebb9@byu.net>
7333
7334         fnmatch: avoid compiler warning
7335         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7336         to silence compiler warning about mismatch signedness in ?:.
7337         Reported by Robert Millan.
7338
7339         intprops: add double-inclusion guard
7340         * lib/intprops.h: Allow idempotent includes.
7341         Suggested by Bruce Korb.
7342
7343         openat: detect Solaris fchownat bug
7344         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7345         penalizing glibc chownat when only lchownat is broken.
7346         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7347         trailing slash bugs.
7348         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7349         * modules/openat-tests (Files): Include more files.
7350         (Depends-on): Add mgetgroups, sleep, stat-time.
7351         (configure.ac): Add additional checks.
7352         (Makefile.am): Build new test.
7353         * tests/test-fchownat.c: New file.
7354
7355         lchown: detect Solaris and FreeBSD bug
7356         * lib/lchown.c (rpl_lchown): Work around bug.
7357         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7359         * modules/unistd (Makefile.am): Populate it.
7360         * lib/unistd.in.h (lchown): Update declaration.
7361         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7362         * modules/lchown-tests: New file.
7363         * tests/test-lchown.h (test_lchown): Likewise.
7364         * tests/test-lchown.c (main): Likewise.
7365
7366         chown: detect Solaris and FreeBSD bug
7367         * lib/chown.c (rpl_chown): Work around bug.
7368         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7369         (gl_PREREQ_CHOWN): Delete.
7370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7371         * modules/unistd (Makefile.am): Populate it.
7372         * lib/unistd.in.h (chown): Update declaration.
7373         * lib/lchown.c (chown): Update client.
7374         * modules/lchown (Depends-on): Add lstat.
7375         * doc/posix-functions/chown.texi (chown): Document the bug.
7376         * doc/posix-functions/getgroups.texi (getgroups): Document
7377         getgroups pitfall.
7378         * modules/chown-tests: New file.
7379         * tests/test-chown.h (test_chown): Likewise.
7380         * tests/test-chown.c (main): Likewise.
7381
7382 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7383
7384         gnulib-tool: correctly detect absence of m4 directories
7385         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7386
7387 2009-11-14  Jim Meyering  <meyering@redhat.com>
7388
7389         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7390         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7391
7392 2009-11-14  John W. Eaton  <jwe@gnu.org>
7393
7394         strftime.h: wrap funtion declaration in extern "C" block
7395         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7396
7397 2009-11-13  Eric Blake  <ebb9@byu.net>
7398
7399         getgroups: avoid compiler warning
7400         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7401
7402         getgroups: work around FreeBSD bug
7403         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7404         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7405         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7406         * tests/test-getgroups.c (main): Fix buffer overrun.
7407
7408         getgroups: avoid compilation failure
7409         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7410         * modules/getgroups (Depends-on): Add stdint.
7411
7412 2009-11-13  Jim Meyering  <meyering@redhat.com>
7413
7414         test-getgroups: avoid compilation failure
7415         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7416
7417 2009-11-13  Eric Blake  <ebb9@byu.net>
7418
7419         mgetgroups: new module, taken from coreutils
7420         * modules/mgetgroups: New file.
7421         * lib/mgetgroups.h: Likewise.
7422         * lib/mgetgroups.c (mgetgroups): Likewise.
7423         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7424         * MODULES.html.sh (Users and groups): Mention it.
7425
7426         getgroups: don't expose GETGROUPS_T to user
7427         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7428         an element at a time if GETGROUPS_T is wrong size.
7429         * lib/getugroups.h (getugroups): Change signature.
7430         * lib/unistd.in.h (getgroups): Likewise.
7431         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7432         signature needs fixing.
7433         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7434         AC_TYPE_GETGROUPS.
7435         * modules/group-member (Depends-on): Add getgroups.
7436         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7437         (group_member): Rely on getgroups replacement.
7438         * lib/getugroups.c (getugroups): Use gid_t.
7439         * tests/test-getgroups.c (main): Likewise.
7440         * NEWS: Mention the signature change.
7441         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7442         problem with signature.
7443         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7444         GETGROUPS_T is still useful for setgroups.
7445
7446         getgroups, getugroups: provide stubs for mingw
7447         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7448         * lib/getugroups.c (getugroups): Likewise.
7449         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7450         function.  Modernize replacement scheme.
7451         (gl_PREREQ_GETGROUPS): Delete.
7452         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7453         * modules/getgroups (configure.ac): Declare witness.
7454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7455         * modules/unistd (Depends-on): Substitute witness.
7456         * lib/unistd.in.h (getgroups): Declare replacement.
7457
7458         getgroups: avoid calling exit
7459         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7460         drop xalloc.
7461         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7462         dependencies.
7463         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7464         exiting, in the rare case of malloc failure.
7465
7466         getgroups: fix logic error
7467         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7468         has more than 20 groups.
7469         * modules/getgroups-tests: New test.
7470         * tests/test-getgroups.c: New file.
7471
7472 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7473
7474         * tests/test-base64.c: Improve.
7475
7476 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7477
7478         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7479         Blake <ebb9@byu.net>.
7480
7481 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7482
7483         * tests/test-xvasprintf.c: Add %s%s related checks.
7484
7485 2009-11-12  Eric Blake  <ebb9@byu.net>
7486
7487         version-etc: match standards.texi style
7488         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7489         and use <> only for URLs.
7490
7491 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7492
7493         fts: do not fail on a submount during traversal
7494         * lib/fts.c (fts_build): Read the stat info again after opening
7495         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7496         Original report at http://bugzilla.redhat.com/501848.
7497
7498 2009-11-12  Jim Meyering  <meyering@redhat.com>
7499
7500         bootstrap: sync from coreutils
7501         * build-aux/bootstrap (bootstrap_epilogue): New function.
7502         Use git_modules_config in one more place.  This make bootstrap's
7503         --gnulib-srcdir option more useful for testing.
7504
7505         bootstrap: generalize autoheader check
7506         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7507         AC_CONFIG_HEADERS.
7508
7509 2009-11-11  Eric Blake  <ebb9@byu.net>
7510
7511         mkfifoat: use new modules for Solaris and BSD bugs
7512         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7513         * lib/mkfifoat.c (mknodat): Split...
7514         * lib/mknodat.c (mknodat): ...into new file.
7515         * modules/mkfifoat (Files): Ship new file.
7516         (Depends-on): Add mkfifo, mknod.
7517         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7518         (Depends-on): Add symlink.
7519         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7520         redundant with test_mkfifo.h.
7521         (do_mkfifoat, do_mknodat): New helpers.
7522
7523         mknod: new module
7524         * modules/mknod: New file.
7525         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7526         * lib/mknod.c (mknod): Likewise.
7527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7528         defaults.
7529         * modules/sys_stat (Makefile.am): Substitute them.
7530         * lib/sys_stat.in.h (mknod): Declare replacement.
7531         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7532         Document it.
7533         * doc/posix-functions/mknod.texi (mknod): Likewise.
7534         * modules/mknod-tests: New test.
7535         * tests/test-mknod.c: Likewise.
7536
7537         mkfifo: new module
7538         * modules/mkfifo: New file.
7539         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7540         * lib/mkfifo.c (mkfifo): Likewise.
7541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7542         defaults.
7543         * modules/sys_stat (Makefile.am): Substitute them.
7544         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7545         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7546         Document it.
7547         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7548         * modules/mkfifo-tests: New test.
7549         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7550         from test-mkfifoat.c.
7551         * tests/test-mkfifo.c: New file.
7552
7553         readlink: detect FreeBSD bug
7554         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7555         slash on symlink.
7556         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7557         * tests/test-readlink.h (test_readlink): Enhance test.
7558
7559         symlink: detect FreeBSD bug
7560         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7561         slash on symlink.
7562         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7563         * tests/test-symlink.h (test_symlink): Enhance test.
7564
7565 2009-11-10  Eric Blake  <ebb9@byu.net>
7566
7567         link: detect FreeBSD bug
7568         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7569         symlink.
7570         * doc/posix-functions/link.texi (link): Document the bug.
7571         * tests/test-link.h (test_link): Enhance test.
7572         * tests/test-linkat.c (main): Update caller.
7573
7574         unlink, remove: detect FreeBSD bug
7575         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7576         slash on symlink.
7577         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7578         * doc/posix-functions/remove.texi (remove): Likewise.
7579         * tests/test-unlink.h (test_unlink): Enhance test.
7580         * tests/test-remove.c (main): Likewise.
7581
7582 2009-11-09  Eric Blake  <ebb9@byu.net>
7583
7584         rename: detect FreeBSD bug
7585         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7586         slash on symlink.
7587         * modules/renameat-tests (Depends-on): Add filenamecat.
7588         * tests/test-rename.h (test_rename): Allow one more errno.
7589         * tests/test-renameat.c (main): Likewise.
7590         * doc/posix-functions/rename.texi (rename): Document the bug.
7591
7592         open: detect FreeBSD bug
7593         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7594         symlink.
7595         * doc/posix-functions/open.texi (open): Document the bug.
7596         * doc/posix-functions/utimes.texi (utimes): Likewise.
7597         * tests/test-open.h (test_open): Add parameters, and test symlink
7598         handling.
7599         * tests/test-open.c (main): Adjust caller.
7600         * tests/test-fcntl-safer.c (main): Likewise.
7601         * modules/open-tests (Depends-on): Add stdbool, symlink.
7602         * modules/fcntl-safer-tests (Depends-on): Likewise.
7603         * tests/test-openat.c (main): Add test-open tests.
7604
7605         stat: detect FreeBSD bug
7606         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7607         symlink.
7608         * doc/posix-functions/stat.texi (stat): Document the bug.
7609         * tests/test-stat.h (test_stat_func): Add argument.
7610         * tests/test-stat.c (main): Adjust caller.
7611         * tests/test-fstatat.c (main): Likewise.
7612         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7613         Reported by Jim Meyering.
7614
7615 2009-11-09  James Youngman  <jay@gnu.org>
7616
7617         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7618         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7619
7620 2009-11-08  Jim Meyering  <meyering@redhat.com>
7621
7622         utimens: remove invalid futimesat call
7623         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7624         It used the file descriptor of the target file as the DIR_FD
7625         parameter and NULL as the file name.  That caused failure with
7626         errno == EFAULT on FreeBSD-8.0-rc2
7627
7628 2009-11-07  Eric Blake  <ebb9@byu.net>
7629
7630         fflush, freadseek: use fseeko, not fseek
7631         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7632         (clear_ungetc_buffer): Avoid potential problems on large files.
7633         * lib/freadseek.c (freadseek): Likewise.
7634         * modules/freadseek (Depends-on): Add fseeko.
7635         * modules/fseek (configure.ac): Set a witness.
7636         * tests/test-fflush.c (main): Use fseeko.
7637         * tests/test-fpurge.c (fseek): Disable link warning.
7638         * tests/test-freadable.c (fseek): Likewise.
7639         * tests/test-freading.c (fseek): Likewise.
7640         * tests/test-fseeko.c (fseek): Likewise.
7641         * tests/test-ftell.c (fseek): Likewise.
7642         * tests/test-ftello.c (fseek): Likewise.
7643         * tests/test-fwritable.c (fseek): Likewise.
7644         * tests/test-fwriting.c (fseek): Likewise.
7645
7646 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7647
7648         * modules/memchr (Depends-on): Drop getpagesize dependency.
7649
7650 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7651
7652         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7653         Reported by Ludovic Courtès.
7654         * build-aux/pmccabe2html: Improve example usage.
7655         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7656
7657 2009-11-06  Jim Meyering  <meyering@redhat.com>
7658
7659         do-release-commit-and-tag: New module.
7660         Automate the release-commit and tag process.
7661         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7662         * modules/do-release-commit-and-tag: New file.
7663         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7664
7665 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7666
7667         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7668         because test-select.c uses inet_pton.
7669
7670 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7671
7672         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7673         GETADDRINFO_LIB.  Bump serial number.
7674         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7675         Suggested by Eric Blake <ebb9@byu.net>.
7676
7677 2009-11-05  Eric Blake  <ebb9@byu.net>
7678
7679         strtod: detect darwin bug
7680         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7681         Reported by Leo Davis.
7682
7683         freopen-safer: new module
7684         * modules/freopen-safer: New module.
7685         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7686         * lib/freopen-safer.c (freopen_safer): New file.
7687         * lib/stdio-safer.h (freopen_safer): New declaration.
7688         * lib/stdio--.h (freopen): New override.
7689         * MODULES.html.sh (File stream based Input/Output): Mention it.
7690         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7691         freopen-safer module.
7692         * doc/posix-functions/stderr.texi (stderr): Likewise.
7693         * doc/posix-functions/stdin.texi (stdin): Likewise.
7694         * doc/posix-functions/stdout.texi (stdout): Likewise.
7695         * modules/freopen-safer-tests: New test.
7696         * tests/test-reopen-safer.c: New file.
7697
7698 2009-11-05  Jim Meyering  <meyering@redhat.com>
7699
7700         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7701         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7702
7703 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7704
7705         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7706
7707 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7708
7709         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7710
7711 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7712
7713         Fix link error.
7714         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7715         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7716
7717 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7718
7719         * tests/test-func.c: Also test value of __func__.
7720
7721 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7722
7723         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7724         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7725
7726 2009-11-05  Bruno Haible  <bruno@clisp.org>
7727
7728         Fix link error.
7729         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7730         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7731         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7732
7733 2009-11-05  Bruno Haible  <bruno@clisp.org>
7734
7735         Tests for module 'inet_pton'.
7736         * modules/inet_pton-tests: New file.
7737         * tests/test-inet_pton.c: New file.
7738
7739 2009-11-05  Bruno Haible  <bruno@clisp.org>
7740
7741         Tests for module 'inet_ntop'.
7742         * modules/inet_ntop-tests: New file.
7743         * tests/test-inet_ntop.c: New file.
7744
7745 2009-11-04  Eric Blake  <ebb9@byu.net>
7746
7747         stdlib-safer: wrap all mkstemp variants
7748         * modules/mkostemp (configure.ac): Set witness.
7749         * modules/mkostemps (configure.ac): Likewise.
7750         * modules/mkstemps (configure.ac): Likewise.
7751         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7752         (mkstemps_safer): Wrap more functions.
7753         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7754         wrapping.
7755         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7756         (mkstemps_safer): Implement the wrappers.
7757
7758         mkstemps, mkostemps: new modules
7759         * modules/mkostemps: New module.
7760         * modules/mkstemps: Likewise.
7761         * lib/mkostemps.c (mkostemps): New file.
7762         * lib/mkstemps.c (mkstemps): Likewise.
7763         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7764         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7766         * modules/stdlib (Makefile.am): Substitute them.
7767         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7768         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7769         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7770         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7771         * MODULES.html.sh (File system functions): Mention them.
7772
7773         tempname: resync from glibc
7774         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7775         same values for __GT_FILE as glibc.  Abort even when assertions
7776         are disabled.
7777         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7778         match its value otherwise.  Allow idempotent inclusion.
7779         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7780         * lib/mkostemp.c (mkostemp): Likewise.
7781         * lib/mkstemp.c (mkstemp): Likewise.
7782         * lib/tmpfile.c (tmpfile): Likewise.
7783         * NEWS: Document this.
7784
7785         utimens: fix use of futimens on older Linux
7786         * lib/utimens.c (fdutimens): Use updated, rather than original,
7787         timespec to avoid bug in older Linux kernel.
7788         Reported by Simon Josefsson.
7789
7790 2009-11-04  Bruno Haible  <bruno@clisp.org>
7791
7792         Make num_processors more flexible and consistent.
7793         * lib/nproc.h (enum nproc_query): New type.
7794         (num_processors): Add a 'query' argument.
7795         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7796         (num_processors): Add a 'query' argument. Test the value of the
7797         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7798         mingw, count the number of CPUs available for the current process.
7799         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7800         Check for sched_getaffinity and sched_getaffinity_np.
7801         * modules/nproc (Depends-on): Add c-ctype, extensions.
7802         * NEWS: Mention the change.
7803
7804 2009-11-03  Bruno Haible  <bruno@clisp.org>
7805
7806         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7807
7808 2009-11-03  Jim Meyering  <meyering@redhat.com>
7809
7810         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7811         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7812         if it is defined.
7813
7814 2009-11-02  Eric Blake  <ebb9@byu.net>
7815
7816         mktime, timegm: share common declaration
7817         * lib/mktime-internal.h: New file.
7818         * lib/mktime.c: Use it rather than open-coding a declaration.
7819         * lib/timegm.c: Likewise.
7820         * modules/mktime (Files): Ship it.
7821         * modules/timegm (Files): Likewise.
7822         Suggested by Bruno Haible.
7823
7824         test-update-copyright: update test to match script changes
7825         * tests/test-update-copyright.sh: Avoid hard-coding perl
7826         location.  Don't update *.bak created by earlier runs.
7827
7828 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7829             Simon Josefsson  <simon@josefsson.org>
7830             Bruno Haible  <bruno@clisp.org>
7831
7832         Fix link error on Solaris 8.
7833         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7834         also in libnsl. Define also INET_PTON_LIB.
7835         * modules/inet_pton (Link): New section.
7836
7837 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7838             Bruno Haible  <bruno@clisp.org>
7839
7840         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7841         * modules/inet_ntop (Link): New section.
7842         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7843
7844 2009-11-02  Eric Blake  <ebb9@byu.net>
7845
7846         maint: avoid compiler warnings in m4 macros
7847         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7848         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7849
7850 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7851
7852         * m4/pmccabe2html.m4: Remove file.
7853         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7854         function.  Change maintainer.
7855         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7856         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7857         Courtès).
7858
7859 2009-10-31  Eric Blake  <ebb9@byu.net>
7860
7861         fseeko: fix m4 regression
7862         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7863         regression from 2009-10-27.
7864         Reported by Ralf Wildenhues.
7865
7866 2009-10-31  Jim Meyering  <meyering@redhat.com>
7867
7868         inttostr: aesthetics and improved (compile-time) safety
7869         Define inttype_is_signed rather than inttype_is_unsigned,
7870         since the sole use is via "#if inttype_is_signed".
7871         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7872         inttype_is_unsigned.
7873         * lib/offtostr.c (inttype_is_signed): Likewise.
7874         * lib/uinttostr.c (inttype_is_signed): Likewise.
7875         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7876         * lib/inttostr.c (inttostr): Use verify to cross-check the
7877         inttype_is_signed value and the signedness of the actual type.
7878         * modules/inttostr (Depends-on): Add verify.
7879
7880 2009-10-30  Eric Blake  <ebb9@byu.net>
7881
7882         build: avoid compiler warnings
7883         * lib/fchmodat.c (lchmod): Mark unused variables.
7884         * lib/getopt.c (_getopt_initialize): Likewise.
7885         * lib/mktime.c (__mktime_internal): Provide prototype.
7886         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7887         older gcc that do not understand #pragma GCC diagnostic.
7888         * lib/uinttostr.c (inttype_is_unsigned): Define.
7889         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7890
7891 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7892
7893         stat: fix compilation on AIX
7894         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7895         only see struct stat64.
7896
7897 2009-10-30  Eric Blake  <ebb9@byu.net>
7898
7899         exclude: make more robust
7900         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7901         rather than masking a coding bug.
7902         Suggested by Bruno Haible.
7903
7904 2009-10-30  Jim Meyering  <meyering@redhat.com>
7905
7906         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7907         Rather than putting #!/usr/bin/perl on the first line,
7908         start with a variant of what's recommended by "man perlrun" that
7909         invokes the first "perl" program from your shell's search path.
7910         * build-aux/gitlog-to-changelog: Replace #!... as above.
7911         Add a "Local Variables" perl mode setting.
7912         Prompted by a patch from Ludovic Courtès.
7913         Improved by Eric Blake.
7914         * build-aux/useless-if-before-free: Likewise.
7915         * build-aux/announce-gen: Likewise.
7916         * build-aux/update-copyright: Likewise.
7917
7918 2009-10-29  Eric Blake  <ebb9@byu.net>
7919
7920         filenamecat-lgpl: adjust clients
7921         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7922         filenamecat.
7923         * modules/renameat (Depends-on): Likewise.
7924
7925         filenamecat: split into filenamecat-lgpl
7926         * modules/filenamecat-lgpl: New module.
7927         * modules/filenamecat (Files): Move library-safe files into
7928         filenamecat-lgpl.
7929         (Depends-on): Add filenamecat-lgpl.
7930         (configure.ac): Declare witness.
7931         * lib/filenamecat.h (file_name_concat): Only declare when using
7932         GPL module.
7933         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7934         Move...
7935         * lib/filenamecat-lgpl.c: ...into new file.
7936         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7937         (gl_FILE_NAME_CONCAT): Use it.
7938         * MODULES.html.sh (File system functions): Mention new module.
7939
7940         argp: avoid memory leak
7941         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7942         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7943         base_name, since the latter malloc()s and can call exit().
7944         Leak introduced 2006-07-03.
7945
7946         dirname-lgpl: adjust clients that don't need full dirname
7947         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7948         * modules/filenamecat (Depends-on): Likewise.
7949         * modules/linkat (Depends-on): Likewise.
7950         * modules/mkancesdirs (Depends-on): Likewise.
7951         * modules/mkdir (Depends-on): Likewise.
7952         * modules/openat (Depends-on): Likewise.
7953         * modules/savewd (Depends-on): Likewise.
7954         * modules/rename (Depends-on): Likewise.
7955         (License): Relax license.
7956         * modules/mkdir-tests (Depends-on): Drop progname.
7957         (Makefile.am): Delete unneeded LDADD.
7958         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7959
7960         dirname: split into dirname-lgpl
7961         * modules/dirname-lgpl: New module.
7962         * modules/dirname (Files): Move library-safe files into
7963         dirname-lgpl.
7964         (Depends-on): Add dirname-lgpl.
7965         (configure.ac): Declare witness.
7966         * modules/double-slash-root (License): Relax license.
7967         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7968         module.
7969         * lib/dirname.c (dir_len, mdir_name): Move...
7970         * lib/dirname-lgpl.c: ...into new file.
7971         * lib/basename.c (last_component, base_len): Move...
7972         * lib/basename-lgpl.c: ...into new file.
7973         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7974         (gl_DIRNAME): Use it.
7975         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7976         Mention new module.
7977         * modules/dirname-tests (Depends-on): Add progname.
7978         * tests/test-dirname.c (program_name): Delete.
7979
7980         mkdir: make safe for libraries
7981         * modules/mkdir (Depends-on): Drop xalloc.
7982         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7983         exit.
7984
7985         tests: avoid some compiler warnings
7986         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7987         literals.
7988         * tests/test-memchr.c (main): Avoid type mismatch.
7989         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7990         * tests/test-base64.c (main): Likewise.
7991         * tests/test-getdelim.c (main): Likewise.
7992         * tests/test-gethostname.c (main): Likewise.
7993         * tests/test-getline.c (main): Likewise.
7994         * tests/test-netinet_in.c (main): Likewise.
7995         * tests/test-select.c (open_server_socket, main): Likewise.
7996         * tests/test-select-stdin.c (main): Likewise.
7997         * tests/test-sockets.c (main): Likewise.
7998         * tests/test-strsignal.c (main): Likewise.
7999         * tests/test-sys_select.c (main): Likewise.
8000         * tests/test-sys_socket.c (main): Likewise.
8001         * tests/test-u64.c (main): Likewise.
8002         * tests/test-xfprintf-posix.c (main): Likewise.
8003         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8004
8005         sockets: avoid compiler warning
8006         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8007
8008         maint: detect usage(1) and other suspicious exits
8009         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8010
8011 2009-10-29  Jim Meyering  <meyering@redhat.com>
8012
8013         timespec: long-to-int truncation could make timespec_cmp malfunction
8014         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8015         a multiple of 2^32 nanoseconds as no difference.
8016
8017 2009-10-28  Jim Meyering  <meyering@redhat.com>
8018
8019         fprintftime: wrap macro code argument in "do {...} while(0)"
8020         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8021         cpy macro must be a statement that can be followed by a semicolon.
8022         Now that the else clause contains a comment and is hence longer
8023         than one line, I require curly braces.  That in turn requires
8024         that we wrap this code block in the standard do...while(0).
8025
8026         fprintftime: remove stray semicolon from previous change
8027         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8028
8029         fprintftime: avoid a warning about ignored fwrite return value
8030         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8031         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8032         that is unsafe.
8033         * modules/fprintftime (Depends-on): Add ignore-value.
8034
8035         exclude: avoid an unwarranted warning
8036         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8037
8038 2009-10-27  Eric Blake  <ebb9@byu.net>
8039
8040         fseek: avoid compilation failure when fflush is replaced
8041         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8042         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8043         module is in use.
8044         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8045         module is not in use; since REPLACE_FSEEK worked otherwise.
8046         (GNULIB_FTELLO): Likewise for ftell.
8047         Reported by Ian Beckwith and others.
8048
8049 2009-10-27  Bruno Haible  <bruno@clisp.org>
8050
8051         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8052         Reported by Jim Meyering.
8053
8054 2009-10-27  Jim Meyering  <jim@meyering.net>
8055             Bruno Haible  <bruno@clisp.org>
8056
8057         Avoid warning despite dropping the return value of fwrite.
8058         * lib/unicodeio.c: Include ignore-value.h.
8059         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8060         * modules/unicodeio (Depends-on): Add ignore-value.
8061
8062 2009-10-26  Eric Blake  <ebb9@byu.net>
8063
8064         areadlinkat: fix fallback path
8065         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8066         pointer and zero.
8067
8068 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8069
8070         Use a better IO block size for modern systems
8071         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8072         * lib/md2.c: Likewise.
8073         * lib/md4.c: Likewise.
8074         * lib/md5.c: Likewise.
8075         * lib/sha1.c: Likewise.
8076         * lib/sha256.c: Likewise.
8077         * lib/sha512.c: Likewise.
8078
8079 2009-10-22  Eric Blake  <ebb9@byu.net>
8080
8081         tests: avoid several compiler warnings
8082         * tests/test-getcwd.c (main): Avoid buffer underflow.
8083         * tests/test-getdate.c (main): String literals are not safe with
8084         putenv, so use setenv.  Declare unused argument.
8085         * modules/getdate-tests (Depends-on): Add setenv.
8086         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8087         problems with string literals in char *.
8088         * tests/test-hash.c (main): Avoid shadowing declaration.
8089         (insert_new): Treat string literals as char const *.
8090         * tests/test-getopt.h (test_getopt): Likewise.
8091         (getopt_loop): Alter types to minimize casting elsewhere.
8092         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8093         (test_getopt_long_posix): Likewise.
8094         (do_getopt_long): Add wrapper to minimize casting.
8095         * tests/test-atexit.c (clear_temp_file): Use void.
8096         * tests/test-areadlink-with-size.c (main): Declare unused
8097         arguments.
8098         * tests/test-areadlink.c (main): Likewise.
8099         * tests/test-areadlinkat-with-size.c (main): Likewise.
8100         * tests/test-areadlinkat.c (main): Likewise.
8101         * tests/test-canonicalize-lgpl.c (main): Likewise.
8102         * tests/test-canonicalize.c (main): Likewise.
8103         * tests/test-dirent-safer.c (main): Likewise.
8104         * tests/test-dirname.c (main): Likewise.
8105         * tests/test-dup2.c (main): Likewise.
8106         * tests/test-fchdir.c (main): Likewise.
8107         * tests/test-fcntl-h.c (main): Likewise.
8108         * tests/test-fcntl-safer.c (main): Likewise.
8109         * tests/test-fdopendir.c (main): Likewise.
8110         * tests/test-fdutimensat.c (main): Likewise.
8111         * tests/test-fflush.c (main): Likewise.
8112         * tests/test-filenamecat.c (main): Likewise.
8113         * tests/test-filevercmp.c (main): Likewise.
8114         * tests/test-fopen-safer.c (main): Likewise.
8115         * tests/test-fopen.c (main): Likewise.
8116         * tests/test-fpending.c (main): Likewise.
8117         * tests/test-fpurge.c (main): Likewise.
8118         * tests/test-freading.c (main): Likewise.
8119         * tests/test-fstatat.c (main): Likewise.
8120         * tests/test-fsync.c (main): Likewise.
8121         * tests/test-futimens.c (main): Likewise.
8122         * tests/test-getndelim2.c (main): Likewise.
8123         * tests/test-gettimeofday.c (main): Likewise.
8124         * tests/test-getopt.c (main): Likewise.
8125         * tests/test-i-ring.c (main): Likewise.
8126         * tests/test-inttypes.c (main): Likewise.
8127         * tests/test-link.c (main): Likewise.
8128         * tests/test-lstat.c (main): Likewise.
8129         * tests/test-math.c (main): Likewise.
8130         * tests/test-md5.c (main): Likewise.
8131         * tests/test-memchr2.c (main): Likewise.
8132         * tests/test-memrchr.c (main): Likewise.
8133         * tests/test-mkdir.c (main): Likewise.
8134         * tests/test-mkdirat.c (main): Likewise.
8135         * tests/test-mkfifoat.c (main): Likewise.
8136         * tests/test-open.c (main): Likewise.
8137         * tests/test-openat-safer.c (main): Likewise.
8138         * tests/test-openat.c (main): Likewise.
8139         * tests/test-quotearg.c (main): Likewise.
8140         * tests/test-rawmemchr.c (main): Likewise.
8141         * tests/test-readlink.c (main): Likewise.
8142         * tests/test-remove.c (main): Likewise.
8143         * tests/test-rename.c (main): Likewise.
8144         * tests/test-renameat.c (main): Likewise.
8145         * tests/test-rmdir.c (main): Likewise.
8146         * tests/test-sha1.c (main): Likewise.
8147         * tests/test-signal.c (main): Likewise.
8148         * tests/test-sigaction.c (main): Likewise.
8149         * tests/test-stat.c (main): Likewise.
8150         * tests/test-stat-time.c (main): Likewise.
8151         * tests/test-stddef.c (main): Likewise.
8152         * tests/test-stdint.c (main): Likewise.
8153         * tests/test-stdio.c (main): Likewise.
8154         * tests/test-stdlib.c (main): Likewise.
8155         * tests/test-strchrnul.c (main): Likewise.
8156         * tests/test-strerror.c (main): Likewise.
8157         * tests/test-string.c (main): Likewise.
8158         * tests/test-strtod.c (main): Likewise.
8159         * tests/test-strverscmp.c (main): Likewise.
8160         * tests/test-symlink.c (main): Likewise.
8161         * tests/test-symlinkat.c (main): Likewise.
8162         * tests/test-sys_stat.c (main): Likewise.
8163         * tests/test-sys_time.c (main): Likewise.
8164         * tests/test-time.c (main): Likewise.
8165         * tests/test-unistd.c (main): Likewise.
8166         * tests/test-unlink.c (main): Likewise.
8167         * tests/test-unlinkat.c (main): Likewise.
8168         * tests/test-utimens.c (main): Likewise.
8169         * tests/test-utimensat.c (main): Likewise.
8170         * tests/test-version-etc.c (main): Likewise.
8171         * tests/test-wchar.c (main): Likewise.
8172         * tests/test-wctype.c (main): Likewise.
8173         * tests/test-xprintf-posix.c (main): Likewise.
8174         * tests/test-posixtm.c (main): Likewise.
8175         (STREQ): Delete unused macro.
8176         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8177         shadowed variables.
8178         * tests/test-memchr.c (main): Likewise.
8179
8180 2009-10-21  Eric Blake  <ebb9@byu.net>
8181
8182         areadlinkat: avoid failure on older glibc
8183         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8184         rather than mis-comparing 0 against FUNC_RESULT of char*.
8185
8186 2009-10-21  Bruno Haible  <bruno@clisp.org>
8187
8188         * modules/stpncpy (License): Relicense under LGPLv2+.
8189         Reported by David Lutterkort <lutter@redhat.com>.
8190
8191 2009-10-20  Eric Blake  <ebb9@byu.net>
8192
8193         utimensat: work around Solaris 9 bug
8194         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8195         has trailing slash bugs.
8196         * tests/test-lutimens.h (test_lutimens): Enhance test.
8197         * tests/test-utimens.h (test_utimens): Likewise.
8198         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8199         * doc/posix-functions/utimes.texi (utimes): Likewise.
8200         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8201         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8202         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8203         * doc/posix-functions/futimens.texi (futimens): Likewise.
8204
8205         fdutimensat: new module
8206         * modules/fdutimensat: New file.
8207         * lib/fdutimensat.c (fdutimensat): Likewise.
8208         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8209         * MODULES.html.sh (File system functions): Mention module.
8210         * modules/fdutimensat-tests: New test.
8211         * tests/test-fdutimensat.c: Likewise.
8212
8213         doc: regenerate INSTALL
8214         * doc/INSTALL: Reflect recent autoconf update.
8215         * doc/INSTALL.ISO: Likewise.
8216         * doc/INSTALL.UTF-8: Likewise.
8217
8218 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8219
8220         acl: warn if ACL support is not detected
8221         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8222
8223 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8224
8225         * lib/nproc.h: Add extern "C" block for C++.
8226
8227 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8228             Bruno Haible  <bruno@clisp.org>
8229
8230         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8231         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8232         * doc/posix-functions/isalpha.texi: Likewise.
8233         * doc/posix-functions/isblank.texi: Likewise.
8234         * doc/posix-functions/iscntrl.texi: Likewise.
8235         * doc/posix-functions/isdigit.texi: Likewise.
8236         * doc/posix-functions/isgraph.texi: Likewise.
8237         * doc/posix-functions/islower.texi: Likewise.
8238         * doc/posix-functions/isprint.texi: Likewise.
8239         * doc/posix-functions/ispunct.texi: Likewise.
8240         * doc/posix-functions/isspace.texi: Likewise.
8241         * doc/posix-functions/isupper.texi: Likewise.
8242         * doc/posix-functions/isxdigit.texi: Likewise.
8243
8244 2009-10-18  Bruno Haible  <bruno@clisp.org>
8245
8246         Tests for module 'isblank'.
8247         * modules/isblank-tests: New file.
8248         * tests/test-isblank.c: New file.
8249
8250         New module 'isblank'.
8251         * lib/isblank.c: New file.
8252         * m4/isblank.m4: New file.
8253         * modules/isblank: New file.
8254         * doc/posix-functions/isblank.texi: Mention the new module.
8255
8256 2009-10-18  Bruno Haible  <bruno@clisp.org>
8257
8258         New module 'ctype'.
8259         * lib/ctype.in.h: New file.
8260         * m4/ctype.m4: New file.
8261         * modules/ctype: New file.
8262         * doc/posix-headers/ctype.texi: Mention the new module.
8263
8264 2009-10-18  Jim Meyering  <meyering@redhat.com>
8265
8266         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8267         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8268         right after its initialization, rather than farther down.
8269         Keeping these in close proximity makes it easier to ensure
8270         that each such variable is initialized.  E.g.,
8271
8272             LIB_CLOCK_GETTIME=
8273             AC_SUBST([LIB_CLOCK_GETTIME])
8274
8275         This change also increments these serial numbers.
8276         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8277         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8279
8280 2009-10-18  Bruno Haible  <bruno@clisp.org>
8281
8282         Don't let environment variables perturb build.
8283         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8284         (gl_PREREQ_GETHRXTIME): ... not here.
8285
8286 2009-10-18  Bruno Haible  <bruno@clisp.org>
8287
8288         Avoid symlink attack in localcharset module.
8289         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8290         (O_NOFOLLOW): Define fallback.
8291         (get_charset_aliases): Don't open the file if it is a symbolic link.
8292         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8293         gl_FCNTL_H.
8294         (gl_FCNTL_H): Require it.
8295         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8296         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8297         Reported by Fergal Glynn <fglynn@veracode.com>.
8298
8299 2009-10-18  Bruno Haible  <bruno@clisp.org>
8300
8301         Implement nproc for mingw.
8302         * lib/nproc.c: Include <windows.h>
8303         (num_processors): On native Windows platforms, try GetSystemInfo.
8304
8305 2009-10-18  Bruno Haible  <bruno@clisp.org>
8306
8307         Implement nproc for IRIX.
8308         * lib/nproc.c: Include <sys/sysmp.h>.
8309         (num_processors): On IRIX systems, try sysmp.
8310         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8311
8312 2009-10-18  Bruno Haible  <bruno@clisp.org>
8313
8314         Implement nproc for HP-UX.
8315         * lib/nproc.c: Include <sys/pstat.h>
8316         (num_processors): On HP-UX systems, try pstat_getdynamic.
8317         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8318         pstat_getdynamic.
8319
8320 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8321             Bruno Haible  <bruno@clisp.org>
8322
8323         Implement nproc for NetBSD, OpenBSD.
8324         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8325         (ARRAY_SIZE): New macro.
8326         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8327         * m4/nproc.m4: New file.
8328         * modules/nproc (Files): Add m4/nproc.m4.
8329         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8330         (Makefile.am): Instead, augment lib_SOURCES.
8331
8332 2009-10-18  Bruno Haible  <bruno@clisp.org>
8333
8334         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8335         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8336         sys/param.h.
8337
8338 2009-10-16  Eric Blake  <ebb9@byu.net>
8339
8340         utimensat: new module
8341         * modules/utimensat: New file.
8342         * lib/utimensat.c (utimensat): Likewise.
8343         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8344         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8345         so we can work around Linux bugs.
8346         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8347         * modules/sys_stat (Makefile.am): Substitute them.
8348         * lib/sys_stat.in.h (utimensat): Declare it.
8349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8350         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8351         * modules/utimensat-tests: New test.
8352         * tests/test-utimensat.c: Likewise.
8353
8354         utimens: let lutimens work on non-symlinks
8355         * lib/utimens.c (lutimens): Fall back to utimens rather than
8356         failing with ENOSYS, when file is not a symlink.
8357         (utimens): Reduce redirection.
8358         * tests/test-lutimens.h (test_lutimens): Update test to cover
8359         non-symlinks.
8360         * tests/test-utimens.h (test_utimens): Update test to cover
8361         symlinks.
8362         * tests/test-utimens.c (main): Update caller.
8363
8364         utimens: cache whether utimensat syscall works
8365         * lib/utimens.c (utimensat_works_really): New cache variable.
8366         (fdutimens, lutimens): Use it to avoid failing syscall.
8367
8368         test-stat-time, test-utimens: improve portability
8369         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8370         ext4 on alpha, and for cygwin.
8371         * tests/test-utimens-common.h: New file.
8372         (nap): Factor delays into single function.
8373         * tests/test-lutimens.h (test_lutimens): Use new header.
8374         * tests/test-futimens.h (test_futimens): Likewise.
8375         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8376         timestamps to occur from same machine, as was done previously for
8377         test_utimens.
8378         * modules/utimens-tests (Files): Ship new file.
8379         * modules/futimens-tests (Files): Likewise.
8380         Reported in part by Jim Meyering.
8381
8382         sys_stat: sort replacement declarations
8383         * lib/sys_stat.in.h: Sort declarations.
8384         * lib/futimens.c (futimens): Fix typo.
8385
8386 2009-10-15  Jim Meyering  <meyering@redhat.com>
8387
8388         don't let environment settings perturb build
8389         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8390         could cause a configure-time and/or build-time malfunction.
8391         Typically, a configure-time function-in-library test is performed
8392         via code like this:
8393
8394           LIB_VAR=
8395           AC_SUBST([LIB_VAR])
8396           prefix_saved_LIBS=$LIBS
8397             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8398                        [test "$ac_cv_search_FUNC" = "none required" ||
8399                         LIB_VAR=$ac_cv_search_FUNC])
8400           LIBS=$prefix_saved_LIBS
8401
8402         However, in each of the files affected by this change, the LIB_VAR=
8403         initialization was omitted.  Thus, when set in the environment, its
8404         value would propagate into generated Makefiles when FUNC is not found
8405         in LIB_NAME.
8406         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8407         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8409
8410 2009-10-14  Eric Blake  <ebb9@byu.net>
8411
8412         fchdir: avoid infinite recursion in mingw
8413         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8414         recursing.
8415
8416         test-stat-time: port to mingw
8417         * tests/test-stat-time.c (force_unlink): Return a value.
8418         (test_ctime) [W32]: Fix compilation error.
8419         (nap): Don't call usleep with too large an argument.  Use
8420         force_unlink.
8421         * doc/pastposix-functions/usleep.texi (usleep): Document the
8422         portability issue.
8423
8424 2009-10-13  Jim Meyering  <meyering@redhat.com>
8425
8426         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8427         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8428         * modules/pipe-filter-ii: Likewise.
8429         * modules/sys_socket-tests: Likewise.
8430         * modules/tsearch-tests: Likewise.
8431         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8432         (check): Depend on it.
8433
8434 2009-10-12  Eric Blake  <ebb9@byu.net>
8435
8436         utimens-tests: port to NFS file systems
8437         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8438         comparisons to avoid spurious failures from timestamp drift
8439         between NFS machines.
8440
8441 2009-10-12  Eric Blake  <ebb9@byu.net>
8442
8443         stat-time-tests: minor cleanups
8444         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8445         * tests/test-stat-time.c (nap): Separate assignment from call.
8446         Suggested by Paolo Bonzini and Bruno Haible.
8447
8448         sys_stat: guarantee struct timespec
8449         * lib/sys_stat.in.h (includes): Always include <time.h>
8450         * modules/sys_stat (Depends-on): Add time.
8451         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8452         mode_t permission values.
8453         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8454         get at subsecond timestamps.
8455
8456 2009-10-10  Eric Blake  <ebb9@byu.net>
8457
8458         futimens: new module
8459         * modules/futimens: New file.
8460         * lib/futimens.c (futimens): Likewise.
8461         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8462         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8463         we can work around Linux bugs.
8464         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8465         * modules/sys_stat (Makefile.am): Substitute them.
8466         * lib/sys_stat.in.h (futimens): Declare it.
8467         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8468         * doc/posix-functions/futimens.texi (futimens): Likewise.
8469         * modules/futimens-tests: New test.
8470         * tests/test-futimens.c: Likewise.
8471
8472         utimens: introduce fdutimens
8473         * lib/utimens.h (fdutimens): New prototype.
8474         * lib/utimens.c (gl_futimens): Move guts...
8475         (fdutimens): ...to new interface.
8476         * tests/test-utimens.c (do_fdutimens): Use it.
8477
8478         utimens: add UTIME_NOW and UTIME_OMIT support
8479         * lib/utimens.c (validate_timespec, update_timespec): New helper
8480         functions.
8481         (gl_futimens, lutimens): Use them.
8482         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8483         stdbool, sys_stat.
8484         (Link): Mention resulting library dependency.
8485         * modules/utimecmp (Link): Likewise.
8486         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8487         (Makefile.am): Pick up library dependency.
8488         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8489         definition.
8490         * tests/test-sys_stat.c: Test the definitions.
8491         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8492         * NEWS: Document library dependency.
8493
8494         utimecmp: support symlink timestamps
8495         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8496         hashing when possible.  Use pathconf when available.
8497         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8498         * modules/utimecmp (Depends-on): Add lstat.
8499
8500         utimens: add lutimens interface
8501         * lib/utimens.c (lutimens): New function.
8502         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8503         * lib/utimens.h (lutimens): Declare new interface.
8504         * tests/test-utimens.c (main): Enhance test.
8505         * tests/test-lutimens.h (test_lutimens): New file.
8506         * modules/utimens-tests (Files): Distribute it.
8507         (Depends-on): Add symlink.
8508         (configure.ac): Check for usleep.
8509
8510         utimens: validate futimens usage
8511         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8512         fewer syscalls on failure later on.  Avoid compiler warning on
8513         mingw.
8514         * modules/utimens (Depends-on): Add dup2.
8515
8516         utimens: add test
8517         * modules/utimens-tests: New test.
8518         * tests/test-utimens.h: New file.
8519         * tests/test-futimens.h: Likewise.
8520         * tests/test-utimens.c: Likewise.
8521
8522         doc: mention timestamp portability issues
8523         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8524         instead.
8525         * doc/posix-functions/utime.texi (utime): Likewise.
8526         * doc/posix-functions/utimes.texi (utimes): Likewise.
8527         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8528         instead.
8529         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8530         module.
8531         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8532         Mention weakness with symlink timestamps.
8533         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8534         to utimensat/futimens instead.
8535         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8536
8537         test-dup2: enhance test
8538         * tests/test-dup2.c (main): Also check AT_FDCWD.
8539
8540         test-stat-time: avoid more spurious failures
8541         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8542         xfs; and avoid race if the two timestamps cross quantization edge.
8543
8544         relocatable: prefer 'file system' over 'filesystem'
8545         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8546         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8547         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8548         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8549         * lib/relocatable.c (compute_curr_prefix): Likewise.
8550
8551 2009-10-10  Jim Meyering  <meyering@redhat.com>
8552
8553         stat-time-tests: check for the usleep function
8554         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8555
8556 2009-10-10  Bruno Haible  <bruno@clisp.org>
8557
8558         * modules/xnanosleep: Put the Link section after the Include section.
8559
8560 2009-10-09  Eric Blake  <ebb9@byu.net>
8561
8562         dup2: work around FreeBSD 6.1 bug
8563         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8564         * doc/posix-functions/dup2.texi (dup2): Document it.
8565         Reported by Nelson H. F. Beebe and Jim Meyering.
8566
8567         test-stat-time: port to buggy NFS clients
8568         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8569         (test_ctime): Also skip test if mtime and ctime are skewed.
8570
8571         maint: prefer 'file system' over 'filesystem'
8572         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8573         * doc/posix-functions/lstat.texi (lstat): Likewise.
8574         * lib/file-has-acl.c (file_has_acl): Likewise.
8575         * lib/fwriteerror.c [TEST]: Likewise.
8576         * tests/test-areadlink.h (test_areadlink): Likewise.
8577         * tests/test-areadlinkat-with-size.c (main): Likewise.
8578         * tests/test-areadlinkat.c (main): Likewise.
8579         * tests/test-canonicalize-lgpl.c (main): Likewise.
8580         * tests/test-canonicalize.c (main): Likewise.
8581         * tests/test-fstatat.c (main): Likewise.
8582         * tests/test-linkat.c (main): Likewise.
8583         * tests/test-lstat.h (test_lstat_func): Likewise.
8584         * tests/test-mkdir.h (test_mkdir): Likewise.
8585         * tests/test-readlink.h (test_readlink): Likewise.
8586         * tests/test-remove.c (main): Likewise.
8587         * tests/test-rename.h (test_rename): Likewise.
8588         * tests/test-renameat.c (main): Likewise.
8589         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8590         * tests/test-symlink.h (test_symlink): Likewise.
8591         * tests/test-symlinkat.c (main): Likewise.
8592         * tests/test-unlink.h (test_unlink_func): Likewise.
8593         * tests/test-unlinkat.c (main): Likewise.
8594
8595         maint: make realtime library usage explicit
8596         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8597         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8598         * modules/settime (Link): Likewise.
8599         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8600
8601         test-stat-time: speed up execution
8602         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8603         warning on mingw.
8604         (nap): New helper function.
8605         (prepare_test): Use it to reduce sleep time.
8606         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8607         execution.
8608         * modules/stat-time-tests (configure.ac): Check for usleep.
8609
8610 2009-10-09  Jim Meyering  <meyering@redhat.com>
8611
8612         selinux-h: always use getfilecon wrappers
8613         * lib/getfilecon.c: New file.
8614         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8615         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8616         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8617         (fgetfilecon): Provide a stub.
8618         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8619         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8620         file unconditionally.
8621         When <selinux/selinux.h> is found, arrange to use wrappers.
8622         * modules/selinux-h (Files): Add getfilecon.c.
8623         (Makefile.am): Substitute include-next-related bits
8624         into the now-always-generated selinux/selinux.h file.
8625         * doc/glibc-functions/lgetfilecon.texi: New file.
8626         * doc/glibc-functions/fgetfilecon.texi: New file.
8627         * doc/glibc-functions/getfilecon.texi: New file.
8628         * doc/glibc-functions/getfilecon-desc.texi: New file.
8629         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8630         which to pull in the new files.
8631         * MODULES.html.sh (Misc): Add selinux-h.
8632
8633 2009-10-08  Jim Meyering  <meyering@redhat.com>
8634
8635         unistd: fix comment typo
8636         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8637
8638 2009-10-08  Eric Blake  <ebb9@byu.net>
8639
8640         areadlink: use SIZE_MAX consistently
8641         * modules/areadlink (Depends-on): Add stdint.
8642         * modules/areadlink-with-size (Depends-on): Likewise.
8643         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8644         gives NULL; drop sys/types, since unistd gives size_t; and add
8645         stdint for SIZE_MAX.
8646         (SIZE_MAX): Rely on headers.
8647         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8648         and add stdint.
8649         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8650         (SIZE_MAX): Likewise.
8651         (INITIAL_BUF_SIZE): Turn into enum.
8652         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8653
8654 2009-10-08  Jim Meyering  <meyering@redhat.com>
8655
8656         areadlinkat: avoid compilation failure
8657         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8658         Fix typo in comment.
8659
8660 2009-10-07  Eric Blake  <ebb9@byu.net>
8661
8662         areadlinkat-with-size: new module
8663         * modules/areadlinkat-with-size: New module.
8664         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8665         * lib/areadlink.h (areadlinkat): Declare it.
8666         * MODULES.html.sh (File system functions): Mention it.
8667         * modules/areadlinkat-with-size-tests: New test.
8668         * tests/test-areadlinkat-with-size.c: New file.
8669
8670         xreadlinkat: new module
8671         * modules/xreadlinkat: New module.
8672         * lib/xreadlinkat.c (xreadlinkat): New file.
8673         * lib/xreadlink.h (xreadlinkat): Declare it.
8674         * MODULES.html.sh (File system functions): Mention it.
8675
8676         areadlinkat: new module
8677         * lib/at-func.c (FUNC_FAIL): New define.
8678         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8679         * modules/areadlinkat: New module.
8680         * lib/linkat.c (areadlinkat): Move...
8681         * lib/areadlinkat.c (areadlinkat): ...to new file.
8682         * lib/areadlink.h (areadlinkat): Declare it.
8683         * modules/linkat (Depends-on): Add areadlinkat.
8684         * MODULES.html.sh (File system functions): Mention it.
8685         * modules/areadlinkat-tests: New test.
8686         * tests/test-areadlinkat.c: New file.
8687
8688         areadlink, areadlink-with-size: add tests
8689         * modules/areadlink-tests: New test.
8690         * modules/areadlink-with-size-tests: Likewise.
8691         * tests/test-areadlink.h: New file.
8692         * tests/test-areadlink.c: Likewise.
8693         * tests/test-areadlink-with-size.c: Likewise.
8694
8695         maint: minor cleanups
8696         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8697         _UNUSED_PARAMETER_ instead.
8698         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8699         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8700         * modules/linkat-tests (Files): Distribute test-link.h.
8701
8702         openat, utimens: whitespace cleanup
8703         * lib/openat.c: Prefer space throughout, rather than mix of 8
8704         spaces vs. tabs.
8705         * lib/at-func.c: Likewise.
8706         * lib/utimens.c: Likewise.
8707
8708         openat: avoid using wrong fd
8709         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8710         working directory chooses same fd.
8711         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8712
8713         mkdir, mkdirat: fix cygwin 1.5.x bug
8714         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8715         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8716         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8717         bug.
8718         (gl_PREREQ_MKDIR): Delete unused macro.
8719         * modules/mkdir (Files): Track file rename.
8720         (configure.ac): Update macro name.
8721         * modules/openat (Depends-on): Add mkdir.
8722         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8723
8724         mkdir, mkdirat: add tests
8725         * modules/mkdir-tests: New test.
8726         * tests/test-mkdir.h: New file.
8727         * tests/test-mkdir.c: Likewise.
8728         * tests/test-mkdirat.c: Likewise.
8729         * modules/openat-tests (Files): Add new files.
8730         (Makefile.am): Run new test.
8731
8732 2009-10-06  Eric Blake  <ebb9@byu.net>
8733
8734         doc: tweak *at function documentation
8735         * doc/posix-functions/faccessat.texi (faccessat): Mention
8736         known issue with replacement.
8737         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8738         * doc/posix-functions/linkat.texi (linkat): Likewise.
8739         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8740         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8741         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8742         * doc/posix-functions/renameat.texi (renameat): Likewise.
8743         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8744
8745         openat: fix GNU/Hurd bug in unlinkat
8746         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8747         broken.
8748         * doc/posix-functions/unlink.texi (unlink): Document this.
8749         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8750
8751         fdopendir: fix GNU/Hurd bug
8752         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8753         allowing non-directory fds.
8754         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8755         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8756         * modules/dirent (Makefile.am): Substitute it.
8757         * lib/dirent.in.h (fdopendir): Declare replacement.
8758         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8759         * tests/test-fdopendir.c (main): Test something other than
8760         /dev/null, since on Hurd that behaves like a directory.
8761
8762         test-symlink: port to GNU/Hurd
8763         * tests/test-symlink.h (test_symlink): Relax expected errno.
8764
8765         doc: tweak more cygwin information
8766         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8767         now compatible with glibc.
8768         * doc/posix-functions/getopt.texi (getopt): Likewise.
8769
8770         getopt-gnu: add another test
8771         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8772         guarantee behavior relied on by m4.
8773         * tests/test-getopt.c (main): Use it.
8774         * modules/getopt-posix-tests (Depends-on): Add setenv.
8775         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8776
8777         getopt: fix compilation on darwin
8778         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8779         include.
8780         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8781         Reported by Ludovic Courtès.
8782
8783 2009-10-06  Bruno Haible  <bruno@clisp.org>
8784
8785         * modules/size_max (Description): Discourage its use.
8786         Reported by Simon Josefsson.
8787
8788 2009-10-06  Jim Meyering  <meyering@redhat.com>
8789
8790         linkat: avoid compilation failure
8791         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8792
8793 2009-10-05  Eric Blake  <ebb9@byu.net>
8794
8795         linkat: support Linux 2.6.17
8796         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8797         linkat on Linux, but allow cache variable override.
8798         * lib/linkat.c (rpl_linkat): Define override.
8799         * modules/linkat (Depends-on): Add symlinkat.
8800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8801         * modules/unistd (Makefile.am): Substitute it.
8802         * lib/unistd.in.h (linkat): Declare replacement.
8803         Reported by Pádraig Brady.
8804
8805         quotearg: port test to systems with C.UTF-8 locale
8806         * tests/test-quotearg.c (struct result_strings): Add another
8807         member, differentiating between C.ASCII and C.UTF-8 handling.
8808         (compare_strings): Add parameter.
8809         (main): Adjust all callers.
8810
8811         getopt: avoid clash with FreeBSD _getopt_internal
8812         * lib/getopt.in.h (_getopt_internal): Override the name.
8813         * lib/getopt_int.h (includes): Pick up any overrides.
8814         Reported by Reuben Thomas.
8815
8816         hash: allow C89 compilation
8817         * lib/hash.c (check_tuning): Move declaration before statement.
8818         Reported by Reuben Thomas.
8819
8820 2009-10-05  Karl Berry  <karl@gnu.org>
8821
8822         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8823
8824 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8825             Bruno Haible  <bruno@clisp.org>
8826
8827         * lib/uname.c (uname): Use a table-driven algorithm to compute
8828         Windows NT versions.
8829
8830 2009-10-04  Bruno Haible  <bruno@clisp.org>
8831
8832         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8833         program_invocation_short_name.
8834         * modules/progname (configure.ac): Test for presence of
8835         program_invocation_short_name.
8836         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8837
8838 2009-10-04  Bruno Haible  <bruno@clisp.org>
8839
8840         * lib/progname.c (set_program_name): Fix comment.
8841         Reported by Jim Meyering.
8842
8843 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8844             Bruno Haible  <bruno@clisp.org>
8845
8846         * lib/uname.c: Include <string.h>.
8847         (uname): Do only one call to GetVersionEx in the common case.
8848
8849 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8850             Bruno Haible  <bruno@clisp.org>
8851
8852         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8853         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8854         (uname): Add support for Windows CE and various non-x86 CPU types.
8855
8856 2009-10-03  Bruno Haible  <bruno@clisp.org>
8857
8858         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8859         invocation to tests/configure.ac.
8860         Reported by Ian Beckwith <ianb@erislabs.net>.
8861
8862 2009-10-02  Eric Blake  <ebb9@byu.net>
8863
8864         fchdir: avoid compiler warning
8865         * lib/fchdir.c (canonicalize_file_name)
8866         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8867
8868         test-open: support mingw errno values
8869         * tests/test-open.h (test_open): Relax test.
8870         * tests/test-fopen.h (test_fopen): Likewise.
8871         * tests/test-openat-safer.c (main): Likewise.
8872
8873         open: fix opening directory on mingw
8874         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8875
8876         test-open: on GNU/Hurd, /dev/null is a directory
8877         * tests/test-fopen.h (main): Rename...
8878         (test_fopen): ...to this.  Use a guaranteed non-directory when
8879         confirming open behavior on trailing slash.
8880         * tests/test-openat-safer.c (main): Likewise.
8881         * tests/test-open.h (main): Likewise....
8882         (test_open): ...to this.
8883         * tests/test-fopen.c (main): Adjust caller.
8884         * tests/test-fopen-safer.c (main): Likewise.
8885         * tests/test-open.c (main): Likewise.
8886         * tests/test-fcntl-safer.c (main): Likewise.
8887         Reported by Samuel Thibault.
8888
8889         rename, fchdir: don't ignore chdir failure
8890         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8891         * lib/rename.c (rpl_rename) [W32]: Likewise.
8892         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8893         an empty destination directory if source cannot be renamed,
8894         although there is still possibility for failure.
8895         * doc/posix-functions/rename.texi (rename): Document the race.
8896         Reported by Jim Meyering.
8897
8898         maint: cleanup whitespace in recent commits
8899         * lib/rename.c (rpl_rename): Remove tabs.
8900         * tests/test-link.h (test_link): Likewise.
8901         * lib/fchdir.c (get_name): Likewise.
8902         Reported by Jim Meyering.
8903
8904 2009-10-02  Ben Pfaff  <blp@gnu.org>
8905
8906         relocatable-prog-wrapper: Add missing dependency on
8907         double-slash-root.
8908         * modules/relocatable-prog-wrapper: Add dependency.
8909         Reported by Ian Beckwith <ianb@erislabs.net>.
8910
8911 2009-10-02  Eric Blake  <ebb9@byu.net>
8912
8913         renameat: fix Solaris bugs
8914         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8915         needed fixing.
8916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8917         * modules/stdio (Makefile.am): Substitute it.
8918         * lib/stdio.in.h (renameat): Declare replacement.
8919         * lib/renameat.c (rpl_renameat): Implement fix.
8920
8921         renameat: new module
8922         * modules/renameat: New file.
8923         * lib/renameat.c (renameat): Likewise.
8924         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8926         * modules/stdio (Makefile.am): Substitute them.
8927         * lib/stdio.in.h (renameat): Declare it.
8928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8929         * doc/posix-functions/renameat.texi (renameat): Likewise.
8930         * modules/renameat-tests: New test.
8931         * tests/test-renameat.c: Likewise.
8932
8933         rename: fix mingw bugs
8934         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8935         directory overwrite bugs.
8936
8937         rename: fix another cygwin 1.5 bug
8938         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8939         checks.
8940         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8941         unnecessary cygwin workarounds.  Also work around bug with moving
8942         full directory onto an empty one.
8943         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8944
8945         rename-dest-slash: merge into rename module
8946         * modules/rename-dest-slash (Status): Mark obsolete.
8947         (Depends-on): Add rename.
8948         (Files): Let rename do it all.
8949         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8950         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8951         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8952         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8953         * lib/rename.c (rpl_rename): Update comments.
8954
8955         rename: fix cygwin 1.5.x bugs
8956         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8957         * lib/rename.c (rpl_rename): Work around them.
8958         * modules/rename (Depends-on): Add same-inode.
8959
8960         rename: fix Solaris 10 bug
8961         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8962         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8963         was the only bug.
8964
8965         rename: fix Solaris 9 bug
8966         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8967         on non-directory.  Avoid calling exit.
8968         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8969         strdup.
8970         * modules/rename-tests (Depends-on): Drop lstat.
8971         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8972         (gl_PREREQ_RENAME): Delete unused macro.
8973
8974         rename-dest-slash: fix NetBSD bug
8975         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8976         links.
8977         * modules/rename-dest-slash (Depends-on): Add same-inode.
8978
8979         rename-tests: new test, exposes several platform bugs
8980         * modules/rename-tests: New file.
8981         * tests/test-rename.h: Likewise.
8982         * tests/test-rename.c: Likewise.
8983         * doc/posix-functions/rename.texi (rename): Improve documentation,
8984         including bugs that will eventually be fixed in gnulib.
8985
8986 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8987
8988         * lib/uname.c: Include <stdlib.h>
8989         (uname): Assume version info is available.
8990
8991 2009-10-02  Jim Meyering  <meyering@redhat.com>
8992
8993         gnu-web-doc-update: correct --help output
8994         * build-aux/gnu-web-doc-update: Make --help output relevant.
8995
8996         gnu-web-doc-update: add standard options
8997         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8998
8999         gnu-web-doc-update: New module.
9000         Use this script to automatically update the on-line web documentation
9001         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9002         * modules/gnu-web-doc-update: New file, from coreutils.
9003         * build-aux/gnu-web-doc-update: New script.
9004
9005 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9006
9007         link: LoadLibrary is not needed.
9008         * lib/link.c: Use GetModuleHandle.
9009
9010 2009-10-01  Eric Blake  <ebb9@byu.net>
9011
9012         getopt: bump serial number
9013         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9014         change.
9015
9016         tests: tighten link, rmdir, and remove tests
9017         * tests/test-link.h (includes): No need to use <config.h> here.
9018         Clean up if directory hard link was created, otherwise test for
9019         trailing '.'.
9020         * tests/test-linkat.c (main): Simplify.
9021         * tests/test-remove.c (main): Enhance test for trailing '.'.
9022         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9023
9024 2009-10-01  Jim Meyering  <meyering@redhat.com>
9025
9026         maint.mk: requiring "make major" was annoying, for a "minor" release.
9027         What is intended is "stable", to contrast with alpha and beta,
9028         so require "make stable", not "make major".
9029         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9030         (get_tool_versions): Likewise.
9031         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9032
9033 2009-09-30  Ben Pfaff  <blp@gnu.org>
9034
9035         Fix broken build of replacement for Windows tmpfile().
9036         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9037         flags argument added along with the 'mkostemp' module.
9038
9039 2009-09-28  Bruno Haible  <bruno@clisp.org>
9040
9041         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9042         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9043         to 'remove_elt'.
9044         (gl_list_remove): Update.
9045         * lib/gl_list.c (gl_list_remove): Update.
9046         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9047         to 'remove_elt'.
9048         (gl_oset_remove): Update.
9049         * lib/gl_list.c (gl_oset_remove): Update.
9050         Reported by Eric Blake.
9051
9052 2009-09-28  Eric Blake  <ebb9@byu.net>
9053
9054         doc: mention yet more cygwin 1.7 status
9055         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9056         cygwin.
9057         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9058         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9059
9060         argp: fix test failure
9061         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9062         that are not upper-case.  Pass correct range to tolower.
9063
9064 2009-09-27  Jim Meyering  <meyering@redhat.com>
9065
9066         test-yesno: work around sparc-dash here-document infelicity
9067         Without this change, the literal \177 byte in a here document
9068         would make dash 0.5.5.1-3 access uninitialized memory.
9069         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9070         Instead, use a marker, "@", and filter through tr to create the desired
9071         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9072
9073 2009-09-27  Bruno Haible  <bruno@clisp.org>
9074
9075         Disable untested support for new flavours of ACLs on AIX.
9076         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9077         progress.
9078         * lib/set-mode-acl.c (qset_acl): Likewise.
9079
9080 2008-12-07  Bruno Haible  <bruno@clisp.org>
9081
9082         Add support for new flavours of ACLs on AIX. (Untested.)
9083         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9084         (file_has_acl): Add support for newer AIX.
9085         * lib/set-mode-acl.c (qset_acl): Likewise.
9086         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9087         Rainer Tammer <tammer@tammer.net>.
9088
9089 2009-09-26  Eric Blake  <ebb9@byu.net>
9090
9091         argp: fix compilation of getopt
9092         * lib/getopt.in.h (includes): Use different guard than glibc.
9093         Reported by Sergey Poznyakoff.
9094
9095         doc: mention more cygwin 1.7 status
9096         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9097         bug.
9098         * doc/posix-functions/execl.texi (execl): Likewise.
9099         * doc/posix-functions/execle.texi (execle): Likewise.
9100         * doc/posix-functions/execlp.texi (execlp): Likewise.
9101         * doc/posix-functions/execv.texi (execv): Likewise.
9102         * doc/posix-functions/execve.texi (execve): Likewise.
9103         * doc/posix-functions/execvp.texi (execvp): Likewise.
9104         * doc/glibc-functions/canonicalize_file_name.texi
9105         (canonicalize_file_name): Cygwin 1.7 now provides this.
9106         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9107         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9108         on AT_SYMLINK_NOFOLLOW.
9109
9110 2009-09-24  Eric Blake  <ebb9@byu.net>
9111
9112         test-linkat: make test more robust
9113         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9114
9115         getopt: fix inclusion guards for cygwin
9116         * modules/getopt-posix (Depends-on): Add include-next.
9117         (Makefile.am): Substitute more items in replacement header.
9118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9119         <getopt.h>.
9120         * lib/getopt.in.h (includes): Use split inclusion guard, and
9121         prefer <getopt.h> over include <unistd.h> when one is present.
9122         (option): Also override name of 'struct option'.
9123
9124         same-inode: revert prior change; it is not yet ready
9125         * NEWS: Undo mention of this change.
9126         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9127         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9128         * lib/cycle-check.c (cycle_check): Likewise.
9129         * lib/same.c (same_name): Likewise.
9130         * lib/at-func2.c (at_func2): Likewise.
9131
9132 2009-09-23  Eric Blake  <ebb9@byu.net>
9133
9134         linkat: new module
9135         * modules/linkat: New file.
9136         * lib/at-func2.c (at_func2): Likewise.
9137         * lib/linkat.c (linkat): Likewise.
9138         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9139         * lib/openat-priv.h (at_func2): Add declaration.
9140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9141         * modules/unistd (Makefile.am): Substitute them.
9142         * lib/unistd.in.h (linkat): Declare it.
9143         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9144         * doc/posix-functions/linkat.texi (linkat): Likewise.
9145         * doc/posix-functions/link.texi (link): Tweak wording.
9146         * tests/test-link.c (main): Move guts...
9147         * tests/test-link.h (test_link): ...into new file.
9148         * modules/linkat-tests: New test.
9149         * tests/test-linkat.c: Likewise.
9150         * modules/link-tests (Files): Ship new file.
9151         (Depends-on): Add stdbool.
9152
9153         dirname: add library-safe mdir_name
9154         * lib/dirname.h (mdir_name): New prototype.
9155         * lib/dirname.c (dir_name): Move guts...
9156         (mdir_name): ...to new function that avoids xalloc_die.
9157
9158         fchdir: another mingw fix
9159         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9160         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9161         on mingw (where it has not yet been ported), and make it optional
9162         elsewhere.
9163         (_gl_register_fd): Use it.
9164
9165         same-inode: make SAME_INODE tri-state, to port to mingw
9166         * NEWS: Mention this change.
9167         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9168         st_ino always being 0.
9169         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9170         * lib/cycle-check.c (cycle_check): Likewise.
9171         * lib/same.c (same_name): Likewise.
9172
9173         lstat: avoid mingw compilation error
9174         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9175         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9176         lstat ourselves.
9177         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9178         was adequate.
9179         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9180         the checks for lstat.
9181         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9182
9183         link: fix test failure on Solaris 9
9184         * lib/link.c (rpl_link): Don't assume link will catch bogus
9185         trailing slash on source.
9186
9187         test-symlinkat: enhance test
9188         * tests/test-readlink.c (main): Move guts...
9189         * tests/test-readlink.h (test_readlink): ...into new file.
9190         * tests/test-symlink.c (main): Move guts...
9191         * tests/test-symlink.h (test_symlink): ...into new file.
9192         * tests/test-symlinkat.c (main): Use new files for further
9193         coverage.
9194         (do_symlink, do_readlink): New helper functions.
9195         * modules/symlink-tests (Files): Ship new file.
9196         (Depends-on): Add stdbool.
9197         * modules/readlink-tests (Files): Ship new file.
9198         (Depends-on): Add stdbool.
9199         * modules/symlinkat-tests (Files): Use new files.
9200
9201 2009-09-23  Eric Blake  <ebb9@byu.net>
9202
9203         readlink: document portability issue with symlink length
9204         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9205         systems have bogus st_size on symlinks, and mention the
9206         areadlink-with-size module.
9207         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9208         * doc/posix-functions/readlink.texi (readlink): Mention the
9209         areadlink module, and ERANGE failure.
9210         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9211         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9212
9213         readlink: fix Solaris 9 bug with trailing slash
9214         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9215         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9216         * doc/posix-functions/readlink.texi (readlink): Document this.
9217         * modules/readlink-tests: New test.
9218         * tests/test-readlink.c: Likewise.
9219
9220         readlink: fix cygwin 1.5.x bug with return type
9221         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9222         * lib/unistd.in.h (readlink): Use ssize_t.
9223         * lib/readlink.c (readlink): Likewise.
9224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9225         * modules/unistd (Makefile.am): Substitute it.
9226         * lib/unistd.in.h (readlink): Declare replacement.
9227         * doc/posix-functions/readlink.texi (readlink): Document this.
9228
9229         symlink: use throughout gnulib
9230         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9231         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9232         symlink is not used.
9233         * modules/symlinkat (Depends-on): Add symlink.
9234         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9235         * modules/canonicalize-tests (Depends-on): Likewise.
9236         * modules/lstat-tests (Depends-on): Likewise.
9237         * modules/openat-tests (Depends-on): Likewise.
9238         * modules/remove-tests (Depends-on): Likewise.
9239         * modules/rmdir-tests (Depends-on): Likewise.
9240         * modules/unlink-tests (Depends-on): Likewise.
9241         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9242         * tests/test-canonicalize.c (symlink): Likewise.
9243         * tests/test-fstatat.c (symlink): Likewise.
9244         * tests/test-lstat.c (symlink): Likewise.
9245         * tests/test-remove.c (symlink): Likewise.
9246         * tests/test-rmdir.c (symlink): Likewise.
9247         * tests/test-unlink.c (symlink): Likewise.
9248         * tests/test-unlinkat.c (symlink): Likewise.
9249
9250         symlink: new module, for Solaris 9 bug
9251         * modules/symlink: New file.
9252         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9253         * lib/symlink.c: Likewise.
9254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9255         * modules/unistd (Makefile.am): Substitute them.
9256         * lib/unistd.in.h (symlink): Declare replacement.
9257         * MODULES.html.sh (File system functions): Mention it.
9258         * doc/posix-functions/symlink.texi (symlink): Likewise.
9259         * modules/symlink-tests: New test.
9260         * tests/test-symlink.c: Likewise.
9261
9262 2009-09-23  Bruno Haible  <bruno@clisp.org>
9263
9264         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9265         when needed.
9266         Test case: gnulib-tool --import --with-tests atexit inttypes.
9267         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9268
9269 2009-09-23  Bruno Haible  <bruno@clisp.org>
9270
9271         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9272         subcommand, not in a subshell.
9273
9274 2009-09-22  Eric Blake  <ebb9@byu.net>
9275
9276         unistd: sort replacement declarations
9277         * lib/unistd.in.h: Sort declarations.
9278
9279         open, openat: minor optimization
9280         * lib/open.c (open): If open succeeded, len is non-zero.
9281         * lib/openat.c (rpl_openat): Likewise.
9282
9283         link-follow: ensure correct result
9284         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9285         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9286         distinguish between possible failures.
9287
9288 2009-09-21  Eric Blake  <ebb9@byu.net>
9289
9290         fts: avoid compiler warning
9291         * lib/fts.c (dirent_inode_sort_may_be_useful)
9292         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9293
9294 2009-09-19  Bruno Haible  <bruno@clisp.org>
9295
9296         * lib/progreloc.c (canonicalize_file_name): New declaration.
9297
9298 2009-09-19  Eric Blake  <ebb9@byu.net>
9299
9300         link: fix quoting
9301         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9302
9303         openat: fix openat bugs on Solaris 9
9304         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9305         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9306         * modules/openat (Depends-on): Add open.
9307         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9308         * modules/fcntl-h (Makefile.am): Substitute it.
9309         * lib/fcntl.in.h (openat): Declare replacement.
9310         * doc/posix-functions/openat.texi (openat): Document this.
9311
9312         openat: move fstatat and unlinkat into correct files
9313         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9314         compiled.
9315         * lib/openat.c (fstatat, unlinkat): Move...
9316         * lib/fstatat.c (fstatat): ...into correct files.
9317         * lib/unlinkat.c (unlinkat): Likewise.
9318
9319         openat: fix unlinkat bugs on Solaris 9
9320         * lib/unlinkat.c (unlinkat): New file.
9321         * modules/openat (Depends-on): Add unlink.
9322         (Files): Distribute it.
9323         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9324         trailing slash behavior is broken.
9325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9326         * modules/unistd (Makefile.am): Substitute it.
9327         * lib/unistd.in.h (unlinkat): Declare replacement.
9328         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9329
9330         openat: fix fstatat bugs on Solaris 9
9331         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9332         stat.
9333         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9334
9335         test-unlinkat: enhance test, to expose Solaris 9 bug
9336         * tests/test-unlink.c (main): Factor guts...
9337         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9338         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9339         * tests/test-rmdir.c (main): Adjust caller.
9340         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9341         (unlinker): New helper function.
9342         (rmdirat): Enhance check.
9343         * modules/rmdir-tests (Depends-on): Add stdbool.
9344         * modules/unlink-tests (Depends-on): Likewise.
9345         (Files): Add test-unlink.h.
9346         * modules/openat-tests (Files): Likewise.
9347         (Depends-on): Add unlinkdir.
9348
9349         test-fstatat: new test, to expose Solaris 9 bugs
9350         * tests/test-stat.c (main): Factor guts...
9351         * tests/test-stat.h (test_stat_func): ...into new file.
9352         * tests/test-lstat.c (main): Factor guts...
9353         * tests/test-lstat.h (test_lstat_func): ...into new file.
9354         * tests/test-fstatat.c: New file.
9355         * modules/stat-tests (Files): Add test-stat.h.
9356         * modules/lstat-tests (Files): Add test-lstat.h.
9357         (Depends-on): Add stdbool.
9358         * modules/openat-tests (Depends-on): Add pathmax.
9359         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9360         (Makefile.am): Run new test.
9361
9362         remove: new module, for mingw and Solaris 9 bugs
9363         * modules/remove: New file.
9364         * lib/remove.c: Likewise.
9365         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9367         * modules/stdio (Makefile.am): Use them.
9368         * lib/stdio.in.h (remove): Declare replacement.
9369         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9370         * doc/posix-functions/remove.texi (remove): Likewise.
9371         * modules/remove-tests: New test.
9372         * tests/test-remove.c: Likewise.
9373
9374         unlink: new module, for Solaris 9 bug
9375         * modules/unlink: New file.
9376         * lib/unlink.c: Likewise.
9377         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9379         * modules/unistd (Makefile.am): Use them.
9380         * lib/unistd.in.h (stat): Declare replacement.
9381         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9382         * doc/posix-functions/unlink.texi (unlink): Likewise.
9383         * modules/unlink-tests: New test.
9384         * tests/test-unlink.c: Likewise.
9385
9386         lstat: fix Solaris 9 bug
9387         * lib/lstat.c (lstat): Also check for trailing slash on
9388         non-symlink, non-directories.  Use stat module to simplify logic.
9389         * doc/posix-functions/lstat.texi (lstat): Document it.
9390         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9391         (configure.ac): Check for symlink.
9392         * tests/test-lstat.c (main): Add more tests.
9393
9394         stat: add as dependency to other modules
9395         * modules/chown (Depends-on): Add stat.
9396         * modules/euidaccess (Depends-on): Likewise.
9397         * modules/fchdir (Depends-on): Likewise.
9398         * modules/isdir (Depends-on): Likewise.
9399         * modules/link (Depends-on): Likewise.
9400         * modules/lstat (Depends-on): Likewise.
9401         * modules/mkdir-p (Depends-on): Likewise.
9402         * modules/modechange (Depends-on): Likewise.
9403         * modules/open (Depends-on): Likewise.
9404         * modules/readlink (Depends-on): Likewise.
9405         * modules/same (Depends-on): Likewise.
9406
9407         stat: fix Solaris 9 bug
9408         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9409         slash.
9410         * lib/stat.c (rpl_stat): Work around it.
9411         * doc/posix-functions/stat.texi (stat): Update documentation.
9412
9413         stat: new module, for mingw bug
9414         * modules/stat: New file.
9415         * lib/stat.c: Likewise.
9416         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9418         * modules/sys_stat (Makefile.am): Use them.
9419         * lib/sys_stat.in.h (stat): Declare replacement.
9420         * lib/openat.c (fstatat): Deal with lstat and stat being function
9421         macros.
9422         * modules/openat (Depends-on): Add inline.
9423         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9424         * doc/posix-functions/stat.texi (stat): Likewise.
9425         * modules/stat-tests: New test.
9426         * tests/test-stat.c: Likewise.
9427
9428 2009-09-19  Jim Meyering  <meyering@redhat.com>
9429
9430         syntax-check: detect unnecessary inclusion of canonicalize.h
9431         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9432
9433 2009-09-19  Eric Blake  <ebb9@byu.net>
9434
9435         canonicalize-lgpl: adjust clients to use correct header
9436         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9437         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9438         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9439         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9440         * lib/progreloc.c (includes): Likewise.
9441
9442 2009-09-19  Jim Meyering  <meyering@redhat.com>
9443
9444         test-posixtm.c: correct a comment
9445         * tests/test-posixtm.c: Correct first-line comment.
9446         Spotted by Eric Blake.
9447
9448 2009-09-16  Jim Meyering  <meyering@redhat.com>
9449
9450         posixtm-tests: make T const-correct; add a test case
9451         * tests/test-posixtm.c (T): Declare const.
9452         Add a test for -(2^31+1).
9453         Remove useless can-succeed-only-in-2002 test.
9454
9455         posixtm-tests: adjust the sole failing test
9456         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9457         expected output matches what mktime now produces.  Cross-checked via
9458         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9459
9460         posixtm: move #ifdef'd tests into a new module
9461         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9462         * tests/test-posixtm.c: ... this new file.
9463         * modules/posixtm-tests: New module.
9464
9465 2009-09-19  Eric Blake  <ebb9@byu.net>
9466
9467         openat: simplify use of at-func.c
9468         * lib/at-func.c (includes): Include prerequisites here, to
9469         simplify requirements on client files.
9470         * lib/openat-priv.h: Add double-inclusion guard.
9471         * lib/faccessat.c (includes): Simplify.
9472         * lib/fchmodat.c (includes): Likewise.
9473         * lib/fchownat.c (includes): Likewise.
9474         * lib/mkdirat.c (includes): Likewise.
9475         * lib/mkfifoat.c (includes): Likewise.
9476         * lib/symlinkat.c (includes): Likewise.
9477
9478         openat: allow return of fd 0
9479         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9480         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9481         unistd-safer.
9482         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9483         <fcntl.h>; this module does not leak fds.
9484         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9485         must be allowed to return 0, leaving openat_safer to add the
9486         safety.
9487         (openat_permissive): Avoid writing to just-opened fd 2 if
9488         restoring the current directory fails.
9489         * lib/openat-die.c (openat_restore_fail): Add comment.
9490         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9491         (save_cwd): Guarantee safe fd, but without use of open_safer.
9492         * tests/test-openat.c: New test.
9493         * modules/openat-tests (Files, Makefile.am): Distribute and build
9494         new file.
9495
9496         relocatable-prog-wrapper: fix build
9497         * modules/relocatable-prog-wrapper (Files): Update name of
9498         canonicalize m4 file, broken on 2009-09-17.
9499         Reported by emad hajjar <aleppos@hotmail.com>.
9500
9501 2009-09-19  Bruno Haible  <bruno@clisp.org>
9502
9503         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9504         * lib/safe-alloc.c: Likewise.
9505         Reported by Ian Beckwith <ianb@erislabs.net>.
9506
9507 2009-09-18  Bruno Haible  <bruno@clisp.org>
9508
9509         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9510         Reported by <erobles@sensacd.com.mx>.
9511
9512 2009-09-17  Eric Blake  <ebb9@byu.net>
9513
9514         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9515         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9516         slashes when checking if last component is missing.
9517         * tests/test-canonicalize.c (main): Test this.
9518
9519         canonicalize, canonicalize-lgpl: honor // if distinct from /
9520         * modules/canonicalize (Files): Add double-slash-root.m4.
9521         * modules/canonicalize-lgpl (Files): Likewise.
9522         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9523         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9524         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9525         fallback definition.
9526         (canonicalize_filename_mode): Use it to protect //.
9527         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9528         (__realpath): Likewise.
9529         * tests/test-canonicalize.c (main): Test this.
9530         * tests/test-canonicalize-lgpl.c (main): Likewise.
9531         * modules/canonicalize-tests (Depends-on): Add same-inode.
9532         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9533
9534         canonicalize-lgpl: fix glibc bug with trailing slash
9535         * m4/canonicalize-lgpl.m4: Move contents...
9536         * m4/canonicalize.m4: ...here.
9537         (gl_CANONICALIZE_LGPL): Factor realpath check...
9538         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9539         glibc 2.3.5 bug, fixed 2005-04-27.
9540         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9541         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9542         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9543         * modules/canonicalize-lgpl (Files): Manage file rename.
9544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9545         * modules/stdlib (Makefile.am): Substitute witness.
9546         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9547         is needed.
9548         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9549         replacement is required.
9550         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9551         * doc/glibc-functions/canonicalize_file_name.texi
9552         (canonicalize_file_name): Document this.
9553         * doc/posix-functions/realpath.texi (realpath): Likewise.
9554
9555         canonicalize-lgpl: reject non-directory with trailing slash
9556         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9557         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9558         catches failures in glibc 2.3.5.
9559         * tests/test-canonicalize.c (main): Likewise.
9560
9561         canonicalize-lgpl: use native realpath if it works
9562         * lib/canonicalize-lgpl.c (realpath): Guard with
9563         FUNC_REALPATH_WORKS.
9564         * lib/stdlib.in.h (realpath): Make declaration optional based on
9565         HAVE_REALPATH.
9566         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9567         native realpath works.
9568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9569         * modules/stdlib (Makefile.am): Substitute witness.
9570
9571         canonicalize, canonicalize-lgpl: use <stdlib.h>
9572         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9573         (Include): Mention <stdlib.h>.
9574         (configure.ac): Mention functions we provide.
9575         * modules/canonicalize (configure.ac): Likewise.
9576         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9577         realpath if canonicalize_file_name is missing.
9578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9579         * modules/stdlib (Makefile.am): Substitute witnesses.
9580         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9581         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9582         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9583         * NEWS: Document this.
9584         * doc/glibc-functions/canonicalize_file_name.texi
9585         (canonicalize_file_name): Likewise.
9586         * doc/posix-functions/realpath.texi (realpath): Likewise.
9587         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9588
9589         test-canonicalize: consolidate into single C program
9590         * tests/test-canonicalize.sh: Delete; move setup into...
9591         * tests/test-canonicalize.c (main): ...the program, making it
9592         easier to run in debugger.  Add some tests.
9593         * modules/canonicalize-tests (Files): Remove unused file.
9594         (Depends-on): Add progname.
9595         (configure.ac, Makefile.am): Simplify.
9596
9597         test-canonicalize-lgpl: consolidate into single C program
9598         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9599         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9600         easier to run in debugger.  Add some tests.
9601         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9602         (configure.ac, Makefile.am): Simplify.
9603
9604         canonicalize: avoid resolvepath
9605         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9606         unnecessary checks.
9607         * lib/canonicalize.c (includes): Simplify.
9608         (canonicalize_file_name): Drop resolvepath implementation.
9609         * modules/canonicalize (Depends-on): Drop filenamecat.
9610
9611         canonicalize: don't lose errno
9612         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9613         over calls to free.
9614
9615         canonicalize: simplify errno handling
9616         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9617         assignment.
9618
9619         canonicalize, canonicalize-lgpl: update module dependencies
9620         * modules/canonicalize (Depends-on): Add extensions, lstat,
9621         pathmax, stdlib.
9622         (Files): Drop pathmax.h.
9623         (configure.ac): Adjust macro name.
9624         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9625         lstat, stdlib, sys_stat.
9626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9627         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9628         extensions.
9629         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9630         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9631         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9632         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9633         declaration, if available.
9634         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9635         we can rely on the readlink module.
9636         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9637         (includes): Use <unistd.h> unconditionally.
9638
9639 2009-09-17  Eric Blake  <ebb9@byu.net>
9640
9641         maint: make Include sections of modules consistent
9642         * modules/alloca: Use only header name; no need to list #include.
9643         * modules/alloca-opt: Likewise.
9644         * modules/arpa_inet: Likewise.
9645         * modules/canon-host: Likewise.
9646         * modules/configmake: Likewise.
9647         * modules/dirent: Likewise.
9648         * modules/eealloc: Likewise.
9649         * modules/environ: Likewise.
9650         * modules/fchdir: Likewise.
9651         * modules/fcntl: Likewise.
9652         * modules/fcntl-h: Likewise.
9653         * modules/gethrxtime: Likewise.
9654         * modules/gettime: Likewise.
9655         * modules/ignore-value: Likewise.
9656         * modules/inet_ntop: Likewise.
9657         * modules/inet_pton: Likewise.
9658         * modules/inttypes: Likewise.
9659         * modules/isnand-nolibm: Likewise.
9660         * modules/isnanf-nolibm: Likewise.
9661         * modules/mbchar: Likewise.
9662         * modules/mbfile: Likewise.
9663         * modules/mbiter: Likewise.
9664         * modules/mbuiter: Likewise.
9665         * modules/netdb: Likewise.
9666         * modules/netinet_in: Likewise.
9667         * modules/nproc: Likewise.
9668         * modules/pagealign_alloc: Likewise.
9669         * modules/poll: Likewise.
9670         * modules/printf-frexp: Likewise.
9671         * modules/pthread: Likewise.
9672         * modules/putenv: Likewise.
9673         * modules/random_r: Likewise.
9674         * modules/relocatable-prog: Likewise.
9675         * modules/search: Likewise.
9676         * modules/select: Likewise.
9677         * modules/selinux-h: Likewise.
9678         * modules/settime: Likewise.
9679         * modules/signal: Likewise.
9680         * modules/size_max: Likewise.
9681         * modules/socklen: Likewise.
9682         * modules/ssize_t: Likewise.
9683         * modules/stdarg: Likewise.
9684         * modules/stdbool: Likewise.
9685         * modules/stddef: Likewise.
9686         * modules/stdint: Likewise.
9687         * modules/stdio: Likewise.
9688         * modules/stdlib: Likewise.
9689         * modules/string: Likewise.
9690         * modules/strings: Likewise.
9691         * modules/sys_file: Likewise.
9692         * modules/sys_ioctl: Likewise.
9693         * modules/sys_select: Likewise.
9694         * modules/sys_socket: Likewise.
9695         * modules/sys_stat: Likewise.
9696         * modules/sys_time: Likewise.
9697         * modules/sys_times: Likewise.
9698         * modules/sys_utsname: Likewise.
9699         * modules/sys_wait: Likewise.
9700         * modules/sysexits: Likewise.
9701         * modules/time: Likewise.
9702         * modules/times: Likewise.
9703         * modules/tmpfile: Likewise.
9704         * modules/trim: Likewise.
9705         * modules/unistd: Likewise.
9706         * modules/wchar: Likewise.
9707         * modules/wctype: Likewise.
9708
9709 2009-09-17  Bruno Haible  <bruno@clisp.org>
9710
9711         Make getdate.y compile on QNX and NetBSD 5 / i386.
9712         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9713         TIME_T_FITS_IN_LONG_INT.
9714         * lib/getdate.y (long_time_t): New type.
9715         (relative_time): Change type of 'seconds' field to long_time_t.
9716         (get_date): Update types of local variables. Check against overflow
9717         during conversion from long_time_t to time_t.
9718         Reported by Matt Kraai <kraai@ftbfs.org>
9719         and Hasso Tepper <hasso@netbsd.org>.
9720
9721 2009-09-17  Bruno Haible  <bruno@clisp.org>
9722
9723         * modules/COPYING: Update copyright years.
9724         * modules/README: Likeiwse.
9725         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9726         Reported by Ian Beckwith <ianb@erislabs.net>.
9727
9728 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9729
9730         * users.txt: Update references for gnuit package.
9731
9732 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9733
9734         * m4/getdelim.m4: Fix typo in copyright line.
9735
9736 2009-09-17  Bruno Haible  <bruno@clisp.org>
9737
9738         * lib/atoll.c: Use the standard header with GPL copyright.
9739         * lib/argz.in.h: Likewise.
9740         * lib/glob.c: Likewise.
9741         * lib/glob-libc.h: Likewise.
9742         * lib/random_r.c: Likewise.
9743         * lib/siglist.h: Likewise.
9744         * lib/strsignal.c: Likewise.
9745         Reported by Ian Beckwith <ianb@erislabs.net>.
9746
9747 2009-09-17  Eric Blake  <ebb9@byu.net>
9748
9749         rmdir: ensure correct dependency order
9750         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9751
9752 2009-09-17  Bruno Haible  <bruno@clisp.org>
9753
9754         Disable assertion that fails on NetBSD 5 / i386.
9755         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9756         Reported by Sam Steingold <sds@gnu.org>
9757         and Hasso Tepper <hasso@netbsd.org>.
9758
9759 2009-09-16  Eric Blake  <ebb9@byu.net>
9760
9761         unlinkdir: port to mingw
9762         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9763         on which no one can unlink a directory.
9764
9765         stdlib: sort witness names
9766         * modules/stdlib (Makefile.am): Sort replacements.
9767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9768         * lib/stdlib.in.h: Likewise.
9769
9770         parse-duration-tests: avoid link failure
9771         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9772         LIBINTL.
9773         Reported by Tom G. Christensen.
9774
9775         openat-tests: ensure unlinkat behaves like rmdir
9776         * tests/test-rmdir.c (main): Factor guts...
9777         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9778         * modules/rmdir-tests (Files): Ship new file.
9779         * modules/openat-tests: New test.
9780         * tests/test-unlinkat.c: Likewise.
9781
9782         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9783         * modules/rmdir-errno (Status, Notice): Now obsolete.
9784
9785         rmdir: work around cygwin 1.5.x and mingw bugs
9786         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9787         * lib/rmdir.c (rmdir): Work around it.
9788         * modules/rmdir (Status, Notice): No longer obsolete.
9789         (Files): Add dos.m4.
9790         (Depends-on): Add unistd.
9791         (configure.ac): Set witnesses.
9792         (License): Relax to LGPLv2+.
9793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9794         * modules/unistd (Makefile.am): Substitute witnesses.
9795         * lib/unistd.in.h (rmdir): Declare replacement.
9796         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9797         * modules/rmdir-tests: New tests.
9798         * tests/test-rmdir.c: Likewise.
9799
9800 2009-09-15  Eric Blake  <ebb9@byu.net>
9801
9802         fchdir: improve use of replacement functions
9803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9804         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9806         REPLACE_CLOSEDIR.
9807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9808         * modules/sys_stat (Makefile.am): Substitute correct witness.
9809         * modules/dirent (Makefile.am): Likewise.
9810         * modules/unistd (Makefile.am): Likewise.
9811         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9812         * lib/unistd.in.h (dup): Likewise.
9813         * lib/sys_stat.in.h (fstat): Likewise.
9814
9815         maint: ignore gnulib-tool temp files
9816         * .gitignore: Ignore files created during gnulib-tool --test.
9817
9818 2009-09-13  Jim Meyering  <meyering@redhat.com>
9819
9820         posixtm: don't reject a time that specify "60" as the number of seconds
9821         * lib/posixtm.c (posixtime): The code to reject invalid dates
9822         would also reject a time specified with the .60 suffix.
9823         But POSIX allows that, in order to accommodate leap seconds.
9824         So don't reject it.
9825         (main): Adjust tests accordingly.
9826         * modules/posixtm (Depends-on): Add stpcpy.
9827
9828 2009-09-11  Jim Meyering  <meyering@redhat.com>
9829
9830         announce-gen: include [$release_type] in emitted Subject:
9831         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9832         e.g., [stable] in the emitted Subject: line.
9833
9834 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9835
9836         Remove obsolete macros from several modules.
9837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9838         obsolete Autoconf macros with their modern counterparts.
9839         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9840         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9842         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9843         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9846         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9847         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9848         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9849         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9851         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9852         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9853         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9854         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9855         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9856         * m4/time_r.m4 (gl_TIME_R): Likewise.
9857         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9858         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9859         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9860
9861         Fix copyright header in build-aux scripts.
9862         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9863         recommendation.
9864         * build-aux/ncftpput-ftp: Likewise.
9865         * build-aux/update-copyright: Likewise.
9866
9867 2009-09-09  Eric Blake  <ebb9@byu.net>
9868
9869         test-link: allow Linux choice of errno
9870         * tests/test-link.c (main): Relax test for alternate error.
9871
9872         strndup: fix improper m4 caching
9873         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9874         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9875         (gl_PREREQ_STRNDUP): Delete.
9876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9877         * modules/string (Makefile.am): Substitute it.
9878         * lib/string.in.h (strndup): Modernize prototype.
9879
9880         getcwd: port to mingw
9881         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9882         different from the POSIX assumptions made throughout the getcwd
9883         module; fortunately, the mingw getcwd does not need replacement.
9884         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9885         * modules/getcwd-tests: New test.
9886         * tests/test-getcwd.c: Likewise.
9887
9888         link: fix platform bugs
9889         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9890         * lib/link.c (link): Work around them.  Fix related mingw bug.
9891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9892         * modules/unistd (Makefile.am): Substitute it.
9893         * lib/unistd.in.h (link): Declare replacement.
9894         * doc/posix-functions/link.texi (link): Document this.
9895         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9896
9897         test-link: consolidate into single C program, test more cases
9898         * tests/test-link.sh: Delete.
9899         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9900         at least Cygwin and Solaris.
9901         * modules/link-tests (Files): Remove unused file.
9902         (Depends-on): Add errno, sys_stat.
9903         (Makefile.am): Simplify.
9904
9905 2009-09-08  Bruno Haible  <bruno@clisp.org>
9906
9907         Work around towlower, towupper bug on mingw.
9908         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9909         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9910         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9911         * doc/posix-functions/towupper.texi: Likewise.
9912         Reported by Eric Blake.
9913
9914 2009-09-08  Jim Meyering  <meyering@redhat.com>
9915
9916         build: don't try to run autoheader if we don't use it
9917         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9918         is not used in configure.ac.
9919
9920 2009-09-08  Eric Blake  <ebb9@byu.net>
9921
9922         euidaccess: fix compilation error
9923         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9924
9925         rawmemchr: relax license
9926         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9927         okay.
9928         Reported by Jim Meyering.
9929
9930         mkfifoat: new module
9931         * modules/mkfifoat: New file.
9932         * lib/mkfifoat.c: Likewise.
9933         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9935         * modules/sys_stat (Makefile.am): Use them.
9936         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9937         * MODULES.html.sh (File system functions): Mention module.
9938         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9939         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9940         * modules/mkfifoat-tests: New test.
9941         * tests/test-mkfifoat.c: Likewise.
9942
9943         strchrnul: relax license
9944         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9945         okay.
9946         Reported by Jim Meyering.
9947
9948 2009-09-08  Eric Blake  <ebb9@byu.net>
9949
9950         fstatat: fix compilation on Solaris
9951         * lib/fstatat.c (includes): Add fcntl.h.
9952         Reported by Pádraig Brady.
9953
9954 2009-09-07  Eric Blake  <ebb9@byu.net>
9955
9956         rename: modernize replacement
9957         * modules/rename (Depends-on): Add stdio.
9958         (configure.ac): Declare witness.
9959         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9960         stdio take care of replacement.
9961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9962         * modules/stdio (Makefile.am): Substitute them.
9963         * lib/stdio.in.h (rename): Declare replacement.
9964         * lib/rename.c (includes): Allow cross-compilation to non-windows
9965         machines.
9966         * doc/posix-functions/rename.texi (rename): Improve
9967         documentation.
9968
9969         stdio: sort witness names
9970         * modules/stdio (Makefile.am): Sort replacements.
9971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9972         * lib/stdio.in.h: Likewise.
9973
9974         getcwd: minor cleanups
9975         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9976         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9977
9978         openat: provide more convenience names
9979         * modules/faccessat (configure.ac): Add C witness.
9980         * lib/unistd.in.h (readlinkat): Fix typo.
9981         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9982         convenience wrappers.
9983         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9984         wrappers in syntax checks.
9985
9986 2009-09-06  Eric Blake  <ebb9@byu.net>
9987
9988         doc: fix comments in recent patches
9989         * lib/faccessat.c: Mention correct function.
9990         * lib/fchmodat.c: Likewise.
9991         * lib/fchownat.c: Likewise.
9992         * lib/symlinkat.c: Likewise.
9993         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9994         constants.
9995
9996         faccessat, symlinkat: continue cleanup of previous patch
9997         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9998         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9999         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10001         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10002         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10003         set.
10004
10005 2009-09-06  Bruno Haible  <bruno@clisp.org>
10006
10007         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10008         (fstatat): Declare if GNULIB_FSTATAT is set.
10009         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10010         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10011         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10012         * modules/fcntl-h (Files): Remove m4/openat.m4.
10013         * modules/sys_stat (Files): Remove m4/openat.m4.
10014         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10015         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10016         * modules/unistd (Files): Remove m4/openat.m4.
10017         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10018         GNULIB_OPENAT.
10019         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10020         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10022         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10023         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10024         gl_OPENAT_DEFAULTS.
10025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10026         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10027         Don't require gl_OPENAT_DEFAULTS.
10028         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10029         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10030         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10031         (gl_OPENAT_DEFAULTS): Remove macro.
10032
10033 2009-09-06  Bruno Haible  <bruno@clisp.org>
10034
10035         * modules/openat (configure.ac): Remove unneeded witness.
10036
10037 2009-09-06  Bruno Haible  <bruno@clisp.org>
10038
10039         Set errno to ENOSYS when a function is entirely unsupported.
10040         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10041         EOPNOTSUPP.
10042         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10043         * modules/chown (Depends-on): Remove errno.
10044
10045 2009-09-06  Bruno Haible  <bruno@clisp.org>
10046
10047         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10048
10049 2009-09-06  Bruno Haible  <bruno@clisp.org>
10050
10051         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10052
10053 2009-09-06  Ben Pfaff  <blp@gnu.org>
10054             Bruno Haible  <bruno@clisp.org>
10055
10056         Work around a glibc bug in strtok_r.
10057         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10058         Undefine if UNDEFINE_STRTOK_R is set.
10059         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10061         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10062         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10063         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10064         UNDEFINE_STRTOK_R.
10065         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10066
10067 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10068
10069         exclude: minor fix
10070         * lib/exclude.c: Include wctype.h
10071
10072 2009-09-06  Akim Demaille  <demaille@gostai.com>
10073
10074         bootstrap: improve error message
10075         * build-aux/bootstrap (find_tool): Upon failure, report the list
10076         of candidates.
10077         Honor the initial value of the envvar.
10078
10079 2009-09-05  Eric Blake  <ebb9@byu.net>
10080
10081         symlinkat: new module
10082         * modules/symlinkat: New file.
10083         * lib/symlinkat.c: Likewise.
10084         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10086         * modules/unistd (Makefile.am): Use them.
10087         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10088         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10089         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10090         * MODULES.html.sh (File system functions): Mention module.
10091         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10092         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10093         * modules/symlinkat-tests: New test.
10094         * tests/test-symlinkat.c: Likewise.
10095
10096         test-openat-safer: add more checks
10097         * tests/test-openat-safer.c (main): Check more code paths.
10098
10099 2009-09-05  Jim Meyering  <meyering@redhat.com>
10100
10101         syntax-check: detect unnecessary inclusion of openat.h
10102         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10103
10104 2009-09-05  Bruno Haible  <bruno@clisp.org>
10105
10106         Support towlower, towupper.
10107         * doc/posix-functions/towlower.texi: Mention module wctype.
10108         * doc/posix-functions/towupper.texi: Likewise.
10109         * lib/wctype.in.h (towlower, towupper): New functions.
10110         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10111         (ASSERT): New macro.
10112         (e): New variable.
10113         (main): Test also towlower, towupper. Test WEOF argument.
10114         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10115
10116 2009-09-05  Bruno Haible  <bruno@clisp.org>
10117
10118         Fix conversion behaviour when the input is invalid.
10119         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10120         mark occurring in first pass of indirect conversion.
10121         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10122         input.
10123         Found by clang's static analyzer.
10124
10125 2009-09-05  Bruno Haible  <bruno@clisp.org>
10126
10127         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10128         where direct conversion is possible.
10129
10130 2009-09-04  Eric Blake  <ebb9@byu.net>
10131
10132         openat: fail with ENOENT on empty name
10133         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10134         buffer.
10135
10136         link-follow: fix logic bug in prior patch
10137         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10138         reversed sense of yes and no in prior patch.  Avoid confusing
10139         compilation failure with desired semantics.
10140
10141         link-follow: accomodate mingw and cross-compilation
10142         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10143         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10144         cross-compilation results to -1, to make linkat easier to
10145         implement when cross-compiling.  Trivially support mingw.
10146         * modules/link-follow (configure.ac): Call new name.
10147         * NEWS: Mention this.
10148
10149 2009-09-03  Eric Blake  <ebb9@byu.net>
10150
10151         faccessat: compile replacement
10152         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10153         needed.
10154
10155         fts: fix compilation error
10156         * lib/fts.c (includes): Re-add "openat.h", for
10157         openat_needs_fchdir.
10158
10159         faccessat: new module
10160         * modules/faccessat: New file.
10161         * lib/faccessat.c: Likewise.
10162         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10164         * modules/unistd (Makefile.am): Use it.
10165         * lib/unistd.in.h (faccessat): Declare it.
10166         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10167         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10168         * MODULES.html.sh (File system functions): Mention it.
10169         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10170         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10171
10172         euidaccess: prefer POSIX over non-standard implementation
10173         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10174         * lib/euidaccess.c (euidaccess): Use it if available.
10175
10176         openat: make template easier to use
10177         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10178         AT_FUNC_F2 to be undefined.
10179         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10180         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10181         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10182         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10183         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10184         Likewise.
10185         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10186         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10187         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10188         Likewise.
10189
10190         openat: declare in POSIX headers
10191         * NEWS: Mention this.
10192         * modules/openat (configure.ac): Declare witnesses.
10193         (Depends-on): Add fcntl-h, sys_stat, unistd.
10194         (Include): Mention correct headers.
10195         * modules/fcntl-h (Depends-on): Add link-warning.
10196         (Files): Add openat.m4.
10197         (Makefile.am): Substitute witnesses.
10198         * modules/sys_stat (Files, Makefile.am): Likewise.
10199         * modules/unistd (Files, Makefile.am): Likewise.
10200         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10201         (gl_OPENAT_DEFAULTS): New macro.
10202         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10204         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10205         (SYS_STAT_H): Remove unused variable.
10206         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10207         * lib/fcntl--.h (includes): Remove unneeded header.
10208         * lib/openat-safer.c (includes): Likewise.
10209         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10210         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10211         appropriate headers.
10212         (__OPENAT_PREFIX): Delete.
10213         * lib/fcntl.in.h (openat): Provide declaration.
10214         (AT_FDCWD): Fix Solaris bug.
10215         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10216         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10217         * lib/fchmodat.c (includes):  Adjust to find declaration.
10218         * lib/fchownat.c (includes): Likewise.
10219         * lib/mkdirat.c (includes): Likewise.
10220         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10221         still visible.
10222
10223 2009-09-02  Eric Blake  <ebb9@byu.net>
10224
10225         errno: use consistently
10226         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10227         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10228         * lib/canonicalize.c (ELOOP): Likewise.
10229         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10230         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10231         * lib/lchown.c (EOPNOTSUPP): Likewise.
10232         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10233         * lib/savewd.c (ESTALE): Likewise.
10234         * lib/settime.c (ENOSYS): Likewise.
10235         * lib/utimens.c (ENOSYS): Likewise.
10236         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10237         * lib/chdir-safer.c (ELOOP): Likewise.
10238         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10239         * modules/c-stack (Depends-on): Add errno.
10240         * modules/canonicalize (Depends-on): Likewise.
10241         * modules/chdir-safer (Depends-on): Likewise.
10242         * modules/fdopendir (Depends-on): Likewise.
10243         * modules/inet_ntop (Depends-on): Likewise.
10244         * modules/inet_pton (Depends-on): Likewise.
10245         * modules/lchown (Depends-on): Likewise.
10246         * modules/openat (Depends-on): Likewise.
10247         * modules/savewd (Depends-on): Likewise.
10248         * modules/settime (Depends-on): Likewise.
10249         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10250
10251         fts: avoid leaking fds
10252         * modules/fts (Depends-on): Add cloexec.
10253         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10254         flag.
10255
10256         fts: make directory fds more robust
10257         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10258         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10259
10260         backupfile, chdir-long, fts, savedir: make safer
10261         * lib/backupfile.c (includes): Use "dirent--.h", since
10262         numbered_backup can write to stderr during readdir.
10263         * lib/savedir.c (includes): Likewise.
10264         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10265         emulation can write to stderr on failure.
10266         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10267         * lib/getcwd.c: Document why opendir_safer is unused.
10268         * lib/glob.c: Likewise.
10269         * lib/scandir.c: Likewise.
10270         * lib/openat-proc.c: Likewise, for open_safer.
10271         * modules/backupfile (Depends-on): Add dirent-safer.
10272         * modules/savedir (Depends-on): Likewise.
10273         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10274         * modules/chdir-long (Depends-on): Add openat-safer.
10275
10276         openat-safer: new module
10277         * modules/openat-safer: New file.
10278         * lib/openat-safer.c: Likewise.
10279         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10280         * lib/fcntl-safer.h (openat_safer): Declare.
10281         * lib/fcntl--.h (openat): Override.
10282         * MODULES.html.sh (File descriptor based I/O): Mention it.
10283         * lib/openat.h: Add double-inclusion guards.
10284         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10285         "fcntl--.h", so we can implement openat.
10286         * modules/openat-safer-tests: New test.
10287         * tests/test-openat-safer.c: New file.
10288
10289         dirent-safer: new module
10290         * modules/dirent-safer: New file.
10291         * lib/dirent--.h: Likewise.
10292         * lib/dirent-safer.h: Likewise.
10293         * lib/opendir-safer.c: Likewise.
10294         * m4/dirent-safer.m4: Likewise.
10295         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10296         * modules/dirent-safer-tests: New test.
10297         * tests/test-dirent-safer.c: New file.
10298         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10299
10300         fdopendir: optimize on mingw
10301         * lib/unistd.in.h (_gl_directory_name): New prototype.
10302         * lib/fchdir.c (_gl_directory_name): Implement it.
10303         (fchdir): Use it to simplify implementation.
10304         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10305         fchdir, when available, to avoid calling [f]chdir().
10306
10307         fdopendir: split into its own module
10308         * lib/openat.c (fdopendir): Move...
10309         * lib/fdopendir.c: ...into new file.
10310         * modules/fdopendir: New module.
10311         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10312         * modules/openat (Depends-on): Add fdopendir.
10313         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10314         fdopendir here.
10315         * modules/savedir (Depends-on): Only need fdopendir, not full
10316         openat.
10317         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10318         * lib/openat.h (fdopendir): Drop prototype.
10319         * lib/dirent.in.h (fdopendir): Provide prototype.
10320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10321         * modules/dirent (Makefile.am): Substitute them.
10322         * MODULES.html.sh (File system functions): Mention it.
10323         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10324         * modules/fdopendir-tests: New file.
10325         * tests/test-fdopendir.c: Likewise.
10326
10327         fchdir: use more consistent macro convention
10328         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10329         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10330         REPLACE_FCHDIR, rather than relying on config.h macros.
10331         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10332         inside a single make-time REPLACE_FCHDIR block, rather than using
10333         the config.h FCHDIR_REPLACEMENT.
10334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10335         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10336         Manage fstat replacement.
10337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10338         REPLACE_FCHDIR.
10339         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10340         (Makefile.am): Substitute REPLACE_FCHDIR.
10341         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10342         FCHDIR_REPLACEMENT.
10343         * lib/dup-safer.c (dup_safer): Likewise.
10344         * lib/dup2.c (rpl_dup2): Likewise.
10345         * lib/dup3.c (rpl_dup3): Likewise.
10346         * lib/open.c (rpl_open): Likewise.
10347
10348         fchdir: simplify error handling, and support dup3
10349         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10350         stdbool, malloc-posix, realloc-posix.
10351         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10352         (ensure_dirs_slot): Return false on allocation failure.
10353         (rpl_dup2): Delete.
10354         (_gl_register_dup): New function.
10355         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10356         (_gl_register_fd): Close fd on allocation failure.
10357         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10358         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10359         prototype.
10360         (rpl_dup2_fchdir): Delete prototype.
10361         * lib/open.c (open): Update caller.
10362         * lib/dup2.c (dup2): Track fchdir metadata.
10363         * lib/dup3.c (dup3): Likewise.
10364         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10366
10367 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10368
10369         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10370         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10371         don't pass arguments to AC_OUTPUT.
10372
10373 2009-09-02  Bruno Haible  <bruno@clisp.org>
10374
10375         * modules/mkdtemp (License): Relicense under LGPLv2+.
10376         Reported by Paolo Bonzini.
10377
10378 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10379
10380         Replace uses of obsolete autoconf macros in Jim's modules.
10381         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10382         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10383         can evoke a warning from autoconf when run with -Wobsolete
10384         enabled.  They were declared obsolete for good reasons (see
10385         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10386         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10387         should not continue using the deprecated macros.
10388         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10389         obsolete Autoconf macros with modern counterparts.
10390         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10391         * m4/dos.m4 (gl_AC_DOS): Likewise.
10392         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10393         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10394         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10395         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10396         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10398         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10399         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10400         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10401         Likewise.
10402         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10403         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10404         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10405         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10406         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10407         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10408
10409 2009-09-01  Eric Blake  <ebb9@byu.net>
10410
10411         fchdir: fix off-by-one bug in previous patch
10412         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10413         (_gl_unregister_fd): Delete useless if.
10414
10415 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10416
10417         maint.mk: sort the list of syntax-check rules
10418         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10419         easier to get a sense of progress when the rules are run sequentially
10420         and take a long time.
10421
10422 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10423
10424         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10425         * modules/netinet_in: Likewise.
10426         * modules/sys_file: Likewise.
10427         * modules/sys_ioctl: Likewise.
10428         * modules/sys_select: Likewise.
10429         * modules/sys_socket: Likewise.
10430         * modules/sys_stat: Likewise.
10431         * modules/sys_time: Likewise.
10432         * modules/sys_times: Likewise.
10433         * modules/sys_utsname: Likewise.
10434         * modules/sys_wait: Likewise.
10435
10436 2009-09-01  Jim Meyering  <meyering@redhat.com>
10437
10438         fts: help ensure that return values are not ignored
10439         * lib/fts_.h (__GNUC_PREREQ): Define.
10440         (__attribute_warn_unused_result__): Define.
10441         (fts_children, fts_close, fts_open, fts_read): Declare with
10442         __attribute_warn_unused_result__.
10443
10444         fts: fts_close now fails also when closing a dir file descriptor fails
10445         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10446         and propagate to caller, along with errno.
10447
10448         announce-gen: correct formatting in --help output
10449         * build-aux/announce-gen (usage): Move the one-line description in
10450         --help output "up", to where it belongs, just after Usage:.
10451
10452 2009-08-31  Eric Blake  <ebb9@byu.net>
10453
10454         fchdir: port to mingw
10455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10456         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10457         opened, then use a substitute.
10458         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10459         replacement.
10460         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10461         (_gl_register_fd): No need to check stat if open already filters
10462         all directories.
10463         (fchdir): Fix error condition to match POSIX.
10464         * modules/fchdir (Depends-on): Add sys_stat.
10465         * doc/posix-functions/open.texi (open): Document the limitation.
10466         * modules/fchdir-tests: New file.
10467         * tests/test-fchdir.c: Likewise.
10468
10469         canonicalize: allow cross-testing from cygwin to mingw
10470         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10471         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10472         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10473         Likewise.
10474         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10475         target does not support symlinks.
10476         * tests/test-canonicalize-lgpl.sh: Likewise.
10477
10478         chown: avoid compilation warning on mingw
10479         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10480         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10481         mingw.
10482         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10483         * modules/chown (Depends-on): Add errno.
10484
10485 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10486
10487         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10488         command.
10489
10490 2009-08-31  Jim Meyering  <meyering@redhat.com>
10491
10492         canonicalize: remove useless initialization
10493         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10494         initialization of local, "end".
10495
10496 2009-08-30  Bruno Haible  <bruno@clisp.org>
10497
10498         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10499         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10500         ENOSYS.
10501
10502 2009-08-30  Bruno Haible  <bruno@clisp.org>
10503
10504         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10505         /usr/xpg4/bin/tr when it exists.
10506         * tests/test-pipe-filter-gi1.sh: Likewise.
10507
10508 2009-08-30  Bruno Haible  <bruno@clisp.org>
10509
10510         Work around deficient /usr/bin/id program on Solaris.
10511         * tests/test-file-has-acl.sh (ID): New variable.
10512         * tests/test-set-mode-acl.sh (ID): Likewise.
10513         * tests/test-copy-acl.sh (ID): Likewise.
10514         * tests/test-copy-file.sh (ID): Likewise.
10515
10516 2009-08-30  Bruno Haible  <bruno@clisp.org>
10517
10518         New module 'xstriconveh'.
10519         * lib/xstriconveh.h: New file.
10520         * lib/xstriconveh.c: New file.
10521         * modules/xstriconveh: New file.
10522
10523 2009-08-30  Bruno Haible  <bruno@clisp.org>
10524
10525         Make it easier to use mem_cd_iconveh.
10526         * lib/striconveh.h (iconveh_t): New type.
10527         (iconveh_open, iconveh_close): New declarations.
10528         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10529         with a single 'const iconveh_t *' argument.
10530         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10531         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10532         with a single 'const iconveh_t *' argument.
10533         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10534         * tests/test-striconveh.c (main): Update.
10535         * NEWS: Mention the change.
10536
10537 2009-08-30  Bruno Haible  <bruno@clisp.org>
10538
10539         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10540         problem.
10541
10542 2009-08-30  Bruno Haible  <bruno@clisp.org>
10543
10544         Work around iconv_open problem on Solaris.
10545         * lib/iconv_open-solaris.gperf: New file.
10546         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10547         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10548         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10549         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10550         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10551         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10552
10553 2009-08-29  Jim Meyering  <meyering@redhat.com>
10554
10555         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10556         * top/maint.mk (cvs-check): Remove target; it was just an alias
10557         to the better-named vc-diff-check.
10558         (maintainer-distcheck): Remove rule.  It was used only from
10559         the (alpha/beta/major) target, and all of its commands but one
10560         were coreutils-specific.
10561         (vc-dist): Remove rule.
10562         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10563         Run vc-diff-check, not vc-dist.
10564         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10565
10566 2009-08-27  Bruno Haible  <bruno@clisp.org>
10567
10568         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10569         of 0.
10570
10571 2009-08-27  Bruno Haible  <bruno@clisp.org>
10572
10573         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10574         compilers.
10575         * doc/func.texi: Document the SunPRO C bug.
10576
10577 2009-08-27  Bruno Haible  <bruno@clisp.org>
10578
10579         Fix link error on Solaris.
10580         * tests/test-parse-duration.c (xstrdup): Remove function.
10581
10582 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10583
10584         ignore-value: handle pointer types, too
10585         * lib/ignore-value.h (__attribute__): Remove definition.
10586         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10587         of a more concise and more-often effective "(void) i" statement.
10588         (ignore_ptr): New function to suppress warnings from functions that
10589         return pointers, and to make it explicit that one function doesn't
10590         handle all cases.
10591
10592 2009-08-25  Bruno Haible  <bruno@clisp.org>
10593
10594         dup2: work around a Linux bug.
10595         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10596         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10597         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10598         Reported by Simon Josefsson.
10599
10600 2009-08-25  Jim Meyering  <meyering@redhat.com>
10601
10602         libguestfs uses gnulib
10603         * users.txt: Add libguestfs.
10604
10605 2009-08-24  Eric Blake  <ebb9@byu.net>
10606
10607         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10608         * lib/pipe2.c (includes): Add binary-io.h.
10609         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10610
10611 2009-08-24  Bruno Haible  <bruno@clisp.org>
10612
10613         Tolerate declared but missing accept4 syscall.
10614         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10615         available.
10616         * lib/sys_socket.in.h (accept4): If the function is already present,
10617         override it.
10618         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10619         * modules/accept4 (Makefile.am): Compile accept4.c always.
10620         Reported by Paolo Bonzini and Eric Blake.
10621
10622 2009-08-23  Bruno Haible  <bruno@clisp.org>
10623
10624         New module 'accept4'.
10625         * lib/sys_socket.in.h (accept4): New declaration.
10626         * lib/accept4.c: New file.
10627         * m4/accept4.m4: New file.
10628         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10629         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10630         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10631         HAVE_ACCEPT4.
10632         * modules/accept4: New file.
10633         * doc/glibc-functions/accept4.texi: Mention the new module.
10634
10635 2009-08-24  Jim Meyering  <meyering@redhat.com>
10636
10637         progname: also set global program_invocation_name, when possible
10638         Before this change, a libtool-enabled program that calls glibc's
10639         error function would report the program name as
10640         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10641         * modules/progname (configure.ac): Check for a declaration of
10642         program_invocation_name.
10643         * lib/progname.c:  Include <errno.h>.
10644         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10645         Set program_invocation_name.
10646
10647 2009-08-23  Bruno Haible  <bruno@clisp.org>
10648
10649         * lib/dup3.c: Include <string.h>.
10650
10651 2009-08-23  Bruno Haible  <bruno@clisp.org>
10652
10653         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10654         * lib/pipe2.c (pipe2): Likewise.
10655         Suggested by Eric Blake.
10656
10657 2009-08-23  Bruno Haible  <bruno@clisp.org>
10658
10659         Tolerate declared but missing dup3 syscall.
10660         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10661         * lib/unistd.in.h (dup3): If the function is already present,
10662         override it.
10663         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10664         * modules/dup3 (Makefile.am): Compile dup3.c always.
10665         Reported by Paolo Bonzini.
10666
10667 2009-08-23  Bruno Haible  <bruno@clisp.org>
10668
10669         Tolerate declared but missing pipe2 syscall.
10670         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10671         available.
10672         * lib/unistd.in.h (pipe2): If the function is already present,
10673         override it.
10674         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10675         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10676         Reported by Paolo Bonzini.
10677
10678 2009-08-23  Bruno Haible  <bruno@clisp.org>
10679
10680         * lib/pipe2.c (pipe2): Move #ifs inside function.
10681
10682 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10683
10684         quotearg: document limitations of quote_these_too
10685         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10686         those limitations are created.
10687         * lib/quotearg.h (set_char_quoting): Document that digits and
10688         letters that are special after backslash are not permitted.
10689         (quotearg_char): Cross-reference set_char_quoting documentation.
10690
10691 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10692
10693         quotearg: implement custom_quoting_style
10694         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10695         right_quote fields.
10696         (set_custom_quoting): New public function.
10697         (quotearg_buffer_restyled): Add left_quote and right_quote
10698         arguments, handle them very much like locale quoting, and update
10699         all uses.
10700         (quotearg_n_custom): New public function.
10701         (quotearg_n_custom_mem): New public function.
10702         (quotearg_custom): New public function.
10703         (quotearg_custom_mem): New public function.
10704         * lib/quotearg.h: Prototype and document new public functions.
10705         (enum quoting_style): For escape_quoting_style and
10706         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10707         ignored even though they're otherwise like c_quoting_style.
10708         Add custom_quoting_style member and document with comparison to
10709         clocale_quoting_style.
10710         * tests/test-quotearg.c (custom_quotes): New array.
10711         (custom_results): New array.
10712         (main): Extend to test custom quoting.
10713
10714 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10715
10716         quotearg: fix right quote escaping when it's in quote_these_too
10717         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10718         quote, be sure to prepend only one backslash.
10719         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10720         (main): Test it.
10721
10722 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10723
10724         quotearg-tests: test escaping of embedded locale quotes
10725         * tests/test-quotearg.c (struct result_strings): Add member for
10726         new input.
10727         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10728         (inputs): Add new input.
10729         (results_g): Add expected results.
10730         (flag_results): Likewise.
10731         (locale_results): Likewise.
10732         (compare_strings): Check those.
10733
10734 2009-08-23  Bruno Haible  <bruno@clisp.org>
10735
10736         Tests for module 'dup3'.
10737         * modules/dup3-tests: New file.
10738         * tests/test-dup3.c: New file.
10739
10740         New module 'dup3'.
10741         * lib/unistd.in.h (dup3): New declaration.
10742         * lib/dup3.c: New file.
10743         * m4/dup3.m4: New file.
10744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10745         HAVE_DUP3.
10746         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10747         * modules/dup3: New file.
10748         * doc/glibc-functions/dup3.texi: Mention the new module.
10749
10750 2009-08-23  Bruno Haible  <bruno@clisp.org>
10751
10752         Tweak the dup2 test.
10753         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10754         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10755         the test file is still empty. Fix argument order of lseek.
10756
10757 2009-08-23  Bruno Haible  <bruno@clisp.org>
10758
10759         Avoid test link errors when the modules getopt-gnu, gettext are used.
10760         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10762
10763 2009-08-23  Bruno Haible  <bruno@clisp.org>
10764
10765         Fix getdtablesize() on mingw.
10766         * lib/getdtablesize.c (getdtablesize): Implement differently.
10767         * lib/unistd.in.h (getdtablesize): Improve comment.
10768
10769 2009-08-23  Bruno Haible  <bruno@clisp.org>
10770
10771         New module 'mkostemp'.
10772         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10773         * lib/stdlib.in.h (mksotemp): New declaration.
10774         * lib/mkostemp.c: New file, from glibc with modifications.
10775         * lib/tempname.h (GT_FILE): Remove outdated comment.
10776         (gen_tempname): Add flags argument.
10777         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10778         (__GT_FILE): Map to 1.
10779         (small_open, large_open): Remove macros.
10780         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10781         * lib/mkstemp.c (mkstemp): Update.
10782         * lib/mkdtemp.c (mkdtemp): Likewise.
10783         * m4/mkostemp.m4: New file.
10784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10785         HAVE_MKOSTEMP.
10786         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10787         HAVE_MKOSTEMP.
10788         * modules/mkostemp: New file, based on modules/mkstemp.
10789         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10790         * NEWS: Mention the change.
10791
10792 2009-08-23  Bruno Haible  <bruno@clisp.org>
10793
10794         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10795         Reported by Eric Blake.
10796
10797 2009-08-23  Bruno Haible  <bruno@clisp.org>
10798
10799         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10800         Reported by Eric Blake.
10801
10802 2009-08-23  Bruno Haible  <bruno@clisp.org>
10803
10804         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10805         * modules/pipe2 (Depends-on): Likewise.
10806
10807 2009-08-23  Eric Blake  <ebb9@byu.net>
10808
10809         fcntl-h: add O_TTY_INIT support
10810         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10811         * tests/test-fcntl-h.c (o): Test it.
10812         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10813
10814         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10815         * modules/fcntl: Move <fcntl.h> header replacement...
10816         * modules/fcntl-h: ...to new name, so as not to collide with
10817         like-named function.
10818         * tests/test-fcntl.c: Rename...
10819         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10820         * modules/fcntl-tests: Rename...
10821         * modules/fcntl-h-tests: ...to this.  Update test file name.
10822         * modules/chdir-long (Depends-on): Update clients.
10823         * modules/chdir-safer (Depends-on): Likewise.
10824         * modules/fcntl-safer (Depends-on): Likewise.
10825         * modules/fts (Depends-on): Likewise.
10826         * modules/mkancesdirs (Depends-on): Likewise.
10827         * modules/mkdir-p (Depends-on): Likewise.
10828         * modules/open (Depends-on): Likewise.
10829         * modules/savewd (Depends-on): Likewise.
10830         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10831         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10832
10833 2009-08-22  Bruno Haible  <bruno@clisp.org>
10834
10835         * modules/binary-io (License): Relicense under LGPL.
10836         * modules/pipe2 (License): Likewise.
10837
10838 2009-08-22  Bruno Haible  <bruno@clisp.org>
10839
10840         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10841         return value.
10842         * lib/pipe-filter-gi.c (filter_init): Likewise.
10843         Reported by Eric Blake.
10844
10845 2009-08-22  Bruno Haible  <bruno@clisp.org>
10846
10847         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10848         * modules/pipe (Depends-on): Add pipe2.
10849
10850 2009-08-22  Bruno Haible  <bruno@clisp.org>
10851
10852         Tests for module 'pipe2'.
10853         * modules/pipe2-tests: New file.
10854         * tests/test-pipe2.c: New file.
10855
10856         New module 'pipe2'.
10857         * lib/unistd.in.h (pipe2): New declaration.
10858         * lib/pipe2.c: New file.
10859         * m4/pipe2.m4: New file.
10860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10861         HAVE_PIPE2.
10862         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10863         * modules/pipe2: New file.
10864         * doc/glibc-functions/pipe2.texi: Mention the new module.
10865
10866 2009-08-22  Bruno Haible  <bruno@clisp.org>
10867
10868         Reference some new glibc functions.
10869         * doc/glibc-functions/accept4.texi: New file.
10870         * doc/glibc-functions/dup3.texi: New file.
10871         * doc/glibc-functions/mkostemp.texi: New file.
10872         * doc/glibc-functions/pipe2.texi: New file.
10873         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10874         (Glibc sys/socket.h): Refer to accept4.
10875         (Glibc unistd.h): Refer to dup3, pipe2.
10876         Reported by Eric Blake.
10877
10878 2009-08-22  Jim Meyering  <meyering@redhat.com>
10879             Bruno Haible  <bruno@clisp.org>
10880
10881         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10882         This makes it so packages using automake-1.11's silent-rules option
10883         can print e.g., a single "GEN    configmake.h" line, rather than
10884         the 30+ statements that perform the job.  If you want to see the
10885         actual commands, you can still run "make V=1".
10886         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10887         so that make output is abbreviated when those variables are defined
10888         appropriately.
10889         * modules/argz: Likewise.
10890         * modules/arpa_inet: Likewise.
10891         * modules/byteswap: Likewise.
10892         * modules/configmake: Likewise.
10893         * modules/dirent: Likewise.
10894         * modules/errno: Likewise.
10895         * modules/fcntl: Likewise.
10896         * modules/float: Likewise.
10897         * modules/fnmatch: Likewise.
10898         * modules/getopt-posix: Likewise.
10899         * modules/glob: Likewise.
10900         * modules/iconv_open: Likewise.
10901         * modules/inttypes: Likewise.
10902         * modules/localcharset: Likewise.
10903         * modules/locale: Likewise.
10904         * modules/math: Likewise.
10905         * modules/netdb: Likewise.
10906         * modules/netinet_in: Likewise.
10907         * modules/poll: Likewise.
10908         * modules/posix_spawnp-tests: Likewise.
10909         * modules/sched: Likewise.
10910         * modules/search: Likewise.
10911         * modules/selinux-h: Likewise.
10912         * modules/signal: Likewise.
10913         * modules/spawn: Likewise.
10914         * modules/stdarg: Likewise.
10915         * modules/stdbool: Likewise.
10916         * modules/stddef: Likewise.
10917         * modules/stdint: Likewise.
10918         * modules/stdio: Likewise.
10919         * modules/stdlib: Likewise.
10920         * modules/string: Likewise.
10921         * modules/strings: Likewise.
10922         * modules/sys_file: Likewise.
10923         * modules/sys_ioctl: Likewise.
10924         * modules/sys_select: Likewise.
10925         * modules/sys_socket: Likewise.
10926         * modules/sys_stat: Likewise.
10927         * modules/sys_time: Likewise.
10928         * modules/sys_times: Likewise.
10929         * modules/sys_utsname: Likewise.
10930         * modules/sys_wait: Likewise.
10931         * modules/sysexits: Likewise.
10932         * modules/time: Likewise.
10933         * modules/unistd: Likewise.
10934         * modules/wchar: Likewise.
10935         * modules/wctype: Likewise.
10936
10937 2009-08-22  Jim Meyering  <meyering@redhat.com>
10938
10939         announce-gen: detect write failure
10940         * build-aux/announce-gen: Add Coda at end.
10941         Remove equivalent-but-more-verbose block at top.
10942
10943 2009-08-19  Akim Demaille  <demaille@gostai.com>
10944
10945         bootstrap: --help to stdout.
10946         * bootstrap (usage): Don't send --help to stderr.
10947         Use a here doc instead of a long string.
10948
10949 2009-08-21  Eric Blake  <ebb9@byu.net>
10950
10951         test-popen-safer: split from test-popen
10952         * tests/test-popen.c (main): Move...
10953         * tests/test-popen.h: ...into new file.
10954         * tests/test-popen-safer2.c: New file.
10955         * modules/popen-tests (Files): Add test-popen.h.
10956         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10957         Suggested by Bruno Haible.
10958
10959         test-fcntl-safer: split from test-open
10960         * tests/test-open.c (main): Move...
10961         * tests/test-open.h: ...into new file.
10962         * tests/test-fcntl-safer.c: New file.
10963         * modules/open-tests (Files): Add test-open.h.
10964         * modules/fcntl-safer-tests: New file.
10965         Suggested by Bruno Haible.
10966
10967         test-fopen-safer: split from test-fopen
10968         * tests/test-fopen.c (main): Move...
10969         * tests/test-fopen.h: ...into new file.
10970         * tests/test-fopen-safer.c: New file.
10971         * modules/fopen-tests (Files): Add test-fopen.h.
10972         * modules/fopen-safer-tests: New file.
10973         Suggested by Bruno Haible.
10974
10975 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10976
10977         popen-safer: test O_CLOEXEC at run-time.
10978         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10979
10980 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10981
10982         fcntl: move more flags to the header
10983         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10984         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10985         * lib/fcntl.in.h: Do both things here.
10986
10987 2009-08-21  Jim Meyering  <meyering@redhat.com>
10988
10989         consistently remove $@-t before redirecting to it
10990         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10991         * modules/alloca-opt: Likewise.
10992         * modules/byteswap: Likewise.
10993         * modules/fnmatch: Likewise.
10994         * modules/getopt-posix: Likewise.
10995         * modules/glob: Likewise.
10996         * modules/poll: Likewise.
10997         * modules/posix_spawnp-tests: Likewise.
10998         * modules/sys_socket: Likewise.
10999         * modules/sysexits: Likewise.
11000
11001 2009-08-21  Eric Blake  <ebb9@byu.net>
11002
11003         popen: simplify access to original popen
11004         * lib/popen.c (rpl_popen): No need to worry about popen being a
11005         macro.
11006         Reported by Bruno Haible.
11007
11008 2009-08-20  Eric Blake  <ebb9@byu.net>
11009
11010         build: avoid some compiler warnings
11011         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11012         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11013         type.
11014         (new_exclude_segment, excluded_file_pattern_p)
11015         (excluded_file_name_p): Reduce scope.
11016         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11017         old-style declaration.
11018
11019 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11020
11021         * tests/test-exclude1.sh: Handle Windows EOL.
11022         * tests/test-exclude2.sh: Likewise.
11023         * tests/test-exclude3.sh: Likewise.
11024         * tests/test-exclude4.sh: Likewise.
11025         * tests/test-exclude5.sh: Likewise.
11026         * tests/test-exclude6.sh: Likewise.
11027         * tests/test-exclude7.sh: Likewise.
11028
11029 2009-08-19  Akim Demaille  <demaille@gostai.com>
11030
11031         bootstrap: find sha1sum when named gsha1sum.
11032         * bootstrap (find_tool): New.
11033         ($SHA1SUM): New.
11034         Use it.
11035
11036 2009-08-20  Jim Meyering  <meyering@redhat.com>
11037
11038         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11039         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11040         expression that converts "." in a file name to "\." in the resulting
11041         regexp.  Start with a dummy statement, so that prior shell variable
11042         definitions are expanded portably.  Reported by Simon Josefsson.
11043
11044 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11045
11046         Fix polling for writeability of a screen buffer.
11047         * lib/poll.c: Distinguish input and screen buffers for the
11048         Win32 implementation.
11049         * lib/select.c: Likewise.
11050
11051 2009-08-19  Eric Blake  <ebb9@byu.net>
11052
11053         popen-safer: prevent popen from clobbering std descriptors
11054         * modules/popen-safer: New file.
11055         * lib/popen-safer.c: Likewise.
11056         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11057         * lib/stdio--.h (popen): Provide override.
11058         * lib/stdio-safer.h (popen_safer): Provide declaration.
11059         * tests/test-popen.c (includes): Partially test this.
11060         * modules/popen-safer-tests: New file, for more tests.
11061         * tests/test-popen-safer.c: Likewise.
11062         * MODULES.html.sh (file stream based Input/Output): Mention it.
11063
11064         tests: test some of the *-safer modules
11065         * modules/fopen-safer (Depends-on): Add fopen.
11066         * modules/fcntl-safer (Depends-on): Add fcntl.
11067         * modules/stdlib-safer (Depends-on): Add stdlib.
11068         (configure.ac): Set indicator.
11069         * modules/unistd-safer (configure.ac): Likewise.
11070         * modules/tmpfile-safer (configure.ac): Likewise.
11071         (Depends-on): Add tmpfile.
11072         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11073         active.
11074         * tests/test-fopen.c (includes): Test safer versions when they are
11075         in use.
11076         * tests/test-open.c (includes): Likewise.
11077
11078         popen: fix cygwin 1.5 bug when stdin closed
11079         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11080         * modules/popen: New file.
11081         * modules/popen-tests: Likewise.
11082         * tests/test-popen.c: Likewise.
11083         * m4/popen.m4: Likewise.
11084         * lib/popen.c: Likewise.
11085         * lib/stdio.in.h (popen): New declaration.
11086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11087         * modules/stdio (Makefile.am): Likewise.
11088         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11089
11090 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11091
11092         maint.mk: give full control over update-copyright exclusions
11093         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11094         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11095         (update-copyright): Don't force inclusion of top-level
11096         ChangeLog.  Don't force exclusion of all COPYING files, but make
11097         them the default exclusion instead.
11098
11099 2009-08-16  Bruno Haible  <bruno@clisp.org>
11100
11101         Fix test failures on Solaris 10.
11102         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11103         tests when Solaris iconv() is used.
11104         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11105         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11106         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11107         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11108         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11109
11110 2009-08-16  Bruno Haible  <bruno@clisp.org>
11111
11112         Fix test failures on Solaris 10.
11113         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11114         'tr' program and pass it as first argument.
11115         * tests/test-pipe-filter-gi1.sh: Likewise.
11116         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11117         program as first argument.
11118         * tests/test-pipe-filter-gi1.c (main): Likewise.
11119
11120 2009-08-16  Eric Blake  <ebb9@byu.net>
11121
11122         fpurge: fix previous commits
11123         * modules/fpurge (Makefile.am): Make replacement conditional,
11124         partially reverting 2007-04-29 change; missed in previous
11125         attempt.
11126         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11127         is missing.
11128
11129 2009-08-16  Bruno Haible  <bruno@clisp.org>
11130
11131         Clarify fpurge's effect on the file position.
11132         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11133         * tests/test-fpurge.c (main): Make a second pass for checking the file
11134         position.
11135
11136 2009-08-16  Bruno Haible  <bruno@clisp.org>
11137
11138         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11139         declaration of fpurge is missing.
11140         * tests/test-fpurge.c (main): Check that the file has not more contents
11141         than expected. Close the file before removing it.
11142
11143 2009-08-15  Eric Blake  <ebb9@byu.net>
11144
11145         fpurge: don't wrap working cygwin implementation
11146         * lib/fpurge.c (fpurge): Fix comment typo.
11147         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11148         1.7 to avoid replacement.
11149         * tests/test-fpurge.c (main): Enhance test.
11150
11151 2009-08-15  Eric Blake  <ebb9@byu.net>
11152         and Jim Meyering  <meyering@redhat.com>
11153
11154         test-update-copyright: skip if perl is insufficient
11155         * tests/test-update-copyright.sh: Failure to run maintainer tool
11156         should not cause testsuite failure on cygwin 1.5.
11157
11158 2009-08-14  Eric Blake  <ebb9@byu.net>
11159
11160         doc: mention more functions added in cygwin 1.7.0
11161         * doc/posix-headers/limits.texi (limits.h): Update for recent
11162         cygwin additions.
11163         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11164         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11165         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11166         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11167         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11168
11169 2009-08-14  Eric Blake  <ebb9@byu.net>
11170
11171         maint.mk: simplify update-copyright rule
11172         * top/maint.mk (update-copyright-local): Delete, and document how
11173         to do it in cfg.mk instead.
11174         (update-copyright-exclude-regexp): Delete, and document how to do
11175         it in .x-update-copyright instead.
11176         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11177         exclude ChangeLog.
11178
11179 2009-08-14  Bruno Haible  <bruno@clisp.org>
11180
11181         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11182
11183 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11184
11185         maint.mk: support update-copyright-env
11186         * top/maint.mk (update-copyright-env): Define place-holder.
11187         (update-copyright): Expand $(update-copyright-env) before
11188         invoking update-copyright.
11189
11190 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11191
11192         update-copyright: implement forced reformatting
11193         * build-aux/update-copyright: Implement and document
11194         UPDATE_COPYRIGHT_FORCE.
11195         * tests/test-update-copyright.sh: Test it.
11196
11197 2009-08-14  Eric Blake  <ebb9@byu.net>
11198         and Bruno Haible  <bruno@clisp.org>
11199
11200         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11201         * tests/test-locale.c: Revert previous patch related to NULL.
11202         * tests/test-stdio.c: Likewise.
11203         * tests/test-stdlib.c: Likewise.
11204         * tests/test-string.c: Likewise.
11205         * tests/test-unistd.c: Likewise.
11206         * modules/time-tests (Depends-on): Add verify.
11207         * modules/wchar-tests (Depends-on): Likewise.
11208         * tests/test-time.c: Test for NULL compliance.
11209         * tests/test-wchar.c: Likewise.
11210         * modules/locale (Depends-on): Add stddef.
11211         * modules/stdio (Depends-on): Likewise.
11212         * modules/stdlib (Depends-on): Likewise.
11213         * modules/string (Depends-on): Likewise.
11214         * modules/time (Depends-on): Likewise.
11215         * modules/unistd (Depends-on): Likewise.
11216         * modules/wchar (Depends-on): Likewise.
11217         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11218         * lib/stdlib.in.h (includes): Likewise.
11219         * lib/string.in.h (includes): Likewise.
11220         * lib/time.in.h (includes): Likewise.
11221         * lib/unistd.in.h (includes): Likewise.
11222         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11223         replaced.
11224         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11225         * m4/stddef_h.m4: New file.
11226         * modules/stddef: Likewise.
11227         * lib/stddef.in.h: Likewise.
11228         * modules/stddef-tests: Likewise.
11229         * tests/test-stddef.c: Likewise.
11230         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11231         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11232         * doc/posix-headers/locale.texi (locale.h): Likewise.
11233         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11234         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11235         * doc/posix-headers/string.texi (string.h): Likewise.
11236         * doc/posix-headers/time.texi (time.h): Likewise.
11237         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11238         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11239
11240 2009-08-14  Eric Blake  <ebb9@byu.net>
11241
11242         doc: improve git diff of texinfo files
11243         * .gitattributes: Add rule for *.texi files, with hint on how to
11244         use it.
11245         Copied from m4, and based on a report by Bruno Haible.
11246
11247 2009-08-14  Bruno Haible  <bruno@clisp.org>
11248
11249         Disable multithread support by default on Cygwin 1.5.x for real.
11250         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11251
11252 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11253
11254         update-copyright: much ado about intervals
11255         * build-aux/update-copyright: Implement and document
11256         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11257         of copyright year intervals.
11258         Also, document UPDATE_COPYRIGHT_YEAR.
11259         * tests/test-update-copyright.sh: Test it.
11260
11261         update-copyright: convert 2-digit to 4-digit years
11262         * build-aux/update-copyright: Implement and document.
11263         * tests/test-update-copyright.sh: Update.
11264
11265 2009-08-14  Jim Meyering  <meyering@redhat.com>
11266
11267         test-exclude: avoid coreutils "make check" failure
11268         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11269         just as in test-argmatch.c.
11270
11271 2009-08-13  Eric Blake  <ebb9@byu.net>
11272
11273         test-dup2: fix bad assumption
11274         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11275         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11276
11277         test-version-etc: fix CRLF portability issue
11278         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11279         recognize \r.
11280         * tests/test-argp-version-etc-1.sh: Likewise.
11281
11282         getopt: update client modules
11283         * modules/argp (Depends-on): Use getopt-gnu.
11284         * modules/git-merge-changelog (Depends-on): Likewise.
11285         * modules/long-options (Depends-on): Likewise.
11286         * modules/xstrtol (Depends-on): Likewise.
11287
11288 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11289
11290         * tests/test-version-etc.sh: Don't fail on different
11291         project/version.  Don't fail on CRLF differences.  Rewrite to use
11292         multiple -e instead of multiple sed forks, suggested by Eric Blake
11293         <ebb9@byu.net>.
11294         * tests/test-argp-version-etc-1.sh: Likewise.
11295
11296 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11297
11298         * tests/test-version-etc.sh: Don't fail on different
11299         project/version.
11300
11301 2009-08-12  Bruno Haible  <bruno@clisp.org>
11302
11303         Tests for modules 'getopt-posix', 'getopt-gnu'.
11304         * modules/getopt-posix-tests: New file.
11305         * tests/test-getopt.c: New file.
11306         * tests/test-getopt.h: New file.
11307         * tests/test-getopt_long.h: New file.
11308
11309         New modules 'getopt-posix', 'getopt-gnu'.
11310         * modules/getopt-gnu: New file, renamed from modules/getopt.
11311         * modules/getopt-posix: New file.
11312         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11313         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11314         (gl_GETOPT): Remove macro.
11315         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11316         Disable the test against BSD systems that declare optreset. Test
11317         against mingw bug. Test against lack of support of optional arguments
11318         on many platforms.
11319         * doc/glibc-headers/getopt.texi: Update module name and list of
11320         relevant platforms.
11321         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11322         'getopt-gnu' and more portability problems.
11323         * NEWS: Mention the changes.
11324
11325 2009-08-12  Bruno Haible  <bruno@clisp.org>
11326
11327         Ensure that optarg etc. get declared by <unistd.h>.
11328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11329         AC_USE_SYSTEM_EXTENSIONS.
11330         * modules/getopt (Depends-on): Add 'extensions'.
11331
11332 2009-08-12  Bruno Haible  <bruno@clisp.org>
11333
11334         Avoid test link errors.
11335         * modules/pipe-filter-ii-tests (Makefile.am): Define
11336         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11337         * modules/pipe-filter-gi-tests (Makefile.am): Define
11338         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11340
11341 2009-08-12  Bruno Haible  <bruno@clisp.org>
11342
11343         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11344         gl_GETOPT_SUBSTITUTE before.
11345         (gl_GETOPT): Use it.
11346         * m4/argp.m4 (gl_ARGP): Update.
11347         Reported by Sergey Poznyakoff.
11348
11349         * m4/getopt.m4: Reorder macros.
11350         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11351         (gl_GETOPT_SUBSTITUTE): Remove macro.
11352
11353 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11354
11355         Minor improvement in gitlog-to-changelog
11356
11357         * build-aux/gitlog-to-changelog: New option `--format' makes
11358         output format string configurable.
11359
11360 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11361
11362         Optimize exclude: use hash tables for non-wildcard patterns.
11363
11364         * lib/exclude.c: Include hash.h and mbuiter.h
11365         (struct exclude_pattern, exclude_segment): New data types.
11366         (struct exclude): Rewrite.
11367         (fnmatch_pattern_has_wildcards): New function.
11368         (new_exclude_segment, free_exclude_segment): New functions.
11369         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11370         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11371         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11372         * modules/exclude: Depend on hash and mbuiter.
11373
11374         * modules/exclude-tests: New file.
11375         * tests/test-exclude.c: New file.
11376         * tests/test-exclude1.sh: New file.
11377         * tests/test-exclude2.sh: New file.
11378         * tests/test-exclude3.sh: New file.
11379         * tests/test-exclude4.sh: New file.
11380         * tests/test-exclude5.sh: New file.
11381         * tests/test-exclude6.sh: New file.
11382         * tests/test-exclude7.sh: New file.
11383
11384 2009-08-12  Bruno Haible  <bruno@clisp.org>
11385
11386         Ensure that getopt() gets declared by <unistd.h>.
11387         * lib/unistd.in.h: Conditionally include getopt.h.
11388         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11389         Set GNULIB_UNISTD_H_GETOPT.
11390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11391         GNULIB_UNISTD_H_GETOPT.
11392         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11393
11394 2009-08-12  Bruno Haible  <bruno@clisp.org>
11395
11396         Clarify logic.
11397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11398         gl_replace_getopt instead of GETOPT_H.
11399
11400 2009-08-12  Bruno Haible  <bruno@clisp.org>
11401
11402         * m4/getopt.m4: Add comments.
11403
11404 2009-08-12  Bruno Haible  <bruno@clisp.org>
11405
11406         Disable multithread support by default on Cygwin 1.5.x.
11407         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11408         set gl_use_threads=no if not specified otherwise.
11409
11410 2009-08-11  Bruno Haible  <bruno@clisp.org>
11411
11412         Avoid compilation error on NetBSD 5.0.
11413         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11414         * tests/test-stdio.c: Likewise.
11415         * tests/test-stdlib.c: Likewise.
11416         * tests/test-string.c: Likewise.
11417         * tests/test-unistd.c: Likewise.
11418         Reported by Greg Troxel <gdt@ir.bbn.com>
11419         at <https://savannah.gnu.org/support/?106973>.
11420
11421 2009-08-11  Bruno Haible  <bruno@clisp.org>
11422
11423         * modules/dup2-tests (Depends-on): Remove close.
11424
11425         Undo 2009-07-19 commit.
11426         * modules/acl-tests (Depends-on): Remove close.
11427         * modules/binary-io-tests (Depends-on): Likewise.
11428         * modules/closein-tests (Depends-on): Likewise.
11429         * modules/flock-tests (Depends-on): Likewise.
11430         * modules/fsync-tests (Depends-on): Likewise.
11431         * modules/lseek-tests (Depends-on): Likewise.
11432         * modules/pipe-tests (Depends-on): Likewise.
11433         * modules/posix_spawn-tests (Depends-on): Likewise.
11434         * modules/posix_spawnp-tests (Depends-on): Likewise.
11435         * modules/stat-time-tests (Depends-on): Likewise.
11436         * modules/yesno-tests (Depends-on): Likewise.
11437
11438 2009-08-10  Bruno Haible  <bruno@clisp.org>
11439
11440         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11441
11442 2009-08-10  Bruno Haible  <bruno@clisp.org>
11443
11444         Fix a gcc warning.
11445         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11446
11447 2009-08-10  Bruno Haible  <bruno@clisp.org>
11448
11449         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11450         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11451         not only the first time.
11452         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11453         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11454         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11455         is 1, not only the the first time.
11456
11457 2009-08-10  Bruno Haible  <bruno@clisp.org>
11458
11459         Make it possible to use module 'gethostname' without module 'close'.
11460         * lib/unistd.in.h (close): Evoke a link error only if
11461         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11463         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11464         * modules/unistd (Makefile.am): Substitute
11465         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11466         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11467         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11468         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11469         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11470         * modules/sys_ioctl (Makefile.am): Substitute
11471         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11472         * modules/socket (configure.ac): On native Windows, set
11473         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11474         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11475         Reported by Sam Steingold <sds@gnu.org>.
11476
11477 2009-08-10  Bruno Haible  <bruno@clisp.org>
11478
11479         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11480         * modules/ioctl (configure.ac): Likewise.
11481
11482 2009-08-10  Bruno Haible  <bruno@clisp.org>
11483
11484         Avoid collision between gnulib wrapper and libintl wrapper.
11485         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11486         already defined in intl/printf.c.
11487         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11488         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11489
11490 2009-08-09  Bruno Haible  <bruno@clisp.org>
11491
11492         Make <sys/select.h> really self-contained, also on Solaris 10.
11493         * lib/sys_select.in.h: Include <string.h>.
11494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11495         Solaris 10 problem.
11496         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11497         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11498         Reported by Jim Meyering.
11499
11500 2009-08-09  Bruno Haible  <bruno@clisp.org>
11501
11502         Avoid warnings from 'aclocal' that are due to a use of macro name
11503         AM_XGETTEXT_OPTION that is not defined in automake.
11504         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11505         automake.
11506         * modules/error (configure.ac): Likewise.
11507         * modules/propername (configure.ac): Likewise.
11508         * modules/vasprintf (configure.ac): Likewise.
11509         * modules/verror (configure.ac): Likewise.
11510         * modules/xprintf (configure.ac): Likewise.
11511         * modules/xvasprintf (configure.ac): Likewise.
11512
11513 2009-08-08  Bruno Haible  <bruno@clisp.org>
11514
11515         Avoid compilation error in C++ mode.
11516         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11517         Reported by Sam Steingold <sds@gnu.org>.
11518
11519 2009-08-08  Bruno Haible  <bruno@clisp.org>
11520
11521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11522         for the various Unix platforms.
11523         * doc/posix-headers/limits.texi: Update platforms list regarding
11524         HOST_NAME_MAX.
11525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11526
11527 2009-08-07  Jim Meyering  <meyering@redhat.com>
11528
11529         selinux-at: fix typo in a comment
11530         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11531         Spotted by Paolo Bonzini.
11532
11533         selinux-at: remove redundant m4 code, add documentation
11534         * modules/selinux-at (configure.ac): Remove redundant code.
11535         LIB_SELINUX is already set via the dependent module, selinux-h.
11536         (Include): Add quotes around selinux-at.h.
11537         * lib/selinux-at.h: Add documentation.
11538         Reported by Bruno Haible in
11539         http://marc.info/?l=gnulib-bug&m=124958988300749
11540
11541 2009-08-07  Bruno Haible  <bruno@clisp.org>
11542
11543         Avoid link error on MacOS X 10.3 and 10.4.
11544         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11545         on non-ELF systems.
11546         * lib/argp-pv.c (argp_program_version): Likewise.
11547         Reported by Simon Josefsson.
11548
11549 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11550
11551         * tests/test-version-etc.sh: Use $EXEEXT.
11552
11553 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11554
11555         update-copyright: update documentation to point to maint.mk
11556         * build-aux/update-copyright: Here.
11557
11558 2009-08-06  Jim Meyering  <meyering@redhat.com>
11559
11560         maint.mk: support update-copyright-local
11561         * top/maint.mk (update-copyright-local): Define place-holder.
11562         (update-copyright): Depend on $(update-copyright-local).
11563
11564 2009-08-06  Jim Meyering  <meyering@redhat.com>
11565
11566         selinux-at: new module
11567         Initially written for coreutils, this module will soon be
11568         used by findutils, too.
11569         * MODULES.html.sh [Misc]: Add selinux-at.
11570         * lib/selinux-at.h: New file, from coreutils.
11571         * lib/selinux-at.c: Likewise.
11572         * modules/selinux-at: Likewise.
11573         (License): Change from LGPL to GPL, since it depends
11574         on the GPL'd openat module.
11575
11576         doc: update README
11577         * README: Remove references to cogito.
11578         Remove cvs-repo-updating instructions from 2007.
11579         Don't imply that CVS is better if you have limited disk space.
11580
11581 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11582
11583         update-copyright: support C-style comments
11584         * build-aux/update-copyright: Implement and document.
11585         * tests/test-update-copyright.sh: Test.
11586
11587 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11588
11589         update-copyright: support omitted "(C)"
11590         * build-aux/update-copyright: Implement and document.  Also,
11591         allow variable whitespace before "(C)".
11592         * tests/test-update-copyright.sh: Test.
11593
11594 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11595
11596         update-copyright: don't trip on non-FSF copyright statements
11597         * build-aux/update-copyright: Fix so that the first correctly
11598         formatted FSF copyright statement is recognized no matter what
11599         appears before it.  Update documentation.
11600         * tests/test-update-copyright.sh: Test that.
11601
11602 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11603
11604         update-copyright: clean up code a little
11605         * build-aux/update-copyright: Append "_re" to the name of any
11606         variable holding a regular expression.
11607         Replace "old" and "new" with "stmt" in variable names.
11608         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11609         handled correctly.
11610         Format code more consistently.
11611
11612 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11613
11614         update-copyright-tests: improve portability
11615         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11616         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11617
11618 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11619
11620         update-copyright: support @copyright{} and &copy;
11621         * build-aux/update-copyright: Implement and document.
11622         * tests/test-update-copyright.sh: Test.
11623
11624 2009-08-04  Jim Meyering  <meyering@redhat.com>
11625
11626         update-copyright-tests: correctly test EOL=\r\n handling
11627         * tests/test-update-copyright.sh: Put \r at the end of some lines
11628         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11629
11630         maint.mk: make update-copyright exclusion list more configurable
11631         * top/maint.mk (update-copyright): Default to excluding COPYING,
11632         but allow an override, in case someone does want to update that file.
11633
11634         maint.mk: don't update copyright date in COPYING
11635         * top/maint.mk (update-copyright): Exclude COPYING.
11636
11637         maint.mk: add a copyright-updating rule
11638         * top/maint.mk (update-copyright): New rule.
11639         Derived from coreutils/Makefile.am.
11640
11641         update-copyright: rename some variables
11642         * build-aux/update-copyright: Rename a few variables for clarity.
11643         Tweak syntax.  List Joel E. Denny as coauthor.
11644
11645 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11646
11647         update-copyright: fix bug for 2-digit last year and add tests
11648         * build-aux/update-copyright: Fix bug.
11649         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11650         specified.
11651         * modules/update-copyright-tests: New
11652         * tests/test-update-copyright.sh: New.
11653
11654 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11655
11656         update-copyright: handle leading tabs in line prefix
11657         * build-aux/update-copyright: Count leading tabs as 8 spaces
11658         when computing margin.  This helps with the formatting of
11659         ChangeLogs, for example.
11660         Fix documentation a little.
11661
11662 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11663
11664         update-copyright: support EOL=\r\n
11665         * build-aux/update-copyright: Implement that.
11666
11667 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11668
11669         update-copyright: automatically format copyright statements
11670         * build-aux/update-copyright: Implement that.
11671         Also, be a little more predictable and safer by always failing
11672         when the full copyright format is not perfectly recognized as an
11673         unbroken whole.  Discussed at
11674         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11675         Rewrite documentation.
11676
11677 2009-08-03  Bruno Haible  <bruno@clisp.org>
11678
11679         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11680
11681 2009-08-02  Bruno Haible  <bruno@clisp.org>
11682
11683         Tests for module 'uname'.
11684         * modules/uname-tests: New file.
11685         * tests/test-uname.c: New file.
11686
11687         New module 'uname'.
11688         * lib/uname.c: New file.
11689         * m4/uname.m4: New file.
11690         * modules/uname: New file.
11691         * doc/posix-functions/uname.texi: Mention the new module.
11692
11693 2009-08-02  Bruno Haible  <bruno@clisp.org>
11694
11695         Tests for module 'sys_utsname'.
11696         * modules/sys_utsname-tests: New file.
11697         * tests/test-sys_utsname.c: New file.
11698
11699         New module 'sys_utsname'.
11700         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11701         * m4/sys_utsname_h.m4: New file.
11702         * modules/sys_utsname: New file.
11703         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11704
11705 2009-08-02  Bruno Haible  <bruno@clisp.org>
11706
11707         Implicitly initialize the sockets library.
11708         * lib/gethostname.c: Include sockets.h.
11709         (rpl_gethostname): Invoke gl_sockets_startup.
11710         * lib/socket.c: Include sockets.h.
11711         (rpl_socket): Invoke gl_sockets_startup.
11712         * modules/gethostname (Depends-on): Add sockets.
11713         * modules/socket (Depends-on): Likewise.
11714         * tests/test-poll.c: Don't include sockets.h.
11715         (main): Don't invoke gl_sockets_startup.
11716         * tests/test-select.c: Don't include sockets.h.
11717         (main): Don't invoke gl_sockets_startup.
11718
11719 2009-08-02  Bruno Haible  <bruno@clisp.org>
11720
11721         Allow multiple calls to gl_sockets_startup.
11722         * lib/sockets.c (initialized_sockets_version): New variable.
11723         (gl_sockets_startup): Do nothing if already called for this or a higher
11724         version.
11725         (gl_sockets_cleanup): Reset initialized_sockets_version.
11726
11727 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11728
11729         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11730         different project/version.
11731
11732 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11733             Bruno Haible  <bruno@clisp.org>
11734
11735         Tests for module 'pipe-filter-gi'.
11736         * modules/pipe-filter-gi-tests: New file.
11737         * tests/test-pipe-filter-gi1.sh: New file.
11738         * tests/test-pipe-filter-gi1.c: New file.
11739         * tests/test-pipe-filter-gi2.sh: New file.
11740         * tests/test-pipe-filter-gi2-main.c: New file.
11741         * tests/test-pipe-filter-gi2-child.c: New file.
11742
11743         New module 'pipe-filter-gi'.
11744         * lib/pipe-filter-gi.c: New file.
11745         * modules/pipe-filter-gi: New file.
11746
11747 2009-08-02  Bruno Haible  <bruno@clisp.org>
11748             Paolo Bonzini  <bonzini@gnu.org>
11749
11750         Tests for module 'pipe-filter-ii'.
11751         * modules/pipe-filter-ii-tests: New file.
11752         * tests/test-pipe-filter-ii1.sh: New file.
11753         * tests/test-pipe-filter-ii1.c: New file.
11754         * tests/test-pipe-filter-ii2.sh: New file.
11755         * tests/test-pipe-filter-ii2-main.c: New file.
11756         * tests/test-pipe-filter-ii2-child.c: New file.
11757
11758         New module 'pipe-filter-ii'.
11759         * lib/pipe-filter.h: New file.
11760         * lib/pipe-filter-ii.c: New file.
11761         * lib/pipe-filter-aux.h: New file.
11762         * modules/pipe-filter-ii: New file.
11763
11764 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11765
11766         * lib/gc-libgcrypt.c: Change copyright to FSF.
11767         * lib/gc-gnulib.c: Likewise.
11768
11769 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11770
11771         * lib/gethostname.c: Include limits.h.
11772
11773 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11774             Bruno Haible  <bruno@clisp.org>
11775
11776         Ensure HOST_NAME_MAX as part of the gethostname module.
11777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11778         define also HOST_NAME_MAX.
11779         * tests/test-gethostname.c: Include <limits.h>.
11780         (main): Check also HOST_NAME_MAX.
11781         * doc/posix-headers/limits.texi: Document the mingw problem.
11782
11783 2009-08-02  Bruno Haible  <bruno@clisp.org>
11784
11785         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11786         Add comments.
11787
11788 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11789
11790         * lib/gethostname.c: Add Windows wrapper.
11791         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11792         * modules/gethostname: Depend on sys_socket & errno, for also
11793         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11794         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11795
11796 2009-07-31  Jim Meyering  <meyering@redhat.com>
11797
11798         getloadavg: fix symbol name in comment
11799         * lib/getloadavg.c: Correct a typo I introduced when adding
11800         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11801         Matt Kraai spotted the problem.
11802
11803 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11804
11805         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11806         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11807         code also if ! defined N_NAME_POINTER.
11808         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11809         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11810         but the n_name member is a 12-byte array.
11811
11812 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11813
11814         update-copyright: generalize comment handling
11815         * build-aux/update-copyright: Handle copyright statements
11816         within more comment styles.
11817         Document usage.
11818         Report any file with an external copyright holder or parse failure.
11819
11820 2009-07-29  Jim Meyering  <meyering@redhat.com>
11821
11822         mktime: correct setting of REPLACE_MKTIME
11823         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11824
11825         update-copyright: new module
11826         * modules/update-copyright: New file.
11827         * build-aux/update-copyright: New file.
11828         * MODULES.html.sh (maint+release support): Add update-copyright.
11829
11830 2009-07-27  Bruno Haible  <bruno@clisp.org>
11831
11832         Fix compilation error when <ctime> is used and mktime is replaced.
11833         * lib/time.in.h (mktime): New declaration.
11834         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11835         REPLACE_MKTIME instead of defining mktime in config.h.
11836         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11837         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11838         Reported by Ross McFarland <rwmcfa1@neces.com>.
11839
11840 2009-07-27  Bruno Haible  <bruno@clisp.org>
11841
11842         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11843         Reported by Matt Kraai <mkraai@beckman.com>.
11844
11845 2009-07-25  Jim Meyering  <meyering@redhat.com>
11846
11847         maint.mk: avoid warnings about missing files
11848         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11849         diagnostic when .prev-version does not exist.
11850         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11851         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11852         nonexistent cfg.mk.
11853         Suggestions from Simon Josefsson.
11854
11855 2009-07-25  Bruno Haible  <bruno@clisp.org>
11856
11857         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11858         defined as macros. Needed on QNX 6.4.1.
11859         Reported by Matt Kraai <mkraai@beckman.com>.
11860
11861 2009-07-23  Jim Meyering  <meyering@redhat.com>
11862
11863         maint.mk: invoke "make dist" with a working value of XZ_OPT
11864         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11865
11866 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11867
11868         Make fseeko.c compile on QNX.
11869         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11870
11871 2009-07-22  Peter Simons  <simons@cryp.to>
11872
11873         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11874         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11875         * lib/md4.h: Likewise.
11876         * lib/md5.h: Likewise.
11877         * lib/sha1.h: Likewise.
11878         * lib/sha256.h: Likewise.
11879         * lib/sha512.h: Likewise.
11880
11881         tests-sha1: don't assign literal string to 'char *' variable
11882         * tests/test-sha1.c (main): Declare locals with "const" to match
11883         attributes of the right hand side.
11884
11885 2009-07-21  Eric Blake  <ebb9@byu.net>
11886
11887         dup2: fix more mingw problems
11888         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11889         fd to itself.
11890         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11891         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11892         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11893         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11894         care of mingw bugs.
11895
11896 2009-07-21  Jim Meyering  <meyering@redhat.com>
11897
11898         vc-list-files: avoid failure when /bin/sh is dash
11899         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11900         On some Debian based systems, /bin/sh is a symlink to dash, and running
11901         this command would omit the "/" following each 'tests' prefix:
11902           dash -x build-aux/vc-list-files -C . tests
11903         That is because bash and dash work differently:
11904           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11905           bash ok
11906           dash odd
11907
11908 2009-07-21  Eric Blake  <ebb9@byu.net>
11909
11910         dup2-tests: test previous patch
11911         * modules/dup2-tests: New file.
11912         * tests/test-dup2.c: Likewise.
11913         * tests/test-open.c (main): Avoid unspecified behavior.
11914         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11915         test.
11916
11917         dup2: work around mingw and cygwin 1.5 bug
11918         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11920         * modules/unistd (Makefile.am): Substitute it.
11921         * lib/unistd.in.h (dup2): Declare the replacement.
11922         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11923         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11924         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11925         * modules/execute (Depends-on): Add dup2.
11926         * modules/fseterr (Depends-on): Likewise.
11927         * modules/pipe (Depends-on): Likewise.
11928         * modules/posix_spawn-internal (Depends-on): Likewise.
11929
11930 2009-07-21  Bruno Haible  <bruno@clisp.org>
11931
11932         * modules/.gitattributes: New file.
11933
11934 2009-07-20  Bruno Haible  <bruno@clisp.org>
11935
11936         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11937         (main): Use it.
11938
11939 2009-07-20  Eric Blake  <ebb9@byu.net>
11940
11941         test-pipe: make a bit more robust.
11942         * tests/test-pipe.c (myerr): Allow error messages regardless of
11943         what we do to stderr.
11944         (test_pipe): Rearrange to avoid deadlock.
11945         (child_main): Try a larger read, to ensure we avoided deadlock.
11946         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11947         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11948         if misused.
11949
11950 2009-07-19  Jim Meyering  <meyering@redhat.com>
11951
11952         fts: avoid false-positive cycle-detection
11953         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11954         for each new command line argument.
11955
11956 2009-07-19  Bruno Haible  <bruno@clisp.org>
11957
11958         Fix build error on mingw with the modules sys_select and unistd.
11959         * modules/acl-tests (Depends-on): Add close.
11960         * modules/binary-io-tests (Depends-on): Likewise.
11961         * modules/closein-tests (Depends-on): Likewise.
11962         * modules/flock-tests (Depends-on): Likewise.
11963         * modules/fsync-tests (Depends-on): Likewise.
11964         * modules/lseek-tests (Depends-on): Likewise.
11965         * modules/pipe-tests (Depends-on): Likewise.
11966         * modules/posix_spawn-tests (Depends-on): Likewise.
11967         * modules/posix_spawnp-tests (Depends-on): Likewise.
11968         * modules/stat-time-tests (Depends-on): Likewise.
11969         * modules/yesno-tests (Depends-on): Likewise.
11970
11971 2009-07-19  Bruno Haible  <bruno@clisp.org>
11972
11973         Unify conditionals.
11974         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11975         macros, not at the compiler macros.
11976         * lib/pipe.c: Likewise.
11977         * lib/execute.c: Likewise.
11978         * lib/spawni.c: Likewise.
11979
11980 2009-07-19  Bruno Haible  <bruno@clisp.org>
11981
11982         Fix handling of closed stdin/stdout/stderr on mingw.
11983         * lib/w32spawn.h: Include unistd.h.
11984         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11985         file descriptor with O_NOINHERIT flag.
11986         (fd_safer_noinherit): New function, based on fd-safer.c.
11987         (dup_safer_noinherit): New function, based on dup-safer.c.
11988         (undup_safer_noinherit): New function.
11989         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11990         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11991         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11992         instead of fd_safer.
11993         * tests/test-pipe.c: Include <windows.h>.
11994         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11995
11996         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11997         from main.
11998         (test_pipe): Pass an extra argument for disambiguation.
11999         (main): Invoke parent_main or child_main.
12000
12001         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12002         consistently.
12003
12004 2009-07-18  Eric Blake  <ebb9@byu.net>
12005
12006         test-pipe: fix mingw build
12007         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12008
12009 2009-07-18  Bruno Haible  <bruno@clisp.org>
12010
12011         * modules/pipe-tests (Makefile.am): Fix typo.
12012
12013 2009-07-18  Eric Blake  <ebb9@byu.net>
12014
12015         error: fix mingw build
12016         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12017         Reported by Bruno Haible.
12018
12019         error: avoid undefined use of stdout
12020         * lib/error.c (error, error_at_line): Check that fd 1 is open
12021         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12022         is handling faults and the close_stdout module wants to report the
12023         detection of closed stdout as an error.
12024
12025 2009-07-17  Eric Blake  <ebb9@byu.net>
12026
12027         pipe: be robust in face of closed fds
12028         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12029         should cause child to misbehave.
12030         * modules/pipe-tests: New module.
12031         * tests/test-pipe.c: New file.
12032         * tests/test-pipe.sh: New file.
12033         Reported by Akim Demaille.
12034
12035 2009-07-14  Bruno Haible  <bruno@clisp.org>
12036
12037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12038         Reported by anonymous kc.
12039
12040 2009-07-07  Jim Meyering  <meyering@redhat.com>
12041
12042         maint.mk: don't look for translatable strings in *.m4 or *.mk
12043         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12044         when searching for translatable strings.
12045
12046 2009-07-05  Jim Meyering  <meyering@redhat.com>
12047
12048         remove superfluous parentheses in STREQ definition
12049         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12050         * lib/getugroups.c (STREQ): Likewise.
12051         * lib/fnmatch.c (STREQ): Likewise.
12052         Spotted by Bruno Haible.
12053
12054 2009-07-04  Jim Meyering  <meyering@redhat.com>
12055
12056         argv-iter: new module
12057         * MODULES.html.sh: Add argv-iter.
12058         * lib/argv-iter.c, lib/argv-iter.h: New files.
12059         * modules/argv-iter: New file.
12060         * modules/argv-iter-tests: New file.
12061         * tests/test-argv-iter.c: Test it.
12062
12063 2009-07-04  Bruno Haible  <bruno@clisp.org>
12064
12065         Fix assertion.
12066         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12067         contains more exact copies of a given entry than file2, leave the extra
12068         copies unpaired rather than aborting.
12069         Reported by Eric Blake.
12070
12071 2009-07-02  Bruno Haible  <bruno@clisp.org>
12072
12073         Speedup git-merge-changelog for git cherry-pick.
12074         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12075         (entries_mapping_get): New function, extracted from compute_mapping.
12076         (entries_mapping_reverse_get): New function.
12077         (compute_mapping): Add a 'full' argument. Return the result in a
12078         'struct entries_mapping'.
12079         (main): Update. Access the mappings through entries_mapping_get.
12080         Reported by Eric Blake.
12081
12082 2009-07-02  Bruno Haible  <bruno@clisp.org>
12083
12084         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12085         best_i.
12086
12087 2009-07-02  Bruno Haible  <bruno@clisp.org>
12088
12089         Speed up approximate search for matching ChangeLog entries.
12090         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12091         argument. Call fstrcmp_bounded instead of fstrcmp.
12092         (compute_mapping, try_split_merged_entry, main): Update callers.
12093
12094 2009-07-02  Bruno Haible  <bruno@clisp.org>
12095
12096         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12097
12098 2009-06-30  Bruno Haible  <bruno@clisp.org>
12099
12100         Reduce the number of uc_is_cased calls.
12101         * lib/unicase.h (casing_suffix_context_t): Add
12102         'first_char_except_ignorable' field.
12103         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12104         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12105         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12106         Update initializer.
12107         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12108         case-ignorable characters.
12109         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12110         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12111         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12112         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12113         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12114
12115 2009-06-30  Bruno Haible  <bruno@clisp.org>
12116
12117         Tests for module 'unicase/ignorable'.
12118         * modules/unicase/ignorable-tests: New file.
12119         * tests/unicase/test-ignorable.c: New file, generated by
12120         gen-uni-tables.
12121
12122         Tests for module 'unicase/cased'.
12123         * modules/unicase/cased-tests: New file.
12124         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12125         * tests/unicase/test-predicate-part1.h: New file, derived from
12126         tests/unictype/test-predicate-part1.h.
12127         * tests/unicase/test-predicate-part2.h: New file, same as
12128         tests/unictype/test-predicate-part2.h.
12129
12130         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12131         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12132         (output_casing_properties): New function.
12133         (main): Call it.
12134         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12135         * lib/unicase/cased.c: Include unictype/bitmap.h.
12136         (uc_is_cased): Define through a bitmap lookup.
12137         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12138         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12139         (uc_is_case_ignorable): Define through a bitmap lookup.
12140         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12141         lib/unictype/bitmap.h.
12142         (Depends-on): Add inline. Clean up.
12143         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12144         lib/unictype/bitmap.h.
12145         (Depends-on): Add inline. Clean up.
12146         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12147         recognition.
12148         * tests/unicase/test-u16-tolower.c (main): Likewise.
12149         * tests/unicase/test-u32-tolower.c (main): Likewise.
12150
12151 2009-06-30  Bruno Haible  <bruno@clisp.org>
12152
12153         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12154         * lib/unicase/u16-casemap.c: Likewise.
12155         * lib/unicase/u32-casemap.c: Likewise.
12156
12157 2009-06-29  Bruno Haible  <bruno@clisp.org>
12158
12159         Define u32_casefold as a wrapper around u32_ct_casefold.
12160         * lib/unicase/u32-casefold.c: Update.
12161         * modules/unicase/u32-casefold (Depends-on): Add
12162         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12163         unicase/empty-suffix-context. Clean up.
12164
12165         Define u16_casefold as a wrapper around u16_ct_casefold.
12166         * lib/unicase/u16-casefold.c: Update.
12167         * modules/unicase/u16-casefold (Depends-on): Add
12168         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12169         unicase/empty-suffix-context. Clean up.
12170
12171         Define u8_casefold as a wrapper around u8_ct_casefold.
12172         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12173         * lib/unicase/u8-casefold.c: Update.
12174         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12175         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12176
12177         Define u32_totitle as a wrapper around u32_ct_totitle.
12178         * lib/unicase/u32-totitle.c: Update.
12179         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12180         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12181
12182         Define u16_totitle as a wrapper around u16_ct_totitle.
12183         * lib/unicase/u16-totitle.c: Update.
12184         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12185         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12186
12187         Define u8_totitle as a wrapper around u8_ct_totitle.
12188         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12189         functions.
12190         (FUNC): Delegate to U_CT_TOTITLE.
12191         * lib/unicase/u8-totitle.c: Update.
12192         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12193         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12194
12195         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12196         invocation.
12197         * modules/unicase/u32-tolower (Depends-on): Add
12198         unicase/empty-prefix-context, unicase/empty-suffix-context.
12199
12200         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12201         invocation.
12202         * modules/unicase/u16-tolower (Depends-on): Add
12203         unicase/empty-prefix-context, unicase/empty-suffix-context.
12204
12205         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12206         * modules/unicase/u8-tolower (Depends-on): Add
12207         unicase/empty-prefix-context, unicase/empty-suffix-context.
12208
12209         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12210         invocation.
12211         * modules/unicase/u32-toupper (Depends-on): Add
12212         unicase/empty-prefix-context, unicase/empty-suffix-context.
12213
12214         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12215         invocation.
12216         * modules/unicase/u16-toupper (Depends-on): Add
12217         unicase/empty-prefix-context, unicase/empty-suffix-context.
12218
12219         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12220         * modules/unicase/u8-toupper (Depends-on): Add
12221         unicase/empty-prefix-context, unicase/empty-suffix-context.
12222
12223         New module 'unicase/u32-ct-casefold'.
12224         * lib/unicase/u32-ct-casefold.c: New file.
12225         * modules/unicase/u32-ct-casefold: New file.
12226
12227         New module 'unicase/u16-ct-casefold'.
12228         * lib/unicase/u16-ct-casefold.c: New file.
12229         * modules/unicase/u16-ct-casefold: New file.
12230
12231         New module 'unicase/u8-ct-casefold'.
12232         * lib/unicase/u8-ct-casefold.c: New file.
12233         * lib/unicase/u-ct-casefold.h: New file, derived from
12234         lib/unicase/u-casefold.h.
12235         * modules/unicase/u8-ct-casefold: New file.
12236
12237         New module 'unicase/u32-ct-totitle'.
12238         * lib/unicase/u32-ct-totitle.c: New file.
12239         * modules/unicase/u32-ct-totitle: New file.
12240
12241         New module 'unicase/u16-ct-totitle'.
12242         * lib/unicase/u16-ct-totitle.c: New file.
12243         * modules/unicase/u16-ct-totitle: New file.
12244
12245         New module 'unicase/u8-ct-totitle'.
12246         * lib/unicase/u8-ct-totitle.c: New file.
12247         * lib/unicase/u-ct-totitle.h: New file, derived from
12248         lib/unicase/u-totitle.h.
12249         * modules/unicase/u8-ct-totitle: New file.
12250
12251         New module 'unicase/u32-ct-tolower'.
12252         * lib/unicase/u32-ct-tolower.c: New file.
12253         * modules/unicase/u32-ct-tolower: New file.
12254
12255         New module 'unicase/u16-ct-tolower'.
12256         * lib/unicase/u16-ct-tolower.c: New file.
12257         * modules/unicase/u16-ct-tolower: New file.
12258
12259         New module 'unicase/u8-ct-tolower'.
12260         * lib/unicase/u8-ct-tolower.c: New file.
12261         * modules/unicase/u8-ct-tolower: New file.
12262
12263         New module 'unicase/u32-ct-toupper'.
12264         * lib/unicase/u32-ct-toupper.c: New file.
12265         * modules/unicase/u32-ct-toupper: New file.
12266
12267         New module 'unicase/u16-ct-toupper'.
12268         * lib/unicase/u16-ct-toupper.c: New file.
12269         * modules/unicase/u16-ct-toupper: New file.
12270
12271         New module 'unicase/u8-ct-toupper'.
12272         * lib/unicase/u8-ct-toupper.c: New file.
12273         * modules/unicase/u8-ct-toupper: New file.
12274
12275         Add context arguments to u*_casemap functions.
12276         * lib/unicase/unicasemap.h: Include unicase.h.
12277         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12278         suffix_context arguments.
12279         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12280         functions.
12281         (FUNC): Add prefix_context and suffix_context arguments. Use
12282         uc_is_cased and uc_is_case_ignorable.
12283         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12284         * lib/unicase/u16-casemap.c: Likewise.
12285         * lib/unicase/u32-casemap.c: Likewise.
12286         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12287         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12288         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12289         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12290         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12291         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12292
12293         New module 'unicase/u32-suffix-context'.
12294         * lib/unicase/u32-suffix-context.c: New file.
12295         * modules/unicase/u32-suffix-context: New file.
12296
12297         New module 'unicase/u16-suffix-context'.
12298         * lib/unicase/u16-suffix-context.c: New file.
12299         * modules/unicase/u16-suffix-context: New file.
12300
12301         New module 'unicase/u8-suffix-context'.
12302         * lib/unicase/u8-suffix-context.c: New file.
12303         * lib/unicase/u-suffix-context.h: New file.
12304         * modules/unicase/u8-suffix-context: New file.
12305
12306         New module 'unicase/empty-suffix-context'.
12307         * lib/unicase/empty-suffix-context.c: New file.
12308         * modules/unicase/empty-suffix-context: New file.
12309
12310         New module 'unicase/u32-prefix-context'.
12311         * lib/unicase/u32-prefix-context.c: New file.
12312         * modules/unicase/u32-prefix-context: New file.
12313
12314         New module 'unicase/u16-prefix-context'.
12315         * lib/unicase/u16-prefix-context.c: New file.
12316         * modules/unicase/u16-prefix-context: New file.
12317
12318         New module 'unicase/u8-prefix-context'.
12319         * lib/unicase/u8-prefix-context.c: New file.
12320         * lib/unicase/u-prefix-context.h: New file.
12321         * lib/unicase/context.h: New file.
12322         * modules/unicase/u8-prefix-context: New file.
12323
12324         New module 'unicase/empty-prefix-context'.
12325         * lib/unicase/empty-prefix-context.c: New file.
12326         * modules/unicase/empty-prefix-context: New file.
12327
12328         New module 'unicase/ignorable'.
12329         * lib/unicase/ignorable.c: New file.
12330         * modules/unicase/ignorable: New file.
12331
12332         New module 'unicase/cased'.
12333         * lib/unicase/caseprop.h: New file.
12334         * lib/unicase/cased.c: New file.
12335         * modules/unicase/cased: New file.
12336
12337         New functions for case mapping of substrings.
12338         * lib/unicase.h (casing_prefix_context_t): New type.
12339         (unicase_empty_prefix_context): New variable.
12340         (u8_casing_prefix_context, u16_casing_prefix_context,
12341         u32_casing_prefix_context, u8_casing_prefixes_context,
12342         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12343         declarations.
12344         (casing_suffix_context_t): New type.
12345         (unicase_empty_suffix_context): New variable.
12346         (u8_casing_suffix_context, u16_casing_suffix_context,
12347         u32_casing_suffix_context, u8_casing_suffixes_context,
12348         u16_casing_suffixes_context, u32_casing_suffixes_context,
12349         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12350         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12351         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12352         declarations.
12353
12354 2009-06-28  Jim Meyering  <meyering@redhat.com>
12355
12356         boostrap: indent only with spaces
12357         * build-aux/bootstrap: Indent only with spaces, never TABs.
12358
12359         bootstrap: split long lines
12360         * build-aux/bootstrap: Keep line length < 80.
12361
12362         bootstrap: sync from coreutils
12363         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12364         just as autoreconf does.  Verify a list of prerequisite
12365         package-name,version-number pairs if defined in bootstrap.conf.
12366         Refer to README-prereq, if prerequisites are not satisfied.
12367
12368 2009-06-27  Eric Blake  <ebb9@byu.net>
12369
12370         tests: add test for bogus NULL definition
12371         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12372         * tests/test-stdlib.c: Likewise.
12373         * tests/test-string.c: Likewise.
12374         * tests/test-locale.c: Likewise.
12375         * tests/test-unistd.c: Likewise.
12376         * modules/stdio-tests (Depends-on): Add verify.
12377         * modules/stdlib-tests (Depends-on): Likewise.
12378         * modules/string-tests (Depends-on): Likewise.
12379         * modules/locale-tests (Depends-on): Likewise.
12380         * modules/unistd-tests (Depends-on): Likewise.
12381
12382 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12383
12384         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12385         self-explaining comment.
12386         * m4/selinux-selinux-h: Update serial.
12387         (gl_LIBSELINUX): New macro, adding a warning for missing development
12388         packages to code extracted from...
12389         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12390         Add warning for missing development packages here, too.
12391
12392 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12393
12394         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12395
12396 2009-06-25  Eric Blake  <ebb9@byu.net>
12397
12398         version-etc: fix regression
12399         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12400         gcc.
12401         (version_etc): Use it, to catch bugs with trailing NULL.
12402         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12403         (version_etc_va): Fix logic bug.
12404         * modules/version-etc-tests: Add test.
12405         * tests/test-version-etc.c: New file.
12406         * tests/test-version-etc.sh: Likewise.
12407
12408 2009-06-25  Sam Steingold  <sds@gnu.org>
12409
12410         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12411         mbtowc declaration.
12412
12413 2009-06-25  Eric Blake  <ebb9@byu.net>
12414
12415         fpurge: migrate into <stdio.h>
12416         * lib/fpurge.h: Delete...
12417         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12418         * lib/fpurge.c (fpurge): Change declaring header.
12419         * modules/fpurge (Files): Drop deleted file.
12420         (Depends-on): Add stdio.
12421         (configure.ac): Set witness.
12422         * modules/stdio (Makefile.am): Support fpurge macros.
12423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12424         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12425         * lib/fflush.c: Update client.
12426         * tests/test-fpurge.c: Likewise.
12427         * NEWS: Mention the change.
12428
12429 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12430
12431         * lib/argp-version-etc.c (program_authors): Add const
12432         qualifier.
12433         * lib/version-etc.c: Fix typos in the comments.
12434         * modules/argp-version-etc: Depends on version-etc.
12435
12436 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12437
12438         argp-version-etc: new module.
12439
12440         * lib/argp-version-etc.c: New file.
12441         * lib/argp-version-etc.h: New file.
12442         * modules/argp-version-etc: New file.
12443         * modules/argp-version-etc-tests: New file.
12444         * tests/test-argp-version-etc.c: New test.
12445         * tests/test-argp-version-etc-1.sh: New test.
12446
12447 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12448
12449         Provide additional interfaces and documentation for version-etc
12450         module.
12451
12452         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12453         interfaces.
12454         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12455         prototypes.
12456
12457 2009-06-24  Bruno Haible  <bruno@clisp.org>
12458
12459         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12460         HAVE_LIB${NAME} macro.
12461         Reported by Sam Steingold <sds@gnu.org>.
12462
12463 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12464
12465         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12466         needed.
12467
12468 2009-06-21  Bruno Haible  <bruno@clisp.org>
12469
12470         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12471         work.
12472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12473         together with LIB${NAME}, LTLIB${NAME}.
12474         Reported by Sam Steingold <sds@gnu.org>.
12475
12476 2009-06-20  Jim Meyering  <meyering@redhat.com>
12477
12478         tests: make sc_require_test_exit_idiom more generic
12479         * top/maint.mk (Exit_witness_file): New overridable variable.
12480         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12481         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12482
12483 2009-06-19  Jim Meyering  <meyering@redhat.com>
12484
12485         hash: reverse order of src/dst parameters in an internal interface
12486         * lib/hash.c (transfer_entries): Reverse order of parameters to
12487         put DST before SRC.  Adjust callers.
12488
12489         tests: test-hash: avoid wholesale duplication
12490         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12491         Instead, use a loop and add a single conditional.
12492
12493         tests: test-hash: allow seed selection via a command line argument
12494         * tests/test-hash.c (get_seed): New function.
12495         (main): Use it.
12496
12497 2009-06-19  Eric Blake  <ebb9@byu.net>
12498
12499         hash: avoid memory leak on allocation failure
12500         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12501         failure.  Factor repeated algorithm...
12502         (transfer_entries): ...into new helper routine.
12503         (hash_delete): React to hash_rehash return value.
12504
12505         hash: reduce memory pressure in hash_rehash no-op case
12506         * lib/hash.c (next_prime): Avoid overflow.
12507         (hash_initialize): Factor bucket size computation...
12508         (compute_bucket_size): ...into new helper function.
12509         (hash_rehash): Use new function and open coding to reduce memory
12510         pressure, and avoid a memory leak in USE_OBSTACK code.
12511         Reported by Jim Meyering.
12512
12513 2009-06-18  Eric Blake  <ebb9@byu.net>
12514
12515         hash: make rotation more obvious
12516         * modules/hash (Depends-on): Add bitrotate and stdint.
12517         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12518         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12519         (SIZE_MAX): Rely on headers for definition.
12520         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12521         (raw_hasher): Use rotr_sz.
12522         Suggested by Jim Meyering.
12523
12524         hash: fix memory leak in last patch
12525         * lib/hash.c (hash_rehash): Avoid memory leak.
12526
12527         hash: avoid no-op rehashing
12528         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12529
12530         hash: provide default callback functions
12531         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12532         (hash_initialize): Use them as defaults.
12533         * tests/test-hash.c (main): Test this.
12534
12535         hash: minor optimization
12536         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12537         when possible.
12538         (hash_initialize): Document this promise.
12539         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12540         * tests/test-hash.c (hash_compare_strings): Test this.
12541
12542 2009-06-18  Bruno Haible  <bruno@clisp.org>
12543
12544         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12545         going to be replaced anyway.
12546
12547 2009-06-18  Bruno Haible  <bruno@clisp.org>
12548
12549         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12550         in one place.
12551         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12552         be replaced anyway.
12553
12554 2009-06-18  Eric Blake  <ebb9@byu.net>
12555
12556         hash: check for resize before insertion
12557         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12558         threshold before insertion, so that a pathological hash_rehash
12559         that fills every bucket can still trigger another rehash.
12560
12561 2009-06-18  Jim Meyering  <meyering@redhat.com>
12562
12563         hash-tests: add a loop around the small tests
12564         * tests/test-hash.c (main): Repeat small tests with selected
12565         small initial table sizes.
12566
12567 2009-06-17  Eric Blake  <ebb9@byu.net>
12568
12569         hash: minor cleanups
12570         * lib/hash.h (hash_entry): Make opaque, by moving...
12571         * lib/hash.c (hash_entry): ...here.
12572         (hash_insert): Clarify restrictions on what can be inserted.
12573         (hash_get_next): Clarify when it is safe to remove an element
12574         during traversal.
12575         (check_tuning): Skip verification when tuning is known safe.
12576         (hash_initialize): Clarify restrictions on tuning.
12577
12578 2009-06-17  Jim Meyering  <jim@meyering.net>
12579         and Eric Blake  <ebb9@byu.net>
12580
12581         hash-tests: new module
12582         * modules/hash-tests: New file.
12583         * tests/test-hash.c: New file.
12584
12585 2009-06-17  Eric Blake  <ebb9@byu.net>
12586
12587         strstr-simple: document new module
12588         * MODULES.html.sh: Document new module.
12589
12590         strstr, strcasestr: replace on platforms with broken memchr
12591         * modules/strstr: Split into...
12592         * modules/strstr-simple: ...new module that does not care about
12593         performance, but does care about glibc bug.
12594         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12595         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12596         if platform memchr is broken, per Debian bug 521737.
12597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12598         memchr.
12599         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12600         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12601         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12602         * modules/mountlist (Depends-on): Add strstr-simple.
12603         * modules/gen-uni-tables (Depends-on): Likewise.
12604         * modules/argz (Depends-on): Add strstr.
12605
12606 2009-06-17  Bruno Haible  <bruno@clisp.org>
12607
12608         * modules/posix_spawn-internal (Depends-on): Add errno.
12609
12610 2009-06-17  Bruno Haible  <bruno@clisp.org>
12611
12612         Define missing ESTALE on Interix 3.5.
12613         * lib/errno.in.h (ESTALE): Assign a value if missing.
12614         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12616         missing.
12617         * doc/posix-headers/errno.texi: Mention the Interix bug.
12618         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12619
12620 2009-06-15  Eric Blake  <ebb9@byu.net>
12621
12622         memchr, memchr2: add valgrind exception
12623         * lib/memchr.valgrind: New file.
12624         * lib/memchr2.valgrind: New file.
12625         * modules/memchr (Files): Distribute valgrind file.
12626         * modules/memchr2 (Files): Likewise.
12627
12628         docs: memchr is no longer obsolete
12629         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12630         * lib/string.in.h (memchr): Simplify logic.
12631
12632 2009-06-14  Jim Meyering  <meyering@redhat.com>
12633
12634         link-follow: fix the "checking..." message to not mention trailing slash
12635         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12636         never considered trailing slashes.
12637
12638 2009-06-14  Bruno Haible  <bruno@clisp.org>
12639
12640         * m4/memchr.m4: Mention also the bug on IA-64.
12641         * doc/posix-functions/memchr.texi: Likewise.
12642
12643 2009-06-12  Eric Blake  <ebb9@byu.net>
12644
12645         memchr: detect broken x86_64 and alpha implementations
12646         * modules/memchr-tests (Depends-on): Move mmap detection...
12647         * modules/memchr (Depends-on): ...here.
12648         (configure.ac): Set indicator.
12649         * lib/string.in.h (memchr): Declare replacement.
12650         * modules/string (Makefile.am): Trigger replacement.
12651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12652         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12653         bugs.
12654         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12655         * modules/getpagesize (License): Relax license.
12656
12657 2009-06-11  Bruno Haible  <bruno@clisp.org>
12658
12659         * lib/idpriv.h: Add more references.
12660
12661 2009-06-08  Bruno Haible  <bruno@clisp.org>
12662
12663         Tests for module 'idpriv-droptemp'.
12664         * modules/idpriv-droptemp-tests: New file.
12665         * tests/test-idpriv-droptemp.sh: New file.
12666         * tests/test-idpriv-droptemp.su.sh: New file.
12667         * tests/test-idpriv-droptemp.c: New file.
12668
12669         New module 'idpriv-droptemp'.
12670         * lib/idpriv-droptemp.c: New file.
12671         * modules/idpriv-droptemp: New file.
12672
12673 2009-06-08  Bruno Haible  <bruno@clisp.org>
12674
12675         Tests for module 'idpriv-drop'.
12676         * modules/idpriv-drop-tests: New file.
12677         * tests/test-idpriv-drop.sh: New file.
12678         * tests/test-idpriv-drop.su.sh: New file.
12679         * tests/test-idpriv-drop.c: New file.
12680
12681         New module 'idpriv-drop'.
12682         * lib/idpriv.h: New file.
12683         * lib-idpriv-drop.c: New file.
12684         * m4/idpriv.m4: New file.
12685         * modules/idpriv-drop: New file.
12686
12687 2009-06-08  Bruno Haible  <bruno@clisp.org>
12688
12689         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12690         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12691         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12692         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12693         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12694         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12695         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12696
12697 2009-06-08  Eric Blake  <ebb9@byu.net>
12698
12699         test-strstr: use memory fence, when possible
12700         * tests/test-strstr.c (main): Use memory fence, in order to be
12701         more likely to trigger Debian bug 521737.
12702         * modules/strstr-tests (Files): Pull in additional files.
12703
12704         memchr: no longer obsolete, for wider field testing
12705         * modules/memchr (Status, Notice): Delete, this module is no
12706         longer obsolete.
12707         * modules/vasnprintf (Depends-on): Add memchr.
12708
12709 2009-06-07  Jim Meyering  <meyering@redhat.com>
12710
12711         hash: declare some functions with the warn_unused_result attribute
12712         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12713
12714 2009-06-07  Bruno Haible  <bruno@clisp.org>
12715
12716         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12717         Reported by Eric Blake.
12718
12719 2009-06-06  Eric Blake  <ebb9@byu.net>
12720
12721         test-alignof: fix typo with long double
12722         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12723         compiler error.
12724
12725 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12726
12727         Escape non-texinfo { and }s.
12728         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12729         markup error.
12730
12731 2009-06-04  Jim Meyering  <meyering@redhat.com>
12732
12733         gitlog-to-changelog: don't infloop on an empty commit log
12734         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12735         Reported by Boris Petersen <transacid@centerim.org>.
12736
12737 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12738
12739         version-etc: extend for packagers
12740         Add three new configure options, intended for packagers:
12741           --with-packager="packager name"
12742           --with-packager-version="packager-specific version"
12743           --with-packager-bug-reports="packager bug reporting"
12744         An example with coreutils:
12745           $ ./configure \
12746             --with-packager=Gentoo \
12747             --with-packager-bug-report=http://bugs.gentoo.org/ \
12748             --with-packager-version="patchset 1.6"
12749           $ ./src/ls --version | head -n2
12750           ls (GNU coreutils) 7.1-dirty
12751           Packaged by Gentoo (patchset 1.6)
12752         Note that the bug reporting info via --help doesn't show up because
12753         coreutils uses its own custom emit_bug_reporting_address() implementation
12754         in src/system.h.  If it didn't, it'd look like:
12755           $ ./src/ls --help | tail -n4
12756           Report bugs to <bug-coreutils@gnu.org>.
12757           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12758           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12759           General help using GNU software: <http://www.gnu.org/gethelp/>.
12760         * lib/version-etc.c: Print new information, if provided.
12761         * m4/version-etc.m4: New file.
12762         * modules/version-etc (Files): Add m4/version-etc.m4.
12763         (configure.ac): Add gl_VERSION_ETC.
12764
12765 2009-05-31  Bruno Haible  <bruno@clisp.org>
12766
12767         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12768         and 'int64_t'.
12769         * modules/alignof-tests (Dependencies): Add stdint.
12770         Reported by Eric Blake.
12771
12772 2009-05-31  Bruno Haible  <bruno@clisp.org>
12773
12774         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12775         restriction due to compiler bugs.
12776         Reported by Eric Blake.
12777
12778 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12779             Bruno Haible  <bruno@clisp.org>
12780
12781         Fix test-alignof failure.
12782         * lib/alignof.h (alignof_slot): New macro.
12783         (alignof_type): New macro, with the same semantics as the previous
12784         'alignof'.
12785         (alignof): Alias to alignof_slot.
12786         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12787         check that the results are usable as constant expressions.
12788
12789 2009-05-31  Bruno Haible  <bruno@clisp.org>
12790
12791         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12792         * tests/test-memchr.c (main): Check that memchr does not read past the
12793         first occurrence of the byte.
12794         * tests/test-strstr.c (main): Update comment.
12795         Suggested by Eric Blake.
12796
12797 2009-05-30  Bruno Haible  <bruno@clisp.org>
12798
12799         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12800         detail how to use dumpbin.
12801         Reported by David Byron <dbyron@dbyron.com>.
12802
12803 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12804
12805         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12806
12807 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12808
12809         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12810
12811 2009-05-28  Bruno Haible  <bruno@clisp.org>
12812
12813         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12814         build-aux/ files.
12815
12816 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12817
12818         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12819
12820 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12821
12822         * gnulib-tool (sed_transform_main_lib_file)
12823         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12824         regexps.
12825
12826 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12827
12828         * tests/test-strstr.c: Add another self-test.
12829         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12830         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12831
12832 2009-05-23  Bruno Haible  <bruno@clisp.org>
12833
12834         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12835         change.
12836
12837 2009-05-21  Bruno Haible  <bruno@clisp.org>
12838
12839         Simplify use of mode_t varargs.
12840         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12841         uses 'mode_t' or 'int'.
12842         * lib/openat.c (openat): Likewise.
12843         * lib/open-safer.c (open_safer): Likewise.
12844         * m4/mode_t.m4: New file.
12845         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12846         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12847         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12848         * modules/open (Files): Add m4/mode_t.m4.
12849         * modules/openat (Files): Likewise.
12850         * modules/fcntl-safer (Files): Likewise.
12851         Suggested by Eric Blake.
12852
12853 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12854
12855         * doc/glibc-functions/fallocate.texi: New file.
12856         * doc/gnulib.texi: Include it.
12857
12858 2009-05-21  Eric Blake  <ebb9@byu.net>
12859             Bruno Haible  <bruno@clisp.org>
12860
12861         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12862         invocations.
12863         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12864
12865 2009-05-21  Eric Blake  <ebb9@byu.net>
12866             Bruno Haible  <bruno@clisp.org>
12867
12868         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12869         include_next. Fix of 2008-11-20 commit.
12870         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12871         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12872         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12873         NEXT_MATH_H.
12874         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12875         instead of NEXT_MATH_H.
12876
12877 2009-05-21  Bruno Haible  <bruno@clisp.org>
12878
12879         Avoid redefinition warnings for SIZE_MAX.
12880         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12881         Reported by Simon Josefsson.
12882
12883 2009-05-21  Bruno Haible  <bruno@clisp.org>
12884
12885         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12886         AC_CACHE_VAL.
12887
12888 2009-05-20  Bruno Haible  <bruno@clisp.org>
12889
12890         Make zeroptr.h work on mingw.
12891         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12892         mprotect.
12893         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12894         * modules/memchr2-tests (configure.ac): Likewise.
12895         * modules/memcmp-tests (configure.ac): Likewise.
12896         * modules/memmem-tests (configure.ac): Likewise.
12897         * modules/memrchr-tests (configure.ac): Likewise.
12898         Reported by Simon Josefsson.
12899
12900 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12901
12902         * tests/test-glob.c: Include string.h for strcmp prototype.
12903
12904 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12905
12906         * modules/getdelim (Depends-on): Add explicit stdint, although it
12907         was implicitly already pulled in via realloc-posix.
12908         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12909
12910 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12911
12912         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12913         G. Christensen" <tgc@jupiterrise.com>.
12914         * m4/sys_socket_h.m4: Check for sa_family_t.
12915         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12916         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12917         * tests/test-sys_socket.c: Check that sa_family_t works.
12918
12919 2009-05-18  Eric Blake  <ebb9@byu.net>
12920
12921         maint.mk: allow gnulib_dir in VPATH build
12922         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12923
12924 2009-05-15  Jim Meyering  <meyering@redhat.com>
12925
12926         maint.mk: Give gnulib_dir a default definition.
12927         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12928         Thus, most packages no longer need to specify this variable in cfg.mk
12929
12930 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12931
12932         rename.m4: fix typos that would make non-mingw cross-configure fail
12933         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12934
12935 2009-05-13  Eric Blake  <ebb9@byu.net>
12936
12937         mmap-anon: avoid out-of-order autoconf expansion
12938         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12939         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12940         * modules/memchr-tests (Depends-on): Add extensions.
12941         * modules/memchr2-tests (Depends-on): Add extensions.
12942         * modules/memcmp-tests (Depends-on): Add extensions.
12943         * modules/memmem-tests (Depends-on): Add extensions.
12944         * modules/memrchr-tests (Depends-on): Add extensions.
12945
12946 2009-05-13  Bruno Haible  <bruno@clisp.org>
12947
12948         Make some tests ISO C 99 compliant.
12949         * tests/zerosize-ptr.h: New file.
12950         * tests/test-memchr.c: Include zerosize-ptr.h.
12951         (main): Use a zero-size object pointer instead of NULL.
12952         * tests/test-memchr2.c: Include zerosize-ptr.h.
12953         (main): Use a zero-size object pointer instead of NULL.
12954         * tests/test-memcmp.c: Include zerosize-ptr.h.
12955         (main): Use a zero-size object pointer instead of NULL.
12956         * tests/test-memmem.c: Include zerosize-ptr.h.
12957         (main): Use a zero-size object pointer instead of NULL.
12958         * tests/test-memrchr.c: Include zerosize-ptr.h.
12959         (main): Use a zero-size object pointer instead of NULL.
12960         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12961         m4/mmap-anon.m4.
12962         (Depends-on): Add getpagesize.
12963         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12964         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12965         m4/mmap-anon.m4.
12966         (Depends-on): Add getpagesize.
12967         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12968         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12969         m4/mmap-anon.m4.
12970         (Depends-on): Add getpagesize.
12971         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12972         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12973         m4/mmap-anon.m4.
12974         (Depends-on): Add getpagesize.
12975         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12976         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12977         m4/mmap-anon.m4.
12978         (Depends-on): Add getpagesize.
12979         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12980
12981 2009-05-12  Bruno Haible  <bruno@clisp.org>
12982
12983         Tests for module 'alignof'.
12984         * modules/alignof-tests: New file.
12985         * tests/test-alignof.c: New file.
12986
12987 2009-05-12  Bruno Haible  <bruno@clisp.org>
12988
12989         Fix alignof macro.
12990         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12991         vendor compilers that are always correct.
12992
12993 2009-05-12  Bruno Haible  <bruno@clisp.org>
12994
12995         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12996         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12997         not whether its fully works.
12998
12999 2009-05-12  Bruno Haible  <bruno@clisp.org>
13000
13001         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13002
13003 2009-05-12  Jim Meyering  <meyering@redhat.com>
13004
13005         * top/maint.mk: Adjust backslash alignment.
13006
13007 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13008
13009         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13010
13011 2009-05-11  Eric Blake  <ebb9@byu.net>
13012
13013         argp: avoid undefined behavior
13014         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13015         macros.
13016
13017 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13018
13019         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13020         user.name to prevent git commit from complaining.
13021
13022 2009-05-10  Bruno Haible  <bruno@clisp.org>
13023
13024         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13025         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13026         it rewrites every file name only once.
13027         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13028
13029 2009-05-08  Bruno Haible  <bruno@clisp.org>
13030
13031         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13032         instead of 'max'.
13033
13034 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13035
13036         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13037         sockaddr_storage test.
13038
13039 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13040
13041         * modules/sys_socket (Makefile.am): Substitute
13042         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13043         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13044         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13045         * tests/test-sys_socket.c: Check sockaddr_storage.
13046
13047 2009-05-08  Bruno Haible  <bruno@clisp.org>
13048
13049         New module 'alignof'.
13050         * lib/alignof.h: New file.
13051         * modules/alignof: New file.
13052
13053 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13054             Bruno Haible  <bruno@clisp.org>
13055
13056         Fix test-file-has-acl on FreeBSD.
13057         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13058         mask is implicitly added.
13059         * tests/test-file-has-acl.c: Include <signal.h>.
13060         (main): Terminate the test after 5 seconds.
13061         * modules/acl-tests (configure.ac): Check for alarm function.
13062
13063 2009-05-04  Bruno Haible  <bruno@clisp.org>
13064
13065         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13066         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13067         * modules/errno (configure.ac): Drop AC_REQUIRE.
13068         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13069         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13070
13071 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13072
13073         * modules/glob-tests: New module.
13074         * tests/test-glob.c: Add.
13075
13076 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13077
13078         * modules/fnmatch-tests: New module.
13079         * tests/test-fnmatch.c: Add.
13080
13081 2009-05-04  Eric Blake  <ebb9@byu.net>
13082
13083         maint: make the new no-submodule-changes rule VPATH-safe
13084         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13085
13086 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13087             Bruno Haible  <bruno@clisp.org>
13088
13089         acl: Fix infinite loop on FreeBSD.
13090         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13091         of return value from acl_get_entry.
13092         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13093         Likewise.
13094
13095 2009-05-03  Bruno Haible  <bruno@clisp.org>
13096
13097         * lib/acl-internal.h (acl_entries): Clarify return value.
13098         * lib/acl_entries.c (acl_entries): Likewise.
13099
13100 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13101
13102         Bug fix in acl module.
13103         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13104
13105 2009-05-03  Bruno Haible  <bruno@clisp.org>
13106
13107         Create gperf-generated file in the source dir, not in the build dir.
13108         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13109         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13110         * modules/unicase/locale-language (unicase/locale-languages.h):
13111         Likewise.
13112         * modules/unicase/special-casing (unicase/special-casing-table.h):
13113         Likewise.
13114         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13115         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13116         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13117         Reported by Ralf Wildenhues.
13118
13119 2009-05-03  Bruno Haible  <bruno@clisp.org>
13120
13121         * modules/fnmatch (Description, configure.ac): Taken from
13122         fnmatch-posix.
13123         * modules/fnmatch-posix: Turn into a symbolic reference to the
13124         'fnmatch' module, and deprecate.
13125         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13126
13127 2009-05-03  Bruno Haible  <bruno@clisp.org>
13128
13129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13130         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13131         Reported by Ralf Wildenhues.
13132
13133 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13134
13135         * m4/fnmatch.m4: Fix fnmatch re-define.
13136
13137 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13138
13139         priv-set: new module and tests; adapt write-any-file
13140         * lib/priv-set.c: New file.
13141         * lib/priv-set.h: New file.
13142         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13143         * lib/write-any-file.c: Simplify by using priv-set module.
13144         * m4/priv-set.m4: New file.
13145         * modules/priv-set: New file.
13146         * modules/unlinkdir: Add dependency on priv-set module.
13147         * modules/write-any-file: Likewise.
13148
13149         Tests for module 'priv-set'.
13150         * modules/priv-set-tests: New file.
13151         * tests/test-priv-set.c: New file.
13152
13153 2009-05-03  Jim Meyering  <meyering@redhat.com>
13154             Bruno Haible  <bruno@clisp.org>
13155
13156         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13157         use the converted UTF-8 variant of the name instead.
13158
13159 2009-05-03  Jim Meyering  <meyering@redhat.com>
13160
13161         tests: tighten some getdate tests
13162         * tests/test-getdate.c (main): Tighten tests: require equality,
13163         not just greater than.  Set TZ envvar to UTC0.
13164
13165 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13166
13167         getdate: correctly interpret "next monday" when run on a Monday
13168         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13169         that e.g., "next tues" (when run on a tuesday) results in a date
13170         that is one week in the future, and not today's date.
13171         I.e., add a week when the wday is the same as the current one.
13172         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13173         and earlier by Martin Bernreuther and Jan Minář.
13174         * tests/test-getdate.c (main): Check that "next DAY" is always in
13175         the future and that "last DAY" is always in the past.
13176
13177 2009-05-02  Jim Meyering  <meyering@redhat.com>
13178
13179         build: ensure that a release build fails when a submodule is unclean
13180         * top/maint.mk (no-submodule-changes): New rule.
13181         (alpha beta major): Depend on it.
13182
13183 2009-05-02  Bruno Haible  <bruno@clisp.org>
13184
13185         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13186         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13187         shell variable gl_fnmatch_required to detect which variant is
13188         requested.
13189         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13190         gl_FUNC_FNMATCH_POSIX.
13191         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13192         exclude fnmatch-posix.
13193
13194 2009-05-02  Bruno Haible  <bruno@clisp.org>
13195
13196         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13197         * modules/mbsrtowcs (License): Change to LGPLv2+.
13198         * modules/strnlen1 (License): Likewise.
13199         Reported by Simon Josefsson.
13200
13201 2009-05-02  Bruno Haible  <bruno@clisp.org>
13202
13203         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13204         "cross".
13205         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13206         gnulib-tool was called with option --source-base=lib.
13207
13208 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13209
13210         Use automake *-local hooks without commands, for extensibility.
13211         * modules/localcharset (Makefile.am): Rename install-exec-local
13212         rule to install-exec-localcharset, and make it a prerequisite of
13213         install-exec-local.  Likewise, rename the uninstall-local rule to
13214         uninstall-localcharset, and make it a prerequisite of the former.
13215
13216 2009-05-01  Bruno Haible  <bruno@clisp.org>
13217
13218         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13219         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13220         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13222         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13223         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13224         m4/locale-zh.m4, m4/codeset.m4.
13225
13226         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13227         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13228         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13229         m4/locale-zh.m4.
13230
13231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13232         REPLACE_WCRTOMB if mbstate_t must be replaced.
13233         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13234         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13235
13236 2009-05-01  Bruno Haible  <bruno@clisp.org>
13237
13238         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13239         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13240         dngettext, dcngettext, textdomain, bindtextdomain,
13241         bind_textdomain_codeset): Undefine before redefining.
13242
13243 2009-04-30  Bruno Haible  <bruno@clisp.org>
13244
13245         Fix bug introduced on 2009-04-25.
13246         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13247         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13248         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13249         is defined.
13250         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13251         is defined.
13252         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13253         is defined.
13254         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13255
13256 2009-04-28  Bruno Haible  <bruno@clisp.org>
13257
13258         Comment tweaks.
13259         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13260         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13261         * lib/unicase.h (u*_casexfrm): Likewise.
13262         Reported by Paolo Bonzini.
13263
13264 2009-04-28  Bruno Haible  <bruno@clisp.org>
13265
13266         Fix a compilation error.
13267         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13268         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13269         Reported by Jim Meyering.
13270
13271 2009-04-27  Bruno Haible  <bruno@clisp.org>
13272
13273         New module 'libunistring'.
13274         * modules/libunistring: New file.
13275         * m4/libunistring.m4: New file.
13276         * MODULES.html.sh (Unicode string functions): Add it.
13277
13278 2009-04-27  Eric Blake  <ebb9@byu.net>
13279
13280         maint.mk: allow package-specific header to provide <config.h>
13281         * top/maint.mk (sc_require_config_h): New variable.
13282         (sc_require_config_h, sc_require_config_h_first): Use it.
13283
13284 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13285
13286         * top/maint.mk (sc_avoid_if_before_free): Except
13287         useless-if-before-free script.
13288
13289 2009-04-27  Eric Blake  <ebb9@byu.net>
13290
13291         maintainer-makefile: depend on all required helper scripts
13292         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13293         useless-if-before-free.
13294         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13295         version, rather than assuming gnulib checkout is available.
13296         Reported by Simen Josefsson.
13297
13298 2009-04-26  Bruno Haible  <bruno@clisp.org>
13299
13300         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13301         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13302         "../" or "..".
13303
13304 2009-04-26  Bruno Haible  <bruno@clisp.org>
13305
13306         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13307         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13308         AC_LIB_HAVE_LINKFLAGS.
13309
13310 2009-04-26  Bruno Haible  <bruno@clisp.org>
13311
13312         Simplify calling convention of u*_conv_from_encoding.
13313         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13314         u32_conv_from_encoding): Expect a resultbuf argument and return the
13315         result directly as a pointer.
13316         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13317         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13318         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13319         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13320         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13321         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13322         Update.
13323         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13324         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13325         * lib/vasnprintf.c (VASNPRINTF): Update.
13326         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13327         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13328         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13329         * NEWS: Mention the change.
13330
13331 2009-04-26  Bruno Haible  <bruno@clisp.org>
13332
13333         Simplify calling convention of u*_conv_to_encoding.
13334         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13335         u32_conv_to_encoding): Expect a resultbuf argument and return the
13336         result directly as a pointer.
13337         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13338         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13339         freeing scaled_offsets if mem_iconveha failed.
13340         * lib/unicase/u-casexfrm.h (FUNC): Update.
13341         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13342         * lib/vasnprintf.c (VASNPRINTF): Update.
13343         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13344         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13345         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13346         * NEWS: Mention the change.
13347
13348 2009-04-26  Bruno Haible  <bruno@clisp.org>
13349
13350         Avoid test failures on AIX and OSF/1.
13351         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13352         malloc(0).
13353         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13354         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13355         Likewise.
13356         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13357         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13358         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13359         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13360         * doc/posix-functions/malloc.texi: Document the portability problem
13361         related to malloc(0).
13362
13363 2009-04-26  Bruno Haible  <bruno@clisp.org>
13364
13365         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13366         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13367         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13368
13369 2009-04-25  Bruno Haible  <bruno@clisp.org>
13370
13371         Avoid link error when creating a namespace clean library.
13372         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13373         as macro with arguments if already defined as an alias.
13374         * lib/signbitf.c (gl_signbitf): Don't undefine.
13375         * lib/signbitd.c (gl_signbitd): Don't undefine.
13376         * lib/signbitl.c (gl_signbitl): Don't undefine.
13377
13378 2009-04-25  Jim Meyering  <meyering@redhat.com>
13379
13380         vc-list-files: fix another quoting bug
13381         * build-aux/vc-list-files: Avoid sed backslash expansion
13382         of pathological directory names.
13383
13384 2009-04-25  Eric Blake  <ebb9@byu.net>
13385
13386         vc-list-files: fix shell quoting error
13387         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13388         timestamp.
13389
13390 2009-04-25  Jim Meyering  <meyering@redhat.com>
13391
13392         vc-list-files: restore lost functionality with subdir argument
13393         * build-aux/vc-list-files: When given a non-"." sub-directory
13394         argument, substitute the $dir/ prefix back onto each resulting name.
13395         Otherwise, coreutils' root_tests check would fail.
13396
13397 2009-04-24  Eric Blake  <ebb9@byu.net>
13398
13399         vc-list-files: ignore git symlinks
13400         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13401         than ls-files, to ignore git symlinks.
13402
13403         maint.mk: import improvements from m4
13404         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13405         (move_if_change): Delete unused macro.
13406         (news-date-check, vc-diff-check): Support VPATH builds.
13407         (announcement): Likewise.  Split --bootstrap-tools list...
13408         (boostrap-tools): ...into separate list, which can be overridden
13409         in cfg.mk.
13410         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13411         requiring dependency on useless-if-before-free module.
13412         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13413         Support VPATH builds.
13414
13415 2009-04-24  Jim Meyering  <meyering@redhat.com>
13416
13417         maint.mk: remove coreutils-specific rules and variables
13418         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13419         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13420         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13421
13422         maint.mk: remove obsolete rule
13423         * top/maint.mk (rel-check): Remove rule.
13424         (WGET, WGETFLAGS): Remove now-unused variables.
13425
13426 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13427
13428         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13429         consistency.
13430
13431         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13432         '$(PATH_SEPARATOR)' instead of ':'.
13433
13434 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13435
13436         * lib/getopt1.c (main): Use 'const' for static array.
13437
13438 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13439
13440         * top/maint.mk: Sync with coreutils.
13441         * NEWS: Explain incompatibilities.
13442
13443 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13444             Bruno Haible  <bruno@clisp.org>
13445
13446         Fix cross-compilation results.
13447         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13448         statement, as third argument of AC_TRY_RUN.
13449         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13450         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13451         Likewise.
13452         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13453         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13454         Likewise.
13455         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13456         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13457         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13458
13459 2009-04-20  Bruno Haible  <bruno@clisp.org>
13460
13461         Avoid test failure on mingw.
13462         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13463
13464 2009-04-20  Bruno Haible  <bruno@clisp.org>
13465
13466         Avoid compilation error on mingw.
13467         * modules/localename-tests (Depends-on): Add locale.
13468
13469 2009-04-19  Bruno Haible  <bruno@clisp.org>
13470
13471         Support for building a shared library on Windows platforms.
13472         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13473         (main): Test the presence of UNINORM_NFC here.
13474         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13475         (main): Test the presence of UNINORM_NFD here.
13476         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13477         (main): Test the presence of UNINORM_NFKC here.
13478         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13479         (main): Test the presence of UNINORM_NFKD here.
13480
13481 2009-04-19  Bruno Haible  <bruno@clisp.org>
13482
13483         Avoid a compiler warning.
13484         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13485         Change type of variable 'sequence'.
13486
13487 2009-04-19  Bruno Haible  <bruno@clisp.org>
13488
13489         * modules/configmake (Makefile.am): When the contents of configmake.h
13490         does not change, arrange to preserve its modification time.
13491
13492 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13493
13494         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13495         gettext domain.
13496
13497 2009-04-16  Jim Meyering  <meyering@redhat.com>
13498
13499         useless-if-before-free: improve conversion code
13500         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13501         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13502
13503 2009-04-14  Bruno Haible  <bruno@clisp.org>
13504
13505         * modules/fcntl (Depends-on): Add extensions.
13506         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13507
13508 2009-04-12  Ben Pfaff  <blp@gnu.org>
13509
13510         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13511         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13512
13513 2009-03-20  Ben Pfaff  <blp@gnu.org>
13514
13515         Make rename replace existing destinations on Windows.
13516         * m4/rename.m4: Add test for Mingw.
13517         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13518         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13519         * doc/posix-functions/rename.texi: Document.
13520
13521 2009-04-10  Bruno Haible  <bruno@clisp.org>
13522
13523         New include file "iconveh.h".
13524         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13525         * lib/striconveh.h: Include it.
13526         (enum iconv_ilseq_handler): Remove definition.
13527         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13528         striconveh.h.
13529         * lib/striconveha.c: Include striconveh.h.
13530         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13531         * modules/striconveh (Files): Add lib/iconveh.h.
13532         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13533         lib/striconveh.h.
13534
13535 2009-04-10  Bruno Haible  <bruno@clisp.org>
13536
13537         * lib/uniconv.h: Update comment.
13538
13539 2009-04-10  Bruno Haible  <bruno@clisp.org>
13540
13541         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13542         always.
13543         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13544         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13545         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13546         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13547         "unistring-notinline.h", so that the function gets defined always.
13548         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13549         * lib/unistr/u8-uctomb.c: Likewise.
13550         * lib/unistr/u16-mbtouc.c: Likewise.
13551         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13552         * lib/unistr/u16-uctomb.c: Likewise.
13553         * lib/unistr/u32-mbtouc.c: Likewise.
13554         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13555         * lib/unistr/u32-uctomb.c: Likewise.
13556
13557 2009-04-10  Bruno Haible  <bruno@clisp.org>
13558
13559         Mark 'utime' obsolete.
13560         * modules/utime (Status, Notice): New sections.
13561         Suggested by Jim Meyering.
13562
13563         Fix cross-compile guess for utime test.
13564         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13565         autoconf.
13566         * doc/posix-functions/utime.texi: Give more precisions.
13567         Reported by Jan <ipif@ymail.com>.
13568
13569 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13570
13571         filevercmp: correct today's change
13572         * lib/filevercmp.c: Also handle coreutils' test inputs.
13573         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13574
13575         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13576         for reporting it.
13577         * lib/filevercmp.c: Special handle for "", "." and "..".
13578         * tests/test-filevercmp.c: Enlarge the set suite.
13579
13580 2009-04-07  Jim Meyering  <meyering@redhat.com>
13581
13582         useless-if-before-free: show how to remove braced useless free, too
13583         * build-aux/useless-if-before-free: still only in a comment, though.
13584
13585 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13586
13587         maint.mk: import changes to syntax-check macros from coreutils
13588         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13589         Use them in the relevant macros.
13590
13591 2009-04-06  Bruno Haible  <bruno@clisp.org>
13592
13593         Fix unportable use of bit-fields.
13594         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13595         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13596         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13597
13598 2009-04-06  Bruno Haible  <bruno@clisp.org>
13599
13600         Avoid test failures on AIX and OSF/1.
13601         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13602         that malloc(0) = NULL.
13603         * tests/unicase/test-u8-tolower.c (check): Likewise.
13604         * tests/unicase/test-u8-totitle.c (check): Likewise.
13605         * tests/unicase/test-u8-toupper.c (check): Likewise.
13606         * tests/unicase/test-u16-casefold.c (check): Likewise.
13607         * tests/unicase/test-u16-tolower.c (check): Likewise.
13608         * tests/unicase/test-u16-totitle.c (check): Likewise.
13609         * tests/unicase/test-u16-toupper.c (check): Likewise.
13610         * tests/unicase/test-u32-casefold.c (check): Likewise.
13611         * tests/unicase/test-u32-tolower.c (check): Likewise.
13612         * tests/unicase/test-u32-totitle.c (check): Likewise.
13613         * tests/unicase/test-u32-toupper.c (check): Likewise.
13614         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13615         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13616         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13617         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13618         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13619         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13620         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13621         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13622         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13623         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13624         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13625         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13626
13627 2009-04-05  Bruno Haible  <bruno@clisp.org>
13628
13629         Work around an autoconf limitation.
13630         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13631         comment line if it would be longer than 3 KB.
13632
13633 2009-04-05  Bruno Haible  <bruno@clisp.org>
13634
13635         Avoid test failure with libiconv-1.13.
13636         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13637         of the expected test results.
13638
13639 2009-04-05  Bruno Haible  <bruno@clisp.org>
13640
13641         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13642         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13643         that it should be installed.
13644
13645 2009-04-05  Bruno Haible  <bruno@clisp.org>
13646
13647         * gnulib-tool: New option --copy-file.
13648         (func_usage): Document it.
13649         (func_dest_tmpfilename): Moved out of func_import.
13650         (func_add_file, func_update_file): New functions, extracted from
13651         func_import.
13652         (func_import): Update.
13653
13654 2009-04-05  Karl Berry  <karl@gnu.org>
13655
13656         * README: prominently mention gnulib-tool.
13657         Rearrange sections so getting the code is near the top.
13658
13659 2009-04-05  Bruno Haible  <bruno@clisp.org>
13660
13661         * lib/unicase.h: Mention u*_cmp2.
13662         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13663         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13664         * lib/unicase/ulc-casecmp.c: Likewise.
13665         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13666         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13667         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13668         unistr/u8-cmp.
13669         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13670         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13671         unistr/u16-cmp.
13672         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13673         unistr/u32-cmp.
13674
13675         * lib/uninorm.h: Mention u*_cmp2.
13676         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13677         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13678         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13679         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13680         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13681         unistr/u8-cmp.
13682         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13683         unistr/u16-cmp.
13684         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13685         unistr/u32-cmp.
13686
13687         New module 'unistr/u32-cmp2'.
13688         * lib/unistr/u32-cmp2.c: New file.
13689         * modules/unistr/u32-cmp2: New file.
13690
13691         New module 'unistr/u16-cmp2'.
13692         * lib/unistr/u16-cmp2.c: New file.
13693         * modules/unistr/u16-cmp2: New file.
13694
13695         New module 'unistr/u8-cmp2'.
13696         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13697         * lib/unistr/u8-cmp2.c: New file.
13698         * lib/unistr/u-cmp2.h: New file.
13699         * modules/unistr/u8-cmp2: New file.
13700
13701 2009-04-05  Bruno Haible  <bruno@clisp.org>
13702
13703         * lib/unictype.h (uc_property_is_valid): New macro.
13704         * tests/unictype/test-pr_byname.c (main): Use it.
13705
13706         * lib/unistr.h: Doc fixes.
13707         * lib/uniconv.h: Doc fixes.
13708         * lib/unictype.h: Doc fixes.
13709
13710 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13711
13712         Port coreutils 7.2 to Solaris 8.
13713
13714         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13715         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13716         for Solaris 8.  This is a bit of a hack, as it means it's the
13717         caller's responsibility to add -lnsl if needed, but most likely it
13718         won't be needed since only getaddrinfo uses this and getaddrinfo
13719         isn't needed on Solaris 8.
13720
13721         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13722         problem to Solaris 8 encountered with coreutils 7.2, which
13723         resulted in a message "fnmatch.c:292: warning: passing argument 4
13724         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13725         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13726
13727 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13728
13729         * m4/ld-version-script.m4: Add FIXME comment.
13730
13731 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13732
13733         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13734         SOVERSION variable.
13735
13736 2009-04-02  Bruno Haible  <bruno@clisp.org>
13737
13738         * Makefile (info, html, dvi, pdf): Combine the rules.
13739         Suggested by Jim Meyering.
13740
13741 2009-04-01  Bruno Haible  <bruno@clisp.org>
13742
13743         * Makefile (info, html, dvi, pdf): New targets.
13744         Reported by Reuben Thomas <rrt@sc3d.org>.
13745
13746 2009-04-01  Bruno Haible  <bruno@clisp.org>
13747
13748         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13749         can be put into PATH.
13750         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13751
13752 2009-04-01  Bruno Haible  <bruno@clisp.org>
13753
13754         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13755
13756 2009-04-01  Bruno Haible  <bruno@clisp.org>
13757
13758         Rename module 'visibility'.
13759         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13760         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13761         * doc/gnulib.texi: Update.
13762         * MODULES.html.sh (Misc): Update.
13763         * NEWS: Mention the change.
13764
13765 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13766
13767         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13768         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13769         Eric Blake <ebb9@byu.net> for review.
13770         * MODULES.html.sh: Add lib-msvc-compat.
13771         * doc/gnulib.texi: Link to new section.
13772         * m4/ld-output-def.m4: New file.
13773         * doc/ld-output-def.texi: New file.
13774
13775 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13776
13777         Rename ld-version-script to lib-symbol-versions.  Suggested by
13778         Bruno Haible <bruno@clisp.org>.
13779         * modules/ld-version-script: Renamed to lib-symbol-versions.
13780         * doc/ld-version-script.texi: Fix module name.
13781         * MODULES.html.sh: Add lib-symbol-versions.
13782
13783 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13784
13785         * modules/u64-tests: New file.
13786         * tests/test-u64.c: New file.
13787
13788 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13789
13790         * MODULES.html.sh: Mention u64.
13791         * modules/u64: New module.
13792         * modules/crypto/sha512: Depend on u64 module instead of providing
13793         u64.h.
13794
13795 2009-03-27  Eric Blake  <ebb9@byu.net>
13796
13797         test-strerror: make debugging EAI_SYSTEM easier
13798         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13799         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13800         failure was EAI_SYSTEM.
13801
13802 2009-03-25  Bruno Haible  <bruno@clisp.org>
13803
13804         Fix a problem with --enable-relocatable on Solaris 7.
13805         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13806         since 2008-02-24.
13807
13808 2009-03-25  Eric Blake  <ebb9@byu.net>
13809
13810         test-sockets: avoid gcc warning
13811         * tests/test-sockets.c (main): Silence compiler warning.
13812
13813 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13814
13815         New modules nproc, pthread, contributed by Glen Lenker.
13816
13817         * MODULES.html.sh: Add pthread, nproc.
13818         * lib/nproc.c: New file.
13819         * lib/nproc.h: New file.
13820         * lib/pthread.in.h: New file.
13821         * m4/pthread.m4: New file.
13822         * modules/nproc: New file.
13823         * modules/pthread: New file.
13824
13825 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13826
13827         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13828         New variable.
13829
13830 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13831
13832         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13833         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13834         * tests/test-filevercmp.c: Add tests for backup suffixes.
13835
13836 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13837
13838         * modules/stdlib (Depends-on): Add stdint, needed when defining
13839         struct random_data on, for example, HP-UX 10.20.  Reported by
13840         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13841
13842 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13843
13844         * lib/readline.c (readline): Call fflush on stdout after printing
13845         prompt.
13846
13847 2009-03-20  Bruno Haible  <bruno@clisp.org>
13848
13849         Remove dependency from 'close' module to -lws2_32 on native Windows.
13850         * lib/close-hook.h: New file.
13851         * lib/close-hook.c: New file.
13852         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13853         w32sock.h.
13854         (_gl_close_fd_maybe_socket): Remove function.
13855         (rpl_close): Invoke execute_all_close_hooks instead of
13856         _gl_close_fd_maybe_socket.
13857         * lib/sockets.c: Include close-hook.h, w32sock.h.
13858         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13859         (close_sockets_hook): New variable.
13860         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13861         (gl_sockets_cleanup): Unregister it.
13862         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13863         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13864         * modules/close-hook: New file.
13865         * modules/close (Files): Remove lib/w32sock.h.
13866         (Depends-on): Add close-hook.
13867         (Link): Remove section.
13868         * modules/sockets (Files): Add lib/w32sock.h.
13869         (Depends-on): Add close-hook.
13870         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13871         invocation.
13872         * NEWS: Mention that LIB_CLOSE is gone.
13873
13874 2009-03-23  Eric Blake  <ebb9@byu.net>
13875
13876         signal-tests: test previous patch
13877         * tests/test-signal.c: New file.
13878         * modules/signal-tests: Likewise.
13879
13880         signal.h: always support 'volatile sig_atomic_t'
13881         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13882         (gl_SIGNAL_H_DEFAULTS): Add a default.
13883         * modules/signal (Makefile.am): Substitute if needed.
13884         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13885         users can blindly add volatile.
13886         * doc/posix-headers/signal.texi (signal.h): Document it.
13887         Reported by Matthew Woehlke.
13888
13889 2009-03-23  Jim Meyering  <meyering@redhat.com>
13890
13891         pathmax: PATH_MAX: use pathconf only when available
13892         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13893         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13894         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13895         This avoids a link failure in a PSP cross-compilation environment
13896         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13897
13898         * lib/vasnprintf.c (divide): Fix typo in comment.
13899
13900 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13901
13902         * gnulib-tool (func_filter_filelist): Fix comment.
13903
13904 2009-03-20  Bruno Haible  <bruno@clisp.org>
13905
13906         Make sockets.h self-contained.
13907         * lib/sockets.c: Include sockets.h first.
13908         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13909
13910 2009-03-19  Eric Blake  <ebb9@byu.net>
13911
13912         doc: mention more functions added in cygwin 1.7.0
13913         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13914         addition.
13915         * doc/posix-functions/log2f.texi: Likewise.
13916
13917 2009-03-19  Jim Meyering  <meyering@redhat.com>
13918
13919         fsusage: avoid syntax error due to statement-before-declaration
13920         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13921         after all declarations.  Reported by Matthew Woehlke in
13922         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13923
13924 2009-03-18  Eric Blake  <ebb9@byu.net>
13925
13926         build-aux/compile: sync from automake
13927         * build-aux/compile: New file, from automake.
13928         * config/srclist.txt: Mention build-aux/compile.
13929
13930 2009-03-17  Bruno Haible  <bruno@clisp.org>
13931
13932         * lib/git-merge-changelog.c: Fix typo in comment.
13933         Reported by Reuben Thomas <rrt@sc3d.org>.
13934
13935 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13936
13937         * m4/regex.m4: update and improve help for
13938         --without-included-regex.
13939
13940 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13941
13942         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13943         failure on missing include files.
13944
13945 2009-03-17  Eric Blake  <ebb9@byu.net>
13946
13947         doc: mention more functions added in cygwin 1.7.0
13948         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13949         addition.
13950         * doc/posix-functions/fwscanf.texi: Likewise.
13951         * doc/posix-functions/swprintf.texi: Likewise.
13952         * doc/posix-functions/swscanf.texi: Likewise.
13953         * doc/posix-functions/vfwprintf.texi: Likewise.
13954         * doc/posix-functions/vfwscanf.texi: Likewise.
13955         * doc/posix-functions/vswprintf.texi: Likewise.
13956         * doc/posix-functions/vswscanf.texi: Likewise.
13957         * doc/posix-functions/vwprintf.texi: Likewise.
13958         * doc/posix-functions/vwscanf.texi: Likewise.
13959         * doc/posix-functions/wcscasecmp.texi: Likewise.
13960         * doc/posix-functions/wcsdup.texi: Likewise.
13961         * doc/posix-functions/wcsftime.texi: Likewise.
13962         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13963         * doc/posix-functions/wprintf.texi: Likewise.
13964         * doc/posix-functions/wscanf.texi: Likewise.
13965         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13966
13967 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13968
13969         maint.mk: really add $(AM_MAKEFLAGS)
13970         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13971         was inadvertently omitted in the last commit.
13972         Spotted by Bruno Haible.
13973
13974         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13975         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13976         $(AM_MAKEFLAGS)' rather than plain `make'.
13977
13978         gnulib-tool: execute $MAKE not make
13979         * gnulib-tool: Default $MAKE to 'make'.
13980         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13981         than make.  Initialize $MAKE in the do-autobuild script.
13982
13983         gnulib-tool: use $MAKE not make in generated files
13984         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13985         make, in generated files.  Initialize $MAKE in the do-autobuild
13986         script.
13987
13988         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13989
13990         GNUmakefile: disable parallelism only for multiple, recursive targets
13991         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13992         additions in the Makefile.
13993         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13994         by Automake.
13995         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13996         are listed on the command line and at least one of them is
13997         listed in $(ALL_RECURSIVE_TARGETS).
13998
13999 2009-03-14  Bruno Haible  <bruno@clisp.org>
14000
14001         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14002         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14003         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14004         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14005         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14006         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14007         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14008         unistr/u8-uctomb.
14009         * modules/unistr/u8-strchr (Depends-on): Likewise.
14010         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14011         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14012         unistr/u16-uctomb.
14013         * modules/unistr/u16-strchr (Depends-on): Likewise.
14014         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14015
14016 2009-03-12  Bruno Haible  <bruno@clisp.org>
14017
14018         Work around select() bug on Interix 3.5.
14019         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14020         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14021         * m4/select.m4: New file.
14022         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14023         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14024         * modules/select (Files): Add m4/select.m4.
14025         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14026         * modules/nanosleep (Depends-on): Add select.
14027         * modules/poll (Depends-on): Likewise.
14028         * doc/posix-functions/select.texi: Mention the Interix bug.
14029         Reported by Markus Duft <mduft@gentoo.org>.
14030
14031         * lib/select.c: Renamed from lib/winsock-select.c.
14032         * modules/select (Files): Add lib/select.c, remove
14033         lib/winsock-select.c.
14034         (configure.ac): Update.
14035
14036 2009-03-12  Jim Meyering  <meyering@redhat.com>
14037
14038         avoid gcc warnings about unused macro definitions
14039         * lib/readtokens.c (STREQ): Remove unused definition.
14040         * lib/xmalloc.c (SIZE_MAX): Likewise.
14041         * lib/openat-die.c (N_): Likewise.
14042         * lib/mountlist.c (SIZE_MAX): Remove definition.
14043         Instead, include <stdint.h>.
14044         * lib/readutmp.c: Likewise.
14045         * modules/readutmp (Depends-on): Add stdint.
14046         * modules/mountlist (Depends-on): Add stdint.
14047         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14048
14049 2009-03-10  Bruno Haible  <bruno@clisp.org>
14050
14051         Tests for module 'mbmemcasecoll'.
14052         * modules/mbmemcasecoll-tests: New file.
14053         * tests/test-mbmemcasecoll1.sh: New file.
14054         * tests/test-mbmemcasecoll2.sh: New file.
14055         * tests/test-mbmemcasecoll3.sh: New file.
14056         * tests/test-mbmemcasecoll.c: New file.
14057
14058         New module 'mbmemcasecoll'.
14059         * lib/mbmemcasecoll.h: New file.
14060         * lib/mbmemcasecoll.c: New file.
14061         * modules/mbmemcasecoll: New file.
14062
14063         * tests/test-mbmemcasecmp.h: New file, extracted from
14064         tests/test-mbmemcasecmp.c.
14065         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14066         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14067         (main): Update.
14068         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14069
14070 2009-03-09  Bruno Haible  <bruno@clisp.org>
14071
14072         Tests for module 'mbmemcasecmp'.
14073         * modules/mbmemcasecmp-tests: New file.
14074         * tests/test-mbmemcasecmp1.sh: New file.
14075         * tests/test-mbmemcasecmp2.sh: New file.
14076         * tests/test-mbmemcasecmp3.sh: New file.
14077         * tests/test-mbmemcasecmp.c: New file.
14078
14079         New module 'mbmemcasecmp'.
14080         * lib/mbmemcasecmp.h: New file.
14081         * lib/mbmemcasecmp.c: New file.
14082         * modules/mbmemcasecmp: New file.
14083
14084 2009-03-09  Bruno Haible  <bruno@clisp.org>
14085
14086         Tests for module 'unicase/ulc-casecoll'.
14087         * modules/unicase/ulc-casecoll-tests: New file.
14088         * tests/unicase/test-ulc-casecoll1.sh: New file.
14089         * tests/unicase/test-ulc-casecoll2.sh: New file.
14090         * tests/unicase/test-ulc-casecoll.c: New file.
14091
14092         New module 'unicase/ulc-casecoll'.
14093         * lib/unicase.h (ulc_casecoll): New declaration.
14094         * lib/unicase/ulc-casecoll.c: New file.
14095         * modules/unicase/ulc-casecoll: New file.
14096
14097         New module 'unicase/ulc-casexfrm'.
14098         * lib/unicase.h (ulc_casexfrm): New declaration.
14099         * lib/unicase/ulc-casexfrm.c: New file.
14100         * modules/unicase/ulc-casexfrm: New file.
14101
14102 2009-03-09  Bruno Haible  <bruno@clisp.org>
14103
14104         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14105         invocations.
14106
14107         * m4/mbscasecmp.m4: Remove file.
14108         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14109         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14110
14111         * m4/mbscasestr.m4: Remove file.
14112         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14113         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14114
14115         * m4/mbschr.m4: Remove file.
14116         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14117         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14118
14119         * m4/mbscspn.m4: Remove file.
14120         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14121         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14122
14123         * m4/mbslen.m4: Remove file.
14124         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14125         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14126
14127         * m4/mbsncasecmp.m4: Remove file.
14128         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14129         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14130
14131         * m4/mbsnlen.m4: Remove file.
14132         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14133         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14134
14135         * m4/mbspbrk.m4: Remove file.
14136         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14137         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14138
14139         * m4/mbspcasecmp.m4: Remove file.
14140         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14141         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14142
14143         * m4/mbsrchr.m4: Remove file.
14144         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14145         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14146
14147         * m4/mbssep.m4: Remove file.
14148         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14149         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14150
14151         * m4/mbsspn.m4: Remove file.
14152         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14153         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14154
14155         * m4/mbsstr.m4: Remove file.
14156         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14157         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14158
14159         * m4/mbstok_r.m4: Remove file.
14160         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14161         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14162
14163         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14164
14165         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14166         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14167
14168         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14169
14170 2009-03-08  Bruno Haible  <bruno@clisp.org>
14171
14172         Tests for module 'unicase/ulc-casecmp'.
14173         * modules/unicase/ulc-casecmp-tests: New file.
14174         * tests/unicase/test-ulc-casecmp1.sh: New file.
14175         * tests/unicase/test-ulc-casecmp2.sh: New file.
14176         * tests/unicase/test-ulc-casecmp.c: New file.
14177
14178         New module 'unicase/ulc-casecmp'.
14179         * lib/unicase.h (ulc_casecmp): New declaration.
14180         * lib/unicase/ulc-casecmp.c: New file.
14181         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14182         'const SRC_UNIT *'.
14183         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14184         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14185         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14186         * modules/unicase/ulc-casecmp: New file.
14187
14188         Tests for module 'unicase/u32-is-cased'.
14189         * modules/unicase/u32-is-cased-tests: New file.
14190         * tests/unicase/test-u32-is-cased.c: New file.
14191
14192         Tests for module 'unicase/u16-is-cased'.
14193         * modules/unicase/u16-is-cased-tests: New file.
14194         * tests/unicase/test-u16-is-cased.c: New file.
14195
14196         Tests for module 'unicase/u8-is-cased'.
14197         * modules/unicase/u8-is-cased-tests: New file.
14198         * tests/unicase/test-u8-is-cased.c: New file.
14199         * tests/unicase/test-is-cased.h: New file.
14200
14201         New module 'unicase/u32-is-cased'.
14202         * lib/unicase/u32-is-cased.c: New file.
14203         * modules/unicase/u32-is-cased: New file.
14204
14205         New module 'unicase/u16-is-cased'.
14206         * lib/unicase/u16-is-cased.c: New file.
14207         * modules/unicase/u16-is-cased: New file.
14208
14209         New module 'unicase/u8-is-cased'.
14210         * lib/unicase/u8-is-cased.c: New file.
14211         * lib/unicase/u-is-cased.h: New file.
14212         * modules/unicase/u8-is-cased: New file.
14213
14214         Tests for module 'unicase/u32-is-casefolded'.
14215         * modules/unicase/u32-is-casefolded-tests: New file.
14216         * tests/unicase/test-u32-is-casefolded.c: New file.
14217
14218         Tests for module 'unicase/u16-is-casefolded'.
14219         * modules/unicase/u16-is-casefolded-tests: New file.
14220         * tests/unicase/test-u16-is-casefolded.c: New file.
14221
14222         Tests for module 'unicase/u8-is-casefolded'.
14223         * modules/unicase/u8-is-casefolded-tests: New file.
14224         * tests/unicase/test-u8-is-casefolded.c: New file.
14225         * tests/unicase/test-is-casefolded.h: New file.
14226
14227         New module 'unicase/u32-is-casefolded'.
14228         * lib/unicase/u32-is-casefolded.c: New file.
14229         * modules/unicase/u32-is-casefolded: New file.
14230
14231         New module 'unicase/u16-is-casefolded'.
14232         * lib/unicase/u16-is-casefolded.c: New file.
14233         * modules/unicase/u16-is-casefolded: New file.
14234
14235         New module 'unicase/u8-is-casefolded'.
14236         * lib/unicase/u8-is-casefolded.c: New file.
14237         * modules/unicase/u8-is-casefolded: New file.
14238
14239         Tests for module 'unicase/u32-is-titlecase'.
14240         * modules/unicase/u32-is-titlecase-tests: New file.
14241         * tests/unicase/test-u32-is-titlecase.c: New file.
14242
14243         Tests for module 'unicase/u16-is-titlecase'.
14244         * modules/unicase/u16-is-titlecase-tests: New file.
14245         * tests/unicase/test-u16-is-titlecase.c: New file.
14246
14247         Tests for module 'unicase/u8-is-titlecase'.
14248         * modules/unicase/u8-is-titlecase-tests: New file.
14249         * tests/unicase/test-u8-is-titlecase.c: New file.
14250         * tests/unicase/test-is-titlecase.h: New file.
14251
14252         New module 'unicase/u32-is-titlecase'.
14253         * lib/unicase/u32-is-titlecase.c: New file.
14254         * modules/unicase/u32-is-titlecase: New file.
14255
14256         New module 'unicase/u16-is-titlecase'.
14257         * lib/unicase/u16-is-titlecase.c: New file.
14258         * modules/unicase/u16-is-titlecase: New file.
14259
14260         New module 'unicase/u8-is-titlecase'.
14261         * lib/unicase/u8-is-titlecase.c: New file.
14262         * modules/unicase/u8-is-titlecase: New file.
14263
14264         Tests for module 'unicase/u32-is-lowercase'.
14265         * modules/unicase/u32-is-lowercase-tests: New file.
14266         * tests/unicase/test-u32-is-lowercase.c: New file.
14267
14268         Tests for module 'unicase/u16-is-lowercase'.
14269         * modules/unicase/u16-is-lowercase-tests: New file.
14270         * tests/unicase/test-u16-is-lowercase.c: New file.
14271
14272         Tests for module 'unicase/u8-is-lowercase'.
14273         * modules/unicase/u8-is-lowercase-tests: New file.
14274         * tests/unicase/test-u8-is-lowercase.c: New file.
14275         * tests/unicase/test-is-lowercase.h: New file.
14276
14277         New module 'unicase/u32-is-lowercase'.
14278         * lib/unicase/u32-is-lowercase.c: New file.
14279         * modules/unicase/u32-is-lowercase: New file.
14280
14281         New module 'unicase/u16-is-lowercase'.
14282         * lib/unicase/u16-is-lowercase.c: New file.
14283         * modules/unicase/u16-is-lowercase: New file.
14284
14285         New module 'unicase/u8-is-lowercase'.
14286         * lib/unicase/u8-is-lowercase.c: New file.
14287         * modules/unicase/u8-is-lowercase: New file.
14288
14289         Tests for module 'unicase/u32-is-uppercase'.
14290         * modules/unicase/u32-is-uppercase-tests: New file.
14291         * tests/unicase/test-u32-is-uppercase.c: New file.
14292
14293         Tests for module 'unicase/u16-is-uppercase'.
14294         * modules/unicase/u16-is-uppercase-tests: New file.
14295         * tests/unicase/test-u16-is-uppercase.c: New file.
14296
14297         Tests for module 'unicase/u8-is-uppercase'.
14298         * modules/unicase/u8-is-uppercase-tests: New file.
14299         * tests/unicase/test-u8-is-uppercase.c: New file.
14300         * tests/unicase/test-is-uppercase.h: New file.
14301
14302         New module 'unicase/u32-is-uppercase'.
14303         * lib/unicase/u32-is-uppercase.c: New file.
14304         * modules/unicase/u32-is-uppercase: New file.
14305
14306         New module 'unicase/u16-is-uppercase'.
14307         * lib/unicase/u16-is-uppercase.c: New file.
14308         * modules/unicase/u16-is-uppercase: New file.
14309
14310         New module 'unicase/u8-is-uppercase'.
14311         * lib/unicase/u8-is-uppercase.c: New file.
14312         * modules/unicase/u8-is-uppercase: New file.
14313
14314         New module 'unicase/u32-is-invariant'.
14315         * lib/unicase/u32-is-invariant.c: New file.
14316         * modules/unicase/u32-is-invariant: New file.
14317
14318         New module 'unicase/u16-is-invariant'.
14319         * lib/unicase/u16-is-invariant.c: New file.
14320         * modules/unicase/u16-is-invariant: New file.
14321
14322         New module 'unicase/u8-is-invariant'.
14323         * lib/unicase/u8-is-invariant.c: New file.
14324         * lib/unicase/invariant.h: New file.
14325         * lib/unicase/u-is-invariant.h: New file.
14326         * modules/unicase/u8-is-invariant: New file.
14327
14328         Tests for module 'unicase/u32-casecoll'.
14329         * modules/unicase/u32-casecoll-tests: New file.
14330         * tests/unicase/test-u32-casecoll.c: New file.
14331
14332         Tests for module 'unicase/u16-casecoll'.
14333         * modules/unicase/u16-casecoll-tests: New file.
14334         * tests/unicase/test-u16-casecoll.c: New file.
14335
14336         Tests for module 'unicase/u8-casecoll'.
14337         * modules/unicase/u8-casecoll-tests: New file.
14338         * tests/unicase/test-u8-casecoll.c: New file.
14339
14340         New module 'unicase/u32-casecoll'.
14341         * lib/unicase/u32-casecoll.c: New file.
14342         * modules/unicase/u32-casecoll: New file.
14343
14344         New module 'unicase/u16-casecoll'.
14345         * lib/unicase/u16-casecoll.c: New file.
14346         * modules/unicase/u16-casecoll: New file.
14347
14348         New module 'unicase/u8-casecoll'.
14349         * lib/unicase/u8-casecoll.c: New file.
14350         * lib/unicase/u-casecoll.h: New file.
14351         * modules/unicase/u8-casecoll: New file.
14352
14353         New module 'unicase/u32-casexfrm'.
14354         * lib/unicase/u32-casexfrm.c: New file.
14355         * modules/unicase/u32-casexfrm: New file.
14356
14357         New module 'unicase/u16-casexfrm'.
14358         * lib/unicase/u16-casexfrm.c: New file.
14359         * modules/unicase/u16-casexfrm: New file.
14360
14361         New module 'unicase/u8-casexfrm'.
14362         * lib/unicase/u8-casexfrm.c: New file.
14363         * lib/unicase/u-casexfrm.h: New file.
14364         * modules/unicase/u8-casexfrm: New file.
14365
14366         Tests for module 'unicase/u32-casecmp'.
14367         * modules/unicase/u32-casecmp-tests: New file.
14368         * tests/unicase/test-u32-casecmp.c: New file.
14369
14370         Tests for module 'unicase/u16-casecmp'.
14371         * modules/unicase/u16-casecmp-tests: New file.
14372         * tests/unicase/test-u16-casecmp.c: New file.
14373
14374         Tests for module 'unicase/u8-casecmp'.
14375         * modules/unicase/u8-casecmp-tests: New file.
14376         * tests/unicase/test-u8-casecmp.c: New file.
14377         * tests/unicase/test-casecmp.h: New file.
14378
14379         New module 'unicase/u32-casecmp'.
14380         * lib/unicase/u32-casecmp.c: New file.
14381         * modules/unicase/u32-casecmp: New file.
14382
14383         New module 'unicase/u16-casecmp'.
14384         * lib/unicase/u16-casecmp.c: New file.
14385         * modules/unicase/u16-casecmp: New file.
14386
14387         New module 'unicase/u8-casecmp'.
14388         * lib/unicase/u8-casecmp.c: New file.
14389         * lib/unicase/u-casecmp.h: New file.
14390         * modules/unicase/u8-casecmp: New file.
14391
14392         Tests for module 'unicase/u32-casefold'.
14393         * modules/unicase/u32-casefold-tests: New file.
14394         * tests/unicase/test-u32-casefold.c: New file.
14395
14396         Tests for module 'unicase/u16-casefold'.
14397         * modules/unicase/u16-casefold-tests: New file.
14398         * tests/unicase/test-u16-casefold.c: New file.
14399
14400         Tests for module 'unicase/u8-casefold'.
14401         * modules/unicase/u8-casefold-tests: New file.
14402         * tests/unicase/test-u8-casefold.c: New file.
14403
14404         New module 'unicase/u32-casefold'.
14405         * lib/unicase/u32-casefold.c: New file.
14406         * modules/unicase/u32-casefold: New file.
14407
14408         New module 'unicase/u16-casefold'.
14409         * lib/unicase/u16-casefold.c: New file.
14410         * modules/unicase/u16-casefold: New file.
14411
14412         New module 'unicase/u8-casefold'.
14413         * lib/unicase/u8-casefold.c: New file.
14414         * lib/unicase/u-casefold.h: New file.
14415         * modules/unicase/u8-casefold: New file.
14416
14417         New module 'unicase/tocasefold'.
14418         * lib/unicase/casefold.h: New file.
14419         * lib/unicase/tocasefold.c: New file.
14420         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14421         * modules/unicase/tocasefold: New file.
14422
14423         Tests for module 'unicase/u32-totitle'.
14424         * modules/unicase/u32-totitle-tests: New file.
14425         * tests/unicase/test-u32-totitle.c: New file.
14426
14427         Tests for module 'unicase/u16-totitle'.
14428         * modules/unicase/u16-totitle-tests: New file.
14429         * tests/unicase/test-u16-totitle.c: New file.
14430
14431         Tests for module 'unicase/u8-totitle'.
14432         * modules/unicase/u8-totitle-tests: New file.
14433         * tests/unicase/test-u8-totitle.c: New file.
14434
14435         New module 'unicase/u32-totitle'.
14436         * lib/unicase/u32-totitle.c: New file.
14437         * modules/unicase/u32-totitle: New file.
14438
14439         New module 'unicase/u16-totitle'.
14440         * lib/unicase/u16-totitle.c: New file.
14441         * modules/unicase/u16-totitle: New file.
14442
14443         New module 'unicase/u8-totitle'.
14444         * lib/unicase/u8-totitle.c: New file.
14445         * lib/unicase/u-totitle.h: New file.
14446         * modules/unicase/u8-totitle: New file.
14447
14448         Tests for module 'unicase/u32-tolower'.
14449         * modules/unicase/u32-tolower-tests: New file.
14450         * tests/unicase/test-u32-tolower.c: New file.
14451
14452         Tests for module 'unicase/u16-tolower'.
14453         * modules/unicase/u16-tolower-tests: New file.
14454         * tests/unicase/test-u16-tolower.c: New file.
14455
14456         Tests for module 'unicase/u8-tolower'.
14457         * modules/unicase/u8-tolower-tests: New file.
14458         * tests/unicase/test-u8-tolower.c: New file.
14459
14460         New module 'unicase/u32-tolower'.
14461         * lib/unicase/u32-tolower.c: New file.
14462         * modules/unicase/u32-tolower: New file.
14463
14464         New module 'unicase/u16-tolower'.
14465         * lib/unicase/u16-tolower.c: New file.
14466         * modules/unicase/u16-tolower: New file.
14467
14468         New module 'unicase/u8-tolower'.
14469         * lib/unicase/u8-tolower.c: New file.
14470         * modules/unicase/u8-tolower: New file.
14471
14472         Tests for module 'unicase/u32-toupper'.
14473         * modules/unicase/u32-toupper-tests: New file.
14474         * tests/unicase/test-u32-toupper.c: New file.
14475
14476         Tests for module 'unicase/u16-toupper'.
14477         * modules/unicase/u16-toupper-tests: New file.
14478         * tests/unicase/test-u16-toupper.c: New file.
14479
14480         Tests for module 'unicase/u8-toupper'.
14481         * modules/unicase/u8-toupper-tests: New file.
14482         * tests/unicase/test-u8-toupper.c: New file.
14483
14484         New module 'unicase/u32-toupper'.
14485         * lib/unicase/u32-toupper.c: New file.
14486         * modules/unicase/u32-toupper: New file.
14487
14488         New module 'unicase/u16-toupper'.
14489         * lib/unicase/u16-toupper.c: New file.
14490         * modules/unicase/u16-toupper: New file.
14491
14492         New module 'unicase/u8-toupper'.
14493         * lib/unicase/u8-toupper.c: New file.
14494         * modules/unicase/u8-toupper: New file.
14495
14496         New module 'unicase/u32-casemap'.
14497         * lib/unicase/u32-casemap.c: New file.
14498         * modules/unicase/u32-casemap: New file.
14499
14500         New module 'unicase/u16-casemap'.
14501         * lib/unicase/u16-casemap.c: New file.
14502         * modules/unicase/u16-casemap: New file.
14503
14504         New module 'unicase/u8-casemap'.
14505         * lib/unicase/unicasemap.h: New file.
14506         * lib/unicase/u8-casemap.c: New file.
14507         * lib/unicase/u-casemap.h: New file.
14508         * modules/unicase/u8-casemap: New file.
14509
14510         New module 'unicase/special-casing'.
14511         * lib/unicase/special-casing.h: New file.
14512         * lib/unicase/special-casing.c: New file.
14513         * lib/unicase/special-casing-table.gperf: New file, generated by
14514         gen-uni-tables.c.
14515         * modules/unicase/special-casing: New file.
14516
14517         Tests for module 'unicase/locale-language'.
14518         * modules/unicase/locale-language-tests: New file.
14519         * tests/unicase/test-locale-language.sh: New file.
14520         * tests/unicase/test-locale-language.c: New file.
14521
14522         New module 'unicase/locale-language'.
14523         * lib/unicase/locale-language.c: New file.
14524         * lib/unicase/locale-languages.gperf: New file.
14525         * modules/unicase/locale-language: New file.
14526
14527         Generate more tables for case conversion and case folding.
14528         * lib/gen-uni-tables.c (SCC_*): New enum items.
14529         (struct special_casing_rule): New type.
14530         (casing_rules, num_casing_rules, allocated_casing_rules): New
14531         variables.
14532         (add_casing_rule, fill_casing_rules): New functions.
14533         (struct casefold_rule): New type.
14534         (casefolding_rules, num_casefolding_rules,
14535         allocated_casefolding_rules): New variables.
14536         (fill_casefolding_rules): New function.
14537         (unicode_casefold): New variable.
14538         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14539         sort_casing_rules, output_casing_rules): New functions.
14540         (main): Accept to more arguments: SpecialCasing.txt and
14541         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14542         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14543         Output mapping for casefolding.
14544
14545         * lib/unicase.h: Include stdbool.h, uninorm.h.
14546         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14547         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14548         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14549         arguments.
14550         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14551         resultp arguments.
14552         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14553         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14554         resultp arguments.
14555         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14556         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14557         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14558         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14559         declarations.
14560         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14561
14562 2009-03-08  Bruno Haible  <bruno@clisp.org>
14563
14564         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14565         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14566         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14567         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14568
14569 2009-03-07  Bruno Haible  <bruno@clisp.org>
14570
14571         Adjust u*_normcmp, u*_normcoll API.
14572         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14573         u16_normcoll, u32_normcoll): Change failure conventions.
14574         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14575         errno and return -1.
14576         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14577
14578 2009-03-07  Bruno Haible  <bruno@clisp.org>
14579
14580         Tests for module 'uninorm/u32-normcoll'.
14581         * modules/uninorm/u32-normcoll-tests: New file.
14582         * tests/uninorm/test-u32-normcoll.c: New file.
14583
14584         Tests for module 'uninorm/u16-normcoll'.
14585         * modules/uninorm/u16-normcoll-tests: New file.
14586         * tests/uninorm/test-u16-normcoll.c: New file.
14587
14588         Tests for module 'uninorm/u8-normcoll'.
14589         * modules/uninorm/u8-normcoll-tests: New file.
14590         * tests/uninorm/test-u8-normcoll.c: New file.
14591
14592 2009-03-07  Bruno Haible  <bruno@clisp.org>
14593
14594         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14595         tests/uninorm/test-u32-normcmp.c.
14596         * tests/uninorm/test-u32-normcmp.c: Include it.
14597         (test_nonascii): New function, extracted from main. Add some more
14598         tests.
14599         (main): Invoke test_ascii and test_nonascii.
14600         * modules/uninorm/u32-normcmp-tests (Files): Add
14601         tests/uninorm/test-u32-normcmp.h.
14602         (Depends-on): Remove uninorm/u32-normcmp.
14603
14604         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14605         tests/uninorm/test-u16-normcmp.c.
14606         * tests/uninorm/test-u16-normcmp.c: Include it.
14607         (test_nonascii): New function, extracted from main. Add some more
14608         tests.
14609         (main): Invoke test_ascii and test_nonascii.
14610         * modules/uninorm/u16-normcmp-tests (Files): Add
14611         tests/uninorm/test-u16-normcmp.h.
14612         (Depends-on): Remove uninorm/u16-normcmp.
14613
14614         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14615         tests/uninorm/test-u8-normcmp.c.
14616         * tests/uninorm/test-u8-normcmp.c: Include it.
14617         (test_nonascii): New function, extracted from main. Add some more
14618         tests.
14619         (main): Invoke test_ascii and test_nonascii.
14620         * modules/uninorm/u8-normcmp-tests (Files): Add
14621         tests/uninorm/test-u8-normcmp.h.
14622         (Depends-on): Remove uninorm/u8-normcmp.
14623
14624 2009-03-07  Bruno Haible  <bruno@clisp.org>
14625
14626         New module 'uninorm/u32-normcoll'.
14627         * lib/uninorm/u32-normcoll.c: New file.
14628         * modules/uninorm/u32-normcoll: New file.
14629
14630         New module 'uninorm/u16-normcoll'.
14631         * lib/uninorm/u16-normcoll.c: New file.
14632         * modules/uninorm/u16-normcoll: New file.
14633
14634         New module 'uninorm/u8-normcoll'.
14635         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14636         declarations.
14637         * lib/uninorm/u8-normcoll.c: New file.
14638         * lib/uninorm/u-normcoll.h: New file.
14639         * modules/uninorm/u8-normcoll: New file.
14640
14641         New module 'uninorm/u32-normxfrm'.
14642         * lib/uninorm/u32-normxfrm.c: New file.
14643         * modules/uninorm/u32-normxfrm: New file.
14644
14645         New module 'uninorm/u16-normxfrm'.
14646         * lib/uninorm/u16-normxfrm.c: New file.
14647         * modules/uninorm/u16-normxfrm: New file.
14648
14649         New module 'uninorm/u8-normxfrm'.
14650         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14651         declarations.
14652         * lib/uninorm/u8-normxfrm.c: New file.
14653         * lib/uninorm/u-normxfrm.h: New file.
14654         * modules/uninorm/u8-normxfrm: New file.
14655
14656 2009-03-07  Bruno Haible  <bruno@clisp.org>
14657
14658         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14659         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14660         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14661
14662 2009-03-07  Bruno Haible  <bruno@clisp.org>
14663
14664         New module 'memxfrm'.
14665         * lib/memxfrm.h: New file.
14666         * lib/memxfrm.c: New file.
14667         * modules/memxfrm: New file.
14668
14669 2009-03-07  Bruno Haible  <bruno@clisp.org>
14670
14671         New module 'memcmp2'.
14672         * lib/memcmp2.h: New file.
14673         * lib/memcmp2.c: New file.
14674         * modules/memcmp2: New file.
14675
14676 2009-03-07  Bruno Haible  <bruno@clisp.org>
14677
14678         Tests for module 'uninorm/decomposing-form'.
14679         * modules/uninorm/decomposing-form-tests: New file.
14680         * tests/uninorm/test-decomposing-form.c: New file.
14681
14682         New module 'uninorm/decomposing-form'.
14683         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14684         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14685         Add 'decomposing_variant' field.
14686         * lib/uninorm/decomposing-form.c: New file.
14687         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14688         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14689         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14690         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14691         * modules/uninorm/decomposing-form: New file.
14692         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14693         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14694
14695 2009-03-07  Bruno Haible  <bruno@clisp.org>
14696
14697         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14698         strings.
14699
14700 2009-03-06  Bruno Haible  <bruno@clisp.org>
14701
14702         Tests for module 'uninorm/u32-normcmp'.
14703         * tests/uninorm/test-u32-normcmp.c: New file.
14704         * modules/uninorm/u32-normcmp-tests: New file.
14705
14706         Tests for module 'uninorm/u16-normcmp'.
14707         * tests/uninorm/test-u16-normcmp.c: New file.
14708         * modules/uninorm/u16-normcmp-tests: New file.
14709
14710         Tests for module 'uninorm/u8-normcmp'.
14711         * tests/uninorm/test-u8-normcmp.c: New file.
14712         * modules/uninorm/u8-normcmp-tests: New file.
14713
14714         New module 'uninorm/u32-normcmp'.
14715         * lib/uninorm/u32-normcmp.c: New file.
14716         * modules/uninorm/u32-normcmp: New file.
14717
14718         New module 'uninorm/u16-normcmp'.
14719         * lib/uninorm/u16-normcmp.c: New file.
14720         * modules/uninorm/u16-normcmp: New file.
14721
14722         New module 'uninorm/u8-normcmp'.
14723         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14724         declarations.
14725         * lib/uninorm/u8-normcmp.c: New file.
14726         * lib/uninorm/u-normcmp.h: New file.
14727         * modules/uninorm/u8-normcmp: New file.
14728
14729 2009-03-06  Bruno Haible  <bruno@clisp.org>
14730
14731         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14732         Reported by Eric Blake.
14733
14734 2009-03-06  Eric Blake  <ebb9@byu.net>
14735             Bruno Haible  <bruno@clisp.org>
14736
14737         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14738         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14739         condition.
14740         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14741         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14742         condition.
14743         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14744
14745 2009-03-06  Eric Blake  <ebb9@byu.net>
14746
14747         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14748         to avoid compiler warnings.
14749         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14750
14751 2009-03-05  Bruno Haible  <bruno@clisp.org>
14752
14753         * tests/test-ftell.c (main): Disable test beyond end of file on
14754         FreeMiNT.
14755         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14756
14757 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14758
14759         * lib/filevercmp.c: Move hidden files up in ordering.
14760         * tests/test-filevercmp.c: Add tests for hidden files.
14761
14762 2009-03-04  Bruno Haible  <bruno@clisp.org>
14763
14764         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14765         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14766         AM_CFLAGS.
14767         Reported by Simon Josefsson.
14768
14769 2009-03-03  Bruno Haible  <bruno@clisp.org>
14770
14771         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14772         Reported by Simon Josefsson.
14773
14774         * doc/ld-version-script.texi: Update node reference.
14775
14776 2009-03-03  Bruno Haible  <bruno@clisp.org>
14777
14778         * modules/visibility (License): Change to 'unlimited'.
14779         Suggested by Simon Josefsson.
14780
14781 2009-03-03  Jim Meyering  <meyering@redhat.com>
14782
14783         unlinkdir: cannot_unlink_dir may modify process state
14784         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14785         it's neither thread-safe nor appropriate for use in a library.
14786
14787 2009-03-03  Eric Blake  <ebb9@byu.net>
14788
14789         test-closein: silence test under Darwin
14790         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14791         care if it dies from EPIPE or EBADF.
14792
14793 2009-03-03  Bruno Haible  <bruno@clisp.org>
14794
14795         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14796         earlier.
14797         * doc/visibility.texi: Fix @node and @section.
14798
14799 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14800
14801         * doc/gnulib.texi: Link to sections for ld version script and
14802         visibility.
14803         * doc/visibility.texi: Add @node and @section.
14804         * modules/ld-version-script: New module.
14805         * m4/ld-version-script.m4: New file.
14806         * doc/ld-version-script.texi: New file.
14807
14808 2009-03-02  David Lutterkort  <lutter@redhat.com>
14809
14810         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14812
14813 2009-03-02  Bruno Haible  <bruno@clisp.org>
14814
14815         * doc/visibility.texi: Mention libtool's -export-symbols option.
14816
14817 2009-03-02  Jim Meyering  <meyering@redhat.com>
14818
14819         announce-gen: new option: --no-print-checksums
14820         * build-aux/announce-gen (usage): Describe it.
14821         (print_checksums): Print a newline here, not in the [*] footnote.
14822         (main): Honor it.
14823
14824 2009-03-01  Bruno Haible  <bruno@clisp.org>
14825
14826         Use socklen_t in the native Windows replacements prototypes.
14827         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14828         instead of 'int'.
14829         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14830         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14831         * modules/getsockopt (Depends-on): Add socklen.
14832         * modules/setsockopt (Depends-on): Add socklen.
14833
14834 2009-03-01  Bruno Haible  <bruno@clisp.org>
14835
14836         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14837         least 4.2.
14838
14839 2009-03-01  Eric Blake  <ebb9@byu.net>
14840             Bruno Haible  <bruno@clisp.org>
14841
14842         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14843         error messages.
14844         * lib/wait-process.c (wait_subprocess): Omit error message about
14845         deadly signal sent to the child of termsigp != NULL.
14846
14847 2009-03-01  Eric Blake  <ebb9@byu.net>
14848
14849         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14850
14851 2009-03-01  Bruno Haible  <bruno@clisp.org>
14852
14853         Avoid a gcc warning.
14854         * tests/test-sched.c (b): Make global.
14855         Reported by Eric Blake.
14856
14857 2009-01-19  Martin Lambers  <marlam@marlam.de>
14858
14859         Provide POSIX semantics for socket timeout options on W32.
14860         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14861         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14862         * modules/setsockopt: Depend on sys_time module for struct timeval.
14863         * modules/getsockopt: Depend on sys_time module for struct timeval.
14864
14865 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14866
14867         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14868         __USE_GNU, for consistency with netdb.in.h.
14869         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14870
14871 2009-03-01  Bruno Haible  <bruno@clisp.org>
14872
14873         More support for FreeMiNT.
14874         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14875         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14876
14877 2009-03-01  Bruno Haible  <bruno@clisp.org>
14878
14879         More support for FreeMiNT.
14880         * lib/fpurge.c (fpurge): Correct last commit.
14881         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14882
14883 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14884
14885         Fix unportable awk script in vc-list-files.
14886         * build-aux/vc-list-files: In the replacement awk script, use
14887         substr with a second argument of 1, not zero.
14888         Report by Simon Josefsson.
14889
14890 2009-02-28  Bruno Haible  <bruno@clisp.org>
14891
14892         More support for FreeMiNT.
14893         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14894         to FreeMiNT today.
14895         * lib/fwriting.c (fwriting): Likewise.
14896         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14897
14898 2009-02-28  Bruno Haible  <bruno@clisp.org>
14899
14900         * tests/test-freadseek.c (main): Disable test beyond end of file on
14901         FreeMiNT.
14902         * tests/test-ftello.c (main): Likewise.
14903         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14904
14905 2009-02-28  Bruno Haible  <bruno@clisp.org>
14906
14907         Add tentative support for FreeMiNT.
14908         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14909         * lib/fpurge.c (fpurge): Likewise.
14910         * lib/freadable.c (freadable): Likewise.
14911         * lib/freading.c (freading): Likewise.
14912         * lib/freadptr.c (freadptr): Likewise.
14913         * lib/freadseek.c (freadptrinc): Likewise.
14914         * lib/fseeko.c (rpl_fseeko): Likewise.
14915         * lib/fseterr.c (fseterr): Likewise.
14916         * lib/fwritable.c (fwritable): Likewise.
14917         * lib/fwriting.c (fwriting): Likewise.
14918         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14919         Hourihane.
14920         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14921
14922 2009-02-28  Bruno Haible  <bruno@clisp.org>
14923
14924         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14925         SIGCHLD.
14926         Reported by Jim Meyering.
14927
14928 2009-02-28  Bruno Haible  <bruno@clisp.org>
14929
14930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14931         Mention the results of these tests on various platforms.
14932         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14933         order.
14934         * doc/posix-functions/printf.texi: Likewise.
14935         * doc/posix-functions/snprintf.texi: Likewise.
14936         * doc/posix-functions/sprintf.texi: Likewise.
14937         * doc/posix-functions/vfprintf.texi: Likewise.
14938         * doc/posix-functions/vprintf.texi: Likewise.
14939         * doc/posix-functions/vsnprintf.texi: Likewise.
14940         * doc/posix-functions/vsprintf.texi: Likewise.
14941         * doc/glibc-functions/obstack_printf.texi: Likewise.
14942         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14943
14944 2009-02-28  Bruno Haible  <bruno@clisp.org>
14945
14946         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14947         Reported by Loïc Minier <lool@dooz.org>.
14948
14949 2009-02-27  Bruno Haible  <bruno@clisp.org>
14950
14951         * gnulib-tool (func_import): Make the sed expression used to create the
14952         sed script for updating the .gitignore file POSIX compliant.
14953         Reported by Eric Blake.
14954
14955 2009-02-27  Bruno Haible  <bruno@clisp.org>
14956
14957         * gnulib-tool (sed): Don't alias as "sed --posix".
14958         Reported by Eric Blake.
14959
14960 2009-02-27  Bruno Haible  <bruno@clisp.org>
14961
14962         Avoid test link errors.
14963         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14964         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14965         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14966         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14968
14969 2009-02-27  Bruno Haible  <bruno@clisp.org>
14970
14971         Avoid spurious "(cached)" in configure output.
14972         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14973         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14974         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14975         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14976         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14977         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14978         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14979         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14980         Reported by Eric Blake.
14981
14982 2009-02-27  Eric Blake  <ebb9@byu.net>
14983
14984         printf: fix regression in previous patch
14985         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14986
14987 2009-02-27  Bruno Haible  <bruno@clisp.org>
14988
14989         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14990         value.
14991         * lib/stdint.in.h: Likewise.
14992         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14993
14994 2009-02-27  Eric Blake  <ebb9@byu.net>
14995
14996         doc: mention more functions added in cygwin 1.7.0
14997         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14998         addition.
14999         * doc/posix-functions/open_wmemstream.texi: Likewise.
15000         * doc/posix-functions/wcsnlen.texi: Likewise.
15001         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15002         * doc/posix-functions/wcstod.texi: Likewise.
15003         * doc/posix-functions/wcstof.texi: Likewise.
15004         * doc/posix-functions/wcstoimax.texi: Likewise.
15005         * doc/posix-functions/wcstok.texi: Likewise.
15006         * doc/posix-functions/wcstoumax.texi: Likewise.
15007
15008         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15010         * doc/posix-functions/fprintf.texi: Update.
15011         * doc/posix-functions/printf.texi: Update.
15012         * doc/posix-functions/snprintf.texi: Update.
15013         * doc/posix-functions/sprintf.texi: Update.
15014         * doc/posix-functions/vfprintf.texi: Update.
15015         * doc/posix-functions/vprintf.texi: Update.
15016         * doc/posix-functions/vsnprintf.texi: Update.
15017         * doc/posix-functions/vsprintf.texi: Update.
15018         * doc/glibc-functions/obstack_printf.texi: Update.
15019         * doc/glibc-functions/obstack_vprintf.texi: Update.
15020
15021 2009-02-26  Eric Blake  <ebb9@byu.net>
15022
15023         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15024         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15025         compilation bug by using runtime conversion.
15026         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15027         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15028         * modules/ceill-tests (Files): Use nan.h.
15029         * modules/floorl-tests (Files): Likewise.
15030         * modules/frexpl-tests (Files): Likewise.
15031         * modules/isnanl-tests (Files): Likewise.
15032         * modules/ldexpl-tests (Files): Likewise.
15033         * modules/roundl-tests (Files): Likewise.
15034         * modules/truncl-tests (Files): Likewise.
15035         * tests/test-ceill.c (main): Use a working NaN.
15036         * tests/test-floorl.c (main): Likewise.
15037         * tests/test-frexpl.c (main): Likewise.
15038         * tests/test-isnan.c (test_long_double): Likewise.
15039         * tests/test-isnanl.h (main): Likewise.
15040         * tests/test-ldexpl.h (main): Likewise.
15041         * tests/test-roundl.h (main): Likewise.
15042         * tests/test-truncl.h (main): Likewise.
15043         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15044
15045 2009-02-26  Eric Blake  <ebb9@byu.net>
15046             Bruno Haible  <bruno@clisp.org>
15047
15048         Work around a *printf bug with %ls on Solaris.
15049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15050         precision is specified, sprintf stops converting the wide string
15051         argument when the number of bytes that have been produced by this
15052         conversion equals or exceeds the precision.
15053         * doc/posix-functions/fprintf.texi: Update.
15054         * doc/posix-functions/printf.texi: Update.
15055         * doc/posix-functions/snprintf.texi: Update.
15056         * doc/posix-functions/sprintf.texi: Update.
15057         * doc/posix-functions/vfprintf.texi: Update.
15058         * doc/posix-functions/vprintf.texi: Update.
15059         * doc/posix-functions/vsnprintf.texi: Update.
15060         * doc/posix-functions/vsprintf.texi: Update.
15061         * doc/glibc-functions/obstack_printf.texi: Update.
15062         * doc/glibc-functions/obstack_vprintf.texi: Update.
15063
15064 2009-02-26  Eric Blake  <ebb9@byu.net>
15065
15066         stdlib: favor compiler check of random.h
15067         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15068         to avoid an ObjC random.h installed by Swarm.
15069
15070 2009-02-26  Bruno Haible  <bruno@clisp.org>
15071
15072         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15073         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15074         Reported by Gary V. Vaughan <gary@gnu.org>.
15075
15076 2009-02-26  Bruno Haible  <bruno@clisp.org>
15077
15078         Fix *printf behaviour regarding the %ls directive.
15079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15080         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15081         NEED_PRINTF_DIRECTIVE_LS.
15082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15083         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15085         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15086         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15087         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15088         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15093         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15097         * doc/posix-functions/fprintf.texi: Update.
15098         * doc/posix-functions/printf.texi: Update.
15099         * doc/posix-functions/snprintf.texi: Update.
15100         * doc/posix-functions/sprintf.texi: Update.
15101         * doc/posix-functions/vfprintf.texi: Update.
15102         * doc/posix-functions/vprintf.texi: Update.
15103         * doc/posix-functions/vsnprintf.texi: Update.
15104         * doc/posix-functions/vsprintf.texi: Update.
15105         * doc/glibc-functions/obstack_printf.texi: Update.
15106         * doc/glibc-functions/obstack_vprintf.texi: Update.
15107         Reported by Eric Blake.
15108
15109 2009-02-25  Bruno Haible  <bruno@clisp.org>
15110
15111         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15112         with known value.
15113         Reported by Gary V. Vaughan <gary@gnu.org>.
15114
15115 2009-02-25  Bruno Haible  <bruno@clisp.org>
15116
15117         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15118         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15119         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15120         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15121         Reported by Gary V. Vaughan <gary@gnu.org>.
15122
15123 2009-02-25  Bruno Haible  <bruno@clisp.org>
15124
15125         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15126         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15127         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15128         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15129         Reported by Gary V. Vaughan <gary@gnu.org>.
15130
15131 2009-02-25  Eric Blake  <ebb9@byu.net>
15132
15133         tests: skip fseek/ftell tests if ungetc is broken
15134         * m4/ungetc.m4: New file.
15135         * modules/fseek-tests: Split test, so ungetc dependency is
15136         separate from rest of test.
15137         * modules/fseeko-tests: Likewise.
15138         * modules/ftell-tests: Likewise.
15139         * modules/ftello-tests: Likewise.
15140         * tests/test-fseek.c (main): Isolate ungetc dependency.
15141         * tests/test-fseeko.c (main): Likewise.
15142         * tests/test-ftell.c (main): Likewise.
15143         * tests/test-ftello.c (main): Likewise.
15144         * tests/test-fseek2.sh: New file.
15145         * tests/test-fseeko2.sh: Likewise.
15146         * tests/test-ftell2.sh: Likewise.
15147         * tests/test-ftello2.sh: Likewise.
15148
15149 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15150
15151         test-getaddrinfo: fix usage of skip return code 77
15152         * tests/test-gettaddrinfo.c: Return skip code 77 only
15153         for first occurance of skip (4x77 is not 77)
15154
15155 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15156
15157         strtod: avoid C99 decl-after-statement
15158         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15159
15160 2009-02-24  Eric Blake  <ebb9@byu.net>
15161
15162         strtod: detect HP-UX 11.31 bug
15163         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15164         Reported by Gary V. Vaughan.
15165
15166 2009-02-23  Bruno Haible  <bruno@clisp.org>
15167
15168         Fix invalid read past end of memory block.
15169         * lib/vasnprintf.c (DCHAR_SET): Define.
15170         (local_wcslen): Define only when needed.
15171         (local_strnlen, local_wcsnlen): New functions.
15172         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15173         directives that involve a conversion ourselves.
15174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15175         wcsnlen, mbrtowc, wcrtomb.
15176         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15177         * tests/test-vasprintf-posix.c (test_function): Likewise.
15178         * tests/test-snprintf-posix.h (test_function): Likewise.
15179         * tests/test-sprintf-posix.h (test_function): Likewise.
15180         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15181
15182 2009-02-22  Bruno Haible  <bruno@clisp.org>
15183
15184         Implement new clarified decomposition of Hangul syllables.
15185         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15186         of type LTV, return only a pairwise decomposition.
15187         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15188         Likewise.
15189         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15190         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15191         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15192
15193 2009-02-22  Bruno Haible  <bruno@clisp.org>
15194
15195         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15196         zero-length results and shrink excess allocated memory.
15197         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15198         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15199         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15200         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15201         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15202         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15203         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15204         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15205         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15206         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15207         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15208         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15209
15210 2009-02-21  Bruno Haible  <bruno@clisp.org>
15211
15212         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15213         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15214         spaces after a period. Put a space between a macro name and its
15215         argument list. Trivial rewordings.
15216         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15217         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15218         (main): Return 0 explicitly.
15219
15220 2009-02-21  Bruno Haible  <bruno@clisp.org>
15221
15222         Tests for module 'uninorm/filter'.
15223         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15224         * modules/uninorm/filter-tests: New file.
15225
15226         New module 'uninorm/filter'.
15227         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15228         uninorm_filter_flush, uninorm_filter_free): New declarations.
15229         * lib/uninorm/uninorm-filter.c: New file.
15230         * modules/uninorm/filter: New file.
15231
15232 2009-02-21  Bruno Haible  <bruno@clisp.org>
15233
15234         Tests for module 'uninorm/nfkc'.
15235         * tests/uninorm/test-nfkc.c: New file.
15236         * tests/uninorm/test-u8-nfkc.c: New file.
15237         * tests/uninorm/test-u16-nfkc.c: New file.
15238         * tests/uninorm/test-u32-nfkc.c: New file.
15239         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15240         * tests/uninorm/test-u32-nfkc-big.c: New file.
15241         * modules/uninorm/nfkc-tests: New file.
15242
15243         New module 'uninorm/nfkc'.
15244         * lib/uninorm/nfkc.c: New file.
15245         * modules/uninorm/nfkc: New file.
15246
15247         Tests for module 'uninorm/nfkd'.
15248         * tests/uninorm/test-nfkd.c: New file.
15249         * tests/uninorm/test-u8-nfkd.c: New file.
15250         * tests/uninorm/test-u16-nfkd.c: New file.
15251         * tests/uninorm/test-u32-nfkd.c: New file.
15252         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15253         * tests/uninorm/test-u32-nfkd-big.c: New file.
15254         * modules/uninorm/nfkd-tests: New file.
15255
15256         New module 'uninorm/nfkd'.
15257         * lib/uninorm/nfkd.c: New file.
15258         * modules/uninorm/nfkd: New file.
15259
15260         Tests for module 'uninorm/nfc'.
15261         * tests/uninorm/test-nfc.c: New file.
15262         * tests/uninorm/test-u8-nfc.c: New file.
15263         * tests/uninorm/test-u16-nfc.c: New file.
15264         * tests/uninorm/test-u32-nfc.c: New file.
15265         * tests/uninorm/test-u32-nfc-big.sh: New file.
15266         * tests/uninorm/test-u32-nfc-big.c: New file.
15267         * modules/uninorm/nfc-tests: New file.
15268
15269         New module 'uninorm/nfc'.
15270         * lib/uninorm/nfc.c: New file.
15271         * modules/uninorm/nfc: New file.
15272
15273         Tests for module 'uninorm/nfd'.
15274         * tests/uninorm/test-nfd.c: New file.
15275         * tests/uninorm/test-u8-nfd.c: New file.
15276         * tests/uninorm/test-u16-nfd.c: New file.
15277         * tests/uninorm/test-u32-nfd.c: New file.
15278         * tests/uninorm/test-u32-nfd-big.sh: New file.
15279         * tests/uninorm/test-u32-nfd-big.c: New file.
15280         * tests/uninorm/test-u32-normalize-big.h: New file.
15281         * tests/uninorm/test-u32-normalize-big.c: New file.
15282         * tests/uninorm/NormalizationTest.txt: New file, created from
15283         Unicode 5.1.0 NormalizationTest.txt.
15284         * modules/uninorm/nfd-tests: New file.
15285
15286         New module 'uninorm/nfd'.
15287         * lib/uninorm/nfd.c: New file.
15288         * modules/uninorm/nfd: New file.
15289
15290         New module 'uninorm/u32-normalize'.
15291         * lib/uninorm/u32-normalize.c: New file.
15292         * modules/uninorm/u32-normalize: New file.
15293
15294         New module 'uninorm/u16-normalize'.
15295         * lib/uninorm/u16-normalize.c: New file.
15296         * modules/uninorm/u16-normalize: New file.
15297
15298         New module 'uninorm/u8-normalize'.
15299         * lib/uninorm/u8-normalize.c: New file.
15300         * lib/uninorm/normalize-internal.h: New file.
15301         * lib/uninorm/u-normalize-internal.h: New file.
15302         * modules/uninorm/u8-normalize: New file.
15303
15304         New module 'uninorm/decompose-internal'.
15305         * lib/uninorm/decompose-internal.c: New file.
15306         * modules/uninorm/decompose-internal: New file.
15307
15308         Tests for module 'uninorm/composition'.
15309         * tests/uninorm/test-composition.c: New file.
15310         * modules/uninorm/composition-tests: New file.
15311
15312         New module 'uninorm/composition'.
15313         * lib/uninorm/composition.c: New file.
15314         * lib/uninorm/composition-table.gperf: New file, generated by
15315         gen-uni-tables.
15316         * modules/uninorm/composition: New file.
15317
15318         Tests for module 'uninorm/compat-decomposition'.
15319         * tests/uninorm/test-compat-decomposition.c: New file.
15320         * modules/uninorm/compat-decomposition-tests: New file.
15321
15322         New module 'uninorm/compat-decomposition'.
15323         * lib/uninorm/decompose-internal.h: New file.
15324         * lib/uninorm/compat-decomposition.c: New file.
15325         * modules/uninorm/compat-decomposition: New file.
15326
15327         Tests for module 'uninorm/canonical-decomposition'.
15328         * tests/uninorm/test-canonical-decomposition.c: New file.
15329         * modules/uninorm/canonical-decomposition-tests: New file.
15330
15331         New module 'uninorm/canonical-decomposition'.
15332         * lib/uninorm/canonical-decomposition.c: New file.
15333         * modules/uninorm/canonical-decomposition: New file.
15334
15335         Tests for module 'uninorm/decomposition'.
15336         * tests/uninorm/test-decomposition.c: New file.
15337         * modules/uninorm/decomposition-tests: New file.
15338
15339         New module 'uninorm/decomposition'.
15340         * lib/uninorm/decomposition.c: New file.
15341         * modules/uninorm/decomposition: New file.
15342
15343         New module 'uninorm/decomposition-table'.
15344         * lib/uninorm/decomposition-table.h: New file.
15345         * lib/uninorm/decomposition-table.c: New file.
15346         * lib/uninorm/decomposition-table1.h: New file, generated by
15347         gen-uni-tables.
15348         * lib/uninorm/decomposition-table2.h: New file, generated by
15349         gen-uni-tables.
15350         * modules/uninorm/decomposition-table: New file.
15351
15352         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15353         (UC_DECOMP_*): New enumeration items.
15354         (get_decomposition): New function.
15355         (struct decomp_table): New type.
15356         (output_decomposition, output_decomposition_tables): New functions.
15357         (unicode_composition_exclusions): New variable.
15358         (fill_composition_exclusions, debug_output_composition_tables): New
15359         functions.
15360         (main): Accept one more argument. Invoke fill_composition_exclusions.
15361         Output decomposition and composition tables.
15362
15363         New module 'uninorm/base'.
15364         * lib/uninorm.h: New file.
15365         * lib/unictype.h: Update comment.
15366         * modules/uninorm/base: New file.
15367
15368 2009-02-21  David Lutterkort  <lutter@redhat.com>
15369
15370         Tests for module 'safe-alloc'.
15371         * tests/test-safe-alloc.c: New file.
15372         * modules/safe-alloc-tests: New file.
15373
15374         New module 'safe-alloc'.
15375         * lib/safe-alloc.h: New file.
15376         * lib/safe-alloc.c: New file.
15377         * m4/safe-alloc.m4: New file.
15378         * modules/safe-alloc: New file.
15379         * doc/safe-alloc.texi: New file.
15380         * doc/gnulib.texi: Include it.
15381         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15382         safe-alloc.
15383
15384 2009-02-18  Bruno Haible  <bruno@clisp.org>
15385
15386         Fix link error on non-glibc systems.
15387         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15388         variable.
15389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15390
15391 2009-02-18  Jim Meyering  <meyering@redhat.com>
15392
15393         fts: avoid used-uninitialized error due to recent change
15394         * lib/fts.c (fts_read): Guard uses of the new member,
15395         parent->fts_n_dirs_remaining, since it's not relevant for
15396         the parent of a directory specified on the command-line.
15397
15398 2009-02-17  James Youngman  <jay@gnu.org>
15399             Bruno Haible  <bruno@clisp.org>
15400
15401         * m4/include_next.m4: Reformulate comment.
15402
15403 2009-02-16  Jim Meyering  <meyering@redhat.com>
15404
15405         fts: add #if guards so that the fts_lgpl module still builds
15406         * lib/fts.c: Guard just-added hash-table-using parts with
15407         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15408         Reported by Simon Josefsson.
15409
15410 2009-02-15  Bruno Haible  <bruno@clisp.org>
15411
15412         * modules/array-mergesort-tests: New file.
15413         * tests/test-array-mergesort.c: New file.
15414
15415         New module 'array-mergesort'.
15416         * modules/array-mergesort: New file.
15417         * lib/array-mergesort.h: New file.
15418
15419 2009-02-15  Bruno Haible  <bruno@clisp.org>
15420
15421         Fix 2009-02-07 commit.
15422         * lib/gen-uni-tables.c (output_predicate, output_category,
15423         output_combclass, output_bidi_category, output_decimal_digit,
15424         output_digit, output_numeric, output_mirror, output_scripts,
15425         output_ident_category, output_simple_mapping): Fix format directives.
15426         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15427
15428 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15429
15430         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15431         fixes are available from IBM.
15432
15433 2009-02-13  Jim Meyering  <meyering@redhat.com>
15434
15435         fts: arrange not to stat non-directories in more cases
15436         This makes GNU find (when it doesn't need to stat each file)
15437         *much* more efficient at traversing reiserfs file systems.
15438         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15439         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15440         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15441         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15442         (leaf_optimization_applies): New function.
15443         (LCO_hash, LCO_compare): New helper functions.
15444         (link_count_optimize_ok): New function.
15445         (fts_stat): Initialize new member (if dir).
15446         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15447         we've just stat'ed a directory.  Skip the stat call when possible.
15448         ---
15449         Note this AFS-related exchange:
15450         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15451         and note find's pioctl call in find/fstype.c.
15452         But that is necessary only if you want to enable the
15453         optimization for AFS, and for now, I don't.
15454
15455         fts: move a function definition "up" (no semantic change)
15456         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15457         "up" to precede upcoming use of a related function.
15458
15459 2009-02-11  Jim Meyering  <meyering@redhat.com>
15460
15461         fts: correct internal computation of nlinks (optimization-related)
15462         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15463         whether the current entry is a directory, so don't test it.
15464
15465 2009-02-10  Bruno Haible  <bruno@clisp.org>
15466
15467         Tests for module 'uniwbrk/ulc-wordbreaks'.
15468         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15469         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15470         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15471
15472         Tests for module 'uniwbrk/u32-wordbreaks'.
15473         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15474         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15475
15476         Tests for module 'uniwbrk/u16-wordbreaks'.
15477         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15478         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15479
15480         Tests for module 'uniwbrk/u8-wordbreaks'.
15481         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15482         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15483
15484 2009-02-10  Bruno Haible  <bruno@clisp.org>
15485
15486         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15487         property.
15488         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15489         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15490         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15491
15492 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15493
15494         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15495         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15496
15497 2009-02-10  Bruno Haible  <bruno@clisp.org>
15498
15499         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15500         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15501         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15502         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15503         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15504         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15505
15506 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15507
15508         * lib/sockets.h (gl_fd_to_handle): New function.
15509
15510         * tests/test-sockets.c: Call gl_fd_to_handle.
15511
15512 2009-02-09  Bruno Haible  <bruno@clisp.org>
15513
15514         * doc/havelib.texi: Document the conventions on bi-arch systems.
15515
15516 2009-02-08  Bruno Haible  <bruno@clisp.org>
15517
15518         Document the AC_LIB_LINKFLAGS macro.
15519         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15520         * doc/gnulib.texi: Include it.
15521
15522 2009-02-08  Bruno Haible  <bruno@clisp.org>
15523
15524         Fix wrong order of sections, compared to TOC.
15525         * doc/gnulib.texi: Include relocatable-maint.texi after the
15526         "Regular expressions" node, not before.
15527
15528 2009-02-08  Bruno Haible  <bruno@clisp.org>
15529
15530         Tests for module 'unicase/totitle'.
15531         * modules/unicase/totitle-tests: New file.
15532
15533         Tests for module 'unicase/tolower'.
15534         * modules/unicase/tolower-tests: New file.
15535
15536         Tests for module 'unicase/toupper'.
15537         * modules/unicase/toupper-tests: New file.
15538         * tests/unicase/test-mapping-part1.h: New file.
15539         * tests/unicase/test-mapping-part2.h: New file.
15540
15541         New module 'unicase/totitle'.
15542         * modules/unicase/totitle: New file.
15543         * lib/unicase/totitle.c: New file.
15544
15545         New module 'unicase/tolower'.
15546         * modules/unicase/tolower: New file.
15547         * lib/unicase/tolower.c: New file.
15548
15549         New module 'unicase/toupper'.
15550         * modules/unicase/toupper: New file.
15551         * lib/unicase/toupper.c: New file.
15552         * lib/unicase/simple-mapping.h: New file.
15553
15554         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15555         (mapping_table): New structure.
15556         (output_simple_mapping): New function.
15557         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15558         * modules/gen-uni-tables (Description): Update.
15559         * lib/unicase/toupper.h: New file, automatically generated by
15560         gen-uni-tables.
15561         * lib/unicase/tolower.h: New file, automatically generated by
15562         gen-uni-tables.
15563         * lib/unicase/totitle.h: New file, automatically generated by
15564         gen-uni-tables.
15565         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15566         gen-uni-tables.
15567         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15568         gen-uni-tables.
15569         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15570         gen-uni-tables.
15571
15572         New module 'unicase/base'.
15573         * modules/unicase/base: New file.
15574         * lib/unicase.h: New file.
15575
15576 2009-02-08  Bruno Haible  <bruno@clisp.org>
15577
15578         New module 'uniwbrk/ulc-wordbreaks'.
15579         * modules/uniwbrk/ulc-wordbreaks: New file.
15580         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15581
15582         New module 'uniwbrk/u32-wordbreaks'.
15583         * modules/uniwbrk/u32-wordbreaks: New file.
15584         * lib/uniwbrk/u32-wordbreaks.c: New file.
15585
15586         New module 'uniwbrk/u16-wordbreaks'.
15587         * modules/uniwbrk/u16-wordbreaks: New file.
15588         * lib/uniwbrk/u16-wordbreaks.c: New file.
15589
15590         New module 'uniwbrk/u8-wordbreaks'.
15591         * modules/uniwbrk/u8-wordbreaks: New file.
15592         * lib/uniwbrk/u8-wordbreaks.c: New file.
15593         * lib/uniwbrk/u-wordbreaks.h: New file.
15594
15595         New module 'uniwbrk/table'.
15596         * modules/uniwbrk/table: New file.
15597         * lib/uniwbrk/wbrktable.h: New file.
15598         * lib/uniwbrk/wbrktable.c: New file.
15599
15600         New module 'uniwbrk/wordbreak-property'.
15601         * modules/uniwbrk/wordbreak-property: New file.
15602         * lib/uniwbrk/wordbreak-property.c: New file.
15603
15604         * lib/gen-uni-tables.c (WBP_*): New enum items.
15605         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15606         (unicode_org_wbp): New variable.
15607         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15608         New functions.
15609         (wbp_table): New structure.
15610         (output_wbp, output_wbrk_tables): New functions.
15611         (main): Accept additional argument. Invoke fill_org_wbp,
15612         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15613         output_wbrk_tables.
15614         * modules/gen-uni-tables (Description): Update.
15615         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15616         gen-uni-tables.
15617
15618         New module 'uniwbrk/base'.
15619         * modules/uniwbrk/base: New file.
15620         * lib/uniwbrk.h: New file.
15621
15622 2009-02-08  Bruno Haible  <bruno@clisp.org>
15623
15624         Update to Unicode 5.1.0.
15625         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15626         U+2185..U+2188.
15627         (is_property_default_ignorable_code_point): Don't include characters
15628         of category Cc or Cs and not-a-characters.
15629         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15630         U+0D79, U+109E, U+109F, U+A60C.
15631         * lib/unictype/bidi_of.h: Regenerated.
15632         * lib/unictype/blocks.h: Regenerated.
15633         * lib/unictype/categ_C.h: Regenerated.
15634         * lib/unictype/categ_Cf.h: Regenerated.
15635         * lib/unictype/categ_Cn.h: Regenerated.
15636         * lib/unictype/categ_L.h: Regenerated.
15637         * lib/unictype/categ_Ll.h: Regenerated.
15638         * lib/unictype/categ_Lm.h: Regenerated.
15639         * lib/unictype/categ_Lo.h: Regenerated.
15640         * lib/unictype/categ_Lu.h: Regenerated.
15641         * lib/unictype/categ_M.h: Regenerated.
15642         * lib/unictype/categ_Mc.h: Regenerated.
15643         * lib/unictype/categ_Me.h: Regenerated.
15644         * lib/unictype/categ_Mn.h: Regenerated.
15645         * lib/unictype/categ_N.h: Regenerated.
15646         * lib/unictype/categ_Nd.h: Regenerated.
15647         * lib/unictype/categ_Nl.h: Regenerated.
15648         * lib/unictype/categ_No.h: Regenerated.
15649         * lib/unictype/categ_P.h: Regenerated.
15650         * lib/unictype/categ_Pd.h: Regenerated.
15651         * lib/unictype/categ_Pe.h: Regenerated.
15652         * lib/unictype/categ_Pf.h: Regenerated.
15653         * lib/unictype/categ_Pi.h: Regenerated.
15654         * lib/unictype/categ_Po.h: Regenerated.
15655         * lib/unictype/categ_Ps.h: Regenerated.
15656         * lib/unictype/categ_S.h: Regenerated.
15657         * lib/unictype/categ_Sk.h: Regenerated.
15658         * lib/unictype/categ_Sm.h: Regenerated.
15659         * lib/unictype/categ_So.h: Regenerated.
15660         * lib/unictype/categ_of.h: Regenerated.
15661         * lib/unictype/combining.h: Regenerated.
15662         * lib/unictype/ctype_alnum.h: Regenerated.
15663         * lib/unictype/ctype_alpha.h: Regenerated.
15664         * lib/unictype/ctype_graph.h: Regenerated.
15665         * lib/unictype/ctype_lower.h: Regenerated.
15666         * lib/unictype/ctype_print.h: Regenerated.
15667         * lib/unictype/ctype_punct.h: Regenerated.
15668         * lib/unictype/ctype_upper.h: Regenerated.
15669         * lib/unictype/decdigit.h: Regenerated.
15670         * lib/unictype/digit.h: Regenerated.
15671         * lib/unictype/mirror.h: Regenerated.
15672         * lib/unictype/numeric.h: Regenerated.
15673         * lib/unictype/pr_alphabetic.h: Regenerated.
15674         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15675         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15676         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15677         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15678         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15679         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15680         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15681         * lib/unictype/pr_combining.h: Regenerated.
15682         * lib/unictype/pr_dash.h: Regenerated.
15683         * lib/unictype/pr_decimal_digit.h: Regenerated.
15684         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15685         * lib/unictype/pr_deprecated.h: Regenerated.
15686         * lib/unictype/pr_diacritic.h: Regenerated.
15687         * lib/unictype/pr_extender.h: Regenerated.
15688         * lib/unictype/pr_format_control.h: Regenerated.
15689         * lib/unictype/pr_grapheme_base.h: Regenerated.
15690         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15691         * lib/unictype/pr_grapheme_link.h: Regenerated.
15692         * lib/unictype/pr_id_continue.h: Regenerated.
15693         * lib/unictype/pr_id_start.h: Regenerated.
15694         * lib/unictype/pr_ideographic.h: Regenerated.
15695         * lib/unictype/pr_ignorable_control.h: Regenerated.
15696         * lib/unictype/pr_lowercase.h: Regenerated.
15697         * lib/unictype/pr_math.h: Regenerated.
15698         * lib/unictype/pr_numeric.h: Regenerated.
15699         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15700         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15701         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15702         * lib/unictype/pr_other_id_continue.h: Regenerated.
15703         * lib/unictype/pr_other_lowercase.h: Regenerated.
15704         * lib/unictype/pr_other_math.h: Regenerated.
15705         * lib/unictype/pr_punctuation.h: Regenerated.
15706         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15707         * lib/unictype/pr_soft_dotted.h: Regenerated.
15708         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15709         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15710         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15711         * lib/unictype/pr_uppercase.h: Regenerated.
15712         * lib/unictype/pr_xid_continue.h: Regenerated.
15713         * lib/unictype/pr_xid_start.h: Regenerated.
15714         * lib/unictype/pr_zero_width.h: Regenerated.
15715         * lib/unictype/scripts.h: Regenerated.
15716         * lib/unictype/scripts_byname.gperf: Regenerated.
15717         * lib/unictype/sy_java_ident.h: Regenerated.
15718         * lib/unilbrk/lbrkprop1.h: Regenerated.
15719         * lib/unilbrk/lbrkprop2.h: Regenerated.
15720         * tests/unictype/test-categ_C.c: Regenerated.
15721         * tests/unictype/test-categ_Cf.c: Regenerated.
15722         * tests/unictype/test-categ_Cn.c: Regenerated.
15723         * tests/unictype/test-categ_L.c: Regenerated.
15724         * tests/unictype/test-categ_Ll.c: Regenerated.
15725         * tests/unictype/test-categ_Lm.c: Regenerated.
15726         * tests/unictype/test-categ_Lo.c: Regenerated.
15727         * tests/unictype/test-categ_Lu.c: Regenerated.
15728         * tests/unictype/test-categ_M.c: Regenerated.
15729         * tests/unictype/test-categ_Mc.c: Regenerated.
15730         * tests/unictype/test-categ_Me.c: Regenerated.
15731         * tests/unictype/test-categ_Mn.c: Regenerated.
15732         * tests/unictype/test-categ_N.c: Regenerated.
15733         * tests/unictype/test-categ_Nd.c: Regenerated.
15734         * tests/unictype/test-categ_Nl.c: Regenerated.
15735         * tests/unictype/test-categ_No.c: Regenerated.
15736         * tests/unictype/test-categ_P.c: Regenerated.
15737         * tests/unictype/test-categ_Pd.c: Regenerated.
15738         * tests/unictype/test-categ_Pe.c: Regenerated.
15739         * tests/unictype/test-categ_Pf.c: Regenerated.
15740         * tests/unictype/test-categ_Pi.c: Regenerated.
15741         * tests/unictype/test-categ_Po.c: Regenerated.
15742         * tests/unictype/test-categ_Ps.c: Regenerated.
15743         * tests/unictype/test-categ_S.c: Regenerated.
15744         * tests/unictype/test-categ_Sk.c: Regenerated.
15745         * tests/unictype/test-categ_Sm.c: Regenerated.
15746         * tests/unictype/test-categ_So.c: Regenerated.
15747         * tests/unictype/test-ctype_alnum.c: Regenerated.
15748         * tests/unictype/test-ctype_alpha.c: Regenerated.
15749         * tests/unictype/test-ctype_graph.c: Regenerated.
15750         * tests/unictype/test-ctype_lower.c: Regenerated.
15751         * tests/unictype/test-ctype_print.c: Regenerated.
15752         * tests/unictype/test-ctype_punct.c: Regenerated.
15753         * tests/unictype/test-ctype_upper.c: Regenerated.
15754         * tests/unictype/test-decdigit.h: Regenerated.
15755         * tests/unictype/test-digit.h: Regenerated.
15756         * tests/unictype/test-numeric.h: Regenerated.
15757         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15758         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15759         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15760         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15761         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15762         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15763         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15764         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15765         * tests/unictype/test-pr_combining.c: Regenerated.
15766         * tests/unictype/test-pr_dash.c: Regenerated.
15767         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15768         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15769         * tests/unictype/test-pr_deprecated.c: Regenerated.
15770         * tests/unictype/test-pr_diacritic.c: Regenerated.
15771         * tests/unictype/test-pr_extender.c: Regenerated.
15772         * tests/unictype/test-pr_format_control.c: Regenerated.
15773         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15774         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15775         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15776         * tests/unictype/test-pr_id_continue.c: Regenerated.
15777         * tests/unictype/test-pr_id_start.c: Regenerated.
15778         * tests/unictype/test-pr_ideographic.c: Regenerated.
15779         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15780         * tests/unictype/test-pr_lowercase.c: Regenerated.
15781         * tests/unictype/test-pr_math.c: Regenerated.
15782         * tests/unictype/test-pr_numeric.c: Regenerated.
15783         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15784         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15785         Regenerated.
15786         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15787         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15788         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15789         * tests/unictype/test-pr_other_math.c: Regenerated.
15790         * tests/unictype/test-pr_punctuation.c: Regenerated.
15791         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15792         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15793         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15794         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15795         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15796         * tests/unictype/test-pr_uppercase.c: Regenerated.
15797         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15798         * tests/unictype/test-pr_xid_start.c: Regenerated.
15799         * tests/unictype/test-pr_zero_width.c: Regenerated.
15800
15801         Update to Unicode 5.1.0.
15802         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15803         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15804         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15805         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15806         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15807         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15808         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15809         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15810         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15811         (nonspacing_table_ind): Update.
15812         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15813
15814         Update to Unicode 5.1.0.
15815         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15816         code transform.
15817         * lib/uniname/uniname.c (unicode_character_name,
15818         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15819         * lib/uniname/uninames.h: Regenerated.
15820         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15821
15822 2009-02-07  Bruno Haible  <bruno@clisp.org>
15823
15824         Merge gen-ctype and gen-lbrk into a single program.
15825         * lib/gen-uni-tables.c: New file, incorporating
15826         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15827         Add directory prefixes to the names of the generated files.
15828         * lib/unictype/gen-ctype.c: Remove file.
15829         * lib/unilbrk/gen-lbrk.c: Remove file.
15830         * modules/gen-uni-tables: New file.
15831         * modules/unictype/gen-ctype: Remove file.
15832         * modules/unilbrk/gen-lbrk: Remove file.
15833
15834 2009-02-07  Bruno Haible  <bruno@clisp.org>
15835
15836         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15837
15838         New module 'unistr/u32-strcoll'.
15839         * modules/unistr/u32-strcoll: New file.
15840         * lib/unistr/u32-strcoll.c: New file.
15841
15842         New module 'unistr/u16-strcoll'.
15843         * modules/unistr/u16-strcoll: New file.
15844         * lib/unistr/u16-strcoll.c: New file.
15845
15846         New module 'unistr/u8-strcoll'.
15847         * modules/unistr/u8-strcoll: New file.
15848         * lib/unistr/u8-strcoll.c: New file.
15849         * lib/unistr/u-strcoll.h: New file.
15850
15851 2009-02-07  Bruno Haible  <bruno@clisp.org>
15852
15853         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15854         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15855         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15856         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15857         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15858         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15859
15860 2009-02-07  Bruno Haible  <bruno@clisp.org>
15861
15862         Make 64-bit clean.
15863         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15864         output_combclass, output_bidi_category, output_decimal_digit,
15865         output_digit, output_numeric, output_mirror, output_scripts,
15866         output_ident_category): Use proper width specifier in format strings.
15867
15868 2009-02-07  Bruno Haible  <bruno@clisp.org>
15869
15870         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15871         failure behaviour.
15872
15873 2009-02-07  Jim Meyering  <meyering@redhat.com>
15874
15875         regex: avoid compilation failure with upcoming gcc-4.4
15876         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15877         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15878         "... error: integer overflow in preprocessor expression".
15879
15880 2009-02-05  Ben Pfaff  <blp@gnu.org>
15881
15882         Fix link errors on Windows when close module is used.
15883         * modules/close: Add $(LIB_CLOSE) to Link section.
15884         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15885         $(LIB_CLOSE) on Windows.
15886
15887 2009-02-05  Jim Meyering  <meyering@redhat.com>
15888
15889         still avoid unused-parameter warnings, but do it cleanly
15890         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15891         (get_fs_usage): Cast to void instead.
15892         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15893         (dev_from_mount_options, read_file_system_list): Cast to void.
15894         Prompted by Bruno Haible.
15895
15896 2009-02-04  Jim Meyering  <meyering@redhat.com>
15897
15898         fsusage.c: correct copyright year
15899         * lib/fsusage.c: Reflect year in which the change is pushed into
15900
15901         avoid misc. warnings
15902         * lib/fsusage.c (UNUSED_PARAM): Define.
15903         (get_fs_usage): Mark parameter "disk" as unused.
15904         * lib/getugroups.c (getgrent): Use "void" in prototype.
15905         * lib/mountlist.c: Mark unused parameters.
15906         (read_file_system_list): Declare a local with "const".
15907         * lib/nanosleep.c (getnow): Declare static.
15908         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15909
15910         dirfd: set errno upon failure
15911         * lib/dirfd.c: Include <errno.h>.
15912         Set errno to ENOTSUP when returning -1.
15913         * modules/dirfd (Depends-on): Add errno.
15914         Suggested by John Kodis <kodis@comcast.net>.
15915
15916 2009-02-01  Bruno Haible  <bruno@clisp.org>
15917
15918         Don't assume sizeof (long) >= sizeof (void *).
15919         * lib/memcmp.c: Include stdint.h.
15920         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15921         srcp2 to 'const byte *'.
15922         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15923         types to uintptr_t.
15924         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15925         * modules/memcmp (Depends-on): Add stdint.
15926         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15927
15928 2009-01-30  Eric Blake  <ebb9@byu.net>
15929
15930         fix more require-before-expand issues
15931         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15932         expand, AC_PROG_AWK.
15933         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15934
15935 2009-01-28  Eric Blake  <ebb9@byu.net>
15936
15937         version-etc: use consistent URL formatting
15938         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15939         Improve formatting.  Use fputs for string without %.
15940
15941 2009-01-28  Jim Meyering  <meyering@redhat.com>
15942
15943         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15944         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15945         "underquoted definition of NAME" from autoconf-2.59.
15946
15947 2009-01-28  Bruno Haible  <bruno@clisp.org>
15948
15949         * doc/gnulib.texi: Add "Obsolete modules" to index.
15950
15951 2009-01-28  Jim Meyering  <meyering@redhat.com>
15952
15953         useless-if-before-free: recognize more variants
15954         * build-aux/useless-if-before-free: Also recognize e.g.,
15955         if (NULL != p) free (p);
15956
15957 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15958
15959         test-getaddrinfo: skip (don't fail) this test when there's no network
15960         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15961         on the presumption that it means you lack network access.
15962
15963 2009-01-26  Jim Meyering  <meyering@redhat.com>
15964
15965         fflush: avoid warnings on modern systems
15966         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15967         pos and result, into scopes where they're used.
15968
15969 2009-01-26  Eric Blake  <ebb9@byu.net>
15970
15971         Silence warning reintroduced by recent extensions patch.
15972         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15973         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15974         autoconf.
15975
15976         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15977         * m4/00gnulib.m4: New file.
15978         * gnulib-tool (func_get_filelist): Always use it.
15979         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15980         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15981
15982 2009-01-25  Bruno Haible  <bruno@clisp.org>
15983
15984         Make test-quotearg work on MacOS X and AIX.
15985         * tests/test-quotearg.sh: New file.
15986         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15987         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15988         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15989         include <libintl.h>.
15990         (fake_locale): Remove variable.
15991         (gettext, dgettext, dcgettext): Remove functions.
15992         (main): Instead of setting a fake locale, set a real locale. Call
15993         textdomain and bindtextdomain.
15994         * modules/quotearg-tests (Files): Add the new files.
15995         (Depends-on): Add gettext, setenv, unsetenv.
15996         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15997         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15998         Augment TESTS_ENVIRONMENT.
15999
16000 2009-01-25  Bruno Haible  <bruno@clisp.org>
16001
16002         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16003         fr_FR.ISO8859-1 locale on MacOS X.
16004         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16005         ja_JP.eucJP locale on MacOS X.
16006         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16007         zh_CN.GB18030 locale on MacOS X.
16008
16009 2009-01-25  Bruno Haible  <bruno@clisp.org>
16010
16011         Avoid link errors on MacOS X 10.3.
16012         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16013         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16014
16015 2009-01-25  Bruno Haible  <bruno@clisp.org>
16016
16017         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16018         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16019         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16020         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16021         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16022         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16023         posix_spawnattr_init, posix_spawnattr_setsigmask,
16024         posix_spawnattr_setflags, posix_spawnattr_destroy.
16025
16026         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16027         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16028         * modules/execute (Files): Remove m4/posix_spawn.m4.
16029         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16030         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16031         posix_spawnattr_init, posix_spawnattr_setsigmask,
16032         posix_spawnattr_setflags, posix_spawnattr_destroy.
16033
16034 2009-01-25  Bruno Haible  <bruno@clisp.org>
16035
16036         * lib/glthread/threadlib.c: Include <stdlib.h>.
16037
16038 2009-01-25  Bruno Haible  <bruno@clisp.org>
16039
16040         * lib/glthread/threadlib.c (dummy): New declaration.
16041
16042 2009-01-25  Bruno Haible  <bruno@clisp.org>
16043
16044         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16045         multibyte characters also for the GB18030 encoding. Don't crash when
16046         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16047
16048 2009-01-25  Bruno Haible  <bruno@clisp.org>
16049
16050         Avoid redefining 'struct random_data' on OSF/1 5.1.
16051         * lib/stdlib.in.h: Include <random.h> if it exists.
16052         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16053         HAVE_RANDOM_H. Include <random.h> when testing whether
16054         'struct random_data' exists.
16055         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16056
16057 2009-01-25  Bruno Haible  <bruno@clisp.org>
16058
16059         Don't install charset.alias on MacOS X >= 10.3.
16060         * lib/localcharset.c (DARWIN7): New macro.
16061         (get_charset_aliases): Hardcode the result for Darwin7.
16062         * modules/localcharset (install-exec-local): Don't install
16063         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16064
16065 2009-01-25  Bruno Haible  <bruno@clisp.org>
16066
16067         Don't install charset.alias on mingw and Cygwin.
16068         * modules/localcharset (install-exec-local): Don't install
16069         charset.alias on mingw and Cygwin, if the file does not yet exist.
16070         The result for these platforms is hardcoded in localcharset.c.
16071
16072 2009-01-25  Bruno Haible  <bruno@clisp.org>
16073
16074         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16076         before requiring AC_USE_SYSTEM_EXTENSIONS.
16077
16078 2009-01-25  Jim Meyering  <meyering@redhat.com>
16079
16080         c-strtod: avoid warnings
16081         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16082         "assignment discards qualifiers from pointer target type" warnings.
16083
16084 2009-01-24  Bruno Haible  <bruno@clisp.org>
16085
16086         Add support for non-UTF-8 locales on MacOS X.
16087         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16088         canonical encodings. For Darwin 7 and newer, don't map traditional
16089         encodings to UTF-8.
16090         Reported by Vincent Lefevre <vincent@vinc17.org>
16091         at <http://savannah.gnu.org/bugs/?25235>.
16092
16093 2009-01-24  Bruno Haible  <bruno@clisp.org>
16094
16095         * doc/gnulib.texi (Obsolete modules): New section.
16096         Reported by Mike Frysinger <vapier@gentoo.org>.
16097
16098 2009-01-24  Bruno Haible  <bruno@clisp.org>
16099
16100         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16101         (%.dvi): New rule.
16102
16103 2009-01-24  Bruno Haible  <bruno@clisp.org>
16104
16105         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16106         Reported by Eric Blake.
16107
16108 2009-01-24  Bruno Haible  <bruno@clisp.org>
16109
16110         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16111         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16112         Reported by Gary V. Vaughan <gary@gnu.org>.
16113
16114 2009-01-24  Bruno Haible  <bruno@clisp.org>
16115
16116         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16117
16118 2009-01-23  Bruno Haible  <bruno@clisp.org>
16119
16120         Make c-strtod, c-strtold usable in libraries.
16121         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16122         (C_STRTOD): Call strdup instead of xstrdup.
16123         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16124         * modules/c-strtold (Depends-on): Likewise.
16125         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16126         * NEWS: Mention the change.
16127         Reported by Michael Gold <mgold@ncf.ca>.
16128
16129 2009-01-23  Jim Meyering  <meyering@redhat.com>
16130
16131         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16132         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16133         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16134
16135 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16136
16137         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16138         GNU CoreUtils.
16139         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16140         * modules/version-etc (Description): Update.
16141
16142 2009-01-22  Bruno Haible  <bruno@clisp.org>
16143
16144         Cache the C locale object.
16145         * lib/c-strtod.c (c_locale_cache): New variable.
16146         (c_locale): New function.
16147         (C_STRTOD): Use it, and don't call freelocale.
16148         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16149         Suggested by Paolo Bonzini.
16150
16151 2009-01-21  Bruno Haible  <bruno@clisp.org>
16152
16153         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16154         conditions other than overflow.
16155
16156 2009-01-21  Bruno Haible  <bruno@clisp.org>
16157
16158         * lib/c-strtod.c: Include errno.h.
16159         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16160         value from STRTOD_L and STRTOD.
16161
16162 2009-01-21  Bruno Haible  <bruno@clisp.org>
16163         and Jim Meyering  <meyering@redhat.com>
16164
16165         nanosleep: skip configure test (fail it) for apple universal builds
16166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16167         universal builds, assume that nanosleep does not work.
16168         * modules/nanosleep (Depends-on): Add multiarch.
16169
16170         mktime: skip configure test (fail it) for apple universal builds
16171         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16172         universal builds, assume that mktime does not work.
16173         * modules/mktime (Depends-on): Add multiarch.
16174
16175 2009-01-21  Eric Blake  <ebb9@byu.net>
16176
16177         multiarch: avoid expand-before-require warning
16178         * modules/multiarch (configure.ac): Require, rather than expand,
16179         gl_MULTIARCH.
16180         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16181         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16182         enforce that all clients require it.  Partial reversion of
16183         2008-12-29 patch.
16184
16185         error: avoid expand-before-require warning
16186         * modules/errno (configure.ac): Require, rather than expand,
16187         gl_HEADER_ERRNO_H.
16188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16189         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16190         enforce that all clients require it.
16191
16192         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16193         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16194         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16195         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16196
16197 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16198
16199         Revert:
16200         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16201
16202         regex: do not depend on obsolete modules.
16203         * modules/regex: Remove memcmp and memmove.
16204
16205 2009-01-20  Bruno Haible  <bruno@clisp.org>
16206
16207         Make the 'link' module link on Windows NT 4.
16208         * lib/link.c (_WIN32_WINNT): Don't define.
16209         (CreateHardLinkFuncType): New type.
16210         (CreateHardLinkFunc, initialized): New variables.
16211         (initialize): New function.
16212         (link): Invoke CreateHardLink indirectly through the function pointer.
16213
16214 2009-01-20  Bruno Haible  <bruno@clisp.org>
16215
16216         Fix compilation failure on mingw.
16217         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16218
16219 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16220
16221         * doc/c-strtod.texi: Mention a couple of restrictions.
16222
16223 2009-01-20  Jim Meyering  <meyering@redhat.com>
16224
16225         gettimeofday: move more declarations out of functions
16226         * lib/gettimeofday.c: Move extern declarations of tzset and
16227         gmtime out of containing functions.  Prompted by Bruno Haible.
16228
16229 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16230
16231         regex: do not depend on obsolete modules.
16232         * modules/regex: Remove memcmp and memmove.
16233
16234 2009-01-19  Bruno Haible  <bruno@clisp.org>
16235
16236         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16237         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16238         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16239         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16240         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16241
16242 2009-01-19  Bruno Haible  <bruno@clisp.org>
16243
16244         * tests/test-link.c: Include <errno.h>.
16245         (main): Exit with code 77 when a hard link cannot be created due to
16246         the file system.
16247         * tests/test-link.sh: Skip test when a hard link cannot be created due
16248         to the file system.
16249         Suggested by Eric Blake.
16250
16251 2009-01-19  Martin Lambers  <marlam@marlam.de>
16252
16253         * modules/link-tests: New file.
16254         * tests/test-link.sh: New file.
16255         * tests/test-link.c: New file.
16256
16257 2009-01-19  Eric Blake  <ebb9@byu.net>
16258
16259         doc: mention another function added in cygwin 1.7.0
16260         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16261         Another new function in cygwin 1.7.
16262
16263 2009-01-19  Bruno Haible  <bruno@clisp.org>
16264
16265         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16266         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16267         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16268         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16269         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16270         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16271         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16272         * m4/md4.m4 (gl_MD4): Likewise.
16273         * m4/md5.m4 (gl_MD5): Likewise.
16274         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16275         * m4/sha1.m4 (gl_SHA1): Likewise.
16276         * m4/sha256.m4 (gl_SHA256): Likewise.
16277         * m4/sha512.m4 (gl_SHA512): Likewise.
16278
16279 2009-01-19  Bruno Haible  <bruno@clisp.org>
16280
16281         * modules/uniname/uniname-tests (Depends-on): Add progname.
16282         * tests/uniname/test-uninames.c: Include progname.h.
16283         (main): Call set_program_name.
16284
16285         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16286         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16287         (main): Call set_program_name.
16288
16289         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16290         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16291         (main): Call set_program_name.
16292
16293         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16294         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16295         (main): Call set_program_name.
16296
16297         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16298         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16299         (main): Call set_program_name.
16300
16301         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16302         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16303         (main): Call set_program_name.
16304
16305         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16306         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16307         (main): Call set_program_name.
16308
16309         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16310         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16311         (main): Call set_program_name.
16312
16313         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16314         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16315         (main): Call set_program_name.
16316
16317 2009-01-19  Eric Blake  <ebb9@byu.net>
16318
16319         test-unistd: test previous patch
16320         * tests/test-unistd.c: Test *_FILENO macros.
16321
16322         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16323         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16324         Guarantee a definition.
16325         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16326         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16327         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16328         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16329         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16330         Likewise.
16331         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16332         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16333         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16334         Likewise.
16335         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16336         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16337         (STDERR_FILENO): Likewise.
16338         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16339         (STDERR_FILENO): Likewise.
16340         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16341         (STDERR_FILENO): Likewise.
16342         Reported by Elbert Pol.
16343
16344 2009-01-19  Eric Blake  <ebb9@byu.net>
16345
16346         doc: mention more functions added in cygwin 1.7.0
16347         * doc/posix-functions/abort.texi (abort): Update wording related
16348         to cygwin.
16349         * doc/posix-functions/daylight.texi (daylight): Likewise.
16350         * doc/posix-functions/optarg.texi (optarg): Likewise.
16351         * doc/posix-functions/optarg.texi (opterr): Likewise.
16352         * doc/posix-functions/optarg.texi (optind): Likewise.
16353         * doc/posix-functions/optarg.texi (optopt): Likewise.
16354         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16355         worked in 1.5.x, and was withdrawn in 1.7.
16356         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16357         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16358         cygwin versions.
16359         * doc/posix-functions/perror.texi (perror): Likewise.
16360         * doc/posix-functions/printf.texi (printf): Likewise.
16361         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16362         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16363         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16364         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16365         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16366         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16367         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16368         Likewise.
16369         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16370         Likewise.
16371         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16372         this function.
16373         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16374         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16375         Likewise.
16376         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16377         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16378         * doc/posix-functions/confstr.texi (confstr): Likewise.
16379         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16380         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16381         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16382         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16383         * doc/posix-functions/fputws.texi (fputws): Likewise.
16384         * doc/posix-functions/fwide.texi (fwide): Likewise.
16385         * doc/posix-functions/getwc.texi (getwc): Likewise.
16386         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16387         * doc/posix-functions/putwc.texi (putwc): Likewise.
16388         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16389         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16390         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16391         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16392         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16393         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16394         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16395         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16396         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16397         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16398         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16399
16400 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16401
16402         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16403         * lib/ioctl.c: Include <sys/ioctl.h>.
16404
16405 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16406
16407         * modules/getdate-tests (Depends-on): Add progname.
16408         * tests/test-getdate.c: Use progname module, to avoid link errors
16409         on non-glibc systems.
16410
16411 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16412
16413         * modules/filenamecat-tests (Depends-on): Add progname.
16414         * modules/fstrcmp-tests (Depends-on): Likewise.
16415
16416         * tests/test-filenamecat.c: Use progname module, to avoid link
16417         errors on non-glibc systems.
16418         * tests/test-fstrcmp.c: Likewise.
16419
16420 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16421
16422         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16423         * lib/gettimeofday.c: Move extern declaration out of function.
16424
16425 2009-01-18  Bruno Haible  <bruno@clisp.org>
16426
16427         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16428         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16429         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16430
16431 2009-01-18  Bruno Haible  <bruno@clisp.org>
16432
16433         * lib/strftime.c (MEMPCPY): Remove unused macro.
16434         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16435
16436 2009-01-18  Martin Lambers  <marlam@marlam.de>
16437
16438         New module 'link'.
16439         * lib/unistd.in.h (link): New declaration.
16440         * lib/link.c: New file.
16441         * m4/link.m4: New file.
16442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16443         HAVE_LINK.
16444         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16445         * modules/link: New file.
16446         * doc/posix-functions/link.texi: Mention the new module.
16447
16448 2009-01-18  Bruno Haible  <bruno@clisp.org>
16449
16450         * tests/test-avltree_list.c (main): Call set_program_name.
16451         * tests/test-avltree_oset.c (main): Likewise.
16452         * tests/test-obstack-printf.c: Include progname.h.
16453         (main): Call set_program_name.
16454         * tests/test-quotearg.c: Include progname.h.
16455         (main): Call set_program_name.
16456         * tests/test-xmemdup0.c: Include progname.h.
16457         (main): Call set_program_name.
16458
16459 2009-01-18  Bruno Haible  <bruno@clisp.org>
16460
16461         New module 'alphasort'.
16462         * lib/dirent.in.h (alphasort): New declaration.
16463         * lib/alphasort.c: New file, from glibc with modifications.
16464         * m4/alphasort.m4: New file.
16465         * modules/alphasort: New file.
16466         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16467         HAVE_ALPHASORT.
16468         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16469         HAVE_ALPHASORT.
16470         * doc/posix-functions/alphasort.texi: Mention the new module and the
16471         portability problems.
16472
16473 2009-01-18  Bruno Haible  <bruno@clisp.org>
16474
16475         New module 'scandir'.
16476         * lib/dirent.in.h (scandir): New declaration.
16477         * lib/scandir.c: New file, from glibc with modifications.
16478         * m4/scandir.m4: New file.
16479         * modules/scandir: New file.
16480         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16481         HAVE_SCANDIR.
16482         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16483         HAVE_SCANDIR.
16484         * doc/posix-functions/scandir.texi: Mention the new module and the
16485         portability problems.
16486
16487 2009-01-17  Bruno Haible  <bruno@clisp.org>
16488
16489         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16490         Update documentation.
16491         (func_remove_suffix): Escape all dots in the suffix. Update
16492         documentation.
16493         (func_filter_filelist): Update documentation.
16494         Reported by Ralf Wildenhues.
16495
16496 2009-01-17  Bruno Haible  <bruno@clisp.org>
16497
16498         * modules/dprintf-posix-tests: New file.
16499         * tests/test-dprintf-posix.sh: New file.
16500         * tests/test-dprintf-posix.c: New file.
16501
16502         New modules 'dprintf', 'dprintf-posix'.
16503         * lib/stdio.in.h (dprintf): New declaration.
16504         * lib/dprintf.c: New file.
16505         * m4/dprintf.m4: New file.
16506         * m4/dprintf-posix.m4: New file.
16507         * modules/dprintf: New file.
16508         * modules/dprintf-posix: New file.
16509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16510         HAVE_DPRINTF, REPLACE_DPRINTF.
16511         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16512         HAVE_DPRINTF, REPLACE_DPRINTF.
16513         * doc/posix-functions/dprintf.texi: Mention the new modules.
16514
16515 2009-01-17  Bruno Haible  <bruno@clisp.org>
16516
16517         * modules/vdprintf-posix-tests: New file.
16518         * tests/test-vdprintf-posix.sh: New file.
16519         * tests/test-vdprintf-posix.c: New file.
16520
16521         New modules 'vdprintf', 'vdprintf-posix'.
16522         * lib/stdio.in.h (vdprintf): New declaration.
16523         * lib/vdprintf.c: New file.
16524         * m4/vdprintf.m4: New file.
16525         * m4/vdprintf-posix.m4: New file.
16526         * modules/vdprintf: New file.
16527         * modules/vdprintf-posix: New file.
16528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16529         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16530         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16531         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16532         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16533
16534 2009-01-17  Bruno Haible  <bruno@clisp.org>
16535
16536         Fix replacement of fopen on mingw.
16537         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16538         mingw.
16539
16540 2009-01-17  Bruno Haible  <bruno@clisp.org>
16541
16542         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16543         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16544
16545 2009-01-17  Bruno Haible  <bruno@clisp.org>
16546
16547         Avoid test-fflush2.sh failure on mingw.
16548         * tests/test-fflush2.c: Include binary-io.h.
16549         (main): Put standard input into binary mode.
16550         * modules/fflush-tests (Depends-on): Add binary-io.
16551
16552 2009-01-17  Bruno Haible  <bruno@clisp.org>
16553
16554         * lib/wchar.in.h: In another particular situation, include only the
16555         system's <wchar.h> file.
16556         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16557         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16558         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16559
16560 2009-01-17  Bruno Haible  <bruno@clisp.org>
16561
16562         Support for stripping executables in --enable-relocatable.
16563         * build-aux/install-reloc: Expect one more argument, or an environment
16564         variable RELOC_STRIP_PROG. If set, strip the destination program and
16565         its wrapper.
16566         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16567         RELOC_STRIP_PROG.
16568         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16569         to set RELOCATABLE_STRIP.
16570         * NEWS: Mention the new Makefile requirement.
16571
16572 2009-01-17  Bruno Haible  <bruno@clisp.org>
16573
16574         * build-aux/install-reloc: Remove debugging information left over by
16575         C compiler on MacOS X.
16576
16577 2009-01-17  Bruno Haible  <bruno@clisp.org>
16578
16579         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16580         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16581         _NSGetExecutablePath.
16582
16583 2009-01-16  Jim Meyering  <meyering@redhat.com>
16584
16585         strerror: avoid warnings about discarding "const"
16586         * lib/strerror.c (rpl_strerror): Instead of returning a const
16587         string from each and every "case", use a variable, and add a single
16588         cast after the switch.
16589
16590 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16591
16592         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16593
16594 2009-01-16  Bruno Haible  <bruno@clisp.org>
16595
16596         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16597         array initializer syntax that also works in C++ mode.
16598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16599
16600 2009-01-16  Jim Meyering  <meyering@redhat.com>
16601
16602         poll: suppress a warning
16603         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16604         to ignore "...unsigned expression < 0 is always false" warnings.
16605
16606 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16607
16608         poll: remove declarations of unused variables
16609         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16610         sockbuf and optlen.
16611
16612 2009-01-15  Bruno Haible  <bruno@clisp.org>
16613
16614         Make fflush-after-ungetc POSIX compliant on BSD systems.
16615         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16616         (clear_ungetc_buffer): Implement also for other systems.
16617         (rpl_fflush): On glibc systems, invoke
16618         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16619         clear_ungetc_buffer after fetching the stream's position, not before.
16620
16621 2009-01-15  Bruno Haible  <bruno@clisp.org>
16622
16623         Make fflush-after-ungetc POSIX compliant on glibc systems.
16624         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16625         after ungetc.
16626         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16627         (rpl_fflush): On glibc systems, simply call the system's fflush
16628         function after clearing the ungetc buffer.
16629         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16630         Instead, lseek only to the end of file, then use the system's fseeko
16631         for the rest. On glibc systems, reset the EOF indicator bit.
16632
16633 2009-01-15  Jim Meyering  <meyering@redhat.com>
16634
16635         openmp.m4: revert quote-adding change, for portability to older autoconf
16636         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16637         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16638         Simon Josefsson noticed the problem when using autoconf-2.61.
16639
16640 2009-01-15  Bruno Haible  <bruno@clisp.org>
16641
16642         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16643         * tests/test-fflush2.c (ASSERT): Always fail.
16644         (main): Add two tests for fflush() after ungetc(), taking into account
16645         the Austin Group's clarification.
16646         Suggested by Eric Blake.
16647
16648 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16649
16650         mktime.m4: remove K&R-style function prototypes
16651         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16652         for the Sun C++ compiler.
16653
16654 2009-01-14  Bruno Haible  <bruno@clisp.org>
16655
16656         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16657         while including <wchar.h>.
16658         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16659         the system's <wchar.h> file.
16660         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16661
16662 2009-01-14  Bruno Haible  <bruno@clisp.org>
16663
16664         * m4/csharp.m4: Don't mention gettext on the serial number line.
16665         * m4/csharpexec.m4: Likewise.
16666         * m4/eaccess.m4: Likewise.
16667         * m4/javaexec.m4: Likewise.
16668         * m4/sig_atomic_t.m4: Likewise.
16669         * m4/tmpdir.m4: Likewise.
16670         * m4/intldir.m4: Bump gettext version.
16671         * m4/lib-ld.m4: Likewise.
16672
16673 2009-01-14  Bruno Haible  <bruno@clisp.org>
16674
16675         * lib/progname.c (set_program_name): Add more comments.
16676         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16677
16678 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16679
16680         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16681         were sys/stat.h does not define it.
16682
16683 2009-01-14  Jim Meyering  <meyering@redhat.com>
16684
16685         many *.m4 files: improve m4 quoting
16686         99% of this change was performed by running the following commands:
16687         git ls-files | grep '\.m4$' | xargs perl -pi \
16688           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16689           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16690           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16691           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16692         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16693         The remainder were to add Copyright dates, increment serial numbers,
16694         undo some changes in comments, exclude m4/intl.m4, and add quotes
16695         around the "1" in ",1" where the unusual spacing prohibited the
16696         above regexps from doing the job.  For more details, see
16697         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16698         * m4/acl.m4: Modified.
16699         * m4/afs.m4: Likewise.
16700         * m4/alloca.m4: Likewise.
16701         * m4/argp.m4: Likewise.
16702         * m4/argz.m4: Likewise.
16703         * m4/atexit.m4: Likewise.
16704         * m4/bison-i18n.m4: Likewise.
16705         * m4/bison.m4: Likewise.
16706         * m4/byteswap.m4: Likewise.
16707         * m4/c-stack.m4: Likewise.
16708         * m4/c-strtod.m4: Likewise.
16709         * m4/calloc.m4: Likewise.
16710         * m4/canonicalize-lgpl.m4: Likewise.
16711         * m4/chown.m4: Likewise.
16712         * m4/clock_time.m4: Likewise.
16713         * m4/codeset.m4: Likewise.
16714         * m4/copy-file.m4: Likewise.
16715         * m4/csharp.m4: Likewise.
16716         * m4/csharpcomp.m4: Likewise.
16717         * m4/csharpexec.m4: Likewise.
16718         * m4/d-ino.m4: Likewise.
16719         * m4/d-type.m4: Likewise.
16720         * m4/dirfd.m4: Likewise.
16721         * m4/double-slash-root.m4: Likewise.
16722         * m4/eaccess.m4: Likewise.
16723         * m4/eealloc.m4: Likewise.
16724         * m4/environ.m4: Likewise.
16725         * m4/errno_h.m4: Likewise.
16726         * m4/euidaccess.m4: Likewise.
16727         * m4/execute.m4: Likewise.
16728         * m4/fatal-signal.m4: Likewise.
16729         * m4/fchdir.m4: Likewise.
16730         * m4/fcntl_h.m4: Likewise.
16731         * m4/fileblocks.m4: Likewise.
16732         * m4/filenamecat.m4: Likewise.
16733         * m4/findprog.m4: Likewise.
16734         * m4/flexmember.m4: Likewise.
16735         * m4/fnmatch.m4: Likewise.
16736         * m4/fopen.m4: Likewise.
16737         * m4/fpending.m4: Likewise.
16738         * m4/fprintf-posix.m4: Likewise.
16739         * m4/free.m4: Likewise.
16740         * m4/frexp.m4: Likewise.
16741         * m4/frexpl.m4: Likewise.
16742         * m4/fsusage.m4: Likewise.
16743         * m4/ftruncate.m4: Likewise.
16744         * m4/gc-camellia.m4: Likewise.
16745         * m4/gc-random.m4: Likewise.
16746         * m4/gc.m4: Likewise.
16747         * m4/getaddrinfo.m4: Likewise.
16748         * m4/getcwd-abort-bug.m4: Likewise.
16749         * m4/getcwd-path-max.m4: Likewise.
16750         * m4/getdate.m4: Likewise.
16751         * m4/getdomainname.m4: Likewise.
16752         * m4/getgroups.m4: Likewise.
16753         * m4/gethostname.m4: Likewise.
16754         * m4/gethrxtime.m4: Likewise.
16755         * m4/getline.m4: Likewise.
16756         * m4/getloadavg.m4: Likewise.
16757         * m4/getndelim2.m4: Likewise.
16758         * m4/getpass.m4: Likewise.
16759         * m4/gettext.m4: Likewise.
16760         * m4/gettime.m4: Likewise.
16761         * m4/gettimeofday.m4: Likewise.
16762         * m4/gnulib-common.m4: Likewise.
16763         * m4/group-member.m4: Likewise.
16764         * m4/host-os.m4: Likewise.
16765         * m4/iconv.m4: Likewise.
16766         * m4/iconv_open.m4: Likewise.
16767         * m4/inet_ntop.m4: Likewise.
16768         * m4/inet_pton.m4: Likewise.
16769         * m4/inline.m4: Likewise.
16770         * m4/intldir.m4: Likewise.
16771         * m4/intlmacosx.m4: Likewise.
16772         * m4/intmax.m4: Likewise.
16773         * m4/intmax_t.m4: Likewise.
16774         * m4/inttypes.m4: Likewise.
16775         * m4/inttypes_h.m4: Likewise.
16776         * m4/inttypes-pri.m4: Likewise.
16777         * m4/isapipe.m4: Likewise.
16778         * m4/isnand.m4: Likewise.
16779         * m4/isnanf.m4: Likewise.
16780         * m4/isnanl.m4: Likewise.
16781         * m4/javacomp.m4: Likewise.
16782         * m4/javaexec.m4: Likewise.
16783         * m4/jm-winsz1.m4: Likewise.
16784         * m4/jm-winsz2.m4: Likewise.
16785         * m4/lchown.m4: Likewise.
16786         * m4/lcmessage.m4: Likewise.
16787         * m4/ldexpl.m4: Likewise.
16788         * m4/lib-ld.m4: Likewise.
16789         * m4/lib-link.m4: Likewise.
16790         * m4/libsigsegv.m4: Likewise.
16791         * m4/link-follow.m4: Likewise.
16792         * m4/localcharset.m4: Likewise.
16793         * m4/locale-fr.m4: Likewise.
16794         * m4/locale-ja.m4: Likewise.
16795         * m4/locale-tr.m4: Likewise.
16796         * m4/locale-zh.m4: Likewise.
16797         * m4/lock.m4: Likewise.
16798         * m4/longlong.m4: Likewise.
16799         * m4/ls-mntd-fs.m4: Likewise.
16800         * m4/lstat.m4: Likewise.
16801         * m4/malloc.m4: Likewise.
16802         * m4/mathl.m4: Likewise.
16803         * m4/mbrtowc.m4: Likewise.
16804         * m4/mbstate_t.m4: Likewise.
16805         * m4/mbswidth.m4: Likewise.
16806         * m4/memchr.m4: Likewise.
16807         * m4/memcmp.m4: Likewise.
16808         * m4/memcpy.m4: Likewise.
16809         * m4/memmem.m4: Likewise.
16810         * m4/memmove.m4: Likewise.
16811         * m4/mempcpy.m4: Likewise.
16812         * m4/memrchr.m4: Likewise.
16813         * m4/memset.m4: Likewise.
16814         * m4/minmax.m4: Likewise.
16815         * m4/mkdir-slash.m4: Likewise.
16816         * m4/mkdtemp.m4: Likewise.
16817         * m4/mktime.m4: Likewise.
16818         * m4/mmap-anon.m4: Likewise.
16819         * m4/mountlist.m4: Likewise.
16820         * m4/nanosleep.m4: Likewise.
16821         * m4/nls.m4: Likewise.
16822         * m4/nocrash.m4: Likewise.
16823         * m4/open.m4: Likewise.
16824         * m4/openat.m4: Likewise.
16825         * m4/openmp.m4: Likewise.
16826         * m4/pathmax.m4: Likewise.
16827         * m4/perl.m4: Likewise.
16828         * m4/physmem.m4: Likewise.
16829         * m4/pipe.m4: Likewise.
16830         * m4/po.m4: Likewise.
16831         * m4/poll.m4: Likewise.
16832         * m4/posixtm.m4: Likewise.
16833         * m4/posixver.m4: Likewise.
16834         * m4/printf-frexp.m4: Likewise.
16835         * m4/printf-frexpl.m4: Likewise.
16836         * m4/printf-posix.m4: Likewise.
16837         * m4/printf-posix-rpl.m4: Likewise.
16838         * m4/printf.m4: Likewise.
16839         * m4/progtest.m4: Likewise.
16840         * m4/putenv.m4: Likewise.
16841         * m4/readline.m4: Likewise.
16842         * m4/readlink.m4: Likewise.
16843         * m4/readutmp.m4: Likewise.
16844         * m4/realloc.m4: Likewise.
16845         * m4/regex.m4: Likewise.
16846         * m4/relocatable.m4: Likewise.
16847         * m4/relocatable-lib.m4: Likewise.
16848         * m4/rename-dest-slash.m4: Likewise.
16849         * m4/rename.m4: Likewise.
16850         * m4/rmdir-errno.m4: Likewise.
16851         * m4/rmdir.m4: Likewise.
16852         * m4/roundf.m4: Likewise.
16853         * m4/roundl.m4: Likewise.
16854         * m4/rpmatch.m4: Likewise.
16855         * m4/save-cwd.m4: Likewise.
16856         * m4/selinux-selinux-h.m4: Likewise.
16857         * m4/setenv.m4: Likewise.
16858         * m4/settime.m4: Likewise.
16859         * m4/sig2str.m4: Likewise.
16860         * m4/sig_atomic_t.m4: Likewise.
16861         * m4/signalblocking.m4: Likewise.
16862         * m4/signbit.m4: Likewise.
16863         * m4/sigpipe.m4: Likewise.
16864         * m4/sockets.m4: Likewise.
16865         * m4/sockpfaf.m4: Likewise.
16866         * m4/st_dm_mode.m4: Likewise.
16867         * m4/stat-time.m4: Likewise.
16868         * m4/stdbool.m4: Likewise.
16869         * m4/stdint.m4: Likewise.
16870         * m4/stdint_h.m4: Likewise.
16871         * m4/stpcpy.m4: Likewise.
16872         * m4/stpncpy.m4: Likewise.
16873         * m4/strcase.m4: Likewise.
16874         * m4/strchrnul.m4: Likewise.
16875         * m4/strcspn.m4: Likewise.
16876         * m4/strdup.m4: Likewise.
16877         * m4/strftime.m4: Likewise.
16878         * m4/strndup.m4: Likewise.
16879         * m4/strnlen.m4: Likewise.
16880         * m4/strpbrk.m4: Likewise.
16881         * m4/strptime.m4: Likewise.
16882         * m4/strsep.m4: Likewise.
16883         * m4/strtod.m4: Likewise.
16884         * m4/strtoimax.m4: Likewise.
16885         * m4/strtok_r.m4: Likewise.
16886         * m4/strtol.m4: Likewise.
16887         * m4/strtoll.m4: Likewise.
16888         * m4/strtoul.m4: Likewise.
16889         * m4/strtoull.m4: Likewise.
16890         * m4/strtoumax.m4: Likewise.
16891         * m4/strverscmp.m4: Likewise.
16892         * m4/threadlib.m4: Likewise.
16893         * m4/timegm.m4: Likewise.
16894         * m4/tm_gmtoff.m4: Likewise.
16895         * m4/tmpdir.m4: Likewise.
16896         * m4/tmpfile.m4: Likewise.
16897         * m4/tzset.m4: Likewise.
16898         * m4/uintmax_t.m4: Likewise.
16899         * m4/unlinkdir.m4: Likewise.
16900         * m4/unlocked-io.m4: Likewise.
16901         * m4/uptime.m4: Likewise.
16902         * m4/userspec.m4: Likewise.
16903         * m4/utimbuf.m4: Likewise.
16904         * m4/utime.m4: Likewise.
16905         * m4/utimes-null.m4: Likewise.
16906         * m4/utimes.m4: Likewise.
16907         * m4/vararrays.m4: Likewise.
16908         * m4/vasnprintf.m4: Likewise.
16909         * m4/vfprintf-posix.m4: Likewise.
16910         * m4/vprintf-posix.m4: Likewise.
16911         * m4/wait-process.m4: Likewise.
16912         * m4/wchar_t.m4: Likewise.
16913         * m4/wint_t.m4: Likewise.
16914         * m4/write-any-file.m4: Likewise.
16915         * m4/yield.m4: Likewise.
16916
16917 2009-01-13  Bruno Haible  <bruno@clisp.org>
16918
16919         Avoid test-copy-file.sh failures when ACL support insufficient.
16920         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16921         TESTS_ENVIRONMENT.
16922         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16923         Reported by Jim Meyering.
16924
16925 2009-01-13  Bruno Haible  <bruno@clisp.org>
16926
16927         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16928         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16929         * modules/unistdio/u8-printf-parse (Files): Likewise.
16930         * modules/unistdio/u32-printf-parse (Files): Likewise.
16931         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16932
16933 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16934
16935         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16936         and m4/inttypes_h.m4 too.
16937
16938 2009-01-12  Eric Blake  <ebb9@byu.net>
16939
16940         tests: IRIX 6.2 cc can't compile -0.0 into .data
16941         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16942         rather than at compile-time.
16943         * tests/test-floorl.c (minus_zero): Likewise.
16944         * tests/test-frexpl.c (minus_zero): Likewise.
16945         * tests/test-isnan.c (minus_zerol): Likewise.
16946         * tests/test-isnanl.h (minus_zero): Likewise.
16947         * tests/test-ldexpl.c (minus_zero): Likewise.
16948         * tests/test-roundl.c (minus_zero): Likewise.
16949         * tests/test-signbit.c (minus_zerol): Likewise.
16950         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16951         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16952         * tests/test-truncl.c (minus_zero): Likewise.
16953         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16954         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16955         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16956
16957 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16958
16959         regex: fix glibc bug 9697
16960         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16961         handling.
16962
16963 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16964
16965         regex: fix glibc bug 697
16966         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16967         being NULL also if there are no backreferences.
16968
16969 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16970
16971         regex: merge glibc changes
16972         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16973         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16974         re_string_skip_chars, re_string_reconstruct): Likewise.
16975         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16976
16977 2009-01-07  Jim Meyering  <meyering@redhat.com>
16978
16979         poll: filter through cppi
16980         * lib/poll.c: Indent cpp directives to reflect nesting.
16981
16982 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16983
16984         poll: don't return uninitialized
16985         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16986
16987 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16988
16989         avoid compile failure on AIX 6.1
16990         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16991         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16992
16993 2009-01-04  Jim Meyering  <meyering@redhat.com>
16994
16995         remove duplicate inclusion of <stdio.h>
16996         * tests/test-fprintf-posix.c: Likewise.
16997         * tests/test-printf-posix.c: Likewise.
16998         * tests/test-snprintf-posix.c: Likewise.
16999         * tests/test-sprintf-posix.c: Likewise.
17000         * tests/test-vasprintf-posix.c: Likewise.
17001         * tests/test-vfprintf-posix.c: Likewise.
17002         * tests/test-vprintf-posix.c: Likewise.
17003         * tests/test-vsnprintf-posix.c: Likewise.
17004         * tests/test-vsprintf-posix.c: Likewise.
17005
17006 2009-01-03  Jim Meyering  <meyering@redhat.com>
17007
17008         gnulib-tool: fix sed-based filtering
17009         * gnulib-tool (func_filter_filelist): Remove extra backslash
17010         in sed_fff_filter definition.
17011
17012 2009-01-02  Jim Meyering  <meyering@redhat.com>
17013
17014         strftime: avoid compilation failure on Solaris 2.6
17015         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17016         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17017         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17018         be available.  Reported by Tom G. Christensen.  Details in
17019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17020
17021 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17022             Bruno Haible  <bruno@clisp.org>
17023
17024         Speed up gnulib-tool by doing more string processing through shell
17025         built-ins.
17026         * gnulib-tool (fast_func_append): New variable.
17027         (func_remove_prefix, func_remove_suffix): New functions.
17028         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17029         (func_filter_filelist): New function.
17030         (func_get_dependencies): Use func_remove_suffix instead of sed.
17031         (func_get_automake_snippet): Use func_filter_filelist instead of a
17032         subshell and sed invocation.
17033
17034 2009-01-01  Bruno Haible  <bruno@clisp.org>
17035
17036         Fix a security bug.
17037         * gnulib-tool (func_import, import, update): Don't allow the characters
17038         '"', '$', '`', '\' in macro arguments that become part of commands that
17039         are evaluated.
17040
17041 2009-01-01  Bruno Haible  <bruno@clisp.org>
17042
17043         * gnulib-tool (func_reset_sigpipe): Add more comments.
17044
17045 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17046
17047         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17048         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17049         already know the answer.
17050
17051 2009-01-01  Jim Meyering  <meyering@redhat.com>
17052
17053         * lib/version-etc.c (version_etc_va): Update copyright year.
17054
17055 2008-12-30  Bruno Haible  <bruno@clisp.org>
17056
17057         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17058         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17059         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17060
17061 2008-12-29  Eric Blake  <ebb9@byu.net>
17062
17063         multiarch: avoid autoconf AC_REQUIRE bug
17064         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17065         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17066         2.63 and older.
17067         Reported by Bruno Haible, and analyzed in
17068         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17069
17070 2008-12-29  Bruno Haible  <bruno@clisp.org>
17071
17072         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17073         files in subdirectories correctly.
17074         Reported by Ralf Wildenhues.
17075
17076 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17077
17078         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17079         rather than 'join FILE -', for Solaris join.
17080
17081 2008-12-29  Bruno Haible  <bruno@clisp.org>
17082
17083         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17084         quoting.
17085         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17086         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17087         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17088         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17089         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17090         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17091         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17092         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17093         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17094         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17095         * m4/nls.m4 (AM_NLS): Likewise.
17096         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17097         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17098         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17099         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17100         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17101         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17102         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17103         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17104         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17105         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17106         * m4/xsize.m4 (gl_XSIZE): Likewise.
17107         Suggested by Jim Meyering.
17108
17109 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17110
17111         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17112         * lib/parse-duration.c: use a switch instead of cascading if's.
17113
17114 2008-12-29  Eric Blake  <ebb9@byu.net>
17115
17116         wchar.h: supply WEOF on Irix 5.3
17117         * lib/wchar.in.h (wint_t): Also supply WEOF.
17118         * lib/wctype.in.h (wint_t): Likewise.
17119         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17120         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17121         Reported by Tom G. Christensen.
17122
17123 2008-12-26  Bruno Haible  <bruno@clisp.org>
17124
17125         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17126         i486, i586, i686.
17127
17128 2008-12-26  Bruno Haible  <bruno@clisp.org>
17129
17130         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17131
17132 2008-12-26  Bruno Haible  <bruno@clisp.org>
17133
17134         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17135         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17136         not __STDC_CONSTANT_MACROS.
17137         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17138
17139 2008-12-25  Bruno Haible  <bruno@clisp.org>
17140
17141         Add support for universal builds to vasnprintf.
17142         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17143         universal builds, guess no.
17144         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17145         * modules/vasprintf-posix (Depends-on): Likewise.
17146         * modules/fprintf-posix (Depends-on): Likewise.
17147         * modules/vfprintf-posix (Depends-on): Likewise.
17148         * modules/snprintf-posix (Depends-on): Likewise.
17149         * modules/vsnprintf-posix (Depends-on): Likewise.
17150         * modules/sprintf-posix (Depends-on): Likewise.
17151         * modules/vsprintf-posix (Depends-on): Likewise.
17152         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17153         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17154         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17155         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17156         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17157         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17158         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17159
17160         Add support for universal builds to <inttypes.h>.
17161         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17162         _SCNu64_PREFIX): In Apple
17163         universal builds, define directly, using _LP64.
17164         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17165         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17166         * modules/inttypes (Depends-on): Add multiarch.
17167         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17168
17169         Add support for universal builds to <stdint.h>.
17170         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17171         universal builds, define directly, using _LP64.
17172         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17173         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17174         and size_t.
17175         * modules/stdint (Depends-on): Add multiarch.
17176         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17177
17178         New module 'multiarch'.
17179         * modules/multiarch: New file.
17180         * m4/multiarch.m4: New file.
17181
17182 2008-12-25  Bruno Haible  <bruno@clisp.org>
17183
17184         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17185
17186 2008-12-25  Bruno Haible  <bruno@clisp.org>
17187
17188         * modules/btowc (License): Relicense under LGPLv2+.
17189         * modules/mbsinit (License): Likewise.
17190         * modules/mbrtowc (License): Likewise.
17191         * modules/wcrtomb (License): Likewise.
17192         * modules/streq (License): Likewise.
17193         Reported by David Lutterkort <lutter@redhat.com>.
17194
17195 2008-12-23  Bruno Haible  <bruno@clisp.org>
17196
17197         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17198
17199 2008-12-23  Bruno Haible  <bruno@clisp.org>
17200
17201         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17202         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17203         GETADDRINFO_LIB, not in LIBS.
17204         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17205         * modules/canon-host (Link): Likewise.
17206         * NEWS: Mention the change.
17207         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17208         GETADDRINFO_LIB.
17209
17210 2008-12-22  Bruno Haible  <bruno@clisp.org>
17211
17212         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17213         * doc/posix-functions/iswalpha_l.texi: Likewise.
17214         * doc/posix-functions/iswblank_l.texi: Likewise.
17215         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17216         * doc/posix-functions/iswctype_l.texi: Likewise.
17217         * doc/posix-functions/iswdigit_l.texi: Likewise.
17218         * doc/posix-functions/iswgraph_l.texi: Likewise.
17219         * doc/posix-functions/iswlower_l.texi: Likewise.
17220         * doc/posix-functions/iswprint_l.texi: Likewise.
17221         * doc/posix-functions/iswpunct_l.texi: Likewise.
17222         * doc/posix-functions/iswspace_l.texi: Likewise.
17223         * doc/posix-functions/iswupper_l.texi: Likewise.
17224         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17225         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17226         * doc/posix-functions/open_wmemstream.texi: Likewise.
17227         * doc/posix-functions/swscanf.texi: Likewise.
17228         * doc/posix-functions/towctrans_l.texi: Likewise.
17229         * doc/posix-functions/towlower.texi: Likewise.
17230         * doc/posix-functions/towlower_l.texi: Likewise.
17231         * doc/posix-functions/towupper.texi: Likewise.
17232         * doc/posix-functions/towupper_l.texi: Likewise.
17233         * doc/posix-functions/vfwprintf.texi: Likewise.
17234         * doc/posix-functions/vfwscanf.texi: Likewise.
17235         * doc/posix-functions/vswscanf.texi: Likewise.
17236         * doc/posix-functions/vwprintf.texi: Likewise.
17237         * doc/posix-functions/vwscanf.texi: Likewise.
17238         * doc/posix-functions/wcpcpy.texi: Likewise.
17239         * doc/posix-functions/wcpncpy.texi: Likewise.
17240         * doc/posix-functions/wcscasecmp.texi: Likewise.
17241         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17242         * doc/posix-functions/wcscoll_l.texi: Likewise.
17243         * doc/posix-functions/wcsdup.texi: Likewise.
17244         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17245         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17246         * doc/posix-functions/wcsnlen.texi: Likewise.
17247         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17248         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17249         * doc/posix-functions/wctrans_l.texi: Likewise.
17250         * doc/posix-functions/wctype_l.texi: Likewise.
17251         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17252         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17253         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17254         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17255         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17256         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17257         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17258         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17259         * doc/glibc-functions/wcschrnul.texi: Likewise.
17260         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17261         * doc/glibc-functions/wcstod_l.texi: Likewise.
17262         * doc/glibc-functions/wcstof_l.texi: Likewise.
17263         * doc/glibc-functions/wcstol_l.texi: Likewise.
17264         * doc/glibc-functions/wcstold_l.texi: Likewise.
17265         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17266         * doc/glibc-functions/wcstoq.texi: Likewise.
17267         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17268         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17269         * doc/glibc-functions/wcstouq.texi: Likewise.
17270         * doc/glibc-functions/wmempcpy.texi: Likewise.
17271
17272 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17273             Eric Blake  <ebb9@byu.net>
17274             Paolo Bonzini  <bonzini@gnu.org>
17275             Bruno Haible  <bruno@clisp.org>
17276
17277         Make c-stack work on Haiku.
17278         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17279         (c_stack_action): Use SA_ONSTACK flag.
17280
17281 2008-12-22  Bruno Haible  <bruno@clisp.org>
17282
17283         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17284
17285 2008-12-22  Bruno Haible  <bruno@clisp.org>
17286
17287         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17288         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17289         being overridden.
17290         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17291         New macros.
17292         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17294         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17295         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17296
17297 2008-12-22  Bruno Haible  <bruno@clisp.org>
17298
17299         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17300         from test code.
17301
17302 2008-12-22  Eric Blake  <ebb9@byu.net>
17303
17304         Avoid gcc warnings on cygwin.
17305         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17306         Avoid unused variable.
17307         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17308         Likewise.
17309
17310 2008-12-22  Bruno Haible  <bruno@clisp.org>
17311
17312         Remove HAVE_MBRTOWC conditionals.
17313         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17314         (mbscasecmp): Assume mbrtowc function.
17315         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17316         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17317         * lib/mbschr.c: Include mbuiter.h unconditionally.
17318         (mbschr): Assume mbrtowc function.
17319         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17320         (mbscspn): Assume mbrtowc function.
17321         * lib/mbslen.c: Include mbuiter.h unconditionally.
17322         (mbslen): Assume mbrtowc function.
17323         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17324         (mbsncasecmp): Assume mbrtowc function.
17325         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17326         (mbsnlen): Assume mbrtowc function.
17327         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17328         (mbspbrk): Assume mbrtowc function.
17329         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17330         (mbspcasecmp): Assume mbrtowc function.
17331         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17332         (mbsrchr): Assume mbrtowc function.
17333         * lib/mbssep.c: Include mbuiter.h unconditionally.
17334         (mbssep): Assume mbrtowc function.
17335         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17336         (mbsspn): Assume mbrtowc function.
17337         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17338         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17339         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17340         (mbstok_r): Assume mbrtowc function.
17341         * lib/propername.c: Include mbuiter.h unconditionally.
17342         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17343         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17344         (trim2): Assume mbrtowc function.
17345         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17346         (mbsnwidth): Assume mbrtowc function.
17347         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17348         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17349         fallback definitions.
17350         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17351
17352 2008-12-22  Bruno Haible  <bruno@clisp.org>
17353
17354         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17355
17356 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17357
17358         * modules/regex: Request emulations for the mb*/wc* functions we need.
17359         * m4/regex.m4: Don't look for those functions here.
17360         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17361
17362 2008-12-22  Bruno Haible  <bruno@clisp.org>
17363
17364         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17365
17366 2008-12-21  Bruno Haible  <bruno@clisp.org>
17367
17368         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17369         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17370         (Include): Remove conditionalization.
17371         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17372         (Include): Remove conditionalization.
17373         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17374         (Include): Remove conditionalization.
17375         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17376         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17377         * NEWS: Mention the change.
17378         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17379         via Sergey Poznyakoff <gray@gnu.org.ua>.
17380
17381 2008-12-21  Bruno Haible  <bruno@clisp.org>
17382
17383         * MODULES.html.sh (Extended multibyte and wide character utilities
17384         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17385         wcrtomb, wcsrtombs.
17386         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17387         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17388         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17389         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17390
17391 2008-12-21  Bruno Haible  <bruno@clisp.org>
17392
17393         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17394
17395 2008-12-21  Bruno Haible  <bruno@clisp.org>
17396
17397         * modules/wcsnrtombs-tests: New file.
17398         * tests/test-wcsnrtombs1.sh: New file.
17399         * tests/test-wcsnrtombs2.sh: New file.
17400         * tests/test-wcsnrtombs3.sh: New file.
17401         * tests/test-wcsnrtombs4.sh: New file.
17402         * tests/test-wcsnrtombs.c: New file.
17403
17404         New module 'wcsnrtombs'.
17405         * lib/wchar.in.h (wcsnrtombs): New declaration.
17406         * lib/wcsnrtombs.c: New file.
17407         * lib/wcsrtombs-state.c: New file.
17408         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17409         (internal_state): Remove variable.
17410         * m4/wcsnrtombs.m4: New file.
17411         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17412         compilation units.
17413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17414         HAVE_WCSNRTOMBS.
17415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17416         HAVE_WCSNRTOMBS.
17417         * modules/wcsnrtombs: New file.
17418         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17419         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17420
17421 2008-12-21  Bruno Haible  <bruno@clisp.org>
17422
17423         * modules/wcsrtombs-tests: New file.
17424         * tests/test-wcsrtombs1.sh: New file.
17425         * tests/test-wcsrtombs2.sh: New file.
17426         * tests/test-wcsrtombs3.sh: New file.
17427         * tests/test-wcsrtombs4.sh: New file.
17428         * tests/test-wcsrtombs.c: New file.
17429
17430         New module 'wcsrtombs'.
17431         * lib/wchar.in.h (wcsrtombs): New declaration.
17432         * lib/wcsrtombs.c: New file.
17433         * m4/wcsrtombs.m4: New file.
17434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17435         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17437         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17438         * modules/wcsrtombs: New file.
17439         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17440         bugs.
17441
17442 2008-12-21  Bruno Haible  <bruno@clisp.org>
17443
17444         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17445         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17446         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17447         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17448         if not correct.
17449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17450         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17451         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17452         m4/locale-zh.m4, m4/codeset.m4.
17453         * doc/posix-functions/wcrtomb.texi: Document the bug.
17454
17455 2008-12-21  Bruno Haible  <bruno@clisp.org>
17456
17457         Work around a btowc() bug on IRIX 6.5.
17458         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17459         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17460         REPLACE_WTOBC if not.
17461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17462         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17463         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17464
17465 2008-12-21  Bruno Haible  <bruno@clisp.org>
17466
17467         * modules/wcrtomb-tests: New file.
17468         * tests/test-wcrtomb.sh: New file.
17469         * tests/test-wcrtomb.c: New file.
17470
17471         New module 'wcrtomb'.
17472         * lib/wchar.in.h (wcrtomb): New declaration.
17473         * lib/wcrtomb.c: New file.
17474         * m4/wcrtomb.m4: New file.
17475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17476         HAVE_WCRTOMB.
17477         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17478         HAVE_WCRTOMB.
17479         * modules/wcrtomb: New file.
17480         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17481
17482 2008-12-21  Bruno Haible  <bruno@clisp.org>
17483
17484         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17485         * modules/mbsrtowcs (Files): Likewise.
17486         * modules/wctob (Files): Likewise.
17487         * modules/c-strcase-tests (Files): Likewise.
17488         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17489         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17490         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17491         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17492         * modules/vasnprintf-posix-tests (Files): Likewise.
17493
17494 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17495
17496         gitlog-to-changelog: pass all command-line arguments to git-log
17497         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17498         it is sometimes convenient to filter the commits in various ways.
17499         gitlog-to-changelog only allows --since to specify a start date,
17500         but git-log itself supports many other filtering mechanisms.
17501         At the moment, I want to filter by branch name.  Rather than
17502         adding a --branch option to gitlog-to-changelog, it seems more
17503         flexible to simply pass all options directly to git-log and let
17504         git do the work.  Notice that this effectively makes --since a
17505         redundant option for gitlog-to-changelog, but removing it would
17506         require current usage to change since calls would then require
17507         an additional '--'.
17508
17509 2008-12-21  Bruno Haible  <bruno@clisp.org>
17510
17511         * modules/mbsnrtowcs-tests: New file.
17512         * tests/test-mbsnrtowcs1.sh: New file.
17513         * tests/test-mbsnrtowcs2.sh: New file.
17514         * tests/test-mbsnrtowcs3.sh: New file.
17515         * tests/test-mbsnrtowcs4.sh: New file.
17516         * tests/test-mbsnrtowcs.c: New file.
17517
17518         New module 'mbsnrtowcs'.
17519         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17520         * lib/mbsnrtowcs.c: New file.
17521         * lib/mbsrtowcs-state.c: New file.
17522         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17523         (internal_state): Remove variable.
17524         * m4/mbsnrtowcs.m4: New file.
17525         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17526         compilation units.
17527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17528         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17529         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17530         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17531         * modules/mbsnrtowcs: New file.
17532         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17533         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17534         portability problem.
17535
17536 2008-12-21  Bruno Haible  <bruno@clisp.org>
17537
17538         Work around mbsrtowcs bug.
17539         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17540         (gl_FUNC_MBSRTOWCS): Invoke it.
17541         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17542         m4/locale-zh.m4.
17543         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17544
17545 2008-12-21  Bruno Haible  <bruno@clisp.org>
17546
17547         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17548
17549 2008-12-21  Bruno Haible  <bruno@clisp.org>
17550
17551         Update doc for AIX.
17552         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17553         16-bit wchar_t type.
17554         * doc/posix-functions/btowc.texi: Likewise.
17555         * doc/posix-functions/fgetwc.texi: Likewise.
17556         * doc/posix-functions/fgetws.texi: Likewise.
17557         * doc/posix-functions/fputwc.texi: Likewise.
17558         * doc/posix-functions/fputws.texi: Likewise.
17559         * doc/posix-functions/fwide.texi: Likewise.
17560         * doc/posix-functions/fwprintf.texi: Likewise.
17561         * doc/posix-functions/fwscanf.texi: Likewise.
17562         * doc/posix-functions/getwchar.texi: Likewise.
17563         * doc/posix-functions/getwc.texi: Likewise.
17564         * doc/posix-functions/iswalnum.texi: Likewise.
17565         * doc/posix-functions/iswalpha.texi: Likewise.
17566         * doc/posix-functions/iswblank.texi: Likewise.
17567         * doc/posix-functions/iswcntrl.texi: Likewise.
17568         * doc/posix-functions/iswctype.texi: Likewise.
17569         * doc/posix-functions/iswdigit.texi: Likewise.
17570         * doc/posix-functions/iswgraph.texi: Likewise.
17571         * doc/posix-functions/iswlower.texi: Likewise.
17572         * doc/posix-functions/iswprint.texi: Likewise.
17573         * doc/posix-functions/iswpunct.texi: Likewise.
17574         * doc/posix-functions/iswspace.texi: Likewise.
17575         * doc/posix-functions/iswupper.texi: Likewise.
17576         * doc/posix-functions/iswxdigit.texi: Likewise.
17577         * doc/posix-functions/mbrtowc.texi: Likewise.
17578         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17579         * doc/posix-functions/mbstowcs.texi: Likewise.
17580         * doc/posix-functions/mbtowc.texi: Likewise.
17581         * doc/posix-functions/putwchar.texi: Likewise.
17582         * doc/posix-functions/putwc.texi: Likewise.
17583         * doc/posix-functions/swprintf.texi: Likewise.
17584         * doc/posix-functions/tolower.texi: Likewise.
17585         * doc/posix-functions/toupper.texi: Likewise.
17586         * doc/posix-functions/towctrans.texi: Likewise.
17587         * doc/posix-functions/ungetwc.texi: Likewise.
17588         * doc/posix-functions/vswprintf.texi: Likewise.
17589         * doc/posix-functions/wcrtomb.texi: Likewise.
17590         * doc/posix-functions/wcscat.texi: Likewise.
17591         * doc/posix-functions/wcschr.texi: Likewise.
17592         * doc/posix-functions/wcscmp.texi: Likewise.
17593         * doc/posix-functions/wcscoll.texi: Likewise.
17594         * doc/posix-functions/wcscpy.texi: Likewise.
17595         * doc/posix-functions/wcscspn.texi: Likewise.
17596         * doc/posix-functions/wcsftime.texi: Likewise.
17597         * doc/posix-functions/wcslen.texi: Likewise.
17598         * doc/posix-functions/wcsncat.texi: Likewise.
17599         * doc/posix-functions/wcsncmp.texi: Likewise.
17600         * doc/posix-functions/wcsncpy.texi: Likewise.
17601         * doc/posix-functions/wcspbrk.texi: Likewise.
17602         * doc/posix-functions/wcsrchr.texi: Likewise.
17603         * doc/posix-functions/wcsrtombs.texi: Likewise.
17604         * doc/posix-functions/wcsspn.texi: Likewise.
17605         * doc/posix-functions/wcsstr.texi: Likewise.
17606         * doc/posix-functions/wcstod.texi: Likewise.
17607         * doc/posix-functions/wcstof.texi: Likewise.
17608         * doc/posix-functions/wcstoimax.texi: Likewise.
17609         * doc/posix-functions/wcstok.texi: Likewise.
17610         * doc/posix-functions/wcstold.texi: Likewise.
17611         * doc/posix-functions/wcstoll.texi: Likewise.
17612         * doc/posix-functions/wcstol.texi: Likewise.
17613         * doc/posix-functions/wcstombs.texi: Likewise.
17614         * doc/posix-functions/wcstoull.texi: Likewise.
17615         * doc/posix-functions/wcstoul.texi: Likewise.
17616         * doc/posix-functions/wcstoumax.texi: Likewise.
17617         * doc/posix-functions/wcswidth.texi: Likewise.
17618         * doc/posix-functions/wcsxfrm.texi: Likewise.
17619         * doc/posix-functions/wctob.texi: Likewise.
17620         * doc/posix-functions/wctomb.texi: Likewise.
17621         * doc/posix-functions/wctrans.texi: Likewise.
17622         * doc/posix-functions/wctype.texi: Likewise.
17623         * doc/posix-functions/wcwidth.texi: Likewise.
17624         * doc/posix-functions/wmemchr.texi: Likewise.
17625         * doc/posix-functions/wmemcmp.texi: Likewise.
17626         * doc/posix-functions/wmemcpy.texi: Likewise.
17627         * doc/posix-functions/wmemmove.texi: Likewise.
17628         * doc/posix-functions/wmemset.texi: Likewise.
17629         * doc/posix-functions/wprintf.texi: Likewise.
17630         * doc/posix-functions/wscanf.texi: Likewise.
17631
17632 2008-12-21  Bruno Haible  <bruno@clisp.org>
17633
17634         Update doc for HP-UX 11.11.
17635         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17636         in HP-UX version 11.00, not in all versions of HP-UX 11.
17637         * doc/posix-functions/fwide.texi: Likewise.
17638         * doc/posix-functions/fwprintf.texi: Likewise.
17639         * doc/posix-functions/fwscanf.texi: Likewise.
17640         * doc/posix-functions/inet_ntop.texi: Likewise.
17641         * doc/posix-functions/inet_pton.texi: Likewise.
17642         * doc/posix-functions/mbrlen.texi: Likewise.
17643         * doc/posix-functions/mbrtowc.texi: Likewise.
17644         * doc/posix-functions/mbsinit.texi: Likewise.
17645         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17646         * doc/posix-functions/swprintf.texi: Likewise.
17647         * doc/posix-functions/swscanf.texi: Likewise.
17648         * doc/posix-functions/towctrans.texi: Likewise.
17649         * doc/posix-functions/vfwprintf.texi: Likewise.
17650         * doc/posix-functions/vswprintf.texi: Likewise.
17651         * doc/posix-functions/vwprintf.texi: Likewise.
17652         * doc/posix-functions/wcrtomb.texi: Likewise.
17653         * doc/posix-functions/wcsrtombs.texi: Likewise.
17654         * doc/posix-functions/wcsstr.texi: Likewise.
17655         * doc/posix-functions/wctob.texi: Likewise.
17656         * doc/posix-functions/wctrans.texi: Likewise.
17657         * doc/posix-functions/wmemchr.texi: Likewise.
17658         * doc/posix-functions/wmemcmp.texi: Likewise.
17659         * doc/posix-functions/wmemcpy.texi: Likewise.
17660         * doc/posix-functions/wmemmove.texi: Likewise.
17661         * doc/posix-functions/wmemset.texi: Likewise.
17662         * doc/posix-functions/wprintf.texi: Likewise.
17663         * doc/posix-functions/wscanf.texi: Likewise.
17664
17665 2008-12-21  Bruno Haible  <bruno@clisp.org>
17666
17667         Work around a portability problem.
17668         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17669         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17670
17671 2008-12-20  Bruno Haible  <bruno@clisp.org>
17672
17673         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17674         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17675         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17677         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17678
17679         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17680         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17681         set.
17682         (GNULIB_defined_mbstate_t): New macro.
17683         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17684         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17685         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17686         reuses the system's mbrtowc function but works around the bugs.
17687         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17688         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17689         macros.
17690         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17691         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17692         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17693         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17694         REPLACE_MBSINIT if mbsinit needs to be overridden.
17695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17696         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17697         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17698         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17699         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17700         m4/locale-zh.m4.
17701         (Depends): Add mbsinit.
17702         * modules/mbsinit (Depends): Add mbrtowc.
17703         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17704
17705 2008-12-20  Bruno Haible  <bruno@clisp.org>
17706
17707         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17708         so that there are no conversion errors on AIX.
17709         * tests/test-mbsrtowcs.c (main): LIkewise.
17710
17711 2008-12-20  Bruno Haible  <bruno@clisp.org>
17712
17713         Work around wctob bug on Solaris <= 9.
17714         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17715         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17717         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17718         * modules/wctob (Files): Add m4/locale-fr.m4.
17719         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17720
17721 2008-12-20  Bruno Haible  <bruno@clisp.org>
17722
17723         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17724         /dev/null.
17725         * tests/test-select-in.sh: Likewise.
17726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17727
17728 2008-12-20  Bruno Haible  <bruno@clisp.org>
17729
17730         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17731         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17732         Cygwin 1.5.x.
17733
17734 2008-12-20  Bruno Haible  <bruno@clisp.org>
17735
17736         Ensure mbstate_t is defined on HP-UX 11.11.
17737         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17738         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17739         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17740         AC_USE_SYSTEM_EXTENSIONS.
17741         * modules/fnmatch (Depends-on): Add extensions.
17742         * modules/mbrlen (Depends-on): Likewise.
17743         * modules/mbrtowc (Depends-on): Likewise.
17744         * modules/mbsinit (Depends-on): Likewise.
17745         * modules/mbsrtowcs (Depends-on): Likewise.
17746         * modules/mbswidth (Depends-on): Likewise.
17747         * modules/quotearg (Depends-on): Likewise.
17748         * modules/strftime (Depends-on): Likewise.
17749
17750 2008-12-20  Bruno Haible  <bruno@clisp.org>
17751
17752         Ensure wctob is declared on IRIX 6.5.
17753         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17754         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17755         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17757         of HAVE_WCTOB.
17758         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17759         HAVE_WCTOB.
17760         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17761
17762 2008-12-19  Bruno Haible  <bruno@clisp.org>
17763
17764         * modules/mbsrtowcs-tests: New file.
17765         * tests/test-mbsrtowcs1.sh: New file.
17766         * tests/test-mbsrtowcs2.sh: New file.
17767         * tests/test-mbsrtowcs3.sh: New file.
17768         * tests/test-mbsrtowcs4.sh: New file.
17769         * tests/test-mbsrtowcs.c: New file.
17770
17771         New module 'mbsrtowcs'.
17772         * lib/wchar.in.h (mbsrtowcs): New declaration.
17773         * lib/mbsrtowcs.c: New file.
17774         * m4/mbsrtowcs.m4: New file.
17775         * modules/mbsrtowcs: New file.
17776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17777         HAVE_MBSRTOWCS.
17778         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17779         HAVE_MBSRTOWCS.
17780         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17781
17782 2008-12-19  Bruno Haible  <bruno@clisp.org>
17783
17784         New module 'mbrlen'.
17785         * lib/wchar.in.h (mbrlen): New declaration.
17786         * lib/mbrlen.c: New file.
17787         * m4/mbrlen.m4: New file.
17788         * modules/mbrlen: New file.
17789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17790         HAVE_MBRLEN.
17791         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17792         HAVE_MBRLEN.
17793         * doc/posix-functions/mbrlen.texi: Document the new module.
17794
17795 2008-12-19  Bruno Haible  <bruno@clisp.org>
17796
17797         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17798         * modules/mbrtowc (Depends-on): Add verify.
17799         Suggested by Paul Eggert.
17800
17801 2008-12-18  Bruno Haible  <bruno@clisp.org>
17802
17803         * modules/mbsinit-tests: New file.
17804         * tests/test-mbsinit.sh: New file.
17805         * tests/test-mbsinit.c: New file.
17806
17807 2008-12-18  Bruno Haible  <bruno@clisp.org>
17808
17809         * modules/mbrtowc-tests: New file.
17810         * tests/test-mbrtowc1.sh: New file.
17811         * tests/test-mbrtowc2.sh: New file.
17812         * tests/test-mbrtowc3.sh: New file.
17813         * tests/test-mbrtowc4.sh: New file.
17814         * tests/test-mbrtowc.c: New file.
17815
17816         New module 'mbrtowc'.
17817         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17818         mbsinit and mbrtowc.
17819         (mbrtowc): New declaration.
17820         * lib/mbrtowc.c: New file.
17821         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17822         * modules/mbrtowc: New file.
17823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17824         HAVE_MBRTOWC.
17825         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17826         HAVE_MBRTOWC.
17827         * doc/posix-functions/mbrtowc.texi: Document the new module.
17828
17829 2008-12-18  Bruno Haible  <bruno@clisp.org>
17830
17831         New module 'wctob'.
17832         * lib/wchar.in.h (wctob): New declaration.
17833         * lib/wctob.c: New file.
17834         * m4/wctob.m4: New file.
17835         * modules/wctob: New file.
17836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17837         HAVE_WCTOB.
17838         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17839         * doc/posix-functions/wctob.texi: Document the new module.
17840
17841 2008-12-18  Bruno Haible  <bruno@clisp.org>
17842
17843         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17844         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17845
17846 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17847
17848         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17849         G. Christensen" <tgc@jupiterrise.com>.
17850
17851         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17852         G. Christensen" <tgc@jupiterrise.com>.
17853
17854         * lib/flock.c: Need to include string.h.  Reported by "Tom
17855         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17856         <ebb9@byu.net>.
17857
17858 2008-12-18  Bruno Haible  <bruno@clisp.org>
17859
17860         * m4/locale-ja.m4: New file, from GNU gettext.
17861
17862 2008-12-17  Bruno Haible  <bruno@clisp.org>
17863
17864         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17865         Suggested by Eric Blake.
17866
17867 2008-12-17  Bruno Haible  <bruno@clisp.org>
17868
17869         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17870
17871 2008-12-17  Bruno Haible  <bruno@clisp.org>
17872
17873         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17874         * modules/mbsinit (Depends-on): Add verify.
17875         Suggested by Paul Eggert.
17876
17877 2008-12-17  Bruno Haible  <bruno@clisp.org>
17878
17879         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17880         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17881         gl_FUNC_MBRTOWC.
17882         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17883         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17884         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17885         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17886         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17887         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17888         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17889         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17890         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17891         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17892         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17893         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17894         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17895         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17896         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17898         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17899         * modules/trim (configure.ac): Likewise.
17900
17901 2008-12-17  Bruno Haible  <bruno@clisp.org>
17902
17903         * modules/btowc-tests: New file.
17904         * tests/test-btowc1.sh: New file.
17905         * tests/test-btowc2.sh: New file.
17906         * tests/test-btowc.c: New file.
17907
17908         New module 'btowc'.
17909         * lib/wchar.in.h (btowc): New declaration.
17910         * lib/btowc.c: New file.
17911         * m4/btowc.m4: New file.
17912         * modules/btowc: New file.
17913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17914         HAVE_BTOWC.
17915         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17916         * doc/posix-functions/btowc.texi: Document the new module.
17917
17918 2008-12-17  Bruno Haible  <bruno@clisp.org>
17919
17920         New module 'mbsinit'.
17921         * lib/wchar.in.h (mbsinit): New declaration.
17922         * lib/mbsinit.c: New file.
17923         * m4/mbsinit.m4: New file.
17924         * modules/mbsinit: New file.
17925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17926         HAVE_MBSINIT.
17927         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17928         HAVE_MBSINIT.
17929         * doc/posix-functions/mbsinit.texi: Document the new module.
17930
17931 2008-12-16  Bruno Haible  <bruno@clisp.org>
17932
17933         * lib/unistd.in.h: Add comment.
17934         * tests/test-environ.c: Don't include <stdlib.h>.
17935
17936 2008-12-16  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/parse-duration.h (parse_duration): Document return value
17939         convention.
17940         * lib/parse-duration.c: Include specification header first. Add
17941         comments.
17942         (_): Remove macro.
17943         (parse_year_month_day, parse_hour_minute_second): Move side effects
17944         outside of strchr call.
17945         (parse_non_iso8601): Move side effects outside of isspace call.
17946         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17947         call.
17948
17949 2008-12-16  Bruno Haible  <bruno@clisp.org>
17950
17951         * tests/test-parse-duration.sh: Produce no output when the test
17952         succeeds.
17953
17954 2008-12-16  Bruno Haible  <bruno@clisp.org>
17955
17956         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17957         expressions.
17958
17959 2008-12-15  Bruno Haible  <bruno@clisp.org>
17960
17961         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17962         * doc/glibc-functions/flistxattr.texi: Likewise.
17963         * doc/glibc-functions/fopencookie.texi: Likewise.
17964         * doc/glibc-functions/fremovexattr.texi: Likewise.
17965         * doc/glibc-functions/fsetxattr.texi: Likewise.
17966         * doc/glibc-functions/getxattr.texi: Likewise.
17967         * doc/glibc-functions/lgetxattr.texi: Likewise.
17968         * doc/glibc-functions/listxattr.texi: Likewise.
17969         * doc/glibc-functions/llistxattr.texi: Likewise.
17970         * doc/glibc-functions/lremovexattr.texi: Likewise.
17971         * doc/glibc-functions/lsetxattr.texi: Likewise.
17972         * doc/glibc-functions/removexattr.texi: Likewise.
17973         * doc/glibc-functions/setxattr.texi: Likewise.
17974         * doc/posix-functions/open_memstream.texi: Likewise.
17975
17976 2008-12-15  Eric Blake  <ebb9@byu.net>
17977
17978         Update doc for cygwin 1.7.
17979         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17980         functions.
17981         * doc/posix-functions/fchmodat.texi: Likewise.
17982         * doc/posix-functions/fchownat.texi: Likewise.
17983         * doc/posix-functions/fdopendir.texi: Likewise.
17984         * doc/posix-functions/fmemopen.texi: Likewise.
17985         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17986         * doc/posix-functions/fstatat.texi: Likewise.
17987         * doc/posix-functions/futimens.texi: Likewise.
17988         * doc/posix-functions/gai_strerror.texi: Likewise.
17989         * doc/posix-functions/getaddrinfo.texi: Likewise.
17990         * doc/posix-functions/getnameinfo.texi: Likewise.
17991         * doc/posix-functions/if_freenameindex.texi: Likewise.
17992         * doc/posix-functions/if_indextoname.texi: Likewise.
17993         * doc/posix-functions/if_nameindex.texi: Likewise.
17994         * doc/posix-functions/if_nametoindex.texi: Likewise.
17995         * doc/posix-functions/insque.texi: Likewise.
17996         * doc/posix-functions/linkat.texi: Likewise.
17997         * doc/posix-functions/llrint.texi: Likewise.
17998         * doc/posix-functions/llrintf.texi: Likewise.
17999         * doc/posix-functions/llrintl.texi: Likewise.
18000         * doc/posix-functions/lockf.texi: Likewise.
18001         * doc/posix-functions/lrintl.texi: Likewise.
18002         * doc/posix-functions/mkdirat.texi: Likewise.
18003         * doc/posix-functions/mkfifoat.texi: Likewise.
18004         * doc/posix-functions/mknodat.texi: Likewise.
18005         * doc/posix-functions/mq_close.texi: Likewise.
18006         * doc/posix-functions/mq_getattr.texi: Likewise.
18007         * doc/posix-functions/mq_notify.texi: Likewise.
18008         * doc/posix-functions/mq_open.texi: Likewise.
18009         * doc/posix-functions/mq_receive.texi: Likewise.
18010         * doc/posix-functions/mq_send.texi: Likewise.
18011         * doc/posix-functions/mq_setattr.texi: Likewise.
18012         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18013         * doc/posix-functions/mq_timedsend.texi: Likewise.
18014         * doc/posix-functions/mq_unlink.texi: Likewise.
18015         * doc/posix-functions/open_memstream.texi: Likewise.
18016         * doc/posix-functions/openat.texi: Likewise.
18017         * doc/posix-functions/posix_fadvise.texi: Likewise.
18018         * doc/posix-functions/posix_fallocate.texi: Likewise.
18019         * doc/posix-functions/posix_madvise.texi: Likewise.
18020         * doc/posix-functions/posix_memalign.texi: Likewise.
18021         * doc/posix-functions/posix_openpt.texi: Likewise.
18022         * doc/posix-functions/readlinkat.texi: Likewise.
18023         * doc/posix-functions/remque.texi: Likewise.
18024         * doc/posix-functions/renameat.texi: Likewise.
18025         * doc/posix-functions/rintl.texi: Likewise.
18026         * doc/posix-functions/sem_unlink.texi: Likewise.
18027         * doc/posix-functions/shm_open.texi: Likewise.
18028         * doc/posix-functions/shm_unlink.texi: Likewise.
18029         * doc/posix-functions/signgam.texi: Likewise.
18030         * doc/posix-functions/sigset.texi: Likewise.
18031         * doc/posix-functions/stpcpy.texi: Likewise.
18032         * doc/posix-functions/stpncpy.texi: Likewise.
18033         * doc/posix-functions/strerror.texi: Likewise.
18034         * doc/posix-functions/strtod.texi: Likewise.
18035         * doc/posix-functions/symlinkat.texi: Likewise.
18036         * doc/posix-functions/unlinkat.texi: Likewise.
18037         * doc/posix-functions/utimensat.texi: Likewise.
18038         * doc/glibc-functions/bindresvport.texi: Likewise.
18039         * doc/glibc-functions/dn_expand.texi: Likewise.
18040         * doc/glibc-functions/exp10.texi: Likewise.
18041         * doc/glibc-functions/exp10f.texi: Likewise.
18042         * doc/glibc-functions/fgetxattr.texi: Likewise.
18043         * doc/glibc-functions/flistxattr.texi: Likewise.
18044         * doc/glibc-functions/fopencookie.texi: Likewise.
18045         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18046         * doc/glibc-functions/fremovexattr.texi: Likewise.
18047         * doc/glibc-functions/fsetxattr.texi: Likewise.
18048         * doc/glibc-functions/getifaddrs.texi: Likewise.
18049         * doc/glibc-functions/getxattr.texi: Likewise.
18050         * doc/glibc-functions/lgetxattr.texi: Likewise.
18051         * doc/glibc-functions/listxattr.texi: Likewise.
18052         * doc/glibc-functions/llistxattr.texi: Likewise.
18053         * doc/glibc-functions/lremovexattr.texi: Likewise.
18054         * doc/glibc-functions/lsetxattr.texi: Likewise.
18055         * doc/glibc-functions/pow10.texi: Likewise.
18056         * doc/glibc-functions/pow10f.texi: Likewise.
18057         * doc/glibc-functions/rcmd_af.texi: Likewise.
18058         * doc/glibc-functions/removexattr.texi: Likewise.
18059         * doc/glibc-functions/res_init.texi: Likewise.
18060         * doc/glibc-functions/res_mkquery.texi: Likewise.
18061         * doc/glibc-functions/res_query.texi: Likewise.
18062         * doc/glibc-functions/res_querydomain.texi: Likewise.
18063         * doc/glibc-functions/res_send.texi: Likewise.
18064         * doc/glibc-functions/rresvport_af.texi: Likewise.
18065         * doc/glibc-functions/setxattr.texi: Likewise.
18066         * doc/glibc-functions/strcasestr.texi: Likewise.
18067
18068 2008-12-15  Bruno Haible  <bruno@clisp.org>
18069
18070         Fix compilation error on OSF/1 4.0.
18071         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18072         <sys/time.h>, simply delegate to the system header.
18073         Reported by Daniel Richard G. <oss@teragram.com>.
18074
18075 2008-12-15  Bruno Haible  <bruno@clisp.org>
18076
18077         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18078         * doc/posix-functions/fchmodat.texi: Likewise.
18079         * doc/posix-functions/fchownat.texi: Likewise.
18080         * doc/posix-functions/fdopendir.texi: Likewise.
18081         * doc/posix-functions/fstatat.texi: Likewise.
18082         * doc/posix-functions/mkdirat.texi: Likewise.
18083         * doc/posix-functions/unlinkat.texi: Likewise.
18084
18085 2008-12-14  Bruno Haible  <bruno@clisp.org>
18086
18087         Update doc for POSIX:2008.
18088         * doc/posix-functions/faccessat.texi: New file.
18089         * doc/posix-functions/fchmodat.texi: New file.
18090         * doc/posix-functions/fchownat.texi: New file.
18091         * doc/posix-functions/fdopendir.texi: New file.
18092         * doc/posix-functions/fstatat.texi: New file.
18093         * doc/posix-functions/futimens.texi: New file.
18094         * doc/posix-functions/linkat.texi: New file.
18095         * doc/posix-functions/mkdirat.texi: New file.
18096         * doc/posix-functions/mkfifoat.texi: New file.
18097         * doc/posix-functions/mknodat.texi: New file.
18098         * doc/posix-functions/open_wmemstream.texi: New file.
18099         * doc/posix-functions/openat.texi: New file.
18100         * doc/posix-functions/psiginfo.texi: New file.
18101         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18102         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18103         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18104         * doc/posix-functions/readlinkat.texi: New file.
18105         * doc/posix-functions/renameat.texi: New file.
18106         * doc/posix-functions/strerror_l.texi: New file.
18107         * doc/posix-functions/symlinkat.texi: New file.
18108         * doc/posix-functions/unlinkat.texi: New file.
18109         * doc/posix-functions/utimensat.texi: New file.
18110         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18111
18112 2008-12-14  Bruno Haible  <bruno@clisp.org>
18113
18114         Update doc for POSIX:2008.
18115         * doc/posix-functions/alphasort.texi: Renamed from
18116         doc/glibc-functions/alphasort.texi.
18117         * doc/posix-functions/dirfd.texi: Renamed from
18118         doc/glibc-functions/dirfd.texi.
18119         * doc/posix-functions/dprintf.texi: Renamed from
18120         doc/glibc-functions/dprintf.texi.
18121         * doc/posix-functions/duplocale.texi: Renamed from
18122         doc/glibc-functions/duplocale.texi.
18123         * doc/posix-functions/fexecve.texi: Renamed from
18124         doc/glibc-functions/fexecve.texi.
18125         * doc/posix-functions/fmemopen.texi: Renamed from
18126         doc/glibc-functions/fmemopen.texi.
18127         * doc/posix-functions/freelocale.texi: Renamed from
18128         doc/glibc-functions/freelocale.texi.
18129         * doc/posix-functions/getdate_err.texi: Renamed from
18130         doc/glibc-functions/getdate_err.texi.
18131         * doc/posix-functions/isalnum_l.texi: Renamed from
18132         doc/glibc-functions/isalnum_l.texi.
18133         * doc/posix-functions/isalpha_l.texi: Renamed from
18134         doc/glibc-functions/isalpha_l.texi.
18135         * doc/posix-functions/isblank_l.texi: Renamed from
18136         doc/glibc-functions/isblank_l.texi.
18137         * doc/posix-functions/iscntrl_l.texi: Renamed from
18138         doc/glibc-functions/iscntrl_l.texi.
18139         * doc/posix-functions/isdigit_l.texi: Renamed from
18140         doc/glibc-functions/isdigit_l.texi.
18141         * doc/posix-functions/isgraph_l.texi: Renamed from
18142         doc/glibc-functions/isgraph_l.texi.
18143         * doc/posix-functions/islower_l.texi: Renamed from
18144         doc/glibc-functions/islower_l.texi.
18145         * doc/posix-functions/isprint_l.texi: Renamed from
18146         doc/glibc-functions/isprint_l.texi.
18147         * doc/posix-functions/ispunct_l.texi: Renamed from
18148         doc/glibc-functions/ispunct_l.texi.
18149         * doc/posix-functions/isspace_l.texi: Renamed from
18150         doc/glibc-functions/isspace_l.texi.
18151         * doc/posix-functions/isupper_l.texi: Renamed from
18152         doc/glibc-functions/isupper_l.texi.
18153         * doc/posix-functions/iswalnum_l.texi: Renamed from
18154         doc/glibc-functions/iswalnum_l.texi.
18155         * doc/posix-functions/iswalpha_l.texi: Renamed from
18156         doc/glibc-functions/iswalpha_l.texi.
18157         * doc/posix-functions/iswblank_l.texi: Renamed from
18158         doc/glibc-functions/iswblank_l.texi.
18159         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18160         doc/glibc-functions/iswcntrl_l.texi.
18161         * doc/posix-functions/iswctype_l.texi: Renamed from
18162         doc/glibc-functions/iswctype_l.texi.
18163         * doc/posix-functions/iswdigit_l.texi: Renamed from
18164         doc/glibc-functions/iswdigit_l.texi.
18165         * doc/posix-functions/iswgraph_l.texi: Renamed from
18166         doc/glibc-functions/iswgraph_l.texi.
18167         * doc/posix-functions/iswlower_l.texi: Renamed from
18168         doc/glibc-functions/iswlower_l.texi.
18169         * doc/posix-functions/iswprint_l.texi: Renamed from
18170         doc/glibc-functions/iswprint_l.texi.
18171         * doc/posix-functions/iswpunct_l.texi: Renamed from
18172         doc/glibc-functions/iswpunct_l.texi.
18173         * doc/posix-functions/iswspace_l.texi: Renamed from
18174         doc/glibc-functions/iswspace_l.texi.
18175         * doc/posix-functions/iswupper_l.texi: Renamed from
18176         doc/glibc-functions/iswupper_l.texi.
18177         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18178         doc/glibc-functions/iswxdigit_l.texi.
18179         * doc/posix-functions/isxdigit_l.texi: Renamed from
18180         doc/glibc-functions/isxdigit_l.texi.
18181         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18182         doc/glibc-functions/mbsnrtowcs.texi.
18183         * doc/posix-functions/mkdtemp.texi: Renamed from
18184         doc/glibc-functions/mkdtemp.texi.
18185         * doc/posix-functions/newlocale.texi: Renamed from
18186         doc/glibc-functions/newlocale.texi.
18187         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18188         doc/glibc-functions/nl_langinfo_l.texi.
18189         * doc/posix-functions/open_memstream.texi: Renamed from
18190         doc/glibc-functions/open_memstream.texi.
18191         * doc/posix-functions/opterr.texi: Renamed from
18192         doc/glibc-functions/opterr.texi.
18193         * doc/posix-functions/optind.texi: Renamed from
18194         doc/glibc-functions/optind.texi.
18195         * doc/posix-functions/optopt.texi: Renamed from
18196         doc/glibc-functions/optopt.texi.
18197         * doc/posix-functions/psignal.texi: Renamed from
18198         doc/glibc-functions/psignal.texi.
18199         * doc/posix-functions/scandir.texi: Renamed from
18200         doc/glibc-functions/scandir.texi.
18201         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18202         doc/glibc-functions/sched_get_priority_min.texi.
18203         * doc/posix-functions/signgam.texi: Renamed from
18204         doc/glibc-functions/signgam.texi.
18205         * doc/posix-functions/stpcpy.texi: Renamed from
18206         doc/glibc-functions/stpcpy.texi.
18207         * doc/posix-functions/stpncpy.texi: Renamed from
18208         doc/glibc-functions/stpncpy.texi.
18209         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18210         doc/glibc-functions/strcasecmp_l.texi.
18211         * doc/posix-functions/strcoll_l.texi: Renamed from
18212         doc/glibc-functions/strcoll_l.texi.
18213         * doc/posix-functions/strfmon_l.texi: Renamed from
18214         doc/glibc-functions/strfmon_l.texi.
18215         * doc/posix-functions/strftime_l.texi: Renamed from
18216         doc/glibc-functions/strftime_l.texi.
18217         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18218         doc/glibc-functions/strncasecmp_l.texi.
18219         * doc/posix-functions/strndup.texi: Renamed from
18220         doc/glibc-functions/strndup.texi.
18221         * doc/posix-functions/strnlen.texi: Renamed from
18222         doc/glibc-functions/strnlen.texi.
18223         * doc/posix-functions/strsignal.texi: Renamed from
18224         doc/glibc-functions/strsignal.texi.
18225         * doc/posix-functions/strxfrm_l.texi: Renamed from
18226         doc/glibc-functions/strxfrm_l.texi.
18227         * doc/posix-functions/timer_gettime.texi: Renamed from
18228         doc/glibc-functions/timer_gettime.texi.
18229         * doc/posix-functions/tolower_l.texi: Renamed from
18230         doc/glibc-functions/tolower_l.texi.
18231         * doc/posix-functions/toupper_l.texi: Renamed from
18232         doc/glibc-functions/toupper_l.texi.
18233         * doc/posix-functions/towctrans_l.texi: Renamed from
18234         doc/glibc-functions/towctrans_l.texi.
18235         * doc/posix-functions/towlower_l.texi: Renamed from
18236         doc/glibc-functions/towlower_l.texi.
18237         * doc/posix-functions/towupper_l.texi: Renamed from
18238         doc/glibc-functions/towupper_l.texi.
18239         * doc/posix-functions/uselocale.texi: Renamed from
18240         doc/glibc-functions/uselocale.texi.
18241         * doc/posix-functions/vdprintf.texi: Renamed from
18242         doc/glibc-functions/vdprintf.texi.
18243         * doc/posix-functions/wcpcpy.texi:
18244         Renamed from doc/glibc-functions/wcpcpy.texi.
18245         * doc/posix-functions/wcpncpy.texi: Renamed from
18246         doc/glibc-functions/wcpncpy.texi.
18247         * doc/posix-functions/wcscasecmp.texi: Renamed from
18248         doc/glibc-functions/wcscasecmp.texi.
18249         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18250         doc/glibc-functions/wcscasecmp_l.texi.
18251         * doc/posix-functions/wcscoll_l.texi: Renamed from
18252         doc/glibc-functions/wcscoll_l.texi.
18253         * doc/posix-functions/wcsdup.texi: Renamed from
18254         doc/glibc-functions/wcsdup.texi.
18255         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18256         doc/glibc-functions/wcsncasecmp.texi.
18257         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18258         doc/glibc-functions/wcsncasecmp_l.texi.
18259         * doc/posix-functions/wcsnlen.texi: Renamed from
18260         doc/glibc-functions/wcsnlen.texi.
18261         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18262         doc/glibc-functions/wcsnrtombs.texi.
18263         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18264         doc/glibc-functions/wcsxfrm_l.texi.
18265         * doc/posix-functions/wctrans_l.texi: Renamed from
18266         doc/glibc-functions/wctrans_l.texi.
18267         * doc/posix-functions/wctype_l.texi: Renamed from
18268         doc/glibc-functions/wctype_l.texi.
18269         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18270         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18271         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18272         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18273         these subsections.
18274         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18275         Remove sections.
18276
18277 2008-12-14  Bruno Haible  <bruno@clisp.org>
18278
18279         Update doc for POSIX:2008.
18280         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18281
18282 2008-12-14  Bruno Haible  <bruno@clisp.org>
18283
18284         Update doc for POSIX:2008.
18285         * doc/pastposix-functions/bcmp.texi: Renamed from
18286         doc/posix-functions/bcmp.texi.
18287         * doc/pastposix-functions/bcopy.texi: Renamed from
18288         doc/posix-functions/bcopy.texi.
18289         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18290         doc/posix-functions/bsd_signal.texi.
18291         * doc/pastposix-functions/bzero.texi: Renamed from
18292         doc/posix-functions/bzero.texi.
18293         * doc/pastposix-functions/ecvt.texi: Renamed from
18294         doc/posix-functions/ecvt.texi.
18295         * doc/pastposix-functions/fcvt.texi: Renamed from
18296         doc/posix-functions/fcvt.texi.
18297         * doc/pastposix-functions/ftime.texi: Renamed from
18298         doc/posix-functions/ftime.texi.
18299         * doc/pastposix-functions/gcvt.texi: Renamed from
18300         doc/posix-functions/gcvt.texi.
18301         * doc/pastposix-functions/getcontext.texi: Renamed from
18302         doc/posix-functions/getcontext.texi.
18303         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18304         doc/posix-functions/gethostbyaddr.texi.
18305         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18306         doc/posix-functions/gethostbyname.texi.
18307         * doc/pastposix-functions/getwd.texi: Renamed from
18308         doc/posix-functions/getwd.texi.
18309         * doc/pastposix-functions/h_errno.texi: Renamed from
18310         doc/posix-functions/h_errno.texi.
18311         * doc/pastposix-functions/index.texi: Renamed from
18312         doc/posix-functions/index.texi.
18313         * doc/pastposix-functions/makecontext.texi: Renamed from
18314         doc/posix-functions/makecontext.texi.
18315         * doc/pastposix-functions/mktemp.texi: Renamed from
18316         doc/posix-functions/mktemp.texi.
18317         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18318         doc/posix-functions/pthread_attr_getstackaddr.texi.
18319         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18320         doc/posix-functions/pthread_attr_setstackaddr.texi.
18321         * doc/pastposix-functions/rindex.texi: Renamed from
18322         doc/posix-functions/rindex.texi.
18323         * doc/pastposix-functions/scalb.texi: Renamed from
18324         doc/posix-functions/scalb.texi.
18325         * doc/pastposix-functions/setcontext.texi: Renamed from
18326         doc/posix-functions/setcontext.texi.
18327         * doc/pastposix-functions/swapcontext.texi: Renamed from
18328         doc/posix-functions/swapcontext.texi.
18329         * doc/pastposix-functions/ualarm.texi: Renamed from
18330         doc/posix-functions/ualarm.texi.
18331         * doc/pastposix-functions/usleep.texi: Renamed from
18332         doc/posix-functions/usleep.texi.
18333         * doc/pastposix-functions/vfork.texi: Renamed from
18334         doc/posix-functions/vfork.texi.
18335         * doc/pastposix-functions/wcswcs.texi: Renamed from
18336         doc/posix-functions/wcswcs.texi.
18337         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18338         (Function Substitutes): Update.
18339
18340 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18341
18342         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18343         m4/strerror.m4.
18344
18345 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18346             Bruno Haible  <bruno@clisp.org>
18347
18348         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18349
18350 2008-12-13  Bruno Haible  <bruno@clisp.org>
18351
18352         * modules/strtoull (Depends-on): Remove unistd.
18353
18354 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18355
18356         * modules/strtoull (Depends-on): Add stdlib.
18357
18358 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18359
18360         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18361
18362 2008-12-10  Jim Meyering  <meyering@redhat.com>
18363
18364         gl_ASSERT: don't say assertions are disabled when they're not
18365         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18366         "checking whether to enable assertions... no", when they are in
18367         fact enabled.  This is solely a bug in the output of configure.
18368         In spite of saying "no", NDEBUG was not defined in that case.
18369         Also, as noted by Eric Blake, leave assertions enabled upon
18370         --enable-assert=INVALID.
18371
18372 2008-12-10  Bruno Haible  <bruno@clisp.org>
18373
18374         Change MODULES.html to refer to POSIX:2008 where possible.
18375         * MODULES.html.sh (POSIX2008_URL): New variable.
18376         (posix_headers): Remove sys/timeb, ucontext.
18377         (posix2001_headers): New variable.
18378         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18379         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18380         index, makecontext, mktemp, pthread_attr_getstackaddr,
18381         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18382         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18383         (posix2001_functions): New variable.
18384         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18385         otherwise.
18386
18387 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18388
18389         add missing include to parse-duration.c
18390         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18391         * modules/parse-duration (Depends-on): Add xalloc.
18392
18393         fix sed script reading maint.mk
18394         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18395         (syntax-check-rules): Use it.
18396
18397 2008-12-09  Bruno Haible  <bruno@clisp.org>
18398
18399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18400         MacOS X 10.4/PowerPC.
18401         Reported by Simon Josefsson.
18402
18403 2008-12-08  Jim Meyering  <meyering@redhat.com>
18404
18405         work around mingw's lack of some S_IF definitions
18406         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18407         Reported by Simon Josefsson.
18408
18409 2008-12-08  Bruno Haible  <bruno@clisp.org>
18410
18411         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18412         applied to variables. Needed on MacOS X 10.4/PowerPC.
18413         Reported by Simon Josefsson.
18414
18415 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18416         and Eric Blake  <ebb9@byu.net>
18417
18418         assert: honor --enable-assert
18419         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18420         order to honor --enable-assert, rather than treating it as a
18421         synonym for --disable-assert.
18422
18423 2008-12-08  Jim Meyering  <meyering@redhat.com>
18424
18425         * lib/posixtm.c: Remove now-useless declaration of mktime.
18426
18427         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18428
18429 2008-12-07  Bruno Haible  <bruno@clisp.org>
18430
18431         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18432         test_once): Mark functions as static.
18433         * tests/test-tls.c (test_tls): Likewise.
18434
18435 2008-12-07  Bruno Haible  <bruno@clisp.org>
18436
18437         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18438         iconv_register_autodetect.
18439
18440 2008-12-07  Jim Meyering  <meyering@redhat.com>
18441
18442         posixtm.c: avoid a warning
18443         * lib/posixtm.c (posixtime): Don't initialize tm0.
18444         It's no longer needed to placate gcc4's -Wuninitialized,
18445         and the attempt to placate would elicit a new warning.
18446
18447         unicodeio.c: mark unused parameters
18448         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18449         (fallback_failure_callback): Likewise.
18450
18451 2008-12-07  Bruno Haible  <bruno@clisp.org>
18452
18453         * gnulib-tool (func_create_testdir): When building the tests
18454         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18455         Reported by Simon Josefsson.
18456
18457 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18458
18459         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18460
18461 2008-12-06  Bruno Haible  <bruno@clisp.org>
18462
18463         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18464         Suggested by Eric Blake.
18465
18466 2008-12-06  Bruno Haible  <bruno@clisp.org>
18467
18468         Fix a c-stack test failure on MacOS X.
18469         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18470         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18471         handler for SIGBUS as well.
18472         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18473         install a signal handler for SIGBUS as well.
18474         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18475
18476 2008-12-06  Bruno Haible  <bruno@clisp.org>
18477
18478         Advocacy documentation.
18479         * doc/gnulib-intro.texi (Benefits): New section.
18480         * doc/gnulib.texi: Update.
18481
18482 2008-12-06  Bruno Haible  <bruno@clisp.org>
18483
18484         Document the 'manywarnings' module.
18485         * doc/manywarnings.texi: New file.
18486         * doc/gnulib.texi: Include it.
18487
18488 2008-12-05  Eric Blake  <ebb9@byu.net>
18489
18490         tests: silence some gcc warnings
18491         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18492         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18493         type mismatches.
18494
18495 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18496             Bruno Haible  <bruno@clisp.org>
18497
18498         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18499
18500 2008-11-29  Jim Meyering  <meyering@redhat.com>
18501
18502         unicodeio.c: mark unused parameters
18503         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18504         (fallback_failure_callback): Likewise.
18505
18506         fts: fix a thinko
18507         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18508         (set_stat_type): Return S_IF*-valued "type" directly.
18509         Prompted by James Youngman's spotting a related bug.
18510         Confirmed by further testing through find.
18511
18512         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18513         * lib/fts.c (D_TYPE): Define.
18514         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18515         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18516         (s_ifmt_shift_bits): New function.
18517         (set_stat_type): New function.
18518         (fts_build): When not calling fts_stat, call set_stat_type
18519         to propagate dirent.d_type info to fts_read caller.
18520         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18521         fts_statp->st_mode type information may be valid.
18522
18523 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18524
18525         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18526         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18527         <sds@gnu.org>.
18528
18529 2008-11-20  Bruno Haible  <bruno@clisp.org>
18530
18531         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18532         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18533         INCLUDE_NEXT.
18534         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18535         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18536         * modules/math (Makefile.am): Substitute
18537         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18539
18540 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18541             Bruno Haible  <bruno@clisp.org>
18542
18543         * lib/stdint.in.h: Define all type macros so that their expansion is
18544         a single typedef'ed token. Fixes a compilation failure in Boost which
18545         does "using ::int8_t;".
18546
18547 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18548
18549         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18550         gl_MANYWARN_ALL_GCC.
18551         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18552         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18553         * modules/manywarnings: New file.
18554         * MODULES.html.sh: Mention manywarnings module.
18555
18556 2008-11-18  Bruno Haible  <bruno@clisp.org>
18557
18558         * doc/gnulib-tool.texi (Unit tests): New section.
18559
18560 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18561
18562         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18563         paths like 'lib/po/foo.po'.
18564
18565 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18566
18567         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18568         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18569
18570 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18571
18572         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18573         parameter works.
18574
18575 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18576
18577         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18578
18579 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18580
18581         * modules/parse-duration-tests: New file.
18582         * tests/test-parse-duration.sh: New file.
18583         * tests/test-parse-duration.c: New file.
18584
18585         New module 'parse-duration'.
18586         * lib/parse-duration.h: New file.
18587         * lib/parse-duration.c: New file.
18588         * modules/parse-duration: New file.
18589
18590 2008-11-17  Bruno Haible  <bruno@clisp.org>
18591
18592         * tests/test-select-out.sh: Comment out the first pipe test.
18593         Reported by Simon Josefsson.
18594
18595 2008-11-17  Bruno Haible  <bruno@clisp.org>
18596
18597         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18599         gl_HOSTENT.
18600
18601 2008-11-17  Bruno Haible  <bruno@clisp.org>
18602
18603         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18604         -lnetwork and -lnet. Needed for Haiku and BeOS.
18605
18606 2008-11-16  Bruno Haible  <bruno@clisp.org>
18607
18608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18609
18610 2008-11-16  Bruno Haible  <bruno@clisp.org>
18611
18612         Avoid test failure on Haiku.
18613         * tests/test-fsync.c: Include <errno.h>.
18614         (main): Don't require that fsync (0) fails.
18615
18616 2008-11-15  Bruno Haible  <bruno@clisp.org>
18617
18618         New module 'hostent'.
18619         * modules/hostent: New file.
18620         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18621
18622 2008-11-15  Bruno Haible  <bruno@clisp.org>
18623
18624         New module 'servent'.
18625         * modules/servent: New file.
18626         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18627
18628 2008-11-15  Bruno Haible  <bruno@clisp.org>
18629
18630         Avoid generating same test program with two different rules.
18631         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18632         test-frexp to test-frexp-nolibm.
18633         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18634         test-frexpl to test-frexpl-nolibm.
18635
18636 2008-11-15  Bruno Haible  <bruno@clisp.org>
18637
18638         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18639         $(FREXPL_LIBM).
18640
18641 2008-11-15  Bruno Haible  <bruno@clisp.org>
18642
18643         * lib/netdb.in.h: Activate the definitions also when the system's
18644         <netdb.h> has 'struct addrinfo'.
18645         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18646         EAI_OVERFLOW or AI_NUMERICSERV.
18647         * doc/posix-headers/netdb.texi: Document the problem.
18648
18649 2008-11-15  Bruno Haible  <bruno@clisp.org>
18650
18651         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18652
18653         Make the 'sched' module work on platforms where <sched.h> exists but
18654         is incomplete (such as Haiku).
18655         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18656         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18657         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18658         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18659         HAVE_STRUCT_SCHED_PARAM.
18660         * modules/sched (Depends-on): Add include_next.
18661         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18662         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18663         * doc/posix-headers/sched.texi: Document the issue.
18664
18665 2008-11-13  Jim Meyering  <meyering@redhat.com>
18666
18667         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18668         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18669         test would fail due to the difference in the Report bugs to ...
18670         line.  The expected address is empty, "<>", while the actual
18671         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18672
18673 2008-11-12  Bruno Haible  <bruno@clisp.org>
18674
18675         lstat: don't compile lstat.c on systems lacking lstat
18676         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18677         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18678         Reported by Daniel P. Berrange via Jim Meyering.
18679
18680 2008-11-12  Jim Meyering  <meyering@redhat.com>
18681
18682         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18683
18684 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18685
18686         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18687         instead.
18688
18689 2008-11-12  Bruno Haible  <bruno@clisp.org>
18690
18691         * lib/unicodeio.c: Include unistr.h.
18692         (utf8_wctomb): Remove function.
18693         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18694
18695 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18696
18697         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18698         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18699         <bruno@clisp.org>.
18700         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18701
18702 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18703
18704         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18705         * doc/gnulib.texi: Add section for warnings.
18706
18707 2008-11-11  Bruno Haible  <bruno@clisp.org>
18708
18709         * lib/sockets.h: Add a comment.
18710
18711 2008-11-11  Karl Berry  <karl@gnu.org>
18712
18713         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18714
18715 2008-11-11  Eric Blake  <ebb9@byu.net>
18716
18717         fdl.texi: avoid git symlinks
18718         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18719
18720 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18721
18722         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18723
18724 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18725
18726         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18727         (gl_WARN_ADD): Substitute $2 if literal.
18728
18729 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18730
18731         * m4/warning.m4: Remove.
18732
18733 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18734
18735         * m4/warnings.m4: Almost complete rewrite. :-)
18736
18737 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18738
18739         * modules/warnings: New module.
18740         * m4/warnings.m4: New file.
18741         * MODULES.html.sh: Mention warnings module.
18742         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18743         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18744
18745 2008-11-10  Eric Blake  <ebb9@byu.net>
18746
18747         fdl.texi: make a symlink to the latest version
18748         * doc/standards.texi: Revert today's earlier change.
18749         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18750         * doc/fdl.texi: ...and replace this with a symlink to the newer
18751         fdl-1.3.texi.
18752
18753 2008-11-10  Bruno Haible  <bruno@clisp.org>
18754
18755         * tests/test-select-fd.c (main): Accept the result file name as fourth
18756         argument.
18757         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18758         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18759
18760 2008-11-10  Bruno Haible  <bruno@clisp.org>
18761
18762         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18763         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18764         as autoconf-substituted macros.
18765         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18767         gl_NETDB_H_DEFAULTS. Set these variables.
18768         * modules/netdb (Makefile.am): Substitute these variables.
18769
18770 2008-11-10  Eric Blake  <ebb9@byu.net>
18771
18772         standards.texi: include correct file for FDL 1.3
18773         * doc/standards.texi (GNU Free Documentation License): Change
18774         include file to pull in FDL 1.3, not 1.2.
18775
18776         fdl.texi: revert accidental change to license
18777         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18778
18779 2008-11-10  Bruno Haible  <bruno@clisp.org>
18780
18781         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18782         cross-compiling guesses also when the native compile gives no result.
18783
18784 2008-11-10  Bruno Haible  <bruno@clisp.org>
18785
18786         * lib/spawni.c (__spawni): Force variable into the stack.
18787
18788 2008-11-10  Bruno Haible  <bruno@clisp.org>
18789
18790         Add support for Haiku.
18791         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18792         glibc and BeOS, but also on Haiku.
18793         * lib/fpurge.c (fpurge): Likewise.
18794         * lib/freadable.c (freadable): Likewise.
18795         * lib/freadahead.c (freadahead): Likewise.
18796         * lib/freading.c (freading): Likewise.
18797         * lib/freadptr.c (freadptr): Likewise.
18798         * lib/freadseek.c (freadptrinc): Likewise.
18799         * lib/fseeko.c (rpl_fseeko): Likewise.
18800         * lib/fseterr.c (fseterr): Likewise.
18801         * lib/fwritable.c (fwritable): Likewise.
18802         * lib/fwriting.c (fwriting): Likewise.
18803         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18804
18805 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18806
18807         * lib/config.charset: Treat Haiku like BeOS.
18808
18809 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18810
18811         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18812         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18813
18814 2008-11-08  Bruno Haible  <bruno@clisp.org>
18815
18816         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18817         AC_CACHE_CHECK.
18818
18819 2008-11-08  Bruno Haible  <bruno@clisp.org>
18820
18821         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18822
18823 2008-11-08  Bruno Haible  <bruno@clisp.org>
18824
18825         * tests/test-select-fd.c: New file.
18826         * tests/test-select-in.sh: New file.
18827         * tests/test-select-out.sh: New file.
18828         * tests/test-select-stdin.c: New file.
18829         * modules/select-tests (Files): Add the new files.
18830         (Depends-on): Add gettimeofday.
18831         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18832         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18833         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18834
18835 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18836             Bruno Haible  <bruno@clisp.org>
18837
18838         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18839
18840 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18841
18842         * build-aux/pmccabe2html: Added support for C++ source files.
18843
18844 2008-11-05  Ben Pfaff  <blp@gnu.org>
18845
18846         Fix lib/close.c build on Windows.
18847         * modules/close (Files): Add lib/w32sock.h.
18848
18849 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18850
18851         Accept Bison's NEWS format.
18852         * build-aux/announce-gen (print_news_deltas): Tweak
18853         $re_prefix.
18854
18855 2008-11-04  Bruno Haible  <bruno@clisp.org>
18856
18857         * modules/random_r (Maintainer): Add glibc.
18858
18859 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18860
18861         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18862         by karl@freefriends.org (Karl Berry).
18863         * doc/alloca.texi: Likewise.
18864         * doc/c-ctype.texi: Likewise.
18865         * doc/c-strcase.texi: Likewise.
18866         * doc/c-strcaseeq.texi: Likewise.
18867         * doc/c-strcasestr.texi: Likewise.
18868         * doc/c-strstr.texi: Likewise.
18869         * doc/c-strtod.texi: Likewise.
18870         * doc/c-strtold.texi: Likewise.
18871         * doc/ctime.texi: Likewise.
18872         * doc/error.texi: Likewise.
18873         * doc/fdl.texi: Likewise.
18874         * doc/gcd.texi: Likewise.
18875         * doc/getdate.texi: Likewise.
18876         * doc/gnulib-intro.texi: Likewise.
18877         * doc/gnulib-tool.texi: Likewise.
18878         * doc/gnulib.texi: Likewise.
18879         * doc/inet_ntoa.texi: Likewise.
18880         * doc/maintain.texi: Likewise.
18881         * doc/make-stds.texi: Likewise.
18882         * doc/quote.texi: Likewise.
18883         * doc/regexprops-generic.texi: Likewise.
18884         * doc/standards.texi: Likewise.
18885         * doc/verify.texi: Likewise.
18886         * doc/visibility.texi: Likewise.
18887         * doc/gnulib.texi (GNU Free Documentation License): Include
18888         fdl-1.3.texi instead of fdl.texi.
18889
18890 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18891
18892         * doc/fdl-1.3.texi: New file, from
18893         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18894         * modules/fdl-1.3: Add.
18895         * MODULES.html.sh: Add fdl-1.3.
18896
18897 2008-11-03  Bruno Haible  <bruno@clisp.org>
18898
18899         Make determination of absolute name of header file work with AIX xlc.
18900         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18901         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18902         preprocessing.
18903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18904         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18905
18906 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18907
18908         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18909         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18910         <ludo@gnu.org>.
18911
18912 2008-11-02  Bruno Haible  <bruno@clisp.org>
18913
18914         Mark 'strpbrk' obsolete.
18915         * modules/strpbrk (Status, Notice): New sections.
18916         * modules/strtok_r (Depends-on): Add strpbrk.
18917
18918 2008-11-02  Bruno Haible  <bruno@clisp.org>
18919
18920         Mark 'strdup' obsolete.
18921         * modules/strdup (Status, Notice): New sections.
18922         * modules/findprog (Depends-on): Add strdup.
18923         * modules/getaddrinfo (Depends-on): Likewise.
18924         * modules/localename (Depends-on): Likewise.
18925         * modules/relocatable-lib (Depends-on): Likewise.
18926         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18927         * modules/relocatable-prog (Depends-on): Likewise.
18928         * modules/trim (Depends-on): Likewise.
18929         * modules/unictype/gen-ctype (Depends-on): Likewise.
18930         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18931
18932 2008-11-02  Bruno Haible  <bruno@clisp.org>
18933
18934         Mark 'strcspn' obsolete.
18935         * modules/strcspn (Status, Notice): New sections.
18936
18937 2008-11-02  Bruno Haible  <bruno@clisp.org>
18938
18939         Mark 'rmdir' obsolete.
18940         * modules/rmdir (Status, Notice): New sections.
18941         * modules/clean-temp (Depends-on): Add rmdir.
18942         * modules/openat (Depends-on): Likewise.
18943
18944 2008-11-02  Bruno Haible  <bruno@clisp.org>
18945
18946         Mark 'raise' obsolete.
18947         * modules/raise (Status, Notice): New sections.
18948         (Include): Specify <signal.h>.
18949         * modules/stdio (Depends-on): Add raise.
18950         * modules/write (Depends-on): Likewise.
18951
18952 2008-11-02  Bruno Haible  <bruno@clisp.org>
18953
18954         Mark 'memset' obsolete.
18955         * modules/memset (Status, Notice): New sections.
18956
18957 2008-11-02  Bruno Haible  <bruno@clisp.org>
18958
18959         Mark 'memmove' obsolete.
18960         * modules/memmove (Status, Notice): New sections.
18961         * modules/argp (Depends-on): Add memmove.
18962         * modules/argz (Depends-on): Likewise.
18963         * modules/canonicalize (Depends-on): Likewise.
18964         * modules/canonicalize-lgpl (Depends-on): Likewise.
18965         * modules/fts (Depends-on): Likewise.
18966         * modules/getcwd (Depends-on): Likewise.
18967         * modules/human (Depends-on): Likewise.
18968         * modules/regex (Depends-on): Likewise.
18969         * modules/striconveh (Depends-on): Likewise.
18970         * modules/trim (Depends-on): Likewise.
18971         * modules/unistr/u8-move (Depends-on): Likewise.
18972         * modules/unistr/u16-move (Depends-on): Likewise.
18973         * modules/unistr/u32-move (Depends-on): Likewise.
18974
18975 2008-11-02  Bruno Haible  <bruno@clisp.org>
18976
18977         Mark 'memcpy' obsolete.
18978         * modules/memcpy (Status, Notice): New sections.
18979
18980 2008-11-02  Bruno Haible  <bruno@clisp.org>
18981
18982         Mark 'memcmp' obsolete.
18983         * modules/memcmp (Status, Notice): New sections.
18984         * modules/argmatch (Depends-on): Add memchr.
18985         * modules/backupfile (Depends-on): Likewise.
18986         * modules/c-strcasestr (Depends-on): Likewise.
18987         * modules/crypto/des (Depends-on): Likewise.
18988         * modules/csharpcomp (Depends-on): Likewise.
18989         * modules/fnmatch (Depends-on): Likewise.
18990         * modules/git-merge-changelog (Depends-on): Likewise.
18991         * modules/isnand (Depends-on): Likewise.
18992         * modules/isnand-nolibm (Depends-on): Likewise.
18993         * modules/isnanf (Depends-on): Likewise.
18994         * modules/isnanf-nolibm (Depends-on): Likewise.
18995         * modules/isnanl (Depends-on): Likewise.
18996         * modules/isnanl-nolibm (Depends-on): Likewise.
18997         * modules/mbchar (Depends-on): Likewise.
18998         * modules/memcoll (Depends-on): Likewise.
18999         * modules/quotearg (Depends-on): Likewise.
19000         * modules/regex (Depends-on): Likewise.
19001         * modules/relocatable-prog (Depends-on): Likewise.
19002         * modules/same (Depends-on): Likewise.
19003         * modules/signbit (Depends-on): Likewise.
19004         * modules/strcasestr-simple (Depends-on): Likewise.
19005         * modules/unictype/gen-ctype (Depends-on): Likewise.
19006         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19007         * modules/uniname/uniname (Depends-on): Likewise.
19008         * modules/unistr/u8-cmp (Depends-on): Likewise.
19009
19010 2008-11-02  Bruno Haible  <bruno@clisp.org>
19011
19012         Mark 'memchr' obsolete.
19013         * modules/memchr (Status, Notice): New sections.
19014         * modules/argp (Depends-on): Add memchr.
19015         * modules/base64 (Depends-on): Likewise.
19016         * modules/c-strcasestr (Depends-on): Likewise.
19017         * modules/chdir-long (Depends-on): Likewise.
19018         * modules/fnmatch (Depends-on): Likewise.
19019         * modules/getsubopt (Depends-on): Likewise.
19020         * modules/git-merge-changelog (Depends-on): Likewise.
19021         * modules/glob (Depends-on): Likewise.
19022         * modules/strcasestr-simple (Depends-on): Likewise.
19023         * modules/strnlen (Depends-on): Likewise.
19024
19025 2008-11-02  Bruno Haible  <bruno@clisp.org>
19026
19027         Mark 'atexit' obsolete.
19028         * modules/atexit (Status, Notice): New sections.
19029         * modules/chdir-long (Depends-on): Add atexit.
19030         * modules/wait-process (Depends-on): Likewise.
19031
19032 2008-11-02  Bruno Haible  <bruno@clisp.org>
19033
19034         * gnulib-tool: New option --with-obsolete.
19035         (func_usage): Document it.
19036         (func_modules_transitive_closure): Drop obsolete dependencies if
19037         incobsolete is not true.
19038         (func_import): Read and save the incobsolete variable to the cache.
19039
19040 2008-11-02  Bruno Haible  <bruno@clisp.org>
19041
19042         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19043         * gnulib-tool: New option --extract-status.
19044         (func_usage): Document it.
19045         (sed_extract_prog): Recognize it.
19046         (func_get_status): New function.
19047
19048 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19049
19050         * modules/sockets (License): Change from LGPL to LGPLv2+.
19051
19052 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19053
19054         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19055
19056 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19057
19058         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19059         Mention times and sys_times.
19060         * modules/sys_times, modules/sys_times-tests: New modules.
19061         * modules/times, modules/times-tests: Likewise
19062         * m4/sys_times_h.m4: New file.
19063         * lib/sys_times.in.h: Likewise
19064         * lib/times.c: Likewise.
19065         * tests/test-sys_times.c: Likewise.
19066         * tests/test-times.c: Likewise.
19067         * doc/posix-headers/sys_times.texi: Update.
19068         * doc/posix-functions/times.texi: Update.
19069
19070 2008-10-28  Jim Meyering  <meyering@redhat.com>
19071
19072         * modules/tempname (Depends-on): Add lstat.
19073
19074         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19075
19076 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19077
19078         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19079         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19080         using idiom used elsewhere in gnulib.
19081
19082 2008-10-27  Jim Meyering  <meyering@redhat.com>
19083
19084         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19085
19086 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19087
19088         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19089         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19090         programs.
19091         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19092
19093 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19094
19095         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19096
19097 2008-10-27  Bruno Haible  <bruno@clisp.org>
19098
19099         * tests/test-lstat.c: Include <stdio.h>.
19100
19101 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19102
19103         * modules/lstat-tests: New module.
19104         * tests/test-lstat.c: New file.
19105
19106 2008-10-26  Jim Meyering  <meyering@redhat.com>
19107
19108         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19109
19110 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19111             Bruno Haible  <bruno@clisp.org>
19112
19113         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19114         * modules/configmake (Include): Add a note that the include must come
19115         after all system headers.
19116         * lib/javaversion.c: Include configmake.h after all other includes.
19117
19118 2008-10-26  Bruno Haible  <bruno@clisp.org>
19119
19120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19121         HAVE_STRUCT_RANDOM_DATA to 1.
19122         (gl_STDLIB_H): Simplify.
19123
19124 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19125
19126         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19127         substitute HAVE_STRUCT_RANDOM_DATA.
19128         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19129         random_data.
19130         * modules/stdlib (Makefile.am): Substitute
19131         HAVE_STRUCT_RANDOM_DATA.
19132
19133 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19134
19135         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19136         * doc/gnulib-intro.texi (Copyright): Likewise.
19137
19138 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19139
19140         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19141         findings.
19142
19143 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19144             Bruno Haible  <bruno@clisp.org>
19145
19146         * lib/unistd.in.h: Include <winsock2.h>.
19147         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19148         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19149         Provide dummy declarations.
19150         (gethostname): Override.
19151         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19152         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19153         gl_PREREQ_SYS_H_WINSOCK2.
19154         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19155         * doc/posix-functions/gethostname.texi: More details.
19156
19157 2008-10-25  Bruno Haible  <bruno@clisp.org>
19158
19159         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19160         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19161         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19162
19163         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19164         here ...
19165         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19166         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19167         gl_UNISTD_H_DEFAULTS.
19168
19169 2008-10-25  Eric Blake  <ebb9@byu.net>
19170
19171         signbit: avoid spurious compiler failure
19172         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19173         declarations inside function.
19174
19175 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19176             Bruno Haible  <bruno@clisp.org>
19177
19178         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19179         * modules/random_r (Depends-on): Add stdint.
19180
19181 2008-10-24  Bruno Haible  <bruno@clisp.org>
19182
19183         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19184         Eggert.
19185         * modules/strerror (License): Likewise.
19186
19187 2008-10-24  Jim Meyering  <meyering@redhat.com>
19188
19189         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19190         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19191
19192 2008-10-24  Eric Blake  <ebb9@byu.net>
19193
19194         getgroups: fix compilation when getgroups is available
19195         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19196         but with <config.h> override of getgroups disabled.
19197
19198 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19199
19200         * doc/gnulib.texi (Header files): Add note about C++ problems.
19201         Explained by Bruno Haible <bruno@clisp.org>.
19202
19203 2008-10-23  Bruno Haible  <bruno@clisp.org>
19204
19205         Define a dummy SA_NODEFER macro on Interix.
19206         * lib/signal.in.h (SA_NODEFER): Define fallback.
19207         Reported by Aleksey Cheusov <cheusov@tut.by> via
19208         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19209
19210 2008-10-23  Bruno Haible  <bruno@clisp.org>
19211
19212         * modules/freadahead (License): Change to LGPLv2+.
19213         Suggested by Simon Josefsson.
19214
19215 2008-10-23  Jim Meyering  <meyering@redhat.com>
19216
19217         random_r: new module
19218         * modules/random_r: New file.
19219         * m4/random_r.m4: New file.
19220         * lib/random_r.c: New file, from glibc.
19221         * modules/random_r-tests: New file.
19222         * tests/test-random_r.c: New file.
19223         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19224          Declare.
19225         (RAND_MAX): Define.
19226         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19227         * modules/stdlib: Substitute them, too.
19228         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19229         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19230         * doc/glibc-functions/random_r.texi: Likewise.
19231         * doc/glibc-functions/setstate_r.texi: Likewise.
19232         * doc/glibc-functions/srandom_r.texi: Likewise.
19233         * config/srclist.txt: Mention it.
19234
19235 2008-10-23  David Lutterkort  <lutter@redhat.com>
19236
19237         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19238         link requirement
19239
19240 2008-10-23  Jim Meyering  <meyering@redhat.com>
19241
19242         selinux-h: mark parameters of stub functions as intentionally unused
19243         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19244         * lib/se-context.in.h: Likewise.
19245
19246 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19247
19248         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19249
19250 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19251
19252         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19253
19254 2008-10-22  Eric Blake  <ebb9@byu.net>
19255
19256         glthread/thread: avoid compiler warning
19257         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19258         Add unreachable abort to silence compiler.
19259
19260 2008-10-22  Eric Blake  <ebb9@byu.net>
19261
19262         netdb: also supply struct addrinfo for cygwin 1.5.x
19263         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19264         older cygwin.
19265         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19266         cygwin.
19267         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19268
19269 2008-10-22  Bruno Haible  <bruno@clisp.org>
19270
19271         * users.txt: Update entry about pspp.
19272
19273 2008-10-21  Bruno Haible  <bruno@clisp.org>
19274
19275         Simplification.
19276         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19277         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19278
19279         Simplification.
19280         * lib/ioctl.c (ioctl): Don't undefine.
19281         * lib/socket.c (socket): Don't undefine.
19282
19283         Remove unused module indicator macros.
19284         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19285         GNULIB_$1 as a C macro.
19286
19287         * doc/posix-functions/close.texi: Undo last change.
19288         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19289         Windows platforms.
19290
19291 2008-10-21  Bruno Haible  <bruno@clisp.org>
19292
19293         Add gethostname() declaration to <unistd.h>.
19294         * lib/unistd.in.h (gethostname): New declaration.
19295         * lib/gethostname.c: Include <unistd.h>.
19296         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19297         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19299         and HAVE_GETHOSTNAME.
19300         * modules/gethostname (Depends-on): Add unistd.
19301         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19302         (Include): Specify <unistd.h>.
19303         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19304         HAVE_GETHOSTNAME.
19305         * tests/test-gethostname.c: Include <unistd.h> first.
19306
19307 2008-10-21  Bruno Haible  <bruno@clisp.org>
19308
19309         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19310         * modules/select-tests (Depends-on): Likewise.
19311         Reported by Simon Josefsson.
19312
19313 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19314
19315         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19316         * lib/accept.c: New file, based on winsock.c.
19317         * lib/bind.c: New file, based on winsock.c.
19318         * lib/connect.c: New file, based on winsock.c.
19319         * lib/getpeername.c: New file, based on winsock.c.
19320         * lib/getsockname.c: New file, based on winsock.c.
19321         * lib/getsockopt.c: New file, based on winsock.c.
19322         * lib/ioctl.c: New file, based on winsock.c.
19323         * lib/listen.c: New file, based on winsock.c.
19324         * lib/recv.c: New file, based on winsock.c.
19325         * lib/recvfrom.c: New file, based on winsock.c.
19326         * lib/send.c: New file, based on winsock.c.
19327         * lib/sendto.c: New file, based on winsock.c.
19328         * lib/setsockopt.c: New file, based on winsock.c.
19329         * lib/shutdown.c: New file, based on winsock.c.
19330         * lib/socket.c: New file, based on winsock.c.
19331         * lib/w32sock.h: New file, based on winsock.c.
19332         * lib/winsock.c: Remove file.
19333         * modules/accept: Likewise.
19334         * modules/bind: Likewise.
19335         * modules/connect: Likewise.
19336         * modules/getpeername: Likewise.
19337         * modules/getsockname: Likewise.
19338         * modules/getsockopt: Likewise.
19339         * modules/ioctl: Likewise.
19340         * modules/listen: Likewise.
19341         * modules/recv: Likewise.
19342         * modules/recvfrom: Likewise.
19343         * modules/send: Likewise.
19344         * modules/sendto: Likewise.
19345         * modules/setsockopt: Likewise.
19346         * modules/shutdown: Likewise.
19347         * modules/socket: Use socket.c instead of winsock.c.
19348         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19349         * doc/posix-functions/accept.texi: Doc fix.
19350         * doc/posix-functions/bind.texi: Doc fix.
19351         * doc/posix-functions/close.texi: Doc fix.
19352         * doc/posix-functions/connect.texi: Doc fix.
19353         * doc/posix-functions/getpeername.texi: Doc fix.
19354         * doc/posix-functions/getsockname.texi: Doc fix.
19355         * doc/posix-functions/getsockopt.texi: Doc fix.
19356         * doc/posix-functions/ioctl.texi: Doc fix.
19357         * doc/posix-functions/listen.texi: Doc fix.
19358         * doc/posix-functions/recv.texi: Doc fix.
19359         * doc/posix-functions/recvfrom.texi: Doc fix.
19360         * doc/posix-functions/send.texi: Doc fix.
19361         * doc/posix-functions/sendto.texi: Doc fix.
19362         * doc/posix-functions/setsockopt.texi: Doc fix.
19363         * doc/posix-functions/shutdown.texi: Doc fix.
19364         * doc/posix-functions/socket.texi: Doc fix.
19365
19366 2008-10-20  Bruno Haible  <bruno@clisp.org>
19367
19368         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19369         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19370         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19371         as an alias for SIGABRT.
19372         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19373         (sigaction): Map it to SIGABRT.
19374         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19375
19376 2008-10-20  Bruno Haible  <bruno@clisp.org>
19377
19378         * lib/fts.c: Don't include lstat.h.
19379         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19380
19381         Move the lstat() declaration to <sys/stat.h>.
19382         * lib/lstat.h: Remove file.
19383         * lib/sys_stat.in.h: Add special invocation convention.
19384         (lstat): New declaration.
19385         * lib/lstat.c (orig_lstat): New function.
19386         (rpl_lstat): Use orig_lstat instead of lstat.
19387         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19388         AC_C_INLINE. Set REPLACE_LSTAT.
19389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19390         and REPLACE_LSTAT.
19391         * modules/lstat (Files): Remove lib/lstat.h.
19392         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19393         (Include): Specify <sys/stat.h> instead of lstat.h.
19394         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19395         REPLACE_LSTAT.
19396         * NEWS: Mention the change.
19397
19398 2008-10-20  Bruno Haible  <bruno@clisp.org>
19399
19400         * modules/posix_spawn-tests: New file.
19401         * tests/test-posix_spawn3.c: New file.
19402
19403 2008-10-20  Bruno Haible  <bruno@clisp.org>
19404
19405         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19406         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19407         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19408         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19409         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19410
19411 2008-10-20  Bruno Haible  <bruno@clisp.org>
19412
19413         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19414         of posix_spawn on AIX 5.3.
19415
19416 2008-10-20  Bruno Haible  <bruno@clisp.org>
19417
19418         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19419
19420 2008-10-20  Bruno Haible  <bruno@clisp.org>
19421
19422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19423         of AC_LANG_PROGRAM.
19424
19425 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19426
19427         * lib/netdb.in.h: Don't define GNU specific constants until they
19428         are supported or needed.  Reported by Bruno Haible
19429         <bruno@clisp.org>.
19430
19431 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19432
19433         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19434
19435 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19436
19437         * lib/getaddrinfo.h: Remove file.
19438         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19439         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19440         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19441         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19442         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19443         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19444         * tests/test-getaddrinfo.c: Likewise.
19445         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19446         * NEWS: Mention change.
19447
19448 2008-10-19  Bruno Haible  <bruno@clisp.org>
19449
19450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19451
19452 2008-10-19  Bruno Haible  <bruno@clisp.org>
19453
19454         * lib/wait-process.c: Include simply <sys/wait.h>.
19455         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19456         WIFSTOPPED): Remove fallback definitions.
19457         * modules/wait-process (Depends-on): Add sys_wait.
19458
19459         New module 'sys_wait'.
19460         * modules/sys_wait: New file.
19461         * lib/sys_wait.in.h: New file, partially copied from
19462         lib/wait-process.c.
19463         * m4/sys_wait_h.m4: New file.
19464         * doc/posix-headers/sys_wait.texi: Mention the new module.
19465
19466 2008-10-19  Bruno Haible  <bruno@clisp.org>
19467
19468         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19469
19470 2008-10-19  Bruno Haible  <bruno@clisp.org>
19471
19472         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19473         * lib/wait-process.c (WAIT_T): Remove type.
19474         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19475         (wait_subprocess): Update.
19476
19477 2008-10-19  Bruno Haible  <bruno@clisp.org>
19478
19479         New module 'atoll'.
19480         * modules/atoll: New file.
19481         * lib/stdlib.in.h (atoll): New declaration.
19482         * lib/atoll.c: New file, from glibc with modifications.
19483         * m4/atoll.m4: New file.
19484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19485         HAVE_ATOLL.
19486         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19487         * doc/posix-functions/atoll.texi: Mention the new module.
19488
19489 2008-10-19  Bruno Haible  <bruno@clisp.org>
19490
19491         Add strtoull() declaration to <stdlib.h>.
19492         * lib/stdlib.in.h (strtoull): New declaration.
19493         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19494         Set HAVE_STRTOULL.
19495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19496         HAVE_STRTOULL.
19497         * modules/strtoull (Depends-on): Add stdlib.
19498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19499         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19500         HAVE_STRTOULL.
19501
19502 2008-10-19  Bruno Haible  <bruno@clisp.org>
19503
19504         Add strtoll() declaration to <stdlib.h>.
19505         * lib/stdlib.in.h (strtoll): New declaration.
19506         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19507         Set HAVE_STRTOLL.
19508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19509         HAVE_STRTOLL.
19510         * modules/strtoll (Depends-on): Add stdlib.
19511         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19512         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19513
19514 2008-10-19  Bruno Haible  <bruno@clisp.org>
19515
19516         * modules/bcopy (Depends-on): Add strings.
19517         (Include): Specify <strings.h>.
19518
19519 2008-10-19  Bruno Haible  <bruno@clisp.org>
19520
19521         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19522
19523 2008-10-19  Bruno Haible  <bruno@clisp.org>
19524
19525         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19526         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19527         mingw.
19528
19529 2008-10-19  Bruno Haible  <bruno@clisp.org>
19530
19531         * lib/atanl.c: Don't include isnanl.h.
19532         * lib/cosl.c: Likewise.
19533         * lib/ldexpl.c: Likewise.
19534         * lib/logl.c: Likewise.
19535         * lib/sinl.c: Likewise.
19536         * lib/sqrtl.c: Likewise.
19537         * lib/tanl.c: Likewise.
19538
19539         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19540         * lib/isnanf.h: Remove file.
19541         * lib/isnand.h: Remove file.
19542         * lib/isnanl.h: Remove file.
19543         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19544         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19545         macros.
19546         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19547         HAVE_ISNANF, don't define it as a C macro.
19548         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19549         HAVE_ISNAND, don't define it as a C macro.
19550         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19551         HAVE_ISNANL, don't define it as a C macro.
19552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19553         HAVE_ISNAN[FDL].
19554         * modules/isnanf (Files): Remove lib/isnanf.h.
19555         (Depends-on): Add math.
19556         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19557         (Include): Specify <math.h> instead of isnanf.h.
19558         * modules/isnand (Files): Remove lib/isnand.h.
19559         (Depends-on): Add math.
19560         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19561         (Include): Specify <math.h> instead of isnand.h.
19562         * modules/isnanl (Files): Remove lib/isnanl.h.
19563         (Depends-on): Add math.
19564         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19565         (Include): Specify <math.h> instead of isnanl.h.
19566         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19567         HAVE_ISNAN[FDL].
19568         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19569         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19570         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19571         * NEWS: Mention the change.
19572
19573 2008-10-18  Bruno Haible  <bruno@clisp.org>
19574
19575         Add getusershell(), setusershell(), endusershell() declarations to
19576         <unistd.h>.
19577         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19578         declarations.
19579         * lib/getusershell.c: Include unistd.h.
19580         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19581         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19582         HAVE_GETUSERSHELL.
19583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19584         and HAVE_GETUSERSHELL.
19585         * modules/getusershell (Depends-on): Add unistd, extensions.
19586         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19587         (Include): Specify <unistd.h>.
19588         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19589         HAVE_GETUSERSHELL.
19590
19591 2008-10-18  Bruno Haible  <bruno@clisp.org>
19592
19593         Add a getloadavg() declaration to <stdlib.h>.
19594         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19595         getloadavg declaration.
19596         (getloadavg): New declaration.
19597         * lib/getloadavg.c: Include <stdlib.h> first.
19598         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19599         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19600         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19602         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19603         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19604         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19605         (Include): Specify <stdlib.h>.
19606         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19607         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19608
19609 2008-10-18  Bruno Haible  <bruno@clisp.org>
19610
19611         * lib/dirchownmod.c: Don't include lchmod.h.
19612
19613         Move the lchmod() declaration to <sys/stat.h>.
19614         * lib/lchmod.h: Remove file.
19615         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19616         (lchmod): New declaration, moved here from lib/lchown.h.
19617         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19618         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19619         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19620         and HAVE_LCHMOD.
19621         * modules/lchmod (Files): Remove lib/lchmod.h.
19622         (Depends-on): Add sys_stat, extensions.
19623         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19624         (Include): Specify <sys/stat.h> instead of lchmod.h.
19625         * modules/sys_stat (Depends-on): Add link-warning.
19626         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19627         definition of GL_LINK_WARNING.
19628         * NEWS: Mention the change.
19629
19630 2008-10-18  Bruno Haible  <bruno@clisp.org>
19631
19632         * lib/fchdir.c: Don't include dirfd.h.
19633         * lib/fts.c: Likewise.
19634         * lib/getcwd.c: Likewise.
19635         * lib/glob.c: Likewise.
19636
19637         Move the dirfd() declaration to <dirent.h>.
19638         * lib/dirfd.h: Remove file.
19639         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19640         (dirfd): New declaration.
19641         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19642         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19643         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19644         HAVE_DECL_DIRFD.
19645         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19646         HAVE_DECL_DIRFD.
19647         * modules/dirfd (Files): Remove lib/dirfd.h.
19648         (Depends-on): Add dirent, extensions.
19649         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19650         (Include): Specify <dirent.h> instead of dirfd.h.
19651         * modules/dirent (Depends-on): Add link-warning.
19652         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19653         definition of GL_LINK_WARNING.
19654         * NEWS: Mention the change.
19655
19656 2008-10-18  Bruno Haible  <bruno@clisp.org>
19657
19658         Move the euidaccess() declaration to <unistd.h>.
19659         * lib/euidaccess.h: Remove file.
19660         * lib/unistd.in.h (euidaccess): New declaration.
19661         * lib/euidaccess.c: Don't include euidaccess.h.
19662         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19663         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19665         and HAVE_EUIDACCESS.
19666         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19667         (Depends-on): Add unistd.
19668         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19669         (Include): Specify <unistd.h> instead of euidaccess.h.
19670         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19671         HAVE_EUIDACCESS.
19672         * NEWS: Mention the change.
19673
19674 2008-10-18  Bruno Haible  <bruno@clisp.org>
19675
19676         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19677
19678         Move the getdomainname() declaration to <unistd.h>.
19679         * lib/getdomainname.h: Remove file.
19680         * lib/unistd.in.h (getdomainname): New declaration.
19681         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19682         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19683         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19684         HAVE_GETDOMAINNAME.
19685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19686         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19687         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19688         (Depends-on): Add unistd, extensions.
19689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19690         (Includes): Specify <unistd.h> instead of getdomainname.h.
19691         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19692         HAVE_GETDOMAINNAME.
19693         * NEWS: Mention the change.
19694
19695 2008-10-18  Bruno Haible  <bruno@clisp.org>
19696
19697         * modules/dirent: New file.
19698         * m4/dirent_h.m4: New file.
19699         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19700         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19701         * modules/fchdir (Files): Remove lib/dirent.in.h.
19702         (Depends-on): Add dirent.
19703         (Makefile.am): Move rules to modules/dirent.
19704         * doc/posix-headers/dirent.texi: Mention the new module.
19705
19706 2008-10-18  Bruno Haible  <bruno@clisp.org>
19707
19708         Avoid -Wunused-parameter warnings in public gnulib header files.
19709         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19710         macro.
19711         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19712
19713 2008-10-18  Bruno Haible  <bruno@clisp.org>
19714
19715         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19716         * doc/glibc-functions/error.texi: Mention the module 'error'.
19717         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19718         * doc/glibc-functions/getdomainname.texi: Mention the module
19719         'getdomainname'.
19720         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19721         * doc/glibc-functions/getpagesize.texi: Mention the module
19722         'getpagesize'.
19723         * doc/glibc-functions/getusershell.texi: Mention the module
19724         'getusershell'.
19725         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19726         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19727         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19728         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19729         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19730         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19731         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19732         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19733         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19734         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19735         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19736         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19737         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19738         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19739
19740 2008-10-17  Bruno Haible  <bruno@clisp.org>
19741
19742         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19743         HP-UX and IRIX, use -0.0L.
19744         * tests/test-ceill.c (minus_zero): Likewise.
19745         * tests/test-floorl.c (minus_zero): Likewise.
19746         * tests/test-frexpl.c (minus_zero): Likewise.
19747         * tests/test-isnan.c (minus_zerol): Likewise.
19748         * tests/test-isnanl.h (minus_zero): Likewise.
19749         * tests/test-ldexpl.c (minus_zero): Likewise.
19750         * tests/test-roundl.c (minus_zero): Likewise.
19751         * tests/test-signbit.c (minus_zerol): Likewise.
19752         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19753         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19754         * tests/test-truncl.c (minus_zero): Likewise.
19755         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19756         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19757         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19758         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19759
19760 2008-10-17  Bruno Haible  <bruno@clisp.org>
19761
19762         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19763         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19764         that it gets activated only for gcc >= 3.0.
19765         * lib/dirent.in.h: Likewise.
19766         * lib/errno.in.h: Likewise.
19767         * lib/fcntl.in.h: Likewise.
19768         * lib/float.in.h: Likewise.
19769         * lib/iconv.in.h: Likewise.
19770         * lib/inttypes.in.h: Likewise.
19771         * lib/locale.in.h: Likewise.
19772         * lib/math.in.h: Likewise.
19773         * lib/netdb.in.h: Likewise.
19774         * lib/netinet_in.in.h: Likewise.
19775         * lib/search.in.h: Likewise.
19776         * lib/signal.in.h: Likewise.
19777         * lib/spawn.in.h: Likewise.
19778         * lib/stdarg.in.h: Likewise.
19779         * lib/stdint.in.h: Likewise.
19780         * lib/stdio.in.h: Likewise.
19781         * lib/stdlib.in.h: Likewise.
19782         * lib/string.in.h: Likewise.
19783         * lib/strings.in.h: Likewise.
19784         * lib/sys_file.in.h: Likewise.
19785         * lib/sys_ioctl.in.h: Likewise.
19786         * lib/sys_select.in.h: Likewise.
19787         * lib/sys_socket.in.h: Likewise.
19788         * lib/sys_stat.in.h: Likewise.
19789         * lib/sys_time.in.h: Likewise.
19790         * lib/sysexits.in.h: Likewise.
19791         * lib/time.in.h: Likewise.
19792         * lib/unistd.in.h: Likewise.
19793         * lib/wchar.in.h: Likewise.
19794         * lib/wctype.in.h: Likewise.
19795         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19796
19797 2008-10-17  Jim Meyering  <meyering@redhat.com>
19798
19799         ignore-value: don't depend on inline module
19800         * modules/ignore-value (Depends-on): Remove 'inline'.
19801         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19802         Suggestion from Bruno Haible.
19803
19804 2008-10-17  Bruno Haible  <bruno@clisp.org>
19805
19806         New implementation of condition variables for Win32.
19807         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19808         (gl_linked_waitqueue_t): New type.
19809         (gl_cond_t): Use it.
19810         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19811         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19812         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19813         (glthread_cond_init_func, glthread_cond_wait_func,
19814         glthread_cond_timedwait_func, glthread_cond_signal_func,
19815         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19816         Reimplemented on the basis of gl_linked_waitqueue_t.
19817         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19818         gl_waitqueue_t.
19819         (gl_rwlock_t): Update.
19820         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19821
19822 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19823
19824         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19825         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19826
19827 2008-10-17  Jim Meyering  <meyering@redhat.com>
19828
19829         ignore-value: new module
19830         * modules/ignore-value: New file.
19831         * lib/ignore-value.h: New file.
19832         * MODULES.html.sh (Compiler warning management): New section,
19833         just for this module.  More to come.
19834
19835 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19836
19837         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19838         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19839         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19840
19841 2008-10-16  Jim Meyering  <meyering@redhat.com>
19842
19843         openat-die.c: avoid 'no previous prototype' warning
19844         * lib/openat-die.c: Include "openat.h".
19845         Reported by Reuben Thomas <rrt@sc3d.org>.
19846
19847 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19848
19849         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19850         * lib/netdb.in.h: Fix typo.
19851         Reported by Bruno Haible  <bruno@clisp.org>
19852
19853         * lib/netdb.in.h: Include sys/socket.h for platforms without
19854         netdb.h, to get structures like hostent on MinGW.
19855         * modules/netdb (Depends-on): Add sys_socket.
19856
19857 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19858
19859         * modules/netdb, modules/netdb-tests: New file.
19860         * m4/netdb_h.m4: New file.
19861         * lib/netdb.in.h: Add, currently just an empty file pending
19862         definitions.
19863         * tests/test-netdb.c: New file.
19864         * doc/posix-headers/netdb.texi: Mention that we replace it if
19865         needed.
19866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19867         netdb.
19868
19869 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19870
19871         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19872         with code.
19873
19874 2008-10-13  Bruno Haible  <bruno@clisp.org>
19875
19876         * lib/glthread/cond.c (glthread_cond_wait_func,
19877         glthread_cond_timedwait_func): Add a comment.
19878
19879 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19880
19881         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19882         * tests/test-select.c: Likewise,
19883
19884 2008-10-13  Bruno Haible  <bruno@clisp.org>
19885
19886         * lib/glthread/cond.c (glthread_cond_wait_func,
19887         glthread_cond_timedwait_func): Fix variable name.
19888         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19889
19890 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19891
19892         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19894         struct sockaddr.sa_len.
19895         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19896
19897 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19898
19899         * build-aux/pmccabe2html: Add css and css_url parameters.
19900
19901 2008-10-12  Bruno Haible  <bruno@clisp.org>
19902
19903         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19904         calling aclx_get.
19905         Reported by Rainer Tammer <tammer@tammer.net>.
19906
19907 2008-10-12  Bruno Haible  <bruno@clisp.org>
19908
19909         Use msvcrt aware primitives for creation/termination of Win32 threads.
19910         * lib/glthread/thread.c: Include <process.h>.
19911         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19912         (wrapper_func): Update signature.
19913         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19914
19915 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19916             Bruno Haible  <bruno@clisp.org>
19917
19918         Provide a Win32 implementation of the 'cond' module.
19919         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19920         * lib/glthread/cond.c (glthread_cond_init_func,
19921         glthread_cond_wait_func, glthread_cond_timedwait_func,
19922         glthread_cond_signal_func, glthread_cond_broadcast_func,
19923         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19924         * modules/cond (Dependencies): Add gettimeofday.
19925
19926 2008-10-11  Bruno Haible  <bruno@clisp.org>
19927
19928         Make sleep work on older versions of mingw.
19929         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19930         only whether it exists.
19931         * doc/posix-functions/sleep.texi: Mention the problem with older
19932         versions of mingw.
19933
19934 2008-10-11  Bruno Haible  <bruno@clisp.org>
19935
19936         New module 'shutdown'.
19937         * modules/shutdown: New file.
19938         * lib/sys_socket.in.h (shutdown): New declaration.
19939         * lib/winsock.c (shutdown): New function.
19940         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19941         GNULIB_SHUTDOWN.
19942         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19943         * doc/posix-functions/shutdown.texi: Document the new module.
19944
19945 2008-10-11  Jim Meyering  <meyering@redhat.com>
19946
19947         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19948
19949 2008-10-11  Bruno Haible  <bruno@clisp.org>
19950
19951         New module 'fclose'.
19952         * modules/fclose: New file.
19953         * lib/stdio.in.h (fclose): New declaration.
19954         * lib/fclose.c: New file.
19955         * m4/fclose.m4: New file.
19956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19957         REPLACE_FCLOSE.
19958         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19959         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19960         REPLACE_FCLOSE.
19961         * modules/close (Depends-on): fclose.
19962         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19963
19964 2008-10-11  Bruno Haible  <bruno@clisp.org>
19965
19966         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19967         set errno and don't call _close.
19968
19969 2008-10-10  Bruno Haible  <bruno@clisp.org>
19970
19971         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19972         ACL, not afterwards. Fixes test failure on Cygwin.
19973
19974 2008-10-09  Ben Pfaff  <blp@gnu.org>
19975
19976         * build-aux/announce-gen: Fix gnulib version related part of usage
19977         message.  Die with a useful error message if no tarballs are
19978         found.
19979
19980 2008-10-10  Jim Meyering  <meyering@redhat.com>
19981
19982         bootstrap: use git's --depth=N option only if it's supported
19983         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19984         recognize the --depth option.  Reported by Pádraig Brady.
19985
19986 2008-10-09  Bruno Haible  <bruno@clisp.org>
19987
19988         New module 'ioctl'.
19989         * modules/ioctl: New file.
19990         * lib/sys_socket.in.h (ioctl): Remove declaration.
19991         * lib/winsock.c: Include <sys/ioctl.h>.
19992         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19993         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19994         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19995         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19996         * doc/posix-functions/ioctl.texi: Mention the new module.
19997
19998 2008-10-09  Bruno Haible  <bruno@clisp.org>
19999
20000         New module 'sys_ioctl'.
20001         * lib/sys_ioctl.in.h: New file.
20002         * m4/sys_ioctl_h.m4: New file.
20003         * modules/sys_ioctl: New file.
20004         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20005
20006 2008-10-09  Bruno Haible  <bruno@clisp.org>
20007
20008         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20009         * lib/winsock.c: Include <stdarg.h>.
20010         (rpl_ioctl): Change to second argument 'int' and then varargs.
20011
20012 2008-10-09  Bruno Haible  <bruno@clisp.org>
20013
20014         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20015         when the sys_socket module is present and the system has <winsock2.h>.
20016
20017 2008-10-09  Bruno Haible  <bruno@clisp.org>
20018
20019         * doc/posix-functions/close.texi: Mention module 'close' instead of
20020         module 'sys_socket'.
20021
20022 2008-10-09  Bruno Haible  <bruno@clisp.org>
20023
20024         * doc/glibc-headers/sys_ioctl.texi: New file.
20025         * doc/gnulib.texi: Include it.
20026
20027 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20028             Bruno Haible  <bruno@clisp.org>
20029
20030         Combine the two replacements of 'close'.
20031         * lib/sys_socket.in.h (close): Define to a reminder to include
20032         <unistd.h>.
20033         (_gl_close_fd_maybe_socket): New declaration.
20034         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20035         * lib/winsock.c (close): Remove undefinition.
20036         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20037         needed for the gnulib module 'close'.
20038         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20039         define to an error symbol or to a warning, if suitable.
20040         * lib/close.c: Include <sys/socket.h>.
20041         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20042         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20043         UNISTD_H_HAVE_WINSOCK2_H.
20044         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20046         UNISTD_H_HAVE_WINSOCK2_H.
20047         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20048         (configure.ac): Set a module indicator.
20049         (Makefile.am): Substitute GNULIB_CLOSE.
20050         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20051         * modules/poll-tests (Depends-on): Add close.
20052         * modules/select-tests (Depends-on): Likewise.
20053
20054 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20055             Bruno Haible  <bruno@clisp.org>
20056
20057         New module 'close'.
20058         * modules/close: New file.
20059         * lib/unistd.in.h (close): Move declaration out of the
20060         FCHDIR_REPLACEMENT scope.
20061         (_gl_unregister_fd): New declaration.
20062         * lib/close.c: New file.
20063         * lib/fchdir.c (rpl_close): Remove function.
20064         * m4/close.m4: New file.
20065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20066         close.
20067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20068         REPLACE_CLOSE.
20069         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20070         REPLACE_CLOSE.
20071         * modules/fchdir (Depends-on): Add close.
20072
20073 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20074             Bruno Haible  <bruno@clisp.org>
20075
20076         * lib/fcntl.in.h (open): Simplify conditionals.
20077         (_gl_register_fd): New declaration.
20078         * lib/fchdir.c (rpl_open): Remove function.
20079         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20080         also.
20081         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20083         open.
20084
20085 2008-10-09  Jim Meyering  <meyering@redhat.com>
20086
20087         GNUmakefile: use the more name-space-friendly "_version"
20088         * top/GNUmakefile (_dummy): Update.
20089         (_version): Rename from "version".
20090
20091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20092             Bruno Haible  <bruno@clisp.org>
20093
20094         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20095         rpl_close.
20096         (_gl_register_fd): New function, extracted from rpl_open.
20097         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20098         (rpl_open, rpl_opendir): Use _gl_register_fd.
20099
20100 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20101
20102         Fix organization of 'open' replacement.
20103         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20104         (gl_FUNC_OPEN): Use it.
20105         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20106
20107 2008-10-08  Bruno Haible  <bruno@clisp.org>
20108
20109         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20110
20111 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20112
20113         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20114         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20115         listen).
20116
20117 2008-10-08  Eric Blake  <ebb9@byu.net>
20118
20119         GNUmakefile: add 'make version' target
20120         * top/GNUmakefile (_curr-ver): Split version update rules...
20121         (version): ...into a target.
20122
20123 2008-10-07  Bruno Haible  <bruno@clisp.org>
20124
20125         Use a more portable replacement expression for -0.0L.
20126         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20127         instead of -0.0L. Fix m4 quotation.
20128
20129         * tests/test-signbit.c: Include <float.h>.
20130         (minus_zero): New variable.
20131         (test_signbitl): Use minus_zero instead of -zero.
20132         * modules/signbit-tests (Depends-on): Add float.
20133
20134         * tests/test-ceill.c: Include <float.h>.
20135         (zero): Remove variable.
20136         (minus_zero): New variable.
20137         (main): Use minus_zero instead of -zero.
20138         * modules/ceill-tests (Depends-on): Add float.
20139
20140         * tests/test-floorl.c: Include <float.h>.
20141         (zero): Remove variable.
20142         (minus_zero): New variable.
20143         (main): Use minus_zero instead of -zero.
20144         * modules/floorl-tests (Depends-on): Add float.
20145
20146         * tests/test-roundl.c: Include <float.h>.
20147         (zero): Remove variable.
20148         (minus_zero): New variable.
20149         (main): Use minus_zero instead of -zero.
20150         * modules/roundl-tests (Depends-on): Add float.
20151
20152         * tests/test-truncl.c: Include <float.h>.
20153         (zero): Remove variable.
20154         (minus_zero): New variable.
20155         (main): Use minus_zero instead of -zero.
20156         * modules/truncl-tests (Depends-on): Add float.
20157
20158         * tests/test-frexpl.c (zero): Remove variable.
20159         (minus_zero): New variable.
20160         (main): Use minus_zero instead of -zero.
20161         * modules/frexpl-tests (Depends-on): Add float.
20162
20163         * tests/test-isnan.c (zerol): Remove variable.
20164         (minus_zerol): New variable.
20165         (test_long_double): Use minus_zerol instead of -zerol.
20166         * modules/isnan-tests (Depends-on): Add float.
20167
20168         * tests/test-isnanl.h (zero): Remove variable.
20169         (minus_zero): New variable.
20170         (main): Use minus_zero instead of -zero.
20171         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20172         * modules/isnanl-tests (Depends-on): Add float.
20173
20174         * tests/test-ldexpl.c (zero): Remove variable.
20175         (minus_zero): New variable.
20176         (main): Use minus_zero instead of -zero.
20177         * modules/ldexpl-tests (Depends-on): Add float.
20178
20179         * tests/test-snprintf-posix.h (zerol): Remove variable.
20180         (minus_zerol): New variable.
20181         (test_function): Use minus_zerol instead of -zerol.
20182         * modules/snprintf-posix-tests (Depends-on): Add float.
20183         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20184
20185         * tests/test-sprintf-posix.h (zerol): Remove variable.
20186         (minus_zerol): New variable.
20187         (test_function): Use minus_zerol instead of -zerol.
20188         * modules/sprintf-posix-tests (Depends-on): Add float.
20189         * modules/vsprintf-posix-tests (Depends-on): Add float.
20190
20191         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20192         (minus_zerol): New variable.
20193         (test_function): Use minus_zerol instead of -zerol.
20194         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20195
20196         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20197         (minus_zerol): New variable.
20198         (test_function): Use minus_zerol instead of -zerol.
20199         * modules/vasprintf-posix-tests (Depends-on): Add float.
20200
20201 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20202
20203         * MODULES.html.sh (Support for building documentation): Mention
20204         pmccabe2html.  Sort entries.
20205
20206         Add pmccabe2html module, from gnupdf.
20207         * build-aux/pmccabe.css: New file.
20208         * build-aux/pmccabe2html: New file.
20209         * m4/pmccabe2html.m4: New file.
20210         * modules/pmccabe2html: New file.
20211
20212 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20213
20214         flock: new module
20215         * MODULES.html.sh: Add to list of modules.
20216         * lib/flock.c: flock implementation for Windows and Unix systems
20217         which have fcntl.
20218         * doc/glibc-functions/flock.texi: Update documentation.
20219         * lib/sys_file.in.h: <sys/file.h> header file.
20220         * m4/flock.m4: M4 macros.
20221         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20222         * modules/flock: flock module.
20223         * modules/flock-tests: flock tests module.
20224         * modules/sys_file: sys/file.h module.
20225         * tests/test-flock.c: test suite for flock.
20226
20227 2008-10-06  Jim Meyering  <meyering@redhat.com>
20228
20229         bootstrap: check for LT_INIT more portably still ;-)
20230         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20231         Spotted by Bruno Haible.
20232
20233 2008-10-06  Eric Blake  <ebb9@byu.net>
20234
20235         test-signbit: avoid tripping Irix cc bug on -0.0L
20236         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20237         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20238         entire testsuite consistent and avoids an Irix 6.2 bug.
20239
20240 2008-10-05  Bruno Haible  <bruno@clisp.org>
20241             Jim Meyering  <jim@meyering.net>
20242
20243         Add an option for ignoring EPIPE during close_stdout.
20244         * lib/closeout.h: Include <stdbool.h>.
20245         (close_stdout_set_ignore_EPIPE): New declaration.
20246         * lib/closeout.c: Include <stdbool.h>.
20247         (ignore_EPIPE): New variable.
20248         (close_stdout_set_ignore_EPIPE): New function.
20249         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20250         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20251         failure.
20252         * modules/closeout (Depends-on): Add stdbool.
20253
20254 2008-10-05  Bruno Haible  <bruno@clisp.org>
20255
20256         * modules/accept: New file.
20257         * modules/bind: New file.
20258         * modules/connect: New file.
20259         * modules/getpeername: New file.
20260         * modules/getsockname: New file.
20261         * modules/getsockopt: New file.
20262         * modules/listen: New file.
20263         * modules/recv: New file.
20264         * modules/recvfrom: New file.
20265         * modules/send: New file.
20266         * modules/sendto: New file.
20267         * modules/setsockopt: New file.
20268         * modules/socket: New file.
20269         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20270         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20271         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20272         the particular module is requested. Add a link warning when the
20273         particular module is not requested.
20274         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20275         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20276         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20277         the particular module is requested.
20278         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20279         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20280         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20281         * modules/sys_socket (Depends-on): Add link-warning.
20282         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20283         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20284         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20285         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20286         GL_LINK_WARNING.
20287         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20288         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20289         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20290         * doc/posix-functions/getpeername.texi: Mention the new module
20291         'getpeername'.
20292         * doc/posix-functions/getsockname.texi: Mention the new module
20293         'getsockname'.
20294         * doc/posix-functions/getsockopt.texi: Mention the new module
20295         'getsockopt'.
20296         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20297         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20298         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20299         * doc/posix-functions/send.texi: Mention the new module 'send'.
20300         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20301         * doc/posix-functions/setsockopt.texi: Mention the new module
20302         'setsockopt'.
20303         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20304         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20305         listen, connect, accept.
20306         * modules/select-tests (Depends-on): Likewise.
20307
20308 2008-10-05  Bruno Haible  <bruno@clisp.org>
20309
20310         * lib/winsock.c (strerror): Remove unused #undef.
20311         (rpl_close): Remove unused local variable.
20312
20313         * modules/sys_socket (Depends-on); Add errno.
20314
20315 2008-10-05  Bruno Haible  <bruno@clisp.org>
20316
20317         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20318         (select): Add a link warning when the 'select' module is not used.
20319         * modules/sys_select (Depends-on): Add link-warning.
20320         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20321         Suggested by Paolo Bonzini.
20322
20323 2008-10-05  Jim Meyering  <meyering@redhat.com>
20324
20325         bootstrap: check for LT_INIT more portably
20326         * build-aux/bootstrap: Avoid using grep -E, since it's not
20327         portable enough.  Suggestion from Bruno Haible.
20328
20329 2008-10-05  Bruno Haible  <bruno@clisp.org>
20330
20331         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20332         as being fixed by gnulib.
20333
20334 2008-10-05  Bruno Haible  <bruno@clisp.org>
20335
20336         * modules/select-tests: New file, mostly copied from
20337         modules/sys_select-tests.
20338         * tests/test-select.c: New file, mostly copied from
20339         tests/test-sys_select.c.
20340         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20341         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20342         (Makefile.am): Remove test_sys_select_LDADD.
20343
20344         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20345         to an undefined symbol, for an error message.
20346         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20347         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20348         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20349         winsock-select.c here.
20350         * modules/sys_select (Files): Remove lib/winsock-select.c.
20351         (Depends-on): Remove alloca.
20352         (Makefile.am): Substitute GNULIB_SELECT.
20353         * modules/select: New file.
20354         * doc/posix-functions/select.texi: Update.
20355
20356 2008-10-05  Bruno Haible  <bruno@clisp.org>
20357
20358         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20359         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20360         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20361         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20362         getdtablesize.
20363         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20364         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20365
20366 2008-10-05  Bruno Haible  <bruno@clisp.org>
20367
20368         * modules/getdtablesize-tests: New file.
20369         * tests/test-getdtablesize.c: New file.
20370
20371         New module 'getdtablesize'.
20372         * lib/unistd.in.h (getdtablesize): New declaration.
20373         * lib/getdtablesize.c: New file.
20374         * m4/getdtablesize.m4: New file.
20375         * modules/getdtablesize: New file.
20376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20377         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20378         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20379         HAVE_GETDTABLESIZE.
20380         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20381
20382 2008-10-05  Bruno Haible  <bruno@clisp.org>
20383
20384         * modules/sched (Makefile.am): Fix typo.
20385         Reported by Simon Josefsson.
20386
20387 2008-10-05  Jim Meyering  <meyering@redhat.com>
20388
20389         bootstrap: check for LT_INIT, too
20390         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20391         are deprecated.  Suggestion from Ralf Wildenhues.
20392
20393 2008-10-05  Bruno Haible  <bruno@clisp.org>
20394
20395         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20396         overriding them by ours.
20397         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20398
20399 2008-10-05  Jim Meyering  <meyering@redhat.com>
20400
20401         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20402         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20403         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20404
20405 2008-10-04  Bruno Haible  <bruno@clisp.org>
20406
20407         * modules/dup2 (License): Change to LGPLv2+.
20408         * modules/sleep (License): Likewise.
20409         * modules/perror (License): Likewise.
20410         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20411         Blake.
20412         * modules/signal (License): Likewise.
20413         * modules/sigprocmask (License): Likewise.
20414         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20415         Meyering.
20416
20417 2008-10-04  Bruno Haible  <bruno@clisp.org>
20418
20419         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20420         Reported by Rainer Tammer <tammer@tammer.net>.
20421
20422 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20423             Bruno Haible  <bruno@clisp.org>
20424
20425         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20426         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20427         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20428
20429 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20430
20431         filevercmp: new module
20432         * lib/filevercmp.h: New function filevercmp comparing version strings.
20433         * lib/filevercmp.c: Implementation of filevercmp function.
20434         * modules/filevercmp: Module metadata.
20435         * tests/test-filevercmp.c: Unit test for new module.
20436         * modules/filevercmp-tests: Unit test metadata.
20437         * MODULES.html.sh: Add filevercmp module.
20438
20439 2008-10-03  Bruno Haible  <bruno@clisp.org>
20440
20441         * lib/c-ctype.h: Add comment.
20442         Reported by Jim Meyering.
20443
20444 2008-10-02  Bruno Haible  <bruno@clisp.org>
20445
20446         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20447
20448 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20449
20450         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20451         name of bootstrap.conf accordingly.
20452
20453 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20454
20455         * build-aux/bootstrap: Install git-merge-changelog configuration
20456         items into .gitconfig if needed.
20457
20458 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20459
20460         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20461         git repository, and initialize/update it accordingly.
20462
20463 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20464
20465         * modules/fsync-tests: New file.
20466         * tests/test-fsync.c: New file.
20467
20468         New module 'fsync'.
20469         * lib/fsync.c: New file.
20470         * m4/fsync.m4: New file.
20471         * modules/fsync: New file.
20472         * lib/unistd.in.h (fsync): New declaration.
20473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20474         GNULIB_FSYNC and HAVE_FSYNC.
20475         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20476         * MODULES.html.sh (posix_functions): Add fsync.
20477         * doc/posix-functions/fsync.texi: Mention the new module.
20478
20479 2008-10-02  Jim Meyering  <meyering@redhat.com>
20480
20481         fts.c: sync with similar code from coreutils' remove.c
20482         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20483         Guard also with "#if defined __linux__", since for now at least,
20484         this code is Linux-kernel-specific.
20485
20486 2008-10-02  Jim Meyering  <meyering@redhat.com>
20487
20488         fts: bug fixes
20489         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20490         Include <sys/vfs.h>, not <sys/statfs.h>.
20491
20492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20493         Include <sys/vfs.h>, not <sys/statfs.h>.
20494
20495 2008-10-01  Bruno Haible  <bruno@clisp.org>
20496
20497         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20498         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20499         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20500         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20501         * doc/posix-functions/posix_spawnp.texi: Likewise.
20502         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20503         whether posix_spawn actually works.
20504         * m4/pipe.m4 (gl_PIPE): Likewise.
20505         * modules/execute (Files): Add m4/posix_spawn.m4.
20506         * modules/pipe (Files): Add m4/posix_spawn.m4.
20507         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20508
20509 2008-10-01  Jim Meyering  <meyering@redhat.com>
20510
20511         remove trailing spaces
20512         * NEWS: Likewise.
20513         * lib/poll.c (poll): Likewise.
20514         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20515         * lib/winsock.c (rpl_close): Likewise.
20516         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20517         * modules/yield: Likewise.
20518         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20519         * tests/test-sys_select.c (connect_to_socket): Likewise.
20520
20521         fts.c: adjust a new interface to be more generally useful
20522         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20523         (fts_build): Adjust caller.
20524
20525 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20526
20527         * modules/cond-tests: New file.
20528         * tests/test-cond.c: New file.
20529
20530 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20531             Bruno Haible  <bruno@clisp.org>
20532
20533         * modules/cond (Dependencies): Add errno, time.
20534         * lib/glthread/cond.h: Include <time.h>.
20535         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20536         across platforms.
20537
20538 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20539             Bruno Haible  <bruno@clisp.org>
20540
20541         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20542
20543 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20544             Bruno Haible  <bruno@clisp.org>
20545
20546         * modules/tls-tests (Depends-on): Add thread, yield.
20547         (configure.ac): Remove all checks.
20548         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20549         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20550         gl_thread_self): Remove definitions. Include glthread/thread.h and
20551         glthread/yield.h instead.
20552         (test_tls): Pass an additional NULL argument to gl_thread_join.
20553
20554 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20555             Bruno Haible  <bruno@clisp.org>
20556
20557         * modules/lock-tests (Depends-on): Add thread, yield.
20558         (configure.ac): Remove all checks.
20559         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20560         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20561         gl_thread_self): Remove definitions. Include glthread/thread.h and
20562         glthread/yield.h instead.
20563         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20564         additional NULL argument to gl_thread_join.
20565
20566 2008-09-30  Bruno Haible  <bruno@clisp.org>
20567
20568         Fix the Win32 implementation of the 'thread' module.
20569         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20570         pointer type.
20571         (gl_thread_self): Invoke gl_thread_self_func.
20572         (gl_thread_self_func): New declaration.
20573         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20574         (do_init_self_key, init_self_key): New functions.
20575         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20576         Remove some fields.
20577         (running_threads, running_lock): Remove variables.
20578         (get_current_thread_handle): New function.
20579         (gl_thread_self_func, wrapper_func, glthread_create_func,
20580         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20581         simplified.
20582
20583 2008-09-30  Bruno Haible  <bruno@clisp.org>
20584
20585         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20586         files.
20587
20588 2008-09-30  Jim Meyering  <meyering@redhat.com>
20589
20590         fts.m4: correct the test for statfs.f_type
20591         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20592         when checking for statfs.f_type.
20593
20594 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20595
20596         tests: avoid some compiler warnings
20597         * tests/test-memchr.c (main): Pass NULL indirectly.
20598         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20599
20600 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
20601
20602         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20603         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20604         exactly specified dayshifts.
20605         (dayshift): New rule.
20606         (rel): Add dayshift.
20607         (relative_time_table) [tomorrow, yesterday, today, now]:
20608         Use tDAY_SHIFT in place of tDAY_UNIT.
20609         * tests/test-getdate.c: Add tests for now-disallowed countable
20610         dayshifts, e.g., "4 yesterday ago".
20611
20612 2008-09-29  Bruno Haible  <bruno@clisp.org>
20613
20614         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20615         * tests/test-posix_spawn1.in.sh: Renamed from
20616         tests/test-posix_spawn.in.sh.
20617         * tests/test-posix_spawn2.c: New file.
20618         * tests/test-posix_spawn2.in.sh: New file.
20619         * modules/posix_spawnp-tests (Files): Update.
20620         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20621
20622 2008-09-29  Bruno Haible  <bruno@clisp.org>
20623
20624         Propagate effects of putenv/setenv/unsetenv to child processes.
20625         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20626         * lib/pipe.c (create_pipe): Likewise.
20627
20628 2008-09-29  Bruno Haible  <bruno@clisp.org>
20629
20630         Enable use of shell scripts as executables in mingw.
20631         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20632         run the program as a shell script.
20633         * lib/pipe.c (create_pipe): Likewise.
20634         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20635         resulting array.
20636
20637 2008-09-29  Eric Blake  <ebb9@byu.net>
20638
20639         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20640
20641 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20642
20643         * doc/posix-functions/accept.texi: Update mingw problems.
20644         * doc/posix-functions/bind.texi: Update mingw problems.
20645         * doc/posix-functions/close.texi: Update mingw problems.
20646         * doc/posix-functions/connect.texi: Update mingw problems.
20647         * doc/posix-functions/getpeername.texi: Update mingw problems.
20648         * doc/posix-functions/getsockname.texi: Update mingw problems.
20649         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20650         * doc/posix-functions/ioctl.texi: Update mingw problems.
20651         * doc/posix-functions/listen.texi: Update mingw problems.
20652         * doc/posix-functions/recv.texi: Update mingw problems.
20653         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20654         * doc/posix-functions/select.texi: Update mingw problems.
20655         * doc/posix-functions/send.texi: Update mingw problems.
20656         * doc/posix-functions/sendto.texi: Update mingw problems.
20657         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20658         * doc/posix-functions/socket.texi: Update mingw problems.
20659
20660 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20661             Bruno Haible  <bruno@clisp.org>
20662
20663         * lib/sys_select.in.h: Include sys/time.h.
20664         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20665         * modules/sys_select: Depend on sys_time.
20666         * tests/test-sys_select.c: Test that sys/select.h defines struct
20667         timeval fully.
20668
20669 2008-09-29  Bruno Haible  <bruno@clisp.org>
20670
20671         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20672         * lib/sys_select.in.h: Likewise.
20673
20674 2008-09-29  Bruno Haible  <bruno@clisp.org>
20675
20676         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20677
20678 2008-09-29  Bruno Haible  <bruno@clisp.org>
20679
20680         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20681         Set LIBSOCKET instead of augmenting LIBS.
20682         * modules/sockets (Link): New section.
20683         * modules/sockets-tests (test_sockets_LDADD): New variable.
20684         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20685         * modules/poll-tests (test_poll_LDADD): New variable.
20686         * NEWS: Document the change.
20687
20688 2008-09-29  Bruno Haible  <bruno@clisp.org>
20689
20690         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20691         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20692         ARPA_INET_H directly.
20693         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20694
20695 2008-09-28  Bruno Haible  <bruno@clisp.org>
20696
20697         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20698         from gl_HEADER_SYS_SOCKET.
20699         (gl_HEADER_SYS_SOCKET): Invoke it.
20700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20701
20702 2008-09-28  Bruno Haible  <bruno@clisp.org>
20703
20704         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20705         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20706         Needed on OSF/1 4.0.
20707
20708 2008-09-28  Bruno Haible  <bruno@clisp.org>
20709
20710         Override open more carefully.
20711         * lib/open.c (orig_open): New function.
20712         (rpl_open): Use orig_open instead of open.
20713         * lib/fcntl.in.h: Add special invocation convention.
20714         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20715         (gl_FUNC_OPEN): Invoke it.
20716
20717         Override freopen more carefully.
20718         * lib/freopen.c (orig_freopen): New function.
20719         (rpl_freopen): Use orig_freopen instead of freopen.
20720         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20721         (gl_FUNC_FREOPEN): Invoke it.
20722
20723         Override fopen more carefully.
20724         * lib/fopen.c (orig_fopen): New function.
20725         (rpl_fopen): Use orig_fopen instead of fopen.
20726         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20727         (gl_FUNC_FOPEN): Invoke it.
20728         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20729
20730 2008-09-28  Bruno Haible  <bruno@clisp.org>
20731
20732         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20733         SIGPIPE.
20734
20735 2008-09-28  Bruno Haible  <bruno@clisp.org>
20736
20737         * tests/test-sigaction.c (handler, main): Disable the check whether
20738         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20739         glibc systems with LinuxThreads.
20740
20741 2008-09-28  Bruno Haible  <bruno@clisp.org>
20742
20743         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20744
20745         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20746         with AIX xlc.
20747         * lib/fcntl.in.h (open): Likewise.
20748         Reported by Rainer Tammer <tammer@tammer.net>.
20749
20750 2008-09-28  Bruno Haible  <bruno@clisp.org>
20751
20752         * modules/posix_spawnp-tests: New file.
20753         * tests/test-posix_spawn.c: New file.
20754         * tests/test-posix_spawn.in.sh: New file.
20755
20756         New module 'posix_spawnp'.
20757         * modules/posix_spawnp: New file.
20758         * lib/spawnp.c: New file, from GNU libc with modifications.
20759         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20760
20761         New module 'posix_spawn'.
20762         * modules/posix_spawn: New file.
20763         * lib/spawn.c: New file, from GNU libc with modifications.
20764         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20765
20766         New module 'posix_spawnattr_destroy'.
20767         * modules/posix_spawnattr_destroy: New file.
20768         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20769         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20770         module.
20771
20772         New module 'posix_spawnattr_setsigmask'.
20773         * modules/posix_spawnattr_setsigmask: New file.
20774         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20775         modifications.
20776         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20777         new module.
20778
20779         New module 'posix_spawnattr_getsigmask'.
20780         * modules/posix_spawnattr_getsigmask: New file.
20781         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20782         modifications.
20783         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20784         new module.
20785
20786         New module 'posix_spawnattr_setsigdefault'.
20787         * modules/posix_spawnattr_setsigdefault: New file.
20788         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20789         modifications.
20790         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20791         new module.
20792
20793         New module 'posix_spawnattr_getsigdefault'.
20794         * modules/posix_spawnattr_getsigdefault: New file.
20795         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20796         modifications.
20797         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20798         new module.
20799
20800         New module 'posix_spawnattr_setschedpolicy'.
20801         * modules/posix_spawnattr_setschedpolicy: New file.
20802         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20803         modifications.
20804         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20805         new module.
20806
20807         New module 'posix_spawnattr_getschedpolicy'.
20808         * modules/posix_spawnattr_getschedpolicy: New file.
20809         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20810         modifications.
20811         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20812         new module.
20813
20814         New module 'posix_spawnattr_setschedparam'.
20815         * modules/posix_spawnattr_setschedparam: New file.
20816         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20817         modifications.
20818         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20819         new module.
20820
20821         New module 'posix_spawnattr_getschedparam'.
20822         * modules/posix_spawnattr_getschedparam: New file.
20823         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20824         modifications.
20825         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20826         new module.
20827
20828         New module 'posix_spawnattr_setpgroup'.
20829         * modules/posix_spawnattr_setpgroup: New file.
20830         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20831         modifications.
20832         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20833         module.
20834
20835         New module 'posix_spawnattr_getpgroup'.
20836         * modules/posix_spawnattr_getpgroup: New file.
20837         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20838         modifications.
20839         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20840         module.
20841
20842         New module 'posix_spawnattr_setflags'.
20843         * modules/posix_spawnattr_setflags: New file.
20844         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20845         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20846         module.
20847
20848         New module 'posix_spawnattr_getflags'.
20849         * modules/posix_spawnattr_getflags: New file.
20850         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20851         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20852         module.
20853
20854         New module 'posix_spawnattr_init'.
20855         * modules/posix_spawnattr_init: New file.
20856         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20857         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20858         module.
20859
20860         New module 'posix_spawn_file_actions_destroy'.
20861         * modules/posix_spawn_file_actions_destroy: New file.
20862         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20863         modifications.
20864         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20865         the new module.
20866
20867         New module 'posix_spawn_file_actions_addopen'.
20868         * modules/posix_spawn_file_actions_addopen: New file.
20869         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20870         modifications.
20871         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20872         the new module.
20873
20874         New module 'posix_spawn_file_actions_adddup2'.
20875         * modules/posix_spawn_file_actions_adddup2: New file.
20876         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20877         modifications.
20878         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20879         the new module.
20880
20881         New module 'posix_spawn_file_actions_addclose'.
20882         * modules/posix_spawn_file_actions_addclose: New file.
20883         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20884         modifications.
20885         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20886         the new module.
20887
20888         New module 'posix_spawn_file_actions_init'.
20889         * modules/posix_spawn_file_actions_init: New file.
20890         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20891         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20892         new module.
20893
20894         New module 'posix_spawn-internal'.
20895         * modules/posix_spawn-internal: New file.
20896         * lib/spawn_int.h: New file, from GNU libc with modifications.
20897         * lib/spawni.c: New file, from GNU libc with modifications.
20898         * m4/posix_spawn.m4: New file.
20899
20900         New module 'spawn'.
20901         * modules/spawn: New file.
20902         * lib/spawn.in.h: New file, from GNU libc with modifications.
20903         * m4/spawn_h.m4: New file.
20904         * doc/posix-headers/spawn.texi: Mention the new module.
20905
20906 2008-09-28  Bruno Haible  <bruno@clisp.org>
20907
20908         * modules/sched-tests: New file.
20909         * tests/test-sched.c: New file.
20910
20911         New module 'sched'.
20912         * modules/sched: New file.
20913         * lib/sched.in.h: New file.
20914         * m4/sched_h.m4: New file.
20915         * doc/posix-headers/sched.texi: Mention the new module.
20916
20917 2008-09-27  Eric Blake  <ebb9@byu.net>
20918
20919         Fix previous patch, and tweak references to $0.
20920         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20921         (func_version, func_gnulib_dir): Don't call this program
20922         gnulib-tool.
20923         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20924         with using $0 in function.
20925         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20926         (func_fatal_error): Reuse the name the user invoked us with.
20927
20928 2008-09-27  Bruno Haible  <bruno@clisp.org>
20929
20930         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20931         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20932         (gl_ICONV_H): Not here.
20933         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20934         instead of assigning ICONV_H directly.
20935
20936         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20938         WCHAR_H directly.
20939
20940 2008-09-27  Bruno Haible  <bruno@clisp.org>
20941
20942         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20943         * modules/arpa_inet (Depends-on): Add link-warning.
20944         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20945         * modules/unistd (Makefile.am): Likewise.
20946
20947 2008-09-26  Bruno Haible  <bruno@clisp.org>
20948
20949         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20950         variables.
20951         (func_version): Essentially copied from gnulib-tool.
20952         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20953         func_readlink): Copied from gnulib-tool.
20954
20955 2008-09-26  Bruno Haible  <bruno@clisp.org>
20956
20957         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20958         invoking git-version-gen.
20959
20960 2008-09-26  Bruno Haible  <bruno@clisp.org>
20961
20962         * posix-modules: Update to directory names changed on 2008-01-19.
20963         Remove commas in output before splitting into words. No more need to
20964         avoid 'ftruncate' since 2007-02-19.
20965
20966 2008-09-26  Bruno Haible  <bruno@clisp.org>
20967
20968         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20969
20970 2008-09-26  Bruno Haible  <bruno@clisp.org>
20971
20972         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20973         * modules/fwriteerror (Depends-on): Add errno.
20974
20975 2008-09-26  Bruno Haible  <bruno@clisp.org>
20976
20977         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20978         * tests/test-vc-list-files-cvs.sh: Likewise.
20979
20980 2008-09-26  Bruno Haible  <bruno@clisp.org>
20981
20982         * doc/posix-headers/sys_resource.texi: Reorder items.
20983
20984 2008-09-26  Jim Meyering  <meyering@redhat.com>
20985
20986         fts: tweak inode comparison function
20987         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20988         inode numbers, as documented.
20989
20990         fts: sort dirent entries on inode number before traversing
20991         This avoids a quadratic, seek-related performance penalty when
20992         operating on a directory containing many entries (measurable at 10k;
20993         3.5 hours at 2 million entries with a cold cache) on certain types
20994         of file systems, including ext3 and ext4, but not tmpfs.
20995         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20996         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20997         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20998         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20999         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21000         (fts_build): Set the stat.st_ino member from D_INO.
21001         If it is likely to be useful, sort dirent entries on inode number.
21002
21003         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21004         and the struct statfs.f_type member.
21005         * modules/fts (Depends-on): Add d-ino.
21006
21007 2008-09-26  Bruno Haible  <bruno@clisp.org>
21008
21009         * modules/sigpipe-die (Depends-on): Add sigpipe.
21010
21011         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21012         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21013         and GNULIB_STDIO_H_SIGPIPE are set.
21014         * lib/stdio-write.c: New file.
21015         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21016         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21017         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21018         REPLACE_STDIO_WRITE_FUNCS.
21019         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21020         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21021         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21022         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21023         * modules/stdio (Files): Add lib/stdio-write.c.
21024         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21025         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21026         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21027         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21028         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21029         REPLACE_FPRINTF_POSIX.
21030         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21031         REPLACE_PRINTF_POSIX.
21032         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21033         REPLACE_VFPRINTF_POSIX.
21034         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21035         REPLACE_VPRINTF_POSIX.
21036         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21037         SIGPIPE issue.
21038         * doc/posix-functions/fputc.texi: Likewise.
21039         * doc/posix-functions/fputs.texi: Likewise.
21040         * doc/posix-functions/fwrite.texi: Likewise.
21041         * doc/posix-functions/printf.texi: Likewise.
21042         * doc/posix-functions/putc.texi: Likewise.
21043         * doc/posix-functions/putchar.texi: Likewise.
21044         * doc/posix-functions/puts.texi: Likewise.
21045         * doc/posix-functions/vfprintf.texi: Likewise.
21046         * doc/posix-functions/vprintf.texi: Likewise.
21047
21048         * modules/safe-write (Depends-on): Add write.
21049
21050         * modules/sigpipe-tests: New file.
21051         * tests/test-sigpipe.c: New file.
21052         * tests/test-sigpipe.sh: New file.
21053
21054         * modules/write: New file.
21055         * lib/unistd.in.h: Include <sys/types.h>.
21056         (write): New declaration.
21057         * lib/write.c: New file.
21058         * m4/write.m4: New file.
21059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21060         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21061         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21062         GNULIB_WRITE, REPLACE_WRITE.
21063         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21064         and the SIGPIPE issue.
21065
21066         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21067         (raise): New declaration.
21068         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21069         (ext_signal): New function.
21070         (rpl_raise): New function.
21071         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21072         GNULIB_SIGNAL_H_SIGPIPE.
21073         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21074         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21075
21076         * modules/sigpipe: New file.
21077         * m4/sigpipe.m4: New file.
21078
21079 2008-09-25  Derek Price  <derek@ximbiot.com>
21080             Bruno Haible  <bruno@clisp.org>
21081
21082         * gnulib-tool (func_import): Report all license incompatibilities, not
21083         just the first one.
21084
21085 2008-09-25  Bruno Haible  <bruno@clisp.org>
21086
21087         * gnulib-tool (func_import): When computing the edits, consider not
21088         only the Makefile.ams that exist but also those that will be generated.
21089
21090 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21091
21092         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21093         fixes gnulib-tool --test warning about duplicate dependency.
21094
21095 2008-09-25  Bruno Haible  <bruno@clisp.org>
21096
21097         * gnulib-tool: Don't ask the user to perform edits in the generated
21098         Makefile.ams.
21099         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21100         apply to the Makefile.am being generated.
21101         (func_emit_tests_Makefile_am): Execute edits that apply to the
21102         Makefile.am being generated.
21103         (func_import): Setup list of Makefile.am edits before emitting the
21104         Makefile.ams, not at the end.
21105         (func_create_testdir): Update.
21106         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21107
21108 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21109
21110         * gnulib-tool (func_import): Store the --tests-base option in the
21111         comment in gnulib-cache.m4.
21112
21113 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21114
21115         * NEWS: Document increased portability that sys_select now provides.
21116
21117         * lib/sys_select.in.h: Install select wrapper.
21118         * lib/sys_socket.in.h: Use more descriptive name when there is no
21119         select wrapper.
21120         * lib/winsock-select.c: New.
21121         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21122         Require gl_HEADER_SYS_SOCKET.
21123         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21124         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21125         * tests/test-sys_select.c: Add functional tests.
21126
21127 2008-09-24  Eric Blake  <ebb9@byu.net>
21128
21129         open, fopen: close fd leak in last patch
21130         * lib/open.c (rpl_open): Close fd before returning error.
21131         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21132         * doc/posix-functions/open.texi (open): Document that Irix also
21133         has the bug.
21134         * doc/posix-functions/fopen.texi (fopen): Likewise.
21135         Reported by Paolo Bonzini.
21136
21137 2008-09-24  Bruno Haible  <bruno@clisp.org>
21138
21139         Ensure that a filename ending in a slash cannot be used to access a
21140         non-directory.
21141         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21142         to check whether it's really a directory.
21143         * lib/fopen.c: Include fcntl.h, unistd.h.
21144         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21145         and fdopen().
21146         * modules/fopen (Depends-on): Add unistd.
21147         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21148         * tests/test-fopen.c (main): Likewise.
21149         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21150         * doc/posix-functions/fopen.texi: Likewise.
21151         Reported by Eric Blake.
21152
21153 2008-09-23  Eric Blake  <ebb9@byu.net>
21154
21155         c-stack: avoid compiler optimizations when provoking overflow
21156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21157         recursion harder to optimize, to ensure a stack overflow occurs.
21158         * tests/test-c-stack.c (recurse): Likewise.
21159         Borrowed from libsigsegv.
21160
21161         c-stack: work around Irix sigaltstack bug
21162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21163         whether sigaltstack uses wrong end of stack_t (copied in part from
21164         libsigsegv).
21165         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21166         Irix bug, without requiring an over-allocation.
21167         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21168         bug.
21169
21170         fopen: document mingw bug on directories
21171         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21172         not allowing a stream visiting a directory, even though reading
21173         from such a stream is not portable.
21174
21175 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21176
21177         * lib/poll.c: Rewrite.
21178         * modules/poll: Depend on alloca.
21179
21180 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21181
21182         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21183         instead define prototypes for a full set of wrappers.  Ensure
21184         that Cygwin does not use the compatibility code, which is only
21185         for MinGW.
21186         * lib/winsock.c: New.
21187         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21188         * modules/sys_socket: Add lib/winsock.c.
21189
21190         * modules/poll-tests: Add errno and perror.
21191         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21192
21193 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21194
21195         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21196
21197 2008-09-23  Bruno Haible  <bruno@clisp.org>
21198
21199         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21200         * doc/glibc-functions/*: Likewise.
21201
21202 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21203
21204         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21205         success.
21206
21207 2008-09-22  Eric Blake  <ebb9@byu.net>
21208             Bruno Haible  <bruno@clisp.org>
21209
21210         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21211         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21212         supply %A but mishandle pseudo-NaN.
21213         Reported by Simon Josefsson.
21214
21215 2008-09-21  Bruno Haible  <bruno@clisp.org>
21216
21217         * tests/test-lock.c (main): Tweak skip message.
21218         * tests/test-tls.c (main): Likewise.
21219
21220 2008-09-21  Bruno Haible  <bruno@clisp.org>
21221
21222         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21223         whether 'struct sigaction' has sa_sigaction here...
21224         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21225         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21226
21227 2008-09-21  Bruno Haible  <bruno@clisp.org>
21228
21229         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21230         section.
21231         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21232         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21233         the new section.
21234         (Support for obsolete systems lacking POSIX:2001): New section.
21235         (String handling <string.h>): Move strdup to the new section.
21236         Suggested by Simon Josefsson and Paolo Bonzini.
21237
21238 2008-09-21  Bruno Haible  <bruno@clisp.org>
21239
21240         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21241         exponents in %e and %g results on 'long double'. Needed for mingw's
21242         improved *printf functions.
21243         * tests/test-vasprintf-posix.c (test_function): Likewise.
21244         * tests/test-snprintf-posix.h (test_function): Likewise.
21245         * tests/test-sprintf-posix.h (test_function): Likewise.
21246         Reported by Eric Blake.
21247
21248 2008-09-21  Bruno Haible  <bruno@clisp.org>
21249
21250         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21251         * tests/test-sprintf-posix.h (test_function): Likewise.
21252
21253 2008-09-21  Bruno Haible  <bruno@clisp.org>
21254
21255         * modules/getpass (Depends-on): Add strdup-posix.
21256
21257         New module 'strdup-posix'.
21258         * modules/strdup-posix: New file.
21259         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21260         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21262         REPLACE_STRDUP.
21263         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21264         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21266         strdup-posix.
21267
21268         * modules/strdup (Depends-on): Remove malloc-posix.
21269
21270 2008-09-20  Bruno Haible  <bruno@clisp.org>
21271
21272         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21273         Wildenhues.
21274
21275 2008-09-20  Bruno Haible  <bruno@clisp.org>
21276
21277         Ensure that wint_t gets defined on IRIX 5.3.
21278         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21279         * lib/wctype.in.h (wint_t): Likewise.
21280         (__wctype_wint_t): Remove type.
21281         (isw*): Use wint_t instead of __wctype_wint_t.
21282         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21283         * modules/wchar (Files): Add m4/wint_t.m4.
21284         (Makefile.am): Substitute HAVE_WINT_T.
21285         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21286         * tests/test-wctype.c: Check that wint_t is defined.
21287         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21288         * doc/posix-headers/wctype.texi: Likewise.
21289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21290
21291 2008-09-18  Bruno Haible  <bruno@clisp.org>
21292
21293         * gnulib-tool (func_exit): Update comment.
21294
21295 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21296
21297         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21298         assumes strdup exists and does not depend on strdup to return
21299         ENOMEM on out of memory conditions.
21300
21301 2008-09-18  Bruno Haible  <bruno@clisp.org>
21302
21303         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21304         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21305         digits for the exponent.
21306
21307 2008-09-18  Jim Meyering  <meyering@redhat.com>
21308             Bruno Haible  <bruno@clisp.org>
21309
21310         * lib/vasnprintf.c (decimal_point_char): Define also if
21311         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21312
21313 2008-09-16  Bruno Haible  <bruno@clisp.org>
21314         and Eric Blake  <ebb9@byu.net>
21315
21316         vasnprintf: support Irix 5.3
21317         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21318         that mishandle long double infinity.
21319         Reported by Tom G. Christensen.
21320
21321 2008-09-16  Bruno Haible  <bruno@clisp.org>
21322
21323         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21324         Solaris 9.
21325         * doc/glibc-functions/alphasort.texi: Likewise.
21326         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21327
21328 2008-09-16  Jim Meyering  <meyering@redhat.com>
21329
21330         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21331         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21332         a umask modification leak out of a subshell.  Otherwise, the
21333         opensolaris /bin/sh would be accepted and thus cause unwarranted
21334         failures in the coreutils test suite.
21335
21336 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21337
21338         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21339         to succeed.
21340
21341 2008-09-16  Jim Meyering  <meyering@redhat.com>
21342
21343         avoid spurious test failure when library is built without ACL support
21344         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21345         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21346         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21347         * tests/test-copy-acl.sh: Likewise.
21348
21349 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21350
21351         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21352         based on character occurrence counts.
21353
21354 2008-09-15  Eric Blake  <ebb9@byu.net>
21355
21356         tests: avoid some compiler warnings
21357         * tests/test-memchr.c (main): Pass NULL indirectly.
21358         * tests/test-closein.c (main): Avoid unused variable.
21359
21360 2008-09-15  Bruno Haible  <bruno@clisp.org>
21361
21362         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21363         are missing on OpenBSD 4.0 individually.
21364         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21365
21366 2008-09-15  Bruno Haible  <bruno@clisp.org>
21367
21368         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21369         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21370         * doc/posix-functions/perror.texi: Likewise.
21371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21372         is missing.
21373         Reported by Eric Blake.
21374
21375         * lib/errno.in.h: Use replacement values >= 2000.
21376         Reported by Eric Blake.
21377
21378 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21379
21380         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21381         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21382         limit.
21383         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21384         compareseq was aborted.
21385
21386 2008-09-14  Bruno Haible  <bruno@clisp.org>
21387
21388         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21389         yvec_edit_count.
21390         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21391         (fstrcmp_bounded): Simplify result computation accordingly.
21392
21393 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21394
21395         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21396         (fstrcmp): Define in terms of fstrcmp_bounded.
21397         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21398         lower_bound argument.
21399         Return quickly if the result is certainly < lower_bound.
21400         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21401
21402 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21403
21404         * lib/diffseq.h (EARLY_ABORT): New macro.
21405         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21406         evaluates to true.
21407
21408 2008-09-14  Bruno Haible  <bruno@clisp.org>
21409
21410         * modules/perror-tests: New file.
21411         * tests/test-perror.sh: New file.
21412         * tests/test-perror.c: New file.
21413
21414         New module 'perror'.
21415         * lib/stdio.in.h (perror): New declaration.
21416         * lib/perror.c: New file.
21417         * m4/perror.m4: New file.
21418         * modules/perror: New file.
21419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21420         * doc/posix-functions/perror.texi: Mention the perror module.
21421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21422         REPLACE_PERROR.
21423         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21424         REPLACE_PERROR.
21425
21426 2008-09-14  Bruno Haible  <bruno@clisp.org>
21427
21428         * modules/stdio (Makefile.am): Reorder to match the order in
21429         lib/stdio.in.h.
21430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21431
21432 2008-09-13  Bruno Haible  <bruno@clisp.org>
21433
21434         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21435
21436 2008-09-13  Bruno Haible  <bruno@clisp.org>
21437
21438         Extend strerror to cover the added errno values.
21439         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21440         (rpl_strerror): Provide error messages for the added errno values and
21441         for the WSA* values.
21442         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21443         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21444         strerror.
21445         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21446         * modules/strerror (Depends-on): Add errno.
21447         * doc/posix-functions/strerror.texi: Document the change.
21448         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21449         and EOVERFLOW.
21450
21451 2008-09-13  Bruno Haible  <bruno@clisp.org>
21452
21453         * modules/EOVERFLOW: Remove file.
21454         * m4/eoverflow.m4: Remove file.
21455         * modules/EOVERFLOW-tests: Remove file.
21456         * tests/test-EOVERFLOW.c: Remove file.
21457         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21458         * modules/ftell (Depends-on): Likewise.
21459         * modules/getdelim (Depends-on): Likewise.
21460         * modules/getugroups (Depends-on): Likewise.
21461         * modules/poll (Depends-on): Likewise.
21462         * modules/snprintf (Depends-on): Likewise.
21463         * modules/sprintf-posix (Depends-on): Likewise.
21464         * modules/vasnprintf (Depends-on): Likewise.
21465         * modules/vasprintf (Depends-on): Likewise.
21466         * modules/vfprintf-posix (Depends-on): Likewise.
21467         * modules/vsnprintf (Depends-on): Likewise.
21468         * modules/vsprintf-posix (Depends-on): Likewise.
21469         * modules/xvasprintf (Depends-on): Likewise.
21470         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21471         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21472         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21473         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21475         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21476         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21477         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21478         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21479         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21480         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21481         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21482         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21483         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21484         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21485         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21486         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21487         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21488         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21489         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21491         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21492         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21493         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21494         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21495         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21496         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21497         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21498         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21499         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21500         * MODULES.html.sh: Remove EOVERFLOW.
21501         * NEWS: Mention the change.
21502
21503 2008-09-13  Bruno Haible  <bruno@clisp.org>
21504
21505         * modules/errno-tests: New file.
21506         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21507
21508         * lib/errno.in.h: New file.
21509         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21510         * modules/errno: New file.
21511         * doc/posix-headers/errno.texi: Update documentation.
21512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21513
21514 2008-09-13  Bruno Haible  <bruno@clisp.org>
21515
21516         * tests/test-poll.c: Use #if for native Windows, rather than testing
21517         __MSVCRT__.
21518
21519 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21520             Bruno Haible  <bruno@clisp.org>
21521
21522         * lib/glob.c: Don't include <pwd.h> on native Windows.
21523         (WINDOWS32): New macro.
21524         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21525
21526 2008-09-13  Bruno Haible  <bruno@clisp.org>
21527
21528         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21529         (ETIMEDOUT): Remove macro.
21530         (glthread_cond_timedwait_multithreaded): New declaration.
21531         (glthread_cond_timedwait): Use it.
21532         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21533         (glthread_cond_timedwait_multithreaded): New function.
21534
21535 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21536
21537         * modules/poll-tests: Do not check for io.h.
21538         * tests/test-poll.c: Check for __MSVCRT__ instead.
21539
21540 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21541
21542         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21543         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21544         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21545
21546 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21547
21548         * modules/poll-tests: New.
21549         * tests/test-poll.c: New.
21550
21551 2008-09-12  Eric Blake  <ebb9@byu.net>
21552
21553         frexp: test for NetBSD failure on -0.0
21554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21555         not all, bugs from NetBSD 3.0 have been fixed.
21556         * doc/posix-functions/frexp.texi (frexp): Document bug.
21557         Reported by Thomas Klausner.
21558
21559         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21560         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21561         literal -0.0.
21562         Reported by Jonathan C. Patschke <jp@centtech.com>.
21563
21564 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21565
21566         * lib/glthread/cond.h: Use dummy implementation also if
21567         USE_WIN32_THREADS.
21568
21569 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21570
21571         * modules/fnmatch-posix (License): Change to LGPLv2+.
21572         * modules/fnmatch-gnu (License): Likewise.
21573
21574 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21575
21576         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21577
21578 2008-09-11  Jim Meyering  <meyering@redhat.com>
21579
21580         * users.txt: Add gtk-vnc.
21581
21582 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21583
21584         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21585         rotate amounts.
21586
21587         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21588         required for 16-bit and 8-bit rotates.
21589         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21590         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21591         UINT8_MAX instead of hard-coded constants.
21592         Suggested by Paul Eggert.
21593
21594 2008-09-07  Bruno Haible  <bruno@clisp.org>
21595
21596         * tests/test-striconveh.c (main): Check behaviour when converting from
21597         UTF-7.
21598
21599         Make striconveh work better with stateful encodings.
21600         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21601         that iconv does not increment the inptr when returning -1/EINVAL.
21602
21603 2008-09-07  Bruno Haible  <bruno@clisp.org>
21604
21605         * build-aux/config.rpath: Update according to libtool-2.2.6.
21606         * build-aux/config.libpath: Likewise.
21607
21608 2008-09-06  Bruno Haible  <bruno@clisp.org>
21609
21610         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21611         * lib/freadptr.c (freadptr): Likewise.
21612         * lib/freadseek.c (freadptrinc): Likewise.
21613         Reported by Simon Josefsson.
21614
21615 2008-09-06  Bruno Haible  <bruno@clisp.org>
21616
21617         * modules/freadptr (License): Change to LGPLv2+.
21618         * modules/freadseek (License): Likewise.
21619         Suggested by Eric Blake.
21620
21621         * modules/memchr2 (License): Change to LGPLv2+.
21622         Approved by Eric Blake.
21623
21624 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21625             Bruno Haible  <bruno@clisp.org>
21626
21627         Make gnulib-tool work with native 'sed' on AIX.
21628         * gnulib-tool (sed_noop): New variable.
21629         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21630         func_add_or_update, func_create_testdir): Use it to initialize sed
21631         script variables.
21632         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21633
21634 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21635             Bruno Haible  <bruno@clisp.org>
21636
21637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21638         also works after #include directives.
21639
21640 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
21641
21642         getdate.y: reject an out-of-range timezone value
21643         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21644         the range [-24...+24].  When specified with only one or two digits,
21645         * tests/test-getdate.c: Tests for the fix.
21646         * doc/getdate.texi: Document this change.
21647
21648 2008-09-03  Bruno Haible  <bruno@clisp.org>
21649
21650         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21651
21652 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21653
21654         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21655         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21656         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21657         Blake <ebb9@byu.net>.
21658
21659         * tests/test-bitrotate.c: Add more test vectors.
21660
21661 2008-09-02  Eric Blake  <ebb9@byu.net>
21662
21663         vasnprintf-posix: handle large precision via %.*d
21664         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21665         when handling it ourselves.
21666         * tests/test-vasnprintf-posix.c (test_function): Add test.
21667         * tests/test-snprintf-posix.h (test_function): Likewise.
21668         * tests/test-sprintf-posix.h (test_function): Likewise.
21669         * tests/test-vasprintf-posix.c (test_function): Likewise.
21670         Reported by Alain Guibert.
21671
21672 2008-09-01  Eric Blake  <ebb9@byu.net>
21673
21674         c-stack: make configure-time check more robust
21675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21676         successful sigaction call.
21677         Reported by Tom G. Christensen.
21678
21679 2008-09-01  Bruno Haible  <bruno@clisp.org>
21680
21681         New module 'findprog-lgpl'.
21682         * modules/findprog-lgpl: New file.
21683         * lib/findprog-lgpl.c: New file.
21684         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21685         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21686         to decide whether to use strdup or xstrdup, concatenated_filename or
21687         xconcatenated_filename.
21688
21689 2008-09-01  Bruno Haible  <bruno@clisp.org>
21690
21691         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21692         'xconcat-filename' (GPL).
21693         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21694         (License): Change to LGPLv2+.
21695         * modules/xconcat-filename: New file.
21696         * lib/concat-filename.h (concatenated_filename): Change specification.
21697         (xconcatenated_filename): New declaration.
21698         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21699         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21700         memory situations.
21701         * lib/xconcat-filename.c: New file.
21702         * NEWS: Mention the change.
21703         * lib/findprog.c: Include concat-filename.h, not filename.h.
21704         (find_in_path): Use xconcatenated_filename instead of
21705         concatenated_filename.
21706         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21707         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21708         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21709         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21710         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21711         instead of concatenated_filename.
21712         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21713         (execute_java_class): Use xconcatenated_filename instead of
21714         concatenated_filename.
21715         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21716         * modules/javacomp (Depends-on): Likewise.
21717         * modules/javaexec (Depends-on): Likewise.
21718
21719 2008-09-01  Bruno Haible  <bruno@clisp.org>
21720
21721         Split module 'filename' into 'filename' and 'concat-filename'.
21722         * modules/filename: Keep only lib/filename.h.
21723         (License): Change to LGPLv2+.
21724         * modules/concat-filename: New file, extracted from modules/filename.
21725         * lib/filename.h (concatenated_filename): Remove declaration.
21726         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21727         * lib/concat-filename.c: Include concat-filename.h.
21728         * NEWS: Mention the change.
21729
21730 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21731
21732         * lib/bitrotate.h (rotl8, rotr8): Add.
21733
21734         * modules/bitrotate (configure.ac): Need
21735         AC_REQUIRE([AC_C_INLINE]).
21736         (Description): Mention stdint.h.  Reported by Bruno Haible
21737         <bruno@clisp.org>.
21738
21739         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21740         Paolo Bonzini <bonzini@gnu.org>.
21741
21742 2008-08-31  Bruno Haible  <bruno@clisp.org>
21743
21744         Assume Solaris specific bi-arch conventions on Solaris systems.
21745         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21746         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21747         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21748         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21749         like acl_libdirstem.
21750         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21751         acl_libdirstem.
21752         * NEWS: Mention the change.
21753         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21754
21755 2008-08-31  Jim Meyering  <meyering@redhat.com>
21756
21757         * lib/strftime.h: Add comments describing the two added arguments.
21758
21759         remove duplicate #include directives
21760         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21761         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21762
21763 2008-08-31  Bruno Haible  <bruno@clisp.org>
21764
21765         New module 'sigpipe-die'.
21766         * modules/sigpipe-die: New file.
21767         * lib/sigpipe-die.h: New file.
21768         * lib/sigpipe-die.c: New file.
21769         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21770
21771 2008-08-31  Bruno Haible  <bruno@clisp.org>
21772
21773         Don't override previously installed signal handlers.
21774         * lib/fatal-signal.c (saved_sigactions): New variable.
21775         (uninstall_handlers): Reset the signal to the saved handler, not
21776         to SIG_DFL (except when ignored).
21777         (install_handlers): Save the previous handlers.
21778
21779 2008-08-30  Bruno Haible  <bruno@clisp.org>
21780
21781         * gnulib-tool (func_reset_sigpipe): New function.
21782         (func_get_automake_snippet, func_modules_transitive_closure,
21783         func_import): Invoke it before a join command that reads from stdin,
21784         to avoid "echo: write error: Broken pipe" error messages on stderr.
21785         Reported by Sam Steingold <sds@gnu.org>.
21786
21787 2008-08-30  Bruno Haible  <bruno@clisp.org>
21788
21789         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21790         Code copied from m4/open.m4.
21791         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21792         access and the filename ends in a slash. Code copied from lib/open.c.
21793         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21794         * tests/test-fopen.c (main): Check against bug with trailing slash.
21795
21796 2008-08-29  Bruno Haible  <bruno@clisp.org>
21797
21798         Avoid some "gcc -pedantic" warnings.
21799         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21800         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21801         * lib/dirent.in.h: Likewise.
21802         * lib/fcntl.in.h: Likewise.
21803         * lib/float.in.h: Likewise.
21804         * lib/iconv.in.h: Likewise.
21805         * lib/inttypes.in.h: Likewise.
21806         * lib/locale.in.h: Likewise.
21807         * lib/math.in.h: Likewise.
21808         * lib/netinet_in.in.h: Likewise.
21809         * lib/search.in.h: Likewise.
21810         * lib/signal.in.h: Likewise.
21811         * lib/stdarg.in.h: Likewise.
21812         * lib/stdint.in.h: Likewise.
21813         * lib/stdio.in.h: Likewise.
21814         * lib/stdlib.in.h: Likewise.
21815         * lib/string.in.h: Likewise.
21816         * lib/strings.in.h: Likewise.
21817         * lib/sys_select.in.h: Likewise.
21818         * lib/sys_socket.in.h: Likewise.
21819         * lib/sys_stat.in.h: Likewise.
21820         * lib/sys_time.in.h: Likewise.
21821         * lib/sysexits.in.h: Likewise.
21822         * lib/time.in.h: Likewise.
21823         * lib/unistd.in.h: Likewise.
21824         * lib/wchar.in.h: Likewise.
21825         * lib/wctype.in.h: Likewise.
21826         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21827         * modules/fchdir (Makefile.am): Likewise.
21828         * modules/fcntl (Makefile.am): Likewise.
21829         * modules/float (Makefile.am): Likewise.
21830         * modules/iconv_open (Makefile.am): Likewise.
21831         * modules/inttypes (Makefile.am): Likewise.
21832         * modules/locale (Makefile.am): Likewise.
21833         * modules/math (Makefile.am): Likewise.
21834         * modules/netinet_in (Makefile.am): Likewise.
21835         * modules/search (Makefile.am): Likewise.
21836         * modules/signal (Makefile.am): Likewise.
21837         * modules/stdarg (Makefile.am): Likewise.
21838         * modules/stdint (Makefile.am): Likewise.
21839         * modules/stdio (Makefile.am): Likewise.
21840         * modules/stdlib (Makefile.am): Likewise.
21841         * modules/string (Makefile.am): Likewise.
21842         * modules/strings (Makefile.am): Likewise.
21843         * modules/sys_select (Makefile.am): Likewise.
21844         * modules/sys_socket (Makefile.am): Likewise.
21845         * modules/sys_stat (Makefile.am): Likewise.
21846         * modules/sys_time (Makefile.am): Likewise.
21847         * modules/sysexits (Makefile.am): Likewise.
21848         * modules/time (Makefile.am): Likewise.
21849         * modules/unistd (Makefile.am): Likewise.
21850         * modules/wchar (Makefile.am): Likewise.
21851         * modules/wctype (Makefile.am): Likewise.
21852         Reported by Reuben Thomas <rrt@sc3d.org>.
21853
21854 2008-08-29  Bruno Haible  <bruno@clisp.org>
21855
21856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21857         any more.
21858
21859 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21860
21861         * MODULES.html.sh (Misc): Add bitrotate.
21862
21863         * modules/bitrotate: New file.
21864
21865         * lib/bitrotate.h: New file.
21866
21867         * modules/bitrotate-tests: New file.
21868
21869         * tests/test-bitrotate.c: New file.
21870
21871         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21872         on the bitrotate module.
21873
21874         * lib/arctwo.c: Use new bitrotate module.
21875
21876 2008-08-29  Jim Meyering  <meyering@redhat.com>
21877
21878         bootstrap: merge changes from coreutils
21879         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21880         of copied files.  Remove a kludge, now that this is fixed.
21881         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21882         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21883         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21884
21885 2008-08-29  Bruno Haible  <bruno@clisp.org>
21886
21887         * MODULES.html.sh: Remove --cvs-urls option.
21888
21889 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21890
21891         maint.mk: adjust to file name change
21892         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21893
21894 2008-08-28  Jim Meyering  <meyering@redhat.com>
21895
21896         * modules/getndelim2 (License): Relicense to LGPLv2+.
21897         Approved by Richard Stallman for the version of 1995, and by
21898         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21899
21900 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21901
21902         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21903         dummy if one is not available.  Do not touch them if
21904         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21905         (getc_maybe_unlocked): New.
21906         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21907
21908 2008-08-26  Eric Blake  <ebb9@byu.net>
21909
21910         doc/INSTALL: resync from autoconf
21911         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21912         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21913         moving...
21914         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21915         * INSTALL: Regenerate.
21916         * INSTALL.ISO: New file.
21917         * INSTALL.UTF-8: Likewise.
21918
21919 2008-08-26  Jim Meyering  <meyering@redhat.com>
21920
21921         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21922         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21923         these definitions conditional, so that they may be overridden, too.
21924
21925 2008-08-26  Bruno Haible  <bruno@clisp.org>
21926
21927         Generate INSTALL file variants with prettier quotes.
21928         * doc/Makefile (INSTALL_PRELUDE): New macro.
21929         (INSTALL): Use it.
21930         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21931
21932 2008-08-26  Bruno Haible  <bruno@clisp.org>
21933
21934         Run makeinfo in an English locale.
21935         * doc/Makefile (MAKEINFO): New variable.
21936
21937 2008-08-26  Bruno Haible  <bruno@clisp.org>
21938
21939         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21940         Suggested by Eric Blake.
21941
21942 2008-08-25  Bruno Haible  <bruno@clisp.org>
21943
21944         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21945
21946 2008-08-25  Eric Blake  <ebb9@byu.net>
21947
21948         c-stack: test that stack overflow can be caught
21949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21950         that platform allows handling stack overflow; at least OS/2 EMX
21951         has sigaltstack, but crashes before transferring control to
21952         handler on stack overflow.
21953         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21954         check for HAVE_STACK_OVERFLOW_HANDLING.
21955         Reported by Elbert Pol.
21956
21957 2008-08-25  Bruno Haible  <bruno@clisp.org>
21958
21959         * doc/posix-functions/strftime.texi: Fix description of strftime
21960         module.
21961
21962 2008-08-24  Bruno Haible  <bruno@clisp.org>
21963
21964         * tests/uniwidth/test-uc_width2.c: New file.
21965         * tests/uniwidth/test-uc_width2.sh: New file.
21966         * modules/uniwidth/width-tests (Files): Add the new files.
21967         (TESTS): Add uniwidth/test-uc_width2.sh.
21968         (TESTS_ENVIRONMENT): New variable.
21969         (check_PROGRAMS): Add test-uc_width2.
21970         (test_uc_width2_SOURCES): New variable.
21971
21972         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21973         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21974         not 0x00AB.
21975         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21976
21977 2008-08-22  Eric Blake  <ebb9@byu.net>
21978
21979         test-lock, test-tls: mention why a test is skipped
21980         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21981         skipped.
21982         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21983
21984         count-one-bits: relax license
21985         * modules/count-one-bits (License): Relicense to LGPLv2+.
21986         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21987
21988 2008-08-22  Andreas Schwab  <schwab@suse.de>
21989
21990         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21991         Remove spurious space in assignment.
21992
21993 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21994
21995         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21996         Paul Eggert <eggert@CS.UCLA.EDU>.
21997
21998 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21999
22000         * modules/gettext: Add m4/threadlib.m4.
22001
22002 2008-08-19  Eric Blake  <ebb9@byu.net>
22003
22004         test-c-stack: fix compilation failure on FreeBSD 5.0
22005         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22006         headers before <sys/resource.h>.
22007         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22008         the bug.
22009         Reported by Nelson H. F. Beebe.
22010
22011         strverscmp: migrate from "strverscmp.h" to <string.h>
22012         * modules/string (Makefile.am): Add new hooks.
22013         * modules/strverscmp (Files): Remove strverscmp.h.
22014         (Depends-on): Add string.
22015         (configure.ac): Add indicator.
22016         (Include): Mention new header.
22017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22018         defaults.
22019         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22020         results.
22021         * lib/strverscmp.h: Delete.
22022         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22023         * tests/test-strverscmp.c (includes): Adjust client.
22024         * lib/check-version.c (includes): Likewise.
22025         * NEWS: Document the change.
22026
22027         strverscmp: add unit test
22028         * modules/strverscmp-tests: New file.
22029         * tests/test-strverscmp.c: Likewise.
22030
22031 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22032
22033         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22034         regarding Windows crypto stuff, from Mono.
22035
22036 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22037
22038         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22039         if present, for intel RND.  Return error on failures.
22040
22041 2008-08-18  Ben Pfaff  <blp@gnu.org>
22042
22043         gitlog-to-changelog: give better diagnostic for failed pipe-open
22044         * build-aux/gitlog-to-changelog: Improve error message: suggest
22045         that the version of Git may be too old.
22046
22047 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22048
22049         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22050         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22051
22052 2008-08-18  Bruno Haible  <bruno@clisp.org>
22053
22054         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22055         pthread_in_use().
22056
22057 2008-08-18  Bruno Haible  <bruno@clisp.org>
22058
22059         * lib/glthread/threadlib.c: Include <pthread.h>.
22060
22061 2008-08-18  Bruno Haible  <bruno@clisp.org>
22062
22063         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22064         glthread_recursive_lock_* macros.
22065         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22066         Fix syntax error.
22067
22068 2008-08-18  Bruno Haible  <bruno@clisp.org>
22069
22070         * lib/glthread/thread.c: Avoid forcing a context switch right after
22071         thread creation.
22072
22073 2008-08-17  Bruno Haible  <bruno@clisp.org>
22074
22075         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22076         * lib/glthread/thread.h: Provide Win32 specific implementation.
22077         * modules/thread (Files): Add lib/glthread/thread.c.
22078         (Depends-on): Add lock.
22079         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22080
22081 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22082
22083         New module 'yield'.
22084         * modules/yield: New file.
22085         * lib/glthread/yield.h: New file.
22086         * m4/yield.m4: New file.
22087         * MODULES.html.sh (Multithreading): Add yield.
22088
22089 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22090
22091         New module 'thread'.
22092         * modules/thread: New file.
22093         * lib/glthread/thread.h: New file.
22094         * m4/thread.m4: New file.
22095         * MODULES.html.sh (Multithreading): Add thread.
22096
22097 2008-08-17  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/glthread/lock.h: Include <stdlib.h> always.
22100         * lib/glthread/tls.h: Likewise.
22101         * lib/glthread/cond.h: Likewise.
22102
22103 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22104
22105         New module 'cond'.
22106         * modules/cond: New file.
22107         * lib/glthread/cond.h: New file.
22108         * lib/glthread/cond.c: New file.
22109         * m4/cond.m4: New file.
22110         * MODULES.html.sh (Multithreading): Add cond.
22111
22112 2008-08-16  Eric Blake  <ebb9@byu.net>
22113
22114         c-stack: fix regression on Irix 5.3 from 2008-06-21
22115         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22116         sa_sigaction...
22117         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22118         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22119         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22120         * modules/signal (Makefile.am): Use the value.
22121         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22122         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22123         * doc/posix-headers/signal.texi (signal.h): Document this
22124         portability issue.
22125         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22126         Reported by Tom G. Christensen.
22127
22128 2008-08-17  Bruno Haible  <bruno@clisp.org>
22129
22130         New module 'threadlib'.
22131         * modules/threadlib: New file.
22132         * lib/glthread/threadlib.c: New file, extracted from
22133         lib/glthread/lock.c.
22134         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22135         functions.
22136         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22137         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22138         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22139         macros.
22140         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22141         (gl_DISABLE_THREADS): Remove macro.
22142         * modules/lock (Files): Remove build-aux/config.rpath.
22143         (Depends-on): Remove havelib. Add threadlib.
22144         (configure.ac-early): Remove section.
22145         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22146         * modules/tls (Depends-on): Remove lock. Add threadlib.
22147         (Link): New section, copied from threadlib.
22148         * MODULES.html.sh (Multithreading): Add threadlib.
22149
22150 2008-08-14  Bruno Haible  <bruno@clisp.org>
22151
22152         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22153         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22154         glthread_rwlock_unlock, glthread_rwlock_destroy,
22155         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22156         glthread_recursive_lock_destroy): Define as macros always.
22157         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22158         glthread_lock_lock.
22159         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22160         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22161         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22162         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22163         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22164         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22165         (glthread_recursive_lock_lock_func): Renamed from
22166         glthread_recursive_lock_lock.
22167         (glthread_recursive_lock_unlock_func): Renamed from
22168         glthread_recursive_lock_unlock.
22169         (glthread_recursive_lock_destroy_func): Renamed from
22170         glthread_recursive_lock_destroy.
22171
22172 2008-08-14  Bruno Haible  <bruno@clisp.org>
22173
22174         * lib/glthread/lock.h: Renamed from lib/lock.h.
22175         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22176         * lib/glthread/tls.h: Renamed from lib/tls.h.
22177         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22178         * lib/fstrcmp.c: Update includes.
22179         * lib/strsignal.c: Update includes.
22180         * modules/lock (Files, Makefile.am): Update.
22181         (Include): Change to "glthread/lock.h".
22182         * modules/tls (Files, Makefile.am): Update.
22183         (Include): Change to "glthread/tls.h".
22184         * tests/test-lock.c: Update includes.
22185         * tests/test-tls.c: Update includes.
22186         * NEWS: Mention the renamed header files.
22187
22188 2008-08-11  Jim Meyering  <meyering@redhat.com>
22189
22190         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22191
22192 2008-08-11  Eric Blake  <ebb9@byu.net>
22193
22194         test-c-stack: avoid C99-ism
22195         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22196         before statement.
22197         Reported by Alain Guibert.
22198
22199 2008-08-10  Jim Meyering  <meyering@redhat.com>
22200
22201         ensure that return value of uinttostr et al are not ignored
22202         * lib/inttostr.h (__GNUC_PREREQ): Define.
22203         (__attribute_warn_unused_result__): Define.
22204         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22205
22206 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22207
22208         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22209         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22210
22211 2008-08-07  Jim Meyering  <meyering@redhat.com>
22212
22213         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22214
22215         * modules/mkstemp (License): Relicense under LGPLv2+.
22216         * modules/tempname (License): Likewise.
22217
22218 2008-08-06  Bruno Haible  <bruno@clisp.org>
22219
22220         * lib/poll.c (poll): Further micro-optimization.
22221
22222 2008-08-06  Jim Meyering  <meyering@redhat.com>
22223
22224         inet_pton.c: use locale-independent tolower
22225         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22226         (inet_pton6): Use c_tolower rather than tolower.
22227         * modules/inet_pton (Depends-on): Add c-ctype.
22228
22229 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22230
22231         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22232         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22233
22234 2008-08-06  Jim Meyering  <meyering@redhat.com>
22235
22236         * modules/inet_pton (License): Relicense under LGPLv2+.
22237
22238 2008-08-03  Bruno Haible  <bruno@clisp.org>
22239
22240         Additional non-aborting API for lock and tls.
22241         * lib/lock.h: Include <errno.h>.
22242         (glthread_lock_init): New macro/function.
22243         (gl_lock_init): Define as wrapper around glthread_lock_init.
22244         (glthread_lock_lock): New macro/function.
22245         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22246         (glthread_lock_unlock): New macro/function.
22247         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22248         (glthread_lock_destroy): New macro/function.
22249         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22250         (glthread_rwlock_init): New macro/function.
22251         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22252         (glthread_rwlock_rdlock): New macro/function.
22253         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22254         (glthread_rwlock_wrlock): New macro/function.
22255         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22256         (glthread_rwlock_unlock): New macro/function.
22257         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22258         (glthread_rwlock_destroy): New macro/function.
22259         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22260         (glthread_recursive_lock_init): New macro/function.
22261         (gl_recursive_lock_init): Define as wrapper around
22262         glthread_recursive_lock_init.
22263         (glthread_recursive_lock_lock): New macro/function.
22264         (gl_recursive_lock_lock): Define as wrapper around
22265         glthread_recursive_lock_lock.
22266         (glthread_recursive_lock_unlock): New macro/function.
22267         (gl_recursive_lock_unlock): Define as wrapper around
22268         glthread_recursive_lock_unlock.
22269         (glthread_recursive_lock_destroy): New macro/function.
22270         (gl_recursive_lock_destroy): Define as wrapper around
22271         glthread_recursive_lock_destroy.
22272         (glthread_once): New macro/function.
22273         (gl_once): Define as wrapper around glthread_once.
22274         Update function declarations.
22275         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22276         glthread_rwlock_init. Return error code.
22277         (glthread_rwlock_rdlock_multithreaded): Renamed from
22278         glthread_rwlock_rdlock. Return error code.
22279         (glthread_rwlock_wrlock_multithreaded): Renamed from
22280         glthread_rwlock_wrlock. Return error code.
22281         (glthread_rwlock_unlock_multithreaded): Renamed from
22282         glthread_rwlock_unlock. Return error code.
22283         (glthread_rwlock_destroy_multithreaded): Renamed from
22284         glthread_rwlock_destroy. Return error code.
22285         (glthread_recursive_lock_init_multithreaded): Renamed from
22286         glthread_recursive_lock_init. Return error code.
22287         (glthread_recursive_lock_lock_multithreaded): Renamed from
22288         glthread_recursive_lock_lock. Return error code.
22289         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22290         glthread_recursive_lock_unlock. Return error code.
22291         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22292         glthread_recursive_lock_destroy. Return error code.
22293         (glthread_once_call): Make static.
22294         (glthread_once_multithreaded): Renamed from glthread_once.
22295         * lib/tls.h: Include <errno.h>.
22296         (glthread_tls_key_init): New macro/function.
22297         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22298         (glthread_tls_set): New macro/function.
22299         (gl_tls_set): Define as wrapper around glthread_tls_set.
22300         (glthread_tls_key_destroy): New macro/function.
22301         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22302         Update function declarations.
22303         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22304         glthread_tls_get.
22305         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22306
22307 2008-08-04  Eric Blake  <ebb9@byu.net>
22308
22309         gnumakefile: use space, not TAB, outside of targets
22310         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22311
22312 2008-08-02  Jim Meyering  <meyering@redhat.com>
22313
22314         getdate.y: avoid locale-dependent date parsing failure
22315         In Turkish locales, getdate would fail to recognize keywords
22316         containing a lowercase "i".  The solution is not to rely on
22317         locale-sensitive case-conversion.
22318         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22319         (lookup_word): Use c_toupper in place of toupper.
22320         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22321         Reported by Vefa Bicakci <bicave@superonline.com> in
22322         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22323         * modules/getdate (Depends-on): Add c-ctype.
22324
22325 2008-08-02  Bruno Haible  <bruno@clisp.org>
22326
22327         * gnulib-tool (func_import): When updating or creating a .gitignore
22328         file, prepend each added line with a slash, and ignore leading slashes
22329         from the existing lines.
22330         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22331
22332 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22333
22334         Portability fix for GNU make 3.79.1.
22335         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22336         versions do not understand.
22337
22338 2008-08-01  Bruno Haible  <bruno@clisp.org>
22339
22340         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22341         * tests/test-isnanf.h (zero): New variable.
22342         (main): Avoid literal -0.0f.
22343         * tests/test-isnand.h (zero): New variable.
22344         (main): Avoid literal -0.0.
22345         * tests/test-isnanl.h (zero): New variable.
22346         (main): Avoid literal -0.0L.
22347         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22348         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22349         -0.0, -0.0L.
22350         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22351         (test_signbitd): Avoid literal -0.0.
22352         (test_signbitl): Avoid literal -0.0L.
22353         * tests/test-ceilf1.c (zero): New variable.
22354         (main): Avoid literal -0.0f.
22355         * tests/test-ceill.c (zero): New variable.
22356         (main): Avoid literal -0.0L.
22357         * tests/test-floorf1.c (zero): New variable.
22358         (main): Avoid literal -0.0f.
22359         * tests/test-floorl.c (zero): New variable.
22360         (main): Avoid literal -0.0L.
22361         * tests/test-roundf1.c (zero): New variable.
22362         (main): Avoid literal -0.0f.
22363         * tests/test-round1.c (zero): New variable.
22364         (main): Avoid literal -0.0.
22365         * tests/test-roundl.c (zero): New variable.
22366         (main): Avoid literal -0.0L.
22367         * tests/test-truncf1.c (zero): New variable.
22368         (main): Avoid literal -0.0f.
22369         * tests/test-trunc1.c (zero): New variable.
22370         (main): Avoid literal -0.0.
22371         * tests/test-truncl.c (zero): New variable.
22372         (main): Avoid literal -0.0L.
22373         * tests/test-frexp.c (zero): New variable.
22374         (main): Avoid literal -0.0.
22375         * tests/test-frexpl.c (zero): New variable.
22376         (main): Avoid literal -0.0L.
22377         * tests/test-ldexpl.c (zero): New variable.
22378         (main): Avoid literal -0.0L.
22379         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22380         (zerod, zerol): New variables.
22381         (test_function): Avoid literals -0.0, -0.0L.
22382         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22383         (zerod, zerol): New variables.
22384         (test_function): Avoid literals -0.0, -0.0L.
22385         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22386         (zerod, zerol): New variables.
22387         (test_function): Avoid literals -0.0, -0.0L.
22388         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22389         (zerod, zerol): New variables.
22390         (test_function): Avoid literals -0.0, -0.0L.
22391         * tests/test-strtod.c (zero): New variable.
22392         (main): Avoid literal -0.0.
22393         Reported by Jonathan C. Patschke <jp@centtech.com>.
22394
22395 2008-07-31  Jim Meyering  <meyering@redhat.com>
22396
22397         sha256.h: correct definition of SHA224_DIGEST_SIZE
22398         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22399         Reported by Paulie Pena IV <paulie4@gmail.com>.
22400         Define as 224 / 8, rather than as a literal.
22401         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22402         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22403         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22404
22405 2008-07-31  Bruno Haible  <bruno@clisp.org>
22406
22407         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22408         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22409         Reported by Jonathan Patschke <jp@centtech.com>.
22410
22411 2008-07-31  Bruno Haible  <bruno@clisp.org>
22412
22413         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22414         Reported by Paolo Bonzini <bonzini@gnu.org>.
22415
22416 2008-07-30  Eric Blake  <ebb9@byu.net>
22417
22418         test-strtod: allow compilation without -lm
22419         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22420         Reported by Dennis Clarke <blastwave@gmail.com>.
22421
22422 2008-07-28  Jim Meyering  <meyering@redhat.com>
22423
22424         bootstrap: work also when there are no .po files in po/
22425         * build-aux/bootstrap (update_po_files): Complete the change
22426         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22427
22428 2008-07-27  Jim Meyering  <meyering@redhat.com>
22429
22430         * users.txt: Add zile.
22431
22432 2008-07-26  Ben Pfaff  <blp@gnu.org>
22433
22434         Add missing dependencies on new m4/exponent[fdl].m4 files.
22435         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22436         * modules/isnand-nolibm: Add m4/exponentd.m4.
22437         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22438         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22439         m4/isnan[fdl].m4, because the macros actually used moved.
22440         Reported by Jim Meyering.
22441
22442 2008-07-14  Ben Pfaff  <blp@gnu.org>
22443
22444         Add isinf module.
22445         * lib/isinf.c: New file.
22446         * lib/math.in.h: Define isinf macro if we have decided to replace
22447         it.
22448         * m4/isinf.m4: New file.
22449         * m4/math_h.m4: Initialize and substitute variables for isinf
22450         module.
22451         * modules/isinf: New file.
22452         * modules/isinf-tests: New file.
22453         * modules/math: Add substitutions for new module.
22454         * tests/test-isinf.c: New file.
22455         * doc/posix-functions/isinf.texi: Mention new module.
22456         * MODULES.html.sh: Mention new module.
22457
22458 2008-07-14  Ben Pfaff  <blp@gnu.org>
22459
22460         Factor out some macros for use by additional modules.
22461         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22462         exponentf.m4.
22463         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22464         exponentd.m4.
22465         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22466         file exponentl.m4.
22467         * m4/exponentf.m4: New file.
22468         * m4/exponentd.m4: New file.
22469         * m4/exponentl.m4: New file.
22470         * modules/isnanf: Use new file m4/exponentf.m4.
22471         * modules/isnand: Use new file m4/exponentd.m4.
22472         * modules/isnanl: Use new file m4/exponentl.m4.
22473
22474 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22475
22476         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22477         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22478         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22479         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22480
22481         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22482         readlink on platforms without PATH_MAX.
22483
22484 2008-07-21  Eric Blake  <ebb9@byu.net>
22485
22486         Warn, not fail, on stale version.
22487         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22488
22489         Don't allow installation with stale devel version number.
22490         * top/GNUmakefile (_is-install-target): New macro.
22491         (_curr-ver): Forbid installation with stale version number.
22492
22493 2008-07-20  Bruno Haible  <bruno@clisp.org>
22494
22495         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22496         TESTS_ENVIRONMENT.
22497         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22498
22499 2008-07-20  Bruno Haible  <bruno@clisp.org>
22500
22501         * lib/c-stack.h (c_stack_action): Add documentation.
22502         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22503
22504 2008-07-20  Bruno Haible  <bruno@clisp.org>
22505
22506         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22507         * modules/readlink (License): Likewise.
22508
22509 2008-07-17  Eric Blake  <ebb9@byu.net>
22510
22511         * modules/c-stack (Link): Fix typo.
22512
22513         Make c-stack use libsigsegv, when available.
22514         * modules/c-stack (Depends-on): Add libsigsegv.
22515         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22516         needed.
22517         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22518         (segv_handler, overflow_handler, c_stack_action)
22519         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22520         implementation when libsigsegv is available, but only when using
22521         the library is necessary.
22522         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22523         comment, explaining why XSI check fails on Linux.
22524         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22525         * tests/test-c-stack2.sh: Tweak skip message.
22526         * NEWS: Document new link-time requirements.
22527
22528 2008-07-16  Eric Blake  <ebb9@byu.net>
22529
22530         c-stack: Expose false positives when not using libsigsegv.
22531         * modules/c-stack-tests (Files): Expand test.
22532         * tests/test-c-stack.c (main): Add means to conditionally trigger
22533         non-overflow SIGSEGV.
22534         * tests/test-c-stack2.sh: New file.
22535
22536 2008-07-14  Bruno Haible  <bruno@clisp.org>
22537
22538         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22539         Reported by Eric Blake.
22540
22541 2008-07-14  Sam Steingold  <sds@gnu.org>
22542             Bruno Haible  <bruno@clisp.org>
22543
22544         New module libsigsegv.
22545         * modules/libsigsegv: New file.
22546         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22547         modifications.
22548         * MODULES.html.sh (Signal handling): New section.
22549
22550 2008-07-14  Bruno Haible  <bruno@clisp.org>
22551
22552         * modules/unictype/ctype-* (Description): Add the word "function".
22553         Improves the resulting doc in MODULES.html.
22554
22555 2008-07-12  Ben Pfaff  <blp@gnu.org>
22556
22557         Add longlong module.
22558         * modules/longlong: New file.
22559
22560 2008-07-12  Bruno Haible  <bruno@clisp.org>
22561
22562         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22563         to empty.
22564
22565 2008-07-10  Ben Pfaff  <blp@gnu.org>
22566
22567         Add isnan module.
22568         * doc/posix-functions/isnan.texi: Mention new module.
22569         * lib/math.in.h: Define isnan macro if we have decided to replace
22570         it.
22571         * m4/isnan.m4: New file.
22572         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22573         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22574         also.
22575         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22576         redundancy.
22577         * m4/math_h.m4: Initialize and substitute variables for isnan
22578         module.
22579         * modules/isnan: New file.
22580         * modules/isnan-tests: New file.
22581         * modules/math: Add substitutions for new module.
22582         * tests/test-isnan.c: New file.
22583         * MODULES.html.sh: Mention new module.
22584
22585 2008-07-10  Ben Pfaff  <blp@gnu.org>
22586
22587         Add isnanf module.
22588         * lib/isnanf.m4: New file.
22589         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22590         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22591         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22592         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22593         * modules/isnanf: New file.
22594         * modules/isnanf-tests: New file.
22595         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22596         files.
22597         * tests/test-isnanf-nolibm.c: factored most of its contents into
22598         new file tests/test-isnanf.h.
22599         * tests/test-isnanf.h: New file.
22600         * tests/test-isnanf.c: New file.
22601         * MODULES.html.sh: Mention new module.
22602         * doc/glibc-functions/isnanf.texi: Mention new module.
22603
22604 2008-07-10  Ben Pfaff  <blp@gnu.org>
22605
22606         Add isnand module.
22607         * lib/isnand.h: New file.
22608         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22609         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22610         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22611         functionality also.
22612         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22613         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22614         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22615         * modules/isnand: New file.
22616         * modules/isnand-tests: New file.
22617         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22618         files.
22619         * tests/test-isnand-nolibm.c: factored most of its contents into
22620         new file tests/test-isnand.h.
22621         * tests/test-isnand.h: New file.
22622         * tests/test-isnand.c: New file.
22623         * MODULES.html.sh: Mention new module.
22624
22625 2008-07-10  Ben Pfaff  <blp@gnu.org>
22626
22627         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22628         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22629         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22630         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22631         * modules/isnanf-nolibm: Update references to renamed files.
22632         * modules/isnand-nolibm: Likewise.
22633         * modules/isnanf-nolibm-tests: Likewise.
22634         * modules/isnand-nolibm-tests: Likewise.
22635         * lib/frexp.c: Likewise.
22636         * lib/isfinite.c: Likewise.
22637         * lib/signbitd.c: Likewise.
22638         * lib/signbitf.c: Likewise.
22639         * lib/vasnprintf.c: Likewise.
22640         * tests/test-ceilf1.c: Likewise.
22641         * tests/test-ceilf2.c: Likewise.
22642         * tests/test-floorf1.c: Likewise.
22643         * tests/test-floorf2.c: Likewise.
22644         * tests/test-frexp.c: Likewise.
22645         * tests/test-round1.c: Likewise.
22646         * tests/test-round2.c: Likewise.
22647         * tests/test-roundf1.c: Likewise.
22648         * tests/test-strtod.c: Likewise.
22649         * tests/test-trunc1.c: Likewise.
22650         * tests/test-trunc2.c: Likewise.
22651         * tests/test-truncf1.c: Likewise.
22652         * tests/test-truncf2.c: Likewise.
22653         * NEWS: Mention the renamed header files.
22654
22655 2008-07-11  Jim Meyering  <meyering@redhat.com>
22656
22657         vc-list-files: make the last-resort awk code more portable
22658         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22659         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22660         does not support it.
22661
22662 2008-07-10  Eric Blake  <ebb9@byu.net>
22663
22664         Work with tar's bootstrap.
22665         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22666         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22667         an m4 comment.
22668
22669 2008-07-09  Jim Meyering  <meyering@redhat.com>
22670
22671         posix-shell.m4: fix typo that made this test malfunction
22672         * m4/posix-shell.m4: Remove capitalization in variable name.
22673
22674 2008-07-08  Bruno Haible  <bruno@clisp.org>
22675
22676         * m4/onceonly.m4: Update comments.
22677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22678
22679 2008-07-04  Jim Meyering  <meyering@redhat.com>
22680
22681         * users.txt: Add vc-dwim.
22682         (bison, coreutils): Use the gitweb URL.
22683
22684 2008-07-03  Jim Meyering  <meyering@redhat.com>
22685
22686         * users.txt: Add libffcall.  From Sam Steingold.
22687
22688 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
22689
22690         getdate.y: do not ignore TZ with relative day, month or year offset
22691         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22692         relative-date-handling, since otherwise, the latter would clobber the
22693         sole output (an updated Start value) of the tz-handling block.
22694         * tests/test-getdate.c: Tests for the fix
22695
22696 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22697
22698         Recognize 'foo_LIBRARIES += libgnu.a'.
22699         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22700         makefile snippet has already specified an installation location,
22701         also using '+='.
22702
22703 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
22704
22705         getdate.y: factor out common actions
22706         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22707         Use them in place of open-coded actions.
22708
22709 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22710
22711         Add self-test for getdate module.
22712         * modules/getdate-tests: New file.
22713         * tests/test-getdate.c: New file.
22714
22715 2008-06-29  Bruno Haible  <bruno@clisp.org>
22716
22717         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22718         .gitignore.
22719         Reported by Sylvain Beucler <beuc@beuc.net>.
22720
22721 2008-06-29  Bruno Haible  <bruno@clisp.org>
22722
22723         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22724         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22725
22726 2008-06-29  Bruno Haible  <bruno@clisp.org>
22727
22728         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22729         EXTRA_DIST.
22730         Reported by Sylvain Beucler <beuc@beuc.net>.
22731
22732 2008-06-26  Jim Meyering  <meyering@redhat.com>
22733
22734         make several modules depend on the "open" module
22735         This provides slightly increased consistency when opening-for-write
22736         the name of a non-directory spelled with a trailing slash.
22737         * modules/chdir-safer: Likewise.
22738         * modules/chown: Likewise.
22739         * modules/clean-temp: Likewise.
22740         * modules/copy-file: Likewise.
22741         * modules/fchdir: Likewise.
22742         * modules/fcntl-safer: Likewise.
22743         * modules/pipe: Likewise.
22744         * modules/utime: Likewise.
22745         Prompted by Eric Blake and Bruno Haible.
22746
22747 2008-06-24  Andreas Schwab  <schwab@suse.de>
22748
22749         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22750         literals can be used as initializers for global variables.
22751
22752 2008-06-23  Eric Blake  <ebb9@byu.net>
22753
22754         Make gnulib-cache.m4 easier to diff.
22755         * gnulib-tool (func_import): Allow newlines when reading cached
22756         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22757
22758 2008-06-23  Bruno Haible  <bruno@clisp.org>
22759
22760         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22761         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22762         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22763         m4/signalblocking.m4.
22764         (gl_PREREQ_SIGACTION): Don't invoke it.
22765         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22766         gl_PREREQ_SIG_HANDLER_H.
22767         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22768         Don't check for sigaction here.
22769
22770 2008-06-23  Bruno Haible  <bruno@clisp.org>
22771
22772         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22773         (install_handlers): Don't set the SA_RESETHAND flag.
22774
22775 2008-06-23  Bruno Haible  <bruno@clisp.org>
22776
22777         * m4/sigaction.m4: Comment fixes.
22778         * lib/signal.in.h: Likewise.
22779
22780 2008-06-23  Eric Blake  <ebb9@byu.net>
22781
22782         Fix typo.
22783         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22784
22785         Avoid SA_ namespace.
22786         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22787         Reported by Ralf Wildenhues.
22788
22789         Avoid test failure due to SA_RESTORER.
22790         * tests/test-sigaction.c (SA_MASK): New macro.
22791         (main): Avoid failing due to extension flags being set.
22792         Reported by Jim Meyering.
22793
22794         Revert use of sig-handler.h in sigprocmask.c.
22795         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22796         it requires the existence of struct sigaction.
22797         * lib/sigprocmask.c (handler_t): Restore typedef.
22798         (rpl_signal, old_handlers): Use local type.
22799
22800 2008-06-22  Bruno Haible  <bruno@clisp.org>
22801
22802         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22803         conditionally.
22804         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22805
22806 2008-06-22  Bruno Haible  <bruno@clisp.org>
22807
22808         * doc/posix-functions/siginterrupt.texi: Move note.
22809
22810         * lib/signal.in.h (SA_RESTART): New macro.
22811         * lib/sigaction.c: Update comment.
22812
22813         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22814
22815         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22816         (gl_PREREQ_SIGPROCMASK): Invoke it.
22817         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22818
22819         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22820
22821         * lib/sigprocmask.c: Update a comment.
22822
22823 2008-06-21  Eric Blake  <ebb9@byu.net>
22824
22825         Use sigaction module rather than signal().
22826         * modules/c-stack (Depends-on): Add sigaction.
22827         * modules/fatal-signal (Depends-on): Likewise.
22828         * modules/nanosleep (Depends-on): Likewise.
22829         * modules/sigprocmask (Files): Add sig-handler.h.
22830         * modules/sigaction (Files): Likewise.
22831         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22832         Eggert.
22833         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22834         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22835         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22836         (init_fatal_signals): Likewise.
22837         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22838         (siginterrupt): Delete fallback.
22839         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22840         instead.
22841         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22842         siginterrupt.
22843
22844         New module sigaction, for mingw.
22845         * modules/sigaction: New module...
22846         * modules/sigaction-tests: ...and its test.
22847         * m4/sigaction.m4: New file.
22848         * lib/sigaction.c: Likewise.
22849         * tests/test-sigaction.c: Likewise.
22850         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22851         * modules/signal (Makefile.am): Likewise.
22852         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22853         needed.
22854         * doc/posix-headers/signal.texi (signal.h): Mention provided
22855         types.
22856         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22857         that sigaction is preferable.
22858         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22859         module.
22860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22861         sigaction.
22862
22863         Improve robustness of sigprocmask by overriding signal.
22864         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22865         is in use.
22866         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22867         (SIGKILL, SIGSTOP): Provide fallbacks.
22868         (rpl_signal): Implement.
22869         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22870         signal can be called inside handlers.
22871
22872         Fix nanosleep module on mingw.
22873         * modules/nanosleep (Depends-on): Add sys_select.
22874         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22875
22876         Fix licensing of sigprocmask.
22877         * modules/raise (License): Relicense as LGPL.
22878
22879 2008-06-21  Bruno Haible  <bruno@clisp.org>
22880
22881         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22882         result if it contains question marks.
22883         Reported by Michael Geng <linux@michaelgeng.de>.
22884
22885 2008-06-19  Bruno Haible  <bruno@clisp.org>
22886
22887         Fix CVS-ism.
22888         * doc/gnulib.texi: Include updated-stamp.texi.
22889         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22890         (updated-stamp.texi): New rule.
22891         (gnulib.info): Depend on it.
22892         * doc/.gitignore: Add updated-stamp.texi.
22893         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22894
22895 2008-06-19  Bruno Haible  <bruno@clisp.org>
22896
22897         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22898         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22899
22900 2008-06-19  Eric Blake  <ebb9@byu.net>
22901
22902         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22903         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22904         Reported by Stepan Kasal.
22905
22906 2008-06-18  Bruno Haible  <bruno@clisp.org>
22907
22908         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22909         Reported by Eric Blake.
22910
22911 2008-06-18  Eric Blake  <ebb9@byu.net>
22912
22913         Work around cygwin 1.5.25 strsignal bug.
22914         * tests/test-strsignal.c: Allow for const char *.
22915         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22916
22917 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22918
22919         * users.txt: Update URL to article and add author/date
22920         information.
22921
22922 2008-06-17  Bruno Haible  <bruno@clisp.org>
22923
22924         New macro gl_DISABLE_THREADS.
22925         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22926         if the user did not pass --enable-threads or --disable-threads option.
22927         (gl_DISABLE_THREADS): New macro.
22928         Reported by Eric Blake <ebb9@byu.net>.
22929
22930 2008-06-17  Bruno Haible  <bruno@clisp.org>
22931
22932         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22933         when the macro ignores it.
22934         Based on a patch by Eric Blake <ebb9@byu.net>.
22935
22936 2008-06-17  Bruno Haible  <bruno@clisp.org>
22937
22938         * modules/tls (License): Change to LGPLv2+.
22939         Reported by Eric Blake.
22940
22941 2008-06-17  Eric Blake  <ebb9@byu.net>
22942
22943         Simplify c-stack prerequisites.
22944         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22946         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22947         check.
22948         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22949         <sys/resource.h>.
22950
22951         Move c-stack test into testsuite.
22952         * modules/c-stack-tests: New file.
22953         * lib/c-stack.c [DEBUG]: Move test program...
22954         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22955         fail test if sigaltstack is lacking.
22956         * tests/test-c-stack.sh: New driver file.
22957
22958 2008-06-16  Eric Blake  <ebb9@byu.net>
22959
22960         Use raise module consistently.
22961         * modules/fatal-signal (Depends-on): Add raise.
22962         * modules/sigprocmask (Depends-on): Likewise.
22963         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22964         * lib/sigprocmask.c (sigprocmask): Likewise.
22965         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22966         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22967
22968         Fix compliance bug in sigpending.
22969         * lib/sigprocmask.c (sigpending): Return pending array via
22970         parameter, not return value.
22971
22972 2008-06-14  Eric Blake  <ebb9@byu.net>
22973
22974         Improve obstack-printf test code.
22975         * tests/test-obstack-printf.c (test_function): Fix comment, and
22976         simplify usage of obstack_* in macros.  Add a test for coverage.
22977         Reported by Bruno Haible.
22978
22979 2008-06-14  Bruno Haible  <bruno@clisp.org>
22980
22981         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22982         array size as a constant, not as a const variable.
22983         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22984         AC_USE_SYSTEM_EXTENSIONS.
22985         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22986         Test whether the obstack_printf function actually exists.
22987         * modules/obstack-printf (Depends-on): Add extensions.
22988         (Include): Remove obstack.h.
22989         * modules/obstack-printf-posix (Depends-on): Add extensions.
22990         (Include): Remove obstack.h.
22991
22992 2008-06-13  Eric Blake  <ebb9@byu.net>
22993
22994         Add obstack-printf and obstack-printf-posix modules.
22995         * modules/obstack-printf: New file.
22996         * modules/obstack-printf-posix: Likewise.
22997         * MODULES.html.sh (Misc): Mention them.
22998         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22999         Likewise.
23000         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23001         Likewise.
23002         * modules/stdio (Makefile.am): Accomodate new modules.
23003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23004         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23005         Declare.
23006         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23007         functions.
23008         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23009         (gl_REPLACE_OBSTACK_PRINTF): New macros
23010         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23011         * tests/test-obstack-printf.c: New file.
23012         * modules/obstack-printf-tests: Likewise.
23013         * modules/obstack-printf-posix-tests: Likewise.
23014
23015 2008-06-11  Bruno Haible  <bruno@clisp.org>
23016
23017         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23018         * lib/open.c: Include errno.h.
23019         (open): Fail when attempting to write to a file that has a trailing
23020         slash.
23021         * tests/test-open.c (main): Test against trailing slash bug.
23022         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23023
23024 2008-06-10  Bruno Haible  <bruno@clisp.org>
23025
23026         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23027         for $? to work inside the trap command, with various /bin/sh-s.
23028         * tests/test-vc-list-files-cvs.sh: Likewise.
23029
23030 2008-06-10  Bruno Haible  <bruno@clisp.org>
23031
23032         * lib/acl-internal.h: Don't include gettext.h here.
23033         * lib/set-mode-acl.c: Include gettext.h here.
23034         * lib/copy-acl.c: Likewise.
23035
23036 2008-06-10  Bruno Haible  <bruno@clisp.org>
23037
23038         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23039         * lib/wait-process.c (wait_subprocess): Likewise.
23040         * lib/execute.h (execute): Add termsigp argument.
23041         * lib/execute.c (execute): Likewise.
23042         * lib/csharpcomp.c (compile_csharp_using_pnet,
23043         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23044         * lib/csharpexec.c (execute_csharp_using_pnet,
23045         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23046         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23047         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23048         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23049         is_jikes_present): Update.
23050         * lib/javaexec.c (execute_java_class): Update.
23051         * lib/javaversion.c (execute_and_read_line): Update.
23052         * NEWS: Document the changes.
23053         Reported by Eric Blake.
23054
23055 2008-06-10  Eric Blake  <ebb9@byu.net>
23056
23057         Add missing include.
23058         * tests/test-strstr.c (includes): Add <signal.h>.
23059         * tests/test-strcasestr.c (includes): Likewise.
23060         * tests/test-memmem.c (includes): Likewise.
23061
23062 2008-06-10  Bruno Haible  <bruno@clisp.org>
23063
23064         * lib/wait-process.c (wait_subprocess): Add an assertion.
23065
23066 2008-06-10  Bruno Haible  <bruno@clisp.org>
23067
23068         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23069
23070 2008-06-10  Bruno Haible  <bruno@clisp.org>
23071
23072         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23073         using alarm().
23074         * tests/test-strcasestr.c (main): Likewise.
23075         * tests/test-strstr.c (main): Likewise.
23076
23077 2008-06-09  Bruno Haible  <bruno@clisp.org>
23078
23079         Work around the Solaris 10 ACE ACLs ABI change.
23080         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23081         declare if ACL_NO_TRIVIAL is present.
23082         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23083         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23084         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23085         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23086         define if ACL_NO_TRIVIAL is present.
23087         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23088         and use the current ABI.
23089         (file_has_acl): Use same #if condition as elsewhere.
23090         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23091         in use, and use the current ABI.
23092         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23093         Reported by Jim Meyering.
23094
23095 2008-06-09  Eric Blake  <ebb9@byu.net>
23096
23097         Work around environments that (stupidly) ignore SIGALRM.
23098         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23099         before using alarm().
23100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23102         Reported by Ian Beckwith <ianb@erislabs.net>.
23103
23104         Produce autobuild blurb earlier in log.
23105         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23106
23107 2008-06-09  Jim Meyering  <meyering@redhat.com>
23108         and Ondřej Vašík  <ovasik@redhat.com>
23109
23110         utimens.c: correct kernel bug work-around
23111         Ondřej Vašík found that the invalid return value of 280 indicates
23112         failure, not success, and the kernel bug we're trying to work
23113         around affects not just the utimensat call, but also the fallback
23114         futimens call.
23115         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23116         not success.
23117         [HAVE_FUTIMENS]: Use the same work-around, here.
23118
23119 2008-06-09  Jim Meyering  <meyering@redhat.com>
23120
23121         add more guards around definition of ACE_-related code
23122         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23123         ALLOW and ACE_OWNER are also defined.
23124
23125 2008-06-08  Bruno Haible  <bruno@clisp.org>
23126
23127         * lib/acl-internal.h: Add me as co-author.
23128         * lib/file-has-acl.c: Likewise.
23129         * lib/set-mode-acl.c: Likewise.
23130         * lib/copy-acl.c: Likewise.
23131
23132 2008-06-08  Bruno Haible  <bruno@clisp.org>
23133
23134         Add support for AIX ACLs.
23135         * lib/acl-internal.h (acl_nontrivial): New declaration.
23136         * lib/file-has-acl.c (acl_nontrivial): New function.
23137         (file_has_acl): Add implementation using AIX 4 ACL API.
23138         * lib/set-mode-acl.c (qset_acl): Likewise.
23139         * lib/copy-acl.c (qcopy_acl): Likewise.
23140
23141 2008-06-08  Bruno Haible  <bruno@clisp.org>
23142
23143         Add support for HP-UX ACLs.
23144         * lib/acl-internal.h (acl_nontrivial): New declaration.
23145         * lib/file-has-acl.c (acl_nontrivial): New function.
23146         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23147         * lib/set-mode-acl.c (qset_acl): Likewise.
23148         * lib/copy-acl.c (qcopy_acl): Likewise.
23149
23150 2008-06-08  Bruno Haible  <bruno@clisp.org>
23151
23152         Add support for Cygwin ACLs.
23153         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23154         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23155         the chmod_or_fchmod call.
23156         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23157
23158 2008-06-08  Bruno Haible  <bruno@clisp.org>
23159
23160         Fix bug with setuid modes in Solaris 10+ code.
23161         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23162         succeeded, when the mode contains some special bits.
23163
23164 2008-06-08  Bruno Haible  <bruno@clisp.org>
23165
23166         Add support for Solaris 7..10 ACLs.
23167         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23168         declarations.
23169         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23170         functions.
23171         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23172         * lib/set-mode-acl.c (qset_acl): Likewise.
23173         * lib/copy-acl.c (qcopy_acl): Likewise.
23174
23175 2008-06-08  Bruno Haible  <bruno@clisp.org>
23176
23177         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23178         declaration.
23179         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23180         (acl_access_nontrivial): Remove MacOS X case.
23181         (file_has_acl): Use acl_extended_nontrivial.
23182         * lib/copy-acl.c (qcopy_acl): Likewise.
23183
23184 2008-06-08  Bruno Haible  <bruno@clisp.org>
23185
23186         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23187
23188 2008-06-08  Jim Meyering  <meyering@redhat.com>
23189
23190         * modules/acl (Maintainer): Add Bruno Haible.
23191
23192 2008-06-07  Bruno Haible  <bruno@clisp.org>
23193
23194         Improve support for Tru64 ACLs.
23195         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23196         ACL on OSF/1.
23197
23198 2008-06-07  Bruno Haible  <bruno@clisp.org>
23199
23200         Add support for MacOS X ACLs.
23201         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23202         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23203         * lib/set-mode-acl.c (qset_acl): Likewise.
23204         * lib/copy-acl.c (qcopy_acl): Likewise.
23205
23206 2008-06-07  Bruno Haible  <bruno@clisp.org>
23207
23208         Fix memory leak introduced on 2008-05-22.
23209         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23210         use.
23211
23212 2008-06-07  Bruno Haible  <bruno@clisp.org>
23213
23214         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23215         to construct an empty ACL.
23216
23217 2008-06-07  Bruno Haible  <bruno@clisp.org>
23218
23219         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23220         precisely.
23221         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23222
23223 2008-06-07  Bruno Haible  <bruno@clisp.org>
23224
23225         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23226         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23227
23228 2008-06-07  Bruno Haible  <bruno@clisp.org>
23229
23230         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23231         regardless of POSIX.
23232         * doc/posix-functions/_longjmp.texi: Likewise.
23233         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23234         SystemV platform in this case.
23235
23236 2008-06-06  Eric Blake  <ebb9@byu.net>
23237
23238         Document abort() bugs.
23239         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23240
23241         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23242         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23243         sigsetjmp.
23244         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23245         siglongjmp, but only as a macro.
23246         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23247         is obsolete.
23248         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23249
23250         Tweak documentation to cover cygwin argz bugs.
23251         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23252         argz bug fix; no code change needed since no cygwin releases
23253         occurred between the last fix and the bug being tested.
23254         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23255         module and recently fixed cygwin bugs.
23256         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23257         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23258         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23259         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23260         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23261         Likewise.
23262         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23263         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23264         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23265         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23266         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23267         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23268         Likewise.
23269
23270         Avoid gcc warning on cygwin.
23271         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23272         !ACL_NO_TRIVIAL]: Avoid unused variable.
23273
23274 2008-06-05  Eric Blake  <ebb9@byu.net>
23275
23276         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23277         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23278         git-version-gen fails to come up with a version.
23279         Reported by Simon Josefsson.
23280
23281 2008-06-05  Jim Meyering  <meyering@redhat.com>
23282             Paul Eggert  <eggert@cs.ucla.edu>
23283
23284         utimens.c: work around a probable Linux kernel bug
23285         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23286         appears to be a kernel bug that causes utimensat to return 280
23287         instead of 0, indicating success.
23288
23289 2008-06-04  Bruno Haible  <bruno@clisp.org>
23290
23291         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23292         2008-06-01 commit.
23293
23294 2008-06-04  Bruno Haible  <bruno@clisp.org>
23295
23296         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23297         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23298         (file_has_acl): Use it. Save errno afterwards.
23299         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23300
23301 2008-06-03  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23304         draft code. Simplify #ifs.
23305         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23306         Put Solaris code after POSIX-draft code. Fix comments regarding
23307         Solaris 10, HP-UX. Mention Cygwin.
23308         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23309
23310 2008-06-03  Eric Blake  <ebb9@byu.net>
23311
23312         Provide fallback for older kernels.
23313         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23314         Provide runtime fallback if kernel lacks support.
23315         Reported by Mike Frysinger.
23316
23317 2008-06-02  Bruno Haible  <bruno@clisp.org>
23318
23319         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23320         it exists.
23321
23322 2008-06-02  Bruno Haible  <bruno@clisp.org>
23323
23324         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23325         * lib/copy-acl.c (qcopy_acl): Update comment.
23326
23327 2008-06-02  Bruno Haible  <bruno@clisp.org>
23328
23329         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23330         like ACL APIs.
23331
23332 2008-06-02  Bruno Haible  <bruno@clisp.org>
23333
23334         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23335         * tests/test-set-mode-acl.sh: Likewise.
23336         * tests/test-copy-acl.sh: Likewise.
23337         * tests/test-copy-file.sh: Likewise.
23338
23339 2008-06-02  Bruno Haible  <bruno@clisp.org>
23340
23341         * tests/test-file-has-acl.sh: Remove unused code.
23342
23343 2008-06-01  Bruno Haible  <bruno@clisp.org>
23344
23345         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23346         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23347         messages.
23348         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23349
23350 2008-06-01  Bruno Haible  <bruno@clisp.org>
23351
23352         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23353         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23354         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23355         APIs.
23356         * modules/acl-tests (configure.ac): Remove tests now contained in
23357         m4/acl.m4.
23358
23359 2008-06-02  Jim Meyering  <meyering@redhat.com>
23360
23361         announce-gen: use a better key-server host name
23362         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23363         it may be more consistently reliable.  Suggested by Werner Koch
23364         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23365
23366 2008-06-01  Bruno Haible  <bruno@clisp.org>
23367
23368         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23369         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23370
23371 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23372
23373         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23374
23375 2008-06-01  Bruno Haible  <bruno@clisp.org>
23376
23377         New ACL tests.
23378         * tests/test-file-has-acl.sh: New file.
23379         * tests/test-file-has-acl.c: New file.
23380         * tests/test-set-mode-acl.sh: New file.
23381         * tests/test-set-mode-acl.c: New file.
23382         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23383         * tests/test-copy-acl.c: New file.
23384         * modules/acl-tests: New file, based on modules/copy-file-tests.
23385         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23386         (Depends-on): Add acl-tests.
23387         (configure.ac): Remove checks.
23388         (Makefile.am): Don't create test-sameacls program here any more.
23389
23390 2008-06-01  Bruno Haible  <bruno@clisp.org>
23391
23392         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23393         * tests/test-sameacls.c: Include progname.h.
23394         (main): Invoke set_program_name. Portability fixes for MacOS X,
23395         Solaris, HP-UX.
23396
23397 2008-06-01  Bruno Haible  <bruno@clisp.org>
23398
23399         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23400         function.
23401         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23402
23403 2008-06-01  Bruno Haible  <bruno@clisp.org>
23404
23405         * modules/rpmatch (Depends-on): Add strdup.
23406
23407 2008-06-01  Bruno Haible  <bruno@clisp.org>
23408
23409         * lib/pipe.c: Include unistd-safer.h.
23410         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23411         * modules/pipe (Depends-on): Add unistd-safer.
23412
23413 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23414
23415         * modules/autobuild (configure.ac): Call AB_INIT.
23416
23417 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23418
23419         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23420         Suggested by Bruno Haible <bruno@clisp.org>.
23421
23422 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23423
23424         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23425         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23426         <bruno@clisp.org>.
23427
23428 2008-05-29  Eric Blake  <ebb9@byu.net>
23429
23430         Prefer new POSIX 200x interfaces over futimesat.
23431         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23432         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23433         when available.
23434         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23435
23436 2008-05-28  Bruno Haible  <bruno@clisp.org>
23437
23438         * modules/stpcpy (License): Change to LGPLv2+.
23439         Requested by David Lutterkort <dlutter@redhat.com>.
23440
23441 2008-05-27  Bruno Haible  <bruno@clisp.org>
23442
23443         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23444         current mingw.
23445         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23446
23447 2008-05-27  Bruno Haible  <bruno@clisp.org>
23448
23449         * modules/iconv_open (Link): New section, from module 'iconv'.
23450         * modules/striconv (Link): Likewise.
23451         * modules/striconveh (Link): Likewise.
23452         * modules/xstriconv (Link): Likewise.
23453         * modules/unicodeio (Link): Likewise.
23454         * modules/propername (Link): Likewise.
23455         Reported by Jim Meyering.
23456
23457 2008-05-26  Jim Meyering  <meyering@redhat.com>
23458
23459         sha256: do not artificially restrict buffer length to be < 2^32
23460         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23461         uint32_t to size_t.
23462         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23463         to match.
23464
23465         avoid unaligned access errors, e.g., on sparc
23466         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23467         direct access through a possibly-unaligned uint64* pointer.
23468         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23469         direct access through a possibly-unaligned uint32* pointer.
23470         Prompted by this patch from Tom "spot" Callaway:
23471         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23472
23473         sha512.c: fix typo in comment
23474         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23475
23476 2008-05-25  Bruno Haible  <bruno@clisp.org>
23477
23478         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23479         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23480         (Makefile.am): Update lib_SOURCES.
23481
23482 2008-05-25  Bruno Haible  <bruno@clisp.org>
23483
23484         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23485
23486 2008-05-25  Jim Meyering  <meyering@redhat.com>
23487
23488         useless-if-before-free: freed expr may have white-space differences
23489         * build-aux/useless-if-before-free: Recognize cases in which the
23490         freed expression differs from the tested one in embedded white
23491         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23492         $1 was used, so we can't make any regexp shy.  Improved tests now
23493         detect this.
23494
23495         useless-if-before-free: accept white space in the expression.
23496         * build-aux/useless-if-before-free: For now, any white space
23497         in the expression must be identical in the free argument.
23498
23499         useless-if-before-free: efficiency tweak
23500         * build-aux/useless-if-before-free: Make the expression-matching
23501         regexp "shy".
23502         Make the *outer* regexp shy, not the expr-matching one.
23503
23504         update code-in-comment to accept cast of free arg
23505         * build-aux/useless-if-before-free: Update regexp.
23506
23507 2008-05-25  Bruno Haible  <bruno@clisp.org>
23508
23509         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23510         * modules/copy-file-tests (Files, Makefile.am): Update.
23511         * tests/test-copy-file.c (func_test_copy): Update.
23512
23513 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23514
23515         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23516
23517 2008-05-23  Bruno Haible  <bruno@clisp.org>
23518
23519         Improve support for ACLs on OSF/1.
23520         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23521         Remove fallback for unknown flavors of ACLs.
23522
23523 2008-05-22  Bruno Haible  <bruno@clisp.org>
23524
23525         Add support for ACLs on OSF/1.
23526         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23527         replacements.
23528         (acl_free_text): New macro fallback.
23529         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23530         acl_free.
23531         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23532         acl_free_text function. Require AC_C_INLINE.
23533
23534 2008-05-22  Bruno Haible  <bruno@clisp.org>
23535
23536         Make copy_acl work on MacOS X 10.5.
23537         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23538         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23539         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23540         If MODE_INSIDE_ACL, don't assume that every system has the same text
23541         representation for ACLs as FreeBSD.
23542         * lib/copy-acl.c (copy_acl): Add support for platforms with
23543         !MODE_INSIDE_ACL.
23544         * lib/file-has-acl.c (file_has_acl): Likewise.
23545         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23546         FreeBSD, MacOS X, or IRIX, respectively.
23547
23548 2008-05-22  Bruno Haible  <bruno@clisp.org>
23549
23550         * lib/acl.h: Don't include <sys/acl.h>.
23551         (GETACLCNT): Move fallback to lib/acl-internal.h.
23552         * lib/acl-internal.h: Include <sys/acl.h> here.
23553         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23554
23555 2008-05-22  Bruno Haible  <bruno@clisp.org>
23556
23557         Split off copy_acl function to separate file.
23558         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23559         * lib/acl.c (copy_acl): Moved function to separate file.
23560         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23561         * modules/acl (Files): Add lib/copy-acl.c.
23562         (Makefiles.am): Augment lib_SOURCES.
23563
23564 2008-05-22  Bruno Haible  <bruno@clisp.org>
23565
23566         * modules/copy-file-tests: New file.
23567         * tests/test-copy-file.sh: New file.
23568         * tests/test-copy-file.c: New file.
23569         * tests/test-copy-file-sameacls.c: New file.
23570
23571 2008-05-22  Eric Blake  <ebb9@byu.net>
23572
23573         Avoid gcc warning.
23574         * tests/test-memcmp.c (main): Pass NULL indirectly.
23575
23576 2008-05-21  Bruno Haible  <bruno@clisp.org>
23577
23578         Add reference doc about ACLs.
23579         * doc/acl-resources.txt: New file.
23580         * doc/acl-cygwin.txt: New file.
23581
23582 2008-05-21  Bruno Haible  <bruno@clisp.org>
23583
23584         Avoid one more warning from gcc.
23585         * lib/vasnprintf.c (IF_LINT): Update comments.
23586         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23587
23588 2008-05-21  Jim Meyering  <meyering@redhat.com>
23589
23590         avoid a warning from gcc
23591         * lib/vasnprintf.c (IF_LINT): Define.
23592         (scale10_round_decimal_long_double):
23593         Use it to avoid a "may be used uninitialized" warning.
23594         (scale10_round_decimal_double): Likewise.
23595
23596 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23597
23598         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23599         declared.
23600
23601 2008-05-20  Bruno Haible  <bruno@clisp.org>
23602
23603         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23604         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23605
23606 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23607
23608         * modules/memcmp-tests: New file.
23609         * tests/test-memcmp.c: New file.
23610
23611 2008-05-19  Bruno Haible  <bruno@clisp.org>
23612
23613         * modules/propername (Notice, configure.ac): Put quoted "..." into
23614         --keyword option.
23615         * lib/propername.h: Update comments accordingly.
23616         Reported by Eric Blake.
23617
23618 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23619
23620         * modules/getpass-gnu (Depends-on): Add fseeko.
23621
23622 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23623
23624         * modules/base64-tests: New file.
23625
23626 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23627
23628         * lib/base64.c (base64_decode_ctx): If a decode context structure
23629         was passed in use it to ignore newlines.  If a context structure
23630         was _not_ passed in, continue to treat newlines as garbage (this
23631         is the historical behavior).  Formerly base64_decode.
23632         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23633         takes a decode context structure.
23634         * lib/base64.h (base64_decode): Macro for four-argument calls.
23635         (base64_decode_alloc): Likewise.
23636         * lib/base64.c (base64_decode_ctx): If a decode context structure
23637         was passed in use it to ignore newlines.  If a context structure
23638         was _not_ passed in, continue to treat newlines as garbage (this
23639         is the historical behavior).  Formerly base64_decode.
23640         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23641         takes a decode context structure.
23642         * lib/base64.h (base64_decode): Macro for four-argument calls.
23643         (base64_decode_alloc): Likewise.
23644
23645 2008-05-19  Jim Meyering  <meyering@redhat.com>
23646
23647         avoid a warning from gcc
23648         * lib/trim.c (IF_LINT): Define.
23649         (trim2): Use it to avoid a "may be used uninitialized" warning.
23650
23651         Fix doc typo.
23652         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23653
23654 2008-05-19  Bruno Haible  <bruno@clisp.org>
23655
23656         * doc/glibc-functions/getpass.texi: Document limits of other
23657         implementations.
23658
23659 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23660             Bruno Haible <bruno@clisp.org>
23661
23662         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23663
23664 2008-05-18  Bruno Haible  <bruno@clisp.org>
23665
23666         * modules/propername: New file, from GNU gettext.
23667         * lib/propername.h: New file, from GNU gettext.
23668         * lib/propername.c: New file, from GNU gettext.
23669         * MODULES.html.sh (Internationalization functions): Add propername.
23670
23671 2008-05-16  Jim Meyering  <meyering@redhat.com>
23672             Bruno Haible  <bruno@clisp.org>
23673
23674         Avoid some warnings from "gcc -Wshadow".
23675         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23676
23677 2008-05-15  Eric Blake  <ebb9@byu.net>
23678
23679         Extend previous patch to cygwin 1.7.0.
23680         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23681         fast implementation in cygwin >= 1.7.0.
23682         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23684
23685 2008-05-15  Bruno Haible  <bruno@clisp.org>
23686
23687         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23688         implementation in glibc >= 2.9.
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         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23695         (Unicode string functions): Add unilbrk/*.
23696         Reported by Karl Berry.
23697
23698 2008-05-15  Eric Blake  <ebb9@byu.net>
23699
23700         Fix violation of <stdbool.h> replacement in regex.
23701         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23702         * lib/regexec.c (re_search_internal): Likewise.
23703         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23704
23705 2008-05-15  Jim Meyering  <meyering@redhat.com>
23706
23707         avoid distracting test output when git or cvs is not found
23708         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23709         * tests/test-vc-list-files-git.sh: Likewise.
23710
23711 2008-05-15  Eric Blake  <ebb9@byu.net>
23712
23713         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23714         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23715         glibc version.
23716         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23717         * doc/posix-functions/strstr.texi (strstr): Likewise.
23718         * lib/str-two-way.h (MAX): Sychronize with glibc.
23719
23720 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23721
23722         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23723         opr.ctx_type.
23724         (calc_first): Initialize constraint field.
23725         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23726         Fix grammar.
23727         (duplicate_node): Merge constraint field for all node types.
23728         (calc_eclosure_iter): Look at constraint field for all node types.
23729         * lib/regex_internal.c (create_cd_newstate): Don't look at
23730         opr.ctx_type.
23731
23732 2008-05-14  Bruno Haible  <bruno@clisp.org>
23733
23734         Help GCC to do better code generation.
23735         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23736         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23737         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23738         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23739         Declare with attribute 'malloc' if supported.
23740
23741 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23742
23743         use "echo STR|wc -c" rather than unportable "expr length STR"
23744         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23745         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23746
23747 2008-05-14  Jim Meyering  <meyering@redhat.com>
23748
23749         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23750         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23751         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23752         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23753         via Collin Lasse.
23754
23755 2008-05-14  Eric Blake  <ebb9@byu.net>
23756
23757         Avoid quadratic growth in gl_LIBSOURCES.
23758         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23759         Suggested by Bruno Haible.
23760
23761         Test xmemdup0.
23762         * modules/xmemdup0-tests: New file.
23763         * tests/test-xmemdup0.c: Likewise.
23764
23765 2008-05-13  Eric Blake  <ebb9@byu.net>
23766
23767         Split xmemdup0 into its own module.
23768         * modules/xmemdup0: New file.
23769         * lib/xmemdup0.h: Likewise.
23770         * lib/xmemdup0.c: Likewise.
23771         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23772         * lib/xalloc.h (xmemdup0): Remove.
23773         * lib/xmalloc.c (xmemdup0): Likewise.
23774
23775 2008-05-13  Eric Blake  <ebb9@byu.net>
23776             Bruno Haible  <bruno@clisp.org>
23777
23778         Reduce number of forks required during autoconf.
23779         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23780         and gl_LIBSOURCES_DIR.
23781         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23782         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23783         m4_syscmd per file.
23784         <m4_foreach_w>: Move...
23785         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23786
23787 2008-05-13  Eric Blake  <ebb9@byu.net>
23788
23789         * gnulib-tool: Fix various comment typos.
23790
23791 2008-05-12  Bruno Haible  <bruno@clisp.org>
23792
23793         Tailor the linebreaking algorithm.
23794         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23795
23796 2008-05-12  Bruno Haible  <bruno@clisp.org>
23797
23798         Update to Unicode 5.0.0.
23799         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23800         LBP_JV, LBP_JT. Redistribute values.
23801         (unilbrk_table): Change size.
23802         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23803         Unicode TR#14 rev. 22.
23804         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23805         LBP_JV, LBP_JT. Redistribute values.
23806         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23807         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23808         Update.
23809         * lib/unilbrk/lbrkprop1.h: Regenerated.
23810         * lib/unilbrk/lbrkprop2.h: Regenerated.
23811         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23812         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23813         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23814         Likewise.
23815         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23816         Likewise.
23817         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23818         result.
23819         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23820         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23821         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23822         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23823         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23824         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23825
23826 2008-05-11  Bruno Haible  <bruno@clisp.org>
23827
23828         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23829
23830 2008-05-11  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23833         * modules/unilbrk/gen-lbrk: New file.
23834
23835 2008-05-11  Bruno Haible  <bruno@clisp.org>
23836
23837         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23838         * m4/sha512.m4 (gl_SHA512): Likewise.
23839
23840 2008-05-11  Jim Meyering  <meyering@redhat.com>
23841
23842         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23843         * modules/crypto/sha256: New file.
23844         * modules/crypto/sha512: Likewise.
23845         * lib/sha256.c: Likewise.
23846         * lib/sha256.h: Likewise.
23847         * lib/sha512.c: Likewise.
23848         * lib/sha512.h: Likewise.
23849         * lib/u64.h: Likewise.
23850         * m4/sha256.m4: Likewise.
23851         * m4/sha512.m4: Likewise.
23852         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23853
23854 2008-05-10  Bruno Haible  <bruno@clisp.org>
23855
23856         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23857         (Input/Output <stdio.h>): Add xprintf.
23858         (Signal handling <signal.h>): Add strsignal.
23859         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23860         (Core language properties): Add func.
23861         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23862         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23863         strings.
23864         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23865         (Input/output): New section.
23866         (File system functions): Add openat-die, stat-macros.
23867         (Networking functions): Add sockets.
23868         (Unicode string functions): Add unictype/*.
23869         (Support for building libraries and executables): Add gperf.
23870         (Support for building documentation): Add agpl-3.0.
23871         (Misc): Add nocrash.
23872
23873 2008-05-10  Bruno Haible  <bruno@clisp.org>
23874
23875         * modules/unictype/gen-ctype: New file.
23876
23877 2008-05-10  Jim Meyering  <meyering@redhat.com>
23878
23879         Make chdir-safer.c more efficient on a system with no symlinks.
23880         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23881         also if ELOOP is zero.  Suggested by Bruno Haible.
23882
23883         Make chdir-safer.c slightly safer.
23884         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23885         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23886
23887         Avoid compile failure on systems without ELOOP (like mingw).
23888         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23889         Reported by Bruno Haible.
23890
23891 2008-05-10  Bruno Haible  <bruno@clisp.org>
23892
23893         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23894         (is_utf8_encoding): Use a case-insensitive comparison.
23895         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23896         streq.
23897
23898 2008-05-10  Bruno Haible  <bruno@clisp.org>
23899
23900         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23901         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23902         * lib/unilbrk/ulc-common.h (iconv_string_length,
23903         iconv_string_keeping_offsets): Remove declarations.
23904         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23905         Don't include <iconv.h>, streq.h, xsize.h.
23906         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23907         conversion.
23908         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23909         <iconv.h>, streq.h, xsize.h.
23910         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23911         conversion.
23912         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23913         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23914         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23915         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23916
23917 2008-05-10  Bruno Haible  <bruno@clisp.org>
23918
23919         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23920         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23921
23922         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23923         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23924
23925         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23926         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23927
23928         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23929         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23930
23931         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23932         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23933
23934         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23935         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23936
23937         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23938         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23939
23940         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23941         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23942
23943 2008-05-10  Bruno Haible  <bruno@clisp.org>
23944
23945         Split up 'linebreak' module.
23946         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23947         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23948         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23949         modifications.
23950         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23951         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23952         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23953         lib/linebreak.c.
23954         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23955         lib/linebreak.c.
23956         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23957         lib/linebreak.c.
23958         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23959         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23960         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23961         lib/linebreak.c.
23962         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23963         lib/linebreak.c.
23964         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23965         lib/linebreak.c.
23966         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23967         lib/linebreak.c.
23968         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23969         lib/linebreak.c.
23970         * modules/unilbrk/base: New file.
23971         * modules/unilbrk/tables: New file.
23972         * modules/unilbrk/u8-possible-linebreaks: New file.
23973         * modules/unilbrk/u16-possible-linebreaks: New file.
23974         * modules/unilbrk/u32-possible-linebreaks: New file.
23975         * modules/unilbrk/ulc-common: New file.
23976         * modules/unilbrk/ulc-possible-linebreaks: New file.
23977         * modules/unilbrk/u8-width-linebreaks: New file.
23978         * modules/unilbrk/u16-width-linebreaks: New file.
23979         * modules/unilbrk/u32-width-linebreaks: New file.
23980         * modules/unilbrk/ulc-width-linebreaks: New file.
23981         * lib/linebreak.h: Remove file.
23982         * lib/linebreak.c: Remove file.
23983         * m4/linebreak.m4: Remove file.
23984         * modules/linebreak: Remove file.
23985         * NEWS: Mention the changes.
23986
23987 2008-05-09  Eric Blake  <ebb9@byu.net>
23988
23989         Add xmemdup0.
23990         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23991         implementation.
23992         * lib/xmalloc.c (xmemdup0): New C implementation.
23993
23994 2008-05-08  Bruno Haible  <bruno@clisp.org>
23995
23996         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23997
23998 2008-05-07  Eric Blake  <ebb9@byu.net>
23999
24000         Support cross-compilation of <wctype.h>.
24001         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24002         AC_CACHE_CHECK.
24003
24004 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24005
24006         * build-aux/vc-list-files: Add support for bzr.
24007
24008 2008-05-03  Jim Meyering  <meyering@redhat.com>
24009
24010         avoid failed assertion with tight malloc
24011         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24012
24013 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24014
24015         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24016         are needed from arpa/inet.h.
24017         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24018         Reported by Bruno Haible.
24019
24020 2008-05-02  Jim Meyering  <meyering@redhat.com>
24021
24022         avoid compilation error on FreeBSD 6
24023         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24024
24025 2008-05-01  Jim Meyering  <meyering@redhat.com>
24026
24027         useless-if-before-free: correct --help's exit status description
24028         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24029         for one or more matches, etc.  Reported by Bruno Haible.
24030
24031         vc-list-files: make the stand-alone gnulib test work
24032         * modules/vc-list-files-tests (configure.ac):
24033         Define and AC_SUBST abs_aux_dir.
24034         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24035         $(abs_top_srcdir) to each script and having each of them
24036         duplicate the work of setting PATH, set PATH here, using
24037         the new variable, abs_aux_dir instead.
24038         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24039         * tests/test-vc-list-files-git.sh: Likewise.
24040         Reported by Bruno Haible.
24041
24042 2008-05-01  Bruno Haible  <bruno@clisp.org>
24043
24044         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24045         reallocation. Rename 'done' to 'found_delimiter'.
24046
24047 2008-05-01  Jim Meyering  <meyering@redhat.com>
24048
24049         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24050         * build-aux/vc-list-files: Use `...`, not $(...).
24051
24052 2008-04-30  Jim Meyering  <meyering@redhat.com>
24053
24054         add tests for vc-list-files
24055         * modules/vc-list-files-tests: New module.
24056         * tests/test-vc-list-files-cvs.sh: New file.
24057         * tests/test-vc-list-files-git.sh: New file.
24058
24059         avoid a warning from gcc
24060         * lib/getndelim2.c (IF_LINT): Define.
24061         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24062
24063         vc-list-files: work properly with build-aux/cvsu, too
24064         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24065         to all cvs-based clauses.
24066
24067         vc-list-files: work properly in the CVS+awk case, too
24068         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24069
24070         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24071         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24072         take more than one file argument, so .  Add quotes, just in case $dir
24073         ever contains a shell meta-character.  Prompted by Soren Hansen in
24074         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24075
24076 2008-04-29  Eric Blake  <ebb9@byu.net>
24077
24078         Optimize getndelim2 to use block operations when possible.
24079         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24080         freadseek, and memchr2.
24081         * lib/getndelim2.c (getndelim2): Use them for block reads.
24082
24083 2008-04-29  Bruno Haible  <bruno@clisp.org>
24084
24085         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24086         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24087         * modules/inet_ntop (Depends-on): Add extensions.
24088         * modules/inet_pton (Depends-on): Likewise.
24089         Reported by Simon Josefsson.
24090
24091 2008-04-29  Jim Meyering  <meyering@redhat.com>
24092
24093         When the is more than one match in a block, match all of them.
24094         * build-aux/useless-if-before-free: Iterate through each block
24095         until there are no more matches.
24096
24097         Fix broken useless-if-before-free script.
24098         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24099         the expression to match cast of argument to free-like function.
24100
24101 2008-04-29  Eric Blake  <ebb9@byu.net>
24102
24103         Use new header.
24104         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24105
24106 2008-04-29  Jim Meyering  <meyering@redhat.com>
24107
24108         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24109         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24110         by gnulib to exist and to declare e.g., inet_ntop.
24111         Don't include "inet_ntop.h", now removed.
24112
24113         * m4/arpa_inet_h.m4: Remove trailing blanks.
24114
24115 2008-04-29  Eric Blake  <ebb9@byu.net>
24116
24117         Silence valgrind on safe reads beyond potential array bounds.
24118         * lib/rawmemchr.valgrind: New file.
24119         * lib/strchrnul.valgrind: Likewise.
24120         * modules/rawmemchr (Files): Distribute new file.
24121         * modules/strchrnul (Files): Likewise.
24122         Suggested by Bruno Haible.
24123
24124 2008-04-29  Bruno Haible  <bruno@clisp.org>
24125
24126         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24127         (inet_ntop, inet_pton): Change portability warning's wording.
24128         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24129         Invoke gl_CHECK_NEXT_HEADERS.
24130         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24131         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24132         set ARPA_INET_H.
24133         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24134         * modules/arpa_inet (Description): No longer only for systems that
24135         lack it.
24136         (Depends-on): Add include_next.
24137         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24138         HAVE_ARPA_INET_H.
24139
24140 2008-04-29  Jim Meyering  <meyering@redhat.com>
24141
24142         * modules/mkdir (License): Re-license as LGPLv2+.
24143
24144 2008-04-29  Bruno Haible  <bruno@clisp.org>
24145
24146         * modules/rawmemchr (Maintainer): Set to Eric.
24147         * modules/strchrnul (Maintainer): Likewise.
24148
24149 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24150
24151         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24152         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24153
24154         * modules/arpa_inet (arpa/inet.h): Use them.
24155
24156 2008-04-28  Eric Blake  <ebb9@byu.net>
24157
24158         Test getndelim2.
24159         * modules/getndelim2-tests: New file.
24160         * tests/test-getndelim2.c: Likewise.
24161         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24162         stream.
24163         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24164
24165         * MODULES.html.sh: Document new module.
24166
24167 2008-04-20  Bruno Haible  <bruno@clisp.org>
24168
24169         * lib/c-stack.c (die): Use raise.
24170         * modules/c-stack (Depends-on): Add raise.
24171
24172 2008-04-28  Bruno Haible  <bruno@clisp.org>
24173
24174         Expect rpmatch to be declared.
24175         * lib/yesno.c (rpmatch): Remove declaration.
24176
24177         Declare rpmatch.
24178         * lib/stdlib.in.h (rpmatch): New declaration.
24179         * lib/rpmatch.c: Include <stdlib.h> first.
24180         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24181         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24183         HAVE_RPMATCH.
24184         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24185         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24186         (Include): Set to <stdlib.h>.
24187         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24188         HAVE_RPMATCH.
24189         * NEWS: Document the change.
24190
24191 2008-04-28  Bruno Haible  <bruno@clisp.org>
24192
24193         Change rpmatch to use nl_langinfo when appropriate.
24194         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24195         (N_): New macro.
24196         (localized_pattern): New function/macro.
24197         (try): Remove match, nomatch arguments. Copy the pattern into safe
24198         memory before caching it.
24199         (rpmatch): Use localized_pattern. Add translator comments.
24200         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24201         Suggested by Eric Blake.
24202         * modules/rpmatch (Depends-on): Add stdbool.
24203
24204 2008-04-28  Eric Blake  <ebb9@byu.net>
24205
24206         Add rawmemchr module, matching glibc.
24207         * modules/string (Makefile.am): New indicator.
24208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24209         * lib/string.in.h (rawmemchr): Declare when appropriate.
24210         * modules/rawmemchr: New file.
24211         * m4/rawmemchr.m4: Likewise.
24212         * lib/rawmemchr.c: Likewise.
24213         * modules/rawmemchr-tests: Likewise.
24214         * tests/test-rawmemchr.c: Likewise.
24215         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24216         module.
24217         * modules/strchrnul (Depends-on): Add rawmemchr.
24218         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24219
24220         Whitespace cleanup.
24221         * tests/test-strchrnul.c: Reindent.
24222         * lib/strchrnul.c: Likewise.
24223
24224         Optimize and test strchrnul.
24225         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24226         * modules/strchrnul-tests: New file.
24227         * tests/test-strchrnul.c: Likewise.
24228
24229         Remove intprops dependency.
24230         * modules/memchr (Depends-on): Remove intprops.
24231         * modules/memrchr (Depends-on): Likewise.
24232         * modules/memchr2 (Depends-on): Likewise.
24233         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24234         * lib/memrchr.c (__memrchr): Likewise.
24235         * lib/memrchr2.c (memchr2): Likewise.
24236         Reported by Simon Josefsson.
24237
24238 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24239
24240         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24241         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24242
24243 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24244
24245         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24246
24247         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24248
24249         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24250
24251         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24252         declarations.
24253         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24254
24255         * m4/inet_pton.m4: Don't check for header files.
24256
24257         * m4/inet_ntop.m4: Don't check for header files.
24258
24259 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24260
24261         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24262         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24263         trigger for cygwin).
24264         Reported by Bruno Haible  <bruno@clisp.org>.
24265
24266 2008-04-28  Bruno Haible  <bruno@clisp.org>
24267
24268         * doc/posix-functions/strdup.texi: Mention mingw problem.
24269
24270 2008-04-27  Bruno Haible  <bruno@clisp.org>
24271
24272         * modules/stat-time-tests (Depends-on): Add sleep.
24273         * tests/test-stat-time.c (force_unlink): New function.
24274         (cleanup): Use it.
24275         (test_mtime): Remove the ctime related tests.
24276         (test_ctime): New function, containing the ctime related tests.
24277         (main): Call test_ctime, except on native Windows platforms.
24278
24279 2008-04-27  Bruno Haible  <bruno@clisp.org>
24280
24281         * lib/rpmatch.c (rpmatch): Add some comments.
24282         Reported by James Youngman <jay@gnu.org>.
24283
24284 2008-04-27  Bruno Haible  <bruno@clisp.org>
24285
24286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24287         quiet NaNs.
24288
24289 2008-04-27  Bruno Haible  <bruno@clisp.org>
24290
24291         Make test-yesno.sh work on mingw.
24292         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24293         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24294         (main): Set stdin to binary mode.
24295         * modules/yesno-tests (Depends-on): Add binary-io.
24296
24297 2008-04-27  Bruno Haible  <bruno@clisp.org>
24298
24299         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24300         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24301         argument that lie outside the IEEE 854 domain.
24302         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24303         (gl_ISFINITE): Use it.
24304         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24305
24306 2008-04-27  Bruno Haible  <bruno@clisp.org>
24307
24308         Allow local renaming in config.h.
24309         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24310
24311 2008-04-27  Bruno Haible  <bruno@clisp.org>
24312
24313         * lib/memchr.c (__memchr): Change type of 'i'.
24314         * lib/memchr2.c (memchr2): Likewise.
24315
24316 2008-04-26  Eric Blake  <ebb9@byu.net>
24317         and Bruno Haible  <bruno@clisp.org>
24318
24319         Optimize and test memrchr.
24320         * modules/memrchr (Depends-on): Add intprops.
24321         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24322         * modules/memrchr-tests: New file.
24323         * tests/test-memrchr.c: New file.
24324
24325 2008-04-26  Bruno Haible  <bruno@clisp.org>
24326
24327         Add tentative support for DragonFly BSD.
24328         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24329         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24330         fp.
24331         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24332         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24333         * lib/fpurge.c (fpurge): Likewise.
24334         * lib/freadable.c (freaadable): Likewise.
24335         * lib/freadahead.c (freadahead): Likewise.
24336         * lib/freading.c (freading): Likewise.
24337         * lib/freadptr.c (freadptr): Likewise.
24338         * lib/freadseek.c (freadptrinc): Likewise.
24339         * lib/fseeko.c (fseeko): Likewise.
24340         * lib/fseterr.c (fseterr): Likewise.
24341         * lib/fwritable.c (fwritable): Likewise.
24342         * lib/fwriting.c (fwriting): Likewise.
24343
24344 2008-04-26  Bruno Haible  <bruno@clisp.org>
24345
24346         * lib/stdio-impl.h: New file.
24347         * lib/fbufmode.c: Include stdio-impl.h.
24348         (fbufmode): Use fp_, remove redundant #defines.
24349         * lib/fflush.c: Include stdio-impl.h.
24350         (clear_ungetc_buffer): Remove redundant #defines.
24351         * lib/fpurge.c: Include stdio-impl.h.
24352         (fpurge): Remove redundant #defines.
24353         * lib/freadable.c: Include stdio-impl.h.
24354         (freadable): Remove redundant #defines.
24355         * lib/freadahead.c: Include stdio-impl.h.
24356         (freadahead): Remove redundant #defines.
24357         * lib/freading.c: Include stdio-impl.h.
24358         (freading): Remove redundant #defines.
24359         * lib/freadptr.c: Include stdio-impl.h.
24360         (freadptr): Remove redundant #defines.
24361         * lib/freadseek.c: Include stdio-impl.h.
24362         (freadptrinc): Remove redundant #defines.
24363         * lib/fseeko.c: Include stdio-impl.h.
24364         (rpl_fseeko): Remove redundant #defines.
24365         * lib/fseterr.c: Include stdio-impl.h.
24366         (fseterr): Remove redundant #defines.
24367         * lib/fwritable.c: Include stdio-impl.h.
24368         (fwritable: Remove redundant #defines.
24369         * lib/fwriting.c: Include stdio-impl.h.
24370         (fwriting): Remove redundant #defines.
24371         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24372         * modules/fflush (Files): Likewise.
24373         * modules/fpurge (Files): Likewise.
24374         * modules/freadable (Files): Likewise.
24375         * modules/freadahead (Files): Likewise.
24376         * modules/freading (Files): Likewise.
24377         * modules/freadptr (Files): Likewise.
24378         * modules/freadseek (Files): Likewise.
24379         * modules/fseeko (Files): Likewise.
24380         * modules/fseterr (Files): Likewise.
24381         * modules/fwritable (Files): Likewise.
24382         * modules/fwriting (Files): Likewise.
24383
24384 2008-04-26  Bruno Haible  <bruno@clisp.org>
24385
24386         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24387         restore_seek_optimization, update_fpos_cache): New functions, extracted
24388         from rpl_fflush.
24389         (rpl_fflush): Use them.
24390         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24391         (gl_REPLACE_FFLUSH): Use it.
24392
24393 2008-04-26  Bruno Haible  <bruno@clisp.org>
24394
24395         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24396         on Solaris.
24397         * tests/test-xstrtoimax.sh: Likewise.
24398         * tests/test-xstrtoumax.sh: Likewise.
24399         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24400
24401 2008-04-26  Bruno Haible  <bruno@clisp.org>
24402
24403         * modules/memchr-tests: New file.
24404         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24405
24406 2008-04-26  Eric Blake  <ebb9@byu.net>
24407             Bruno Haible  <bruno@clisp.org>
24408
24409         * lib/memchr.c: Include intprops.h.
24410         (__memchr): Optimize parallel detection of matching bytes. Rename local
24411         variables. Add explanatory comments.
24412
24413 2008-04-26  Bruno Haible  <bruno@clisp.org>
24414
24415         Fix module 'memchr', broken since 2000-10-28.
24416         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24417
24418 2008-04-26  Bruno Haible  <bruno@clisp.org>
24419
24420         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24421         comments.
24422
24423 2008-04-25  Eric Blake  <ebb9@byu.net>
24424
24425         Use native fstatat on cygwin 1.7.0.
24426         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24427         first.
24428
24429 2008-04-23  Eric Blake  <ebb9@byu.net>
24430
24431         Improve memchr2 performance.
24432         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24433         NUL bytes.
24434         * modules/memchr2 (Depends-on): Use intprops.h.
24435
24436 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24437
24438         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24439         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24440         <blp@cs.stanford.edu>.
24441
24442 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24443
24444         * lib/arpa_inet.in.h: New file.
24445
24446         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24447         (Makefile.am): Sed in substitute header file.
24448
24449         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24450         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24451
24452         * modules/inet_ntop (configure.ac): Use
24453         gl_ARPA_INET_MODULE_INDICATOR.
24454
24455         * modules/inet_pton (configure.ac): Use
24456         gl_ARPA_INET_MODULE_INDICATOR.
24457
24458 2008-04-22  Jim Meyering  <meyering@redhat.com>
24459
24460         * modules/verify (License): Re-license as LGPLv2+.
24461
24462 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24463
24464         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24465         parameter to void* as per POSIX standard (MinGW uses char*).
24466
24467 2008-04-21  Bruno Haible  <bruno@clisp.org>
24468
24469         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24470         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24471         Define to replacements if REPLACE_ISWCNTRL is 1.
24472         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24473         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24474         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24475         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24476         what it fixes.
24477         * doc/posix-functions/iswalpha.texi: Likewise.
24478         * doc/posix-functions/iswblank.texi: Likewise.
24479         * doc/posix-functions/iswcntrl.texi: Likewise.
24480         * doc/posix-functions/iswdigit.texi: Likewise.
24481         * doc/posix-functions/iswgraph.texi: Likewise.
24482         * doc/posix-functions/iswlower.texi: Likewise.
24483         * doc/posix-functions/iswprint.texi: Likewise.
24484         * doc/posix-functions/iswpunct.texi: Likewise.
24485         * doc/posix-functions/iswspace.texi: Likewise.
24486         * doc/posix-functions/iswupper.texi: Likewise.
24487         * doc/posix-functions/iswxdigit.texi: Likewise.
24488         Reported by Alain Guibert.
24489
24490 2008-04-21  Bruno Haible  <bruno@clisp.org>
24491
24492         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24493         Patch by Alain Guibert.
24494
24495 2008-04-21  Bruno Haible  <bruno@clisp.org>
24496
24497         Fix test failures on mingw.
24498         * tests/test-xstrtol.c (print_no_progname): New function.
24499         (main): Install it in error_print_progname hook.
24500         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24501         * tests/test-xstrtoimax.sh: Likewise.
24502         * tests/test-xstrtoumax.sh: Likewise.
24503
24504 2008-04-21  Bruno Haible  <bruno@clisp.org>
24505
24506         Fix test failure on mingw.
24507         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24508
24509 2008-04-21  Bruno Haible  <bruno@clisp.org>
24510
24511         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24512         Actually assign a value.
24513
24514 2008-04-20  Bruno Haible  <bruno@clisp.org>
24515
24516         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24517         take 2.
24518         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24519         'canonicalize-lgpl' module is also used.
24520         * lib/canonicalize-lgpl.c: Undo last change.
24521         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24522
24523 2008-04-20  Bruno Haible  <bruno@clisp.org>
24524
24525         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24526         config.h. Provide _mkdir based fallback for mingw.
24527         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24528         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24529         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24530         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24531         rather than defining mkdir in config.h.
24532         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24533         (gl_SYS_STAT_H_DEFAULTS): New macro.
24534         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24535         HAVE_IO_H any more.
24536         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24537         HAVE_DECL_MKDIR and HAVE_IO_H.
24538
24539 2008-04-20  Bruno Haible  <bruno@clisp.org>
24540
24541         * lib/isapipe.c: Port to native Windows platforms.
24542
24543 2008-04-20  Bruno Haible  <bruno@clisp.org>
24544
24545         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24546
24547 2008-04-21  Eric Blake  <ebb9@byu.net>
24548
24549         Work around preprocessors that don't handle UINTMAX_MAX.
24550         * lib/memchr2.c (memchr2): Avoid embedded #if.
24551         Reported by Alain Guibert, fix suggested by Bruno Haible.
24552
24553 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24554
24555         * doc/posix-functions/strftime.texi (strftime): Explain better
24556         Windows incompatibility.  Suggested by Micah Cowan
24557         <micah@cowan.name>.
24558
24559 2008-04-20  Bruno Haible  <bruno@clisp.org>
24560
24561         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24562         unistr/u8-mblen.
24563
24564 2008-04-20  Bruno Haible  <bruno@clisp.org>
24565
24566         Fix test failure on platforms with non-GNU iconv.
24567         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24568         (U_TO_U8): Use it, rather than u16_to_u8.
24569         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24570         units at the end of the input string.
24571         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24572
24573 2008-04-20  Bruno Haible  <bruno@clisp.org>
24574
24575         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24576         when the resulting length is 0.
24577         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24578
24579 2008-04-20  Bruno Haible  <bruno@clisp.org>
24580
24581         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24582         works.
24583         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24584
24585 2008-04-20  Bruno Haible  <bruno@clisp.org>
24586
24587         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24588         * modules/tsearch-tests (configure.ac): Test for initstate function.
24589
24590 2008-04-20  Bruno Haible  <bruno@clisp.org>
24591
24592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24593         for nlink_t if missing.
24594         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24595
24596 2008-04-19  Bruno Haible  <bruno@clisp.org>
24597
24598         Work around snprintf bug on Linux libc5.
24599         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24601         gl_SNPRINTF_SIZE1.
24602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24603         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24604         that test failed.
24605         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24606         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24607         * modules/snprintf (Files): Add m4/printf.m4.
24608         * modules/vsnprintf (Files): Likewise.
24609         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24610         * doc/posix-functions/vsnprintf.texi: Likewise.
24611
24612 2008-04-19  Bruno Haible  <bruno@clisp.org>
24613
24614         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24615         from 0.0058 to less than 10^-7.
24616
24617 2008-04-19  Bruno Haible  <bruno@clisp.org>
24618
24619         Fix rounding when a precision is given.
24620         * lib/vasnprintf.c (is_borderline): New function.
24621         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24622         9...9x.
24623         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24624         %e, %g.
24625         * tests/test-vasprintf-posix.c (test_function): Likewise.
24626         * tests/test-snprintf-posix.h (test_function): Likewise.
24627         * tests/test-sprintf-posix.h (test_function): Likewise.
24628         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24629         * tests/test-printf-posix.h (test_function): Likewise.
24630         * tests/test-printf-posix.output: Update.
24631         Reported by John Darrington <john@darrington.wattle.id.au> via
24632         Ben Pfaff <blp@cs.stanford.edu>.
24633
24634 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24635
24636         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24637         Suggested by Bruno Haible <bruno@clisp.org>.
24638
24639 2008-04-17  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24642         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24643         implementation.
24644         Patch by Bruce Merry <bmerry@gmail.com>.
24645
24646 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24647
24648         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24649         doesn't work under Windows.
24650
24651 2008-04-16  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24654         New macros.
24655         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24656         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24657         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24658         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24659         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24660         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24661         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24662         macros.
24663         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24664         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24665         Northern Sotho, Uighur.
24666
24667 2008-04-16  Bruno Haible  <bruno@clisp.org>
24668
24669         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24670         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24671         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24672         Reported by Daniel Bergström <daniel@octocode.com>.
24673
24674 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24675             Bruno Haible  <bruno@clisp.org>
24676
24677         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24678         function.
24679         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24680         New functions, mostly extracted from gl_locale_name_default.
24681         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24682
24683 2008-04-16  Eric Blake  <ebb9@byu.net>
24684
24685         Adjust strtod detection to catch glibc 2.7 bug.
24686         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24687         Reported by John Gatewood Ham.
24688
24689 2008-04-16  Bruno Haible  <bruno@clisp.org>
24690
24691         Add tentative support for Linux libc5.
24692         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24693         * lib/fpurge.c (fpurge): Likewise.
24694         * lib/freadable.c (freadable): Likewise.
24695         * lib/freadahead.c (freadahead): Likewise.
24696         * lib/freading.c (freading): Likewise.
24697         * lib/freadptr.c (freadptr): Likewise.
24698         * lib/freadseek.c (freadptrinc): Likewise.
24699         * lib/fseeko.c (rpl_fseeko): Likewise.
24700         * lib/fseterr.c (fseterr): Likewise.
24701         * lib/fwritable.c (fwritable): Likewise.
24702         * lib/fwriting.c (fwriting): Likewise.
24703         Reported by Alain Guibert <alguibert+bts@free.fr>.
24704
24705 2008-04-15  Bruno Haible  <bruno@clisp.org>
24706
24707         * modules/mathl (configure.ac): Define module indicator.
24708
24709 2008-04-15  Bruno Haible  <bruno@clisp.org>
24710
24711         * lib/logl.c (logl): Remove unused variables.
24712
24713 2008-04-15  Bruno Haible  <bruno@clisp.org>
24714
24715         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24716         fails.
24717
24718 2008-04-15  Bruno Haible  <bruno@clisp.org>
24719
24720         * lib/trim.c (trim2): Fix argument of isspace() macro.
24721
24722 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24723
24724         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24725         to 0.
24726         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24727
24728 2008-04-14  Bruno Haible  <bruno@clisp.org>
24729
24730         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24731         AC_LANG_PROGRAM argument.
24732         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24733         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24735         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24736         * m4/math_h.m4 (gl_MATH_H): Likewise.
24737         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24739         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24740         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24741         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24742         * m4/regex.m4 (gl_REGEX): Likewise.
24743         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24744         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24746         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24748         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24749         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24750         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24751
24752 2008-04-14  Jim Meyering  <meyering@redhat.com>
24753
24754         test-strtod: fix typos: s/abs/fabs/
24755         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24756
24757 2008-04-13  Bruno Haible  <bruno@clisp.org>
24758
24759         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24760         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24761         module is also used and while not building the reloc-wrapper.
24762
24763 2008-04-13  Bruno Haible  <bruno@clisp.org>
24764
24765         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24766
24767 2008-04-13  Bruno Haible  <bruno@clisp.org>
24768
24769         Fix AIX compilation failure introduced on 2008-04-02.
24770         * tests/test-frexp.c (exp): Undefine before redefining.
24771         * tests/test-frexpl.c (exp): Likewise.
24772
24773 2008-04-13  Bruno Haible  <bruno@clisp.org>
24774
24775         Work around a HP-UX stdio bug.
24776         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24777         * tests/test-ftello.c (main): Likewise.
24778         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24779         * doc/posix-functions/ftello.texi: Likewise.
24780
24781 2008-04-13  Bruno Haible  <bruno@clisp.org>
24782
24783         Make test-signbit pass on HP-UX/hppa.
24784         * tests/test-signbit.c (minus_zerol): New variable.
24785         (test_signbitl): Use it.
24786
24787 2008-04-13  Bruno Haible  <bruno@clisp.org>
24788
24789         Make truncl work on OSF/1 4.0.
24790         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24791         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24792         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24794         HAVE_DECL_TRUNCL.
24795         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24796         HAVE_DECL_TRUNCL.
24797         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24798
24799 2008-04-13  Bruno Haible  <bruno@clisp.org>
24800
24801         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24802
24803 2008-04-13  Bruno Haible  <bruno@clisp.org>
24804
24805         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24806         expression, so as to avoid HP-UX 11 cc compiler bug.
24807
24808 2008-04-13  Bruno Haible  <bruno@clisp.org>
24809
24810         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24811
24812 2008-04-13  Bruno Haible  <bruno@clisp.org>
24813
24814         * lib/git-merge-changelog.c: Remove empty declaration outside of
24815         functions.
24816
24817 2008-04-13  Bruno Haible  <bruno@clisp.org>
24818
24819         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24820
24821 2008-04-13  Bruno Haible  <bruno@clisp.org>
24822
24823         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24824         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24826         also if it exists but lacks definitions of the SHUT_* macros.
24827         * modules/sys_socket (Description): Update.
24828         Reported by Elbert Pol <e.pol@chello.nl>.
24829
24830 2008-04-13  Bruno Haible  <bruno@clisp.org>
24831
24832         * lib/localcharset.c (OS2): Don't redefine if already defined.
24833         Reported by Elbert Pol <e.pol@chello.nl>.
24834
24835 2008-04-13  Bruno Haible  <bruno@clisp.org>
24836
24837         * lib/binary-io.h [__EMX__]: Include <io.h>.
24838         Reported by Elbert Pol <e.pol@chello.nl>.
24839
24840 2008-04-12  Bruno Haible  <bruno@clisp.org>
24841
24842         * lib/fpucw.h: Enable the definitions also for x86_64.
24843         Needed for NetBSD/x86_64.
24844         Reported by Thomas Klausner <tk@giga.or.at>.
24845
24846 2008-04-12  Bruno Haible  <bruno@clisp.org>
24847
24848         * tests/test-strtod.c: Include isnand.h.
24849         (main): Use isnand instead of isnan.
24850         Reported by Jim Meyering.
24851
24852 2008-04-12  Bruno Haible  <bruno@clisp.org>
24853
24854         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24855         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24856
24857 2008-04-12  Jim Meyering  <meyering@redhat.com>
24858
24859         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24860
24861 2008-04-12  Bruno Haible  <bruno@clisp.org>
24862
24863         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24864         Reported by Elbert Pol <e.pol@chello.nl>.
24865
24866 2008-04-12  Eric Blake  <ebb9@byu.net>
24867
24868         Work around Solaris 10 math.h bug.
24869         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24870         (gl_MATH_H_DEFAULTS): Set up default.
24871         * modules/math (Makefile.am): Replace new indicators.
24872         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24873         * tests/test-math.c (main): Test this.
24874         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24875         * doc/posix-headers/math.texi (math.h): Mention bug.
24876         Reported by Nelson H. F. Beebe and Jim Meyering.
24877
24878 2008-04-11  Bruno Haible  <bruno@clisp.org>
24879
24880         Adapt to future versions of Apple GCC.
24881         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24882         Reported by Peter O'Gorman <peter@pogma.com>.
24883
24884 2008-04-11  Bruno Haible  <bruno@clisp.org>
24885
24886         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24887
24888 2008-04-11  Bruno Haible  <bruno@clisp.org>
24889
24890         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24891
24892         * modules/getaddrinfo-tests (Makefile.am): Define
24893         test_getaddrinfo_LDADD.
24894
24895 2008-04-11  Bruno Haible  <bruno@clisp.org>
24896
24897         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24898         (init): Fix syntax error.
24899         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24900         is declared.
24901
24902 2008-04-11  Bruno Haible  <bruno@clisp.org>
24903
24904         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24905         * modules/glob (Depends-on): Add stdbool.
24906
24907 2008-04-11  Bruno Haible  <bruno@clisp.org>
24908
24909         * lib/trim.c: Include <string.h>.
24910
24911 2008-04-11  Eric Blake  <ebb9@byu.net>
24912
24913         Avoid compile failure on OS/2.
24914         * lib/regex_internal.h (internal_function): Disable optimization
24915         on OS/2 (__EMX__), where it caused compiler error.
24916         Reported by Elbert Pol.
24917
24918 2008-04-11  Bruno Haible  <bruno@clisp.org>
24919
24920         Flush the standard error stream before aborting. Needed on mingw.
24921         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24922         * tests/test-array_list.c (ASSERT): Likewise.
24923         * tests/test-array_oset.c (ASSERT): Likewise.
24924         * tests/test-avltree_list.c (ASSERT): Likewise.
24925         * tests/test-avltree_oset.c (ASSERT): Likewise.
24926         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24927         * tests/test-binary-io.c (ASSERT): Likewise.
24928         * tests/test-byteswap.c (ASSERT): Likewise.
24929         * tests/test-c-ctype.c (ASSERT): Likewise.
24930         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24931         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24932         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24933         * tests/test-c-strstr.c (ASSERT): Likewise.
24934         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24935         * tests/test-canonicalize.c (ASSERT): Likewise.
24936         * tests/test-carray_list.c (ASSERT): Likewise.
24937         * tests/test-ceilf1.c (ASSERT): Likewise.
24938         * tests/test-ceilf2.c (ASSERT): Likewise.
24939         * tests/test-ceill.c (ASSERT): Likewise.
24940         * tests/test-count-one-bits.c (ASSERT): Likewise.
24941         * tests/test-fbufmode.c (ASSERT): Likewise.
24942         * tests/test-fflush2.c (ASSERT): Likewise.
24943         * tests/test-floorf1.c (ASSERT): Likewise.
24944         * tests/test-floorf2.c (ASSERT): Likewise.
24945         * tests/test-floorl.c (ASSERT): Likewise.
24946         * tests/test-fopen.c (ASSERT): Likewise.
24947         * tests/test-fpending.c (ASSERT): Likewise.
24948         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24949         * tests/test-fpurge.c (ASSERT): Likewise.
24950         * tests/test-freadable.c (ASSERT): Likewise.
24951         * tests/test-freadahead.c (ASSERT): Likewise.
24952         * tests/test-freading.c (ASSERT): Likewise.
24953         * tests/test-freadptr.c (ASSERT): Likewise.
24954         * tests/test-freadptr2.c (ASSERT): Likewise.
24955         * tests/test-freadseek.c (ASSERT): Likewise.
24956         * tests/test-freopen.c (ASSERT): Likewise.
24957         * tests/test-frexp.c (ASSERT): Likewise.
24958         * tests/test-frexpl.c (ASSERT): Likewise.
24959         * tests/test-fseek.c (ASSERT): Likewise.
24960         * tests/test-fseeko.c (ASSERT): Likewise.
24961         * tests/test-fstrcmp.c (ASSERT): Likewise.
24962         * tests/test-ftell.c (ASSERT): Likewise.
24963         * tests/test-ftello.c (ASSERT): Likewise.
24964         * tests/test-func.c (ASSERT): Likewise.
24965         * tests/test-fwritable.c (ASSERT): Likewise.
24966         * tests/test-fwriting.c (ASSERT): Likewise.
24967         * tests/test-getdelim.c (ASSERT): Likewise.
24968         * tests/test-getline.c (ASSERT): Likewise.
24969         * tests/test-i-ring.c (ASSERT): Likewise.
24970         * tests/test-iconv-utf.c (ASSERT): Likewise.
24971         * tests/test-iconv.c (ASSERT): Likewise.
24972         * tests/test-isfinite.c (ASSERT): Likewise.
24973         * tests/test-isnand.c (ASSERT): Likewise.
24974         * tests/test-isnanf.c (ASSERT): Likewise.
24975         * tests/test-isnanl.h (ASSERT): Likewise.
24976         * tests/test-ldexpl.c (ASSERT): Likewise.
24977         * tests/test-linked_list.c (ASSERT): Likewise.
24978         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24979         * tests/test-localename.c (ASSERT): Likewise.
24980         * tests/test-lseek.c (ASSERT): Likewise.
24981         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24982         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24983         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24984         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24985         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24986         * tests/test-mbschr.c (ASSERT): Likewise.
24987         * tests/test-mbscspn.c (ASSERT): Likewise.
24988         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24989         * tests/test-mbspbrk.c (ASSERT): Likewise.
24990         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24991         * tests/test-mbsrchr.c (ASSERT): Likewise.
24992         * tests/test-mbsspn.c (ASSERT): Likewise.
24993         * tests/test-mbsstr1.c (ASSERT): Likewise.
24994         * tests/test-mbsstr2.c (ASSERT): Likewise.
24995         * tests/test-mbsstr3.c (ASSERT): Likewise.
24996         * tests/test-memchr2.c (ASSERT): Likewise.
24997         * tests/test-memmem.c (ASSERT): Likewise.
24998         * tests/test-open.c (ASSERT): Likewise.
24999         * tests/test-printf-frexp.c (ASSERT): Likewise.
25000         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25001         * tests/test-printf-posix.c (ASSERT): Likewise.
25002         * tests/test-quotearg.c (ASSERT): Likewise.
25003         * tests/test-rbtree_list.c (ASSERT): Likewise.
25004         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25005         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25006         * tests/test-round1.c (ASSERT): Likewise.
25007         * tests/test-roundf1.c (ASSERT): Likewise.
25008         * tests/test-roundl.c (ASSERT): Likewise.
25009         * tests/test-signbit.c (ASSERT): Likewise.
25010         * tests/test-sleep.c (ASSERT): Likewise.
25011         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25012         * tests/test-snprintf.c (ASSERT): Likewise.
25013         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25014         * tests/test-stat-time.c (ASSERT): Likewise.
25015         * tests/test-strcasestr.c (ASSERT): Likewise.
25016         * tests/test-strerror.c (ASSERT): Likewise.
25017         * tests/test-striconv.c (ASSERT): Likewise.
25018         * tests/test-striconveh.c (ASSERT): Likewise.
25019         * tests/test-striconveha.c (ASSERT): Likewise.
25020         * tests/test-strsignal.c (ASSERT): Likewise.
25021         * tests/test-strstr.c (ASSERT): Likewise.
25022         * tests/test-strtod.c (ASSERT): Likewise.
25023         * tests/test-trunc1.c (ASSERT): Likewise.
25024         * tests/test-trunc2.c (ASSERT): Likewise.
25025         * tests/test-truncf1.c (ASSERT): Likewise.
25026         * tests/test-truncf2.c (ASSERT): Likewise.
25027         * tests/test-truncl.c (ASSERT): Likewise.
25028         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25029         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25030         * tests/test-vasnprintf.c (ASSERT): Likewise.
25031         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25032         * tests/test-vasprintf.c (ASSERT): Likewise.
25033         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25034         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25035         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25036         * tests/test-vsnprintf.c (ASSERT): Likewise.
25037         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25038         * tests/test-wcwidth.c (ASSERT): Likewise.
25039         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25040         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25041         * tests/test-xvasprintf.c (ASSERT): Likewise.
25042         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25043         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25044         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25045         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25046         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25047         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25048         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25049         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25050         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25051         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25052         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25053         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25054         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25055         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25056         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25057         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25058         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25059         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25060         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25061         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25062         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25063         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25064         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25065         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25066         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25067         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25068         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25069         * tests/unictype/test-combining.c (ASSERT): Likewise.
25070         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25071         * tests/unictype/test-digit.c (ASSERT): Likewise.
25072         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25073         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25074         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25075         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25076         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25077         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25078         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25079         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25080         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25081         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25082         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25083         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25084         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25085         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25086         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25087         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25088         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25089         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25090         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25091         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25092         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25093         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25094         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25095         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25096         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25097         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25098         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25099         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25100         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25101         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25102         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25103         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25104         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25105         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25106         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25107         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25108         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25109         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25110         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25111         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25112         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25113         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25114         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25115         Reported by Eric Blake.
25116
25117 2008-04-11  Bruno Haible  <bruno@clisp.org>
25118
25119         * lib/wchar.in.h: Tweak comment.
25120
25121 2008-04-11  Bruno Haible  <bruno@clisp.org>
25122
25123         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25124         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25125         gl_COMMON.
25126         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25127
25128 2008-04-11  Bruno Haible  <bruno@clisp.org>
25129
25130         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25131
25132 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25133
25134         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25135         of attempting to use non-existing /dev/*random.  Based on patch
25136         from Adam Strzelecki <ono@java.pl> in
25137         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25138
25139 2008-04-08  Bruno Haible  <bruno@clisp.org>
25140
25141         Add tentative support for emx+gcc.
25142         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25143         * lib/fpurge.c (fpurge): Likewise.
25144         * lib/freadable.c (freadable): Likewise.
25145         * lib/freadahead.c (freadahead): Likewise.
25146         * lib/freading.c (freading): Likewise.
25147         * lib/freadptr.c (freadptr): Likewise.
25148         * lib/freadseek.c (freadptrinc): Likewise.
25149         * lib/fseeko.c (rpl_fseeko): Likewise.
25150         * lib/fseterr.c (fseterr): Likewise.
25151         * lib/fwritable.c (fwritable): Likewise.
25152         * lib/fwriting.c (fwriting): Likewise.
25153         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25154
25155 2008-04-09  Eric Blake  <ebb9@byu.net>
25156
25157         Avoid some autoconf warnings.
25158         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25159         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25160         * m4/afs.m4 (gl_AFS): Likewise.
25161         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25162         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25164         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25165         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25166         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25167         (AC_CHECK_DECLS_ONCE): Likewise.
25168         Rename file...
25169         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25170         gnulib-tool requires autoconf 2.59 or better.
25171         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25172
25173 2008-04-08  Eric Blake  <ebb9@byu.net>
25174
25175         Use 'git describe --match' if present (added in git 1.5.5).
25176         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25177         if possible.
25178
25179 2008-04-08  Bruno Haible  <bruno@clisp.org>
25180
25181         Add tentative support for OpenServer.
25182         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25183         _ptr, _cnt.
25184         * lib/fpurge.c (fpurge): Likewise.
25185         * lib/freadable.c (freadable): Likewise.
25186         * lib/freadahead.c (freadahead): Likewise.
25187         * lib/freading.c (freading): Likewise.
25188         * lib/freadptr.c (freadptr): Likewise.
25189         * lib/freadseek.c (freadptrinc): Likewise.
25190         * lib/fseeko.c (rpl_fseeko): Likewise.
25191         * lib/fseterr.c (fseterr): Likewise.
25192         * lib/fwritable.c (fwritable): Likewise.
25193         * lib/fwriting.c (fwriting): Likewise.
25194         Reported by Roger Cornelius <rac@tenzing.org> and
25195         Brian K. White <brian@aljex.com>.
25196
25197 2008-04-06  Jim Meyering  <meyering@redhat.com>
25198
25199         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25200
25201 2008-04-06  Bruno Haible  <bruno@clisp.org>
25202
25203         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25204         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25205         * tests/test-printf-posix.sh: Likewise.
25206         * tests/test-vfprintf-posix.sh: Likewise.
25207         * tests/test-vprintf-posix.sh: Likewise.
25208         * tests/test-xprintf-posix.sh: Likewise.
25209
25210 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25211
25212         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25213         hide error from 'ls', needed on OS/2.
25214         Report by Elbert Pol <elbert.pol@gmail.com>.
25215
25216 2008-04-04  Eric Blake  <ebb9@byu.net>
25217
25218         Make test-fseeko.c failures meaningful.
25219         * tests/test-fseeko.c: Print line number on failure.
25220         * tests/test-fseek.c: Likewise.
25221         Reported by Nelson H. F. Beebe.
25222
25223         Improve strtod bug detection check.
25224         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25225         required for Solaris 10.
25226         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25227
25228 2008-04-04  Bruno Haible  <bruno@clisp.org>
25229
25230         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25231         by m4/setenv.m4.
25232
25233 2008-04-03  Eric Blake  <ebb9@byu.net>
25234
25235         Ensure sane .version contents.
25236         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25237         version string.
25238         * build-aux/git-version-gen: Improve documentation.
25239
25240         Make GNU make output nicer.
25241         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25242         MAKECMDGOALS to enforce message for all command line targets.  Set
25243         srcdir for use in maint.mk.
25244
25245         Another maintainer tweak.
25246         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25247         a target that regenerates version.
25248
25249 2008-04-03  Jim Meyering  <meyering@redhat.com>
25250
25251         vc-list-files: don't cause coreutils "make po-check" failure
25252         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25253
25254 2008-04-03  Eric Blake  <ebb9@byu.net>
25255
25256         Allow VPATH usage of vc-list-files.
25257         * build-aux/vc-list-files (scriptversion): Add timestamp.
25258         (options): Add --help, --version, -C.
25259         (CVS): Support installed cvsu.
25260
25261 2008-04-02  Bruno Haible  <bruno@clisp.org>
25262
25263         Avoid some "statement with no effect" warnings from gcc.
25264         * tests/test-wctype.c (main): Explicitly ignore unused values.
25265         Reported by Jim Meyering.
25266
25267 2008-04-02  Jim Meyering  <meyering@redhat.com>
25268
25269         Avoid some warnings from "gcc -Wshadow".
25270         * tests/test-frexp.c (exp): Define to a different identifier.
25271         * tests/test-frexpl.c (exp): Likewise.
25272
25273 2008-04-03  Jim Meyering  <meyering@redhat.com>
25274
25275         bootstrap: remove dangling *.[ch] symlinks from lib
25276         * build-aux/bootstrap [dangling symlink removal]: Move find's
25277         -depth option to precede all others, to avoid a warning.
25278         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25279
25280 2008-04-02  Bruno Haible  <bruno@clisp.org>
25281
25282         Avoid some warnings from "gcc -Wshadow".
25283         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25284         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25285         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25286         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25287         Reported by Jim Meyering.
25288
25289 2008-04-01  Bruno Haible  <bruno@clisp.org>
25290
25291         Fix test to work on IRIX 6.5 with cc.
25292         * tests/test-math.c (numeric_equal): New function.
25293         (main): Use it.
25294
25295 2008-04-01  Bruno Haible  <bruno@clisp.org>
25296
25297         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25298
25299 2008-04-01  Bruno Haible  <bruno@clisp.org>
25300
25301         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25302         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25303         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25304         (Depends-on): Remove math.
25305
25306         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25307         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25308         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25309         (Depends-on): Remove math.
25310
25311         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25312         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25313         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25314         (Depends-on): Remove math.
25315         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25316         (Depends-on): Remove math.
25317
25318         * tests/test-sprintf-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/sprintf-posix-tests (Files): Add tests/nan.h.
25321         (Depends-on): Remove math.
25322         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25323         (Depends-on): Remove math.
25324
25325         * tests/test-round1.c: Include nan.h.
25326         (main): Use NaNd instead of NAN.
25327         * modules/round-tests (Files): Add tests/nan.h.
25328
25329         * tests/test-trunc1.c: Include nan.h.
25330         (main): Use NaNd instead of NAN.
25331         * modules/trunc-tests (Files): Add tests/nan.h.
25332
25333         * tests/test-roundf1.c: Include nan.h.
25334         (main): Use NaNf instead of NAN.
25335         * modules/roundf-tests (Files): Add tests/nan.h.
25336
25337         * tests/test-truncf1.c: Include nan.h.
25338         (main): Use NaNf instead of NAN.
25339         * modules/truncf-tests (Files): Add tests/nan.h.
25340
25341         * tests/test-ceilf1.c: Include nan.h.
25342         (main): Use NaNf instead of NAN.
25343         * modules/ceilf-tests (Files): Add tests/nan.h.
25344
25345         * tests/test-floorf1.c: Include nan.h.
25346         (main): Use NaNf instead of NAN.
25347         * modules/floorf-tests (Files): Add tests/nan.h.
25348
25349         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25350         (main): Use NaNf instead of NAN.
25351         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25352
25353         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25354         (main): Use NaNd instead of NAN.
25355         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25356
25357         * tests/test-frexp.c: Include nan.h.
25358         (main): Use NaNd instead of NAN.
25359         * modules/frexp-tests (Files): Add tests/nan.h.
25360
25361         * lib/isnan.c: Don't include <math.h>.
25362         (FUNC): Don't use NAN macro.
25363         * modules/isnand-nolibm (Depends-on): Remove math.
25364         * modules/isnanf-nolibm (Depends-on): Remove math.
25365         * modules/isnanl (Depends-on): Remove math.
25366         * modules/isnanl-nolibm (Depends-on): Remove math.
25367
25368         * tests/nan.h: New file.
25369
25370 2008-04-01  Eric Blake  <ebb9@byu.net>
25371
25372         Fix typos.
25373         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25374         values to be the right type.
25375
25376         For now, cater to gnulib strtod inaccuracies.
25377         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25378         fractional results.  While not as nice from a QoI perspective, it
25379         is a quicker patch than correctly implementing decimal to binary
25380         rounding.
25381
25382 2008-03-31  Eric Blake  <ebb9@byu.net>
25383
25384         Guarantee a definition of NAN.
25385         * lib/math.in.h (NAN): Define if missing.
25386         * tests/test-math.c (main): Test it.
25387         * doc/posix-headers/math.texi (math.h): Document this.
25388         * lib/isnan.c (rpl_isnand): Use it.
25389         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25390         * tests/test-floorf1.c (NaN): Likewise.
25391         * tests/test-frexp.c (NaN): Likewise.
25392         * tests/test-isnand.c (NaN): Likewise.
25393         * tests/test-isnanf.c (NaN): Likewise.
25394         * tests/test-round1.c (NaN): Likewise.
25395         * tests/test-roundf1.c (NaN): Likewise.
25396         * tests/test-snprintf-posix.h (NaN): Likewise.
25397         * tests/test-sprintf-posix.h (NaN): Likewise.
25398         * tests/test-trunc1.c (NaN): Likewise.
25399         * tests/test-truncf1.c (NaN): Likewise.
25400         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25401         * tests/test-vasprintf-posix.c (NaN): Likewise.
25402         * modules/isnand-nolibm (Depends-on): Add math.
25403         * modules/isnanf-nolibm (Depends-on): Likewise.
25404         * modules/isnanl (Depends-on): Likewise.
25405         * modules/isnanl-nolibm (Depends-on): Likewise.
25406         * modules/snprintf-posix-tests (Depends-on): Likewise.
25407         * modules/sprintf-posix-tests (Depends-on): Likewise.
25408         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25409         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25410         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25411         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25412
25413 2008-03-31  Bruno Haible  <bruno@clisp.org>
25414
25415         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25416         * doc/posix-functions/strtod.texi: Likewise.
25417
25418 2008-03-31  Bruno Haible  <bruno@clisp.org>
25419
25420         * tests/test-strtod.c (main): Don't use C99 syntax.
25421
25422 2008-03-31  Bruno Haible  <bruno@clisp.org>
25423
25424         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25425         Reported by Eric Blake.
25426
25427 2008-03-31  Jim Meyering  <meyering@redhat.com>
25428
25429         Don't compare actual signbit return values.
25430         * tests/test-strtod.c (main): Rather, compare only their
25431         zero/non-zero nature.
25432
25433 2008-03-31  Eric Blake  <ebb9@byu.net>
25434
25435         More strtod documentation.
25436         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25437         failures as distinct bugs.
25438
25439 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25440
25441         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25442         Problem reported by Erik Benada in
25443         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25444
25445 2008-03-30  Bruno Haible  <bruno@clisp.org>
25446
25447         * tests/test-strtod.c: Add comments about which assertion fails on which
25448         platform.
25449         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25450
25451 2008-03-30  Eric Blake  <ebb9@byu.net>
25452
25453         Test signbit behavior on zeros.
25454         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25455         (test_signbitd, test_signbitl): Likewise.
25456
25457         More strtod touchups.
25458         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25459         sign of negative underflow, for now.  Use .5, not .1.
25460         * doc/posix-functions/strtod.texi (strtod): Mention these
25461         limitations.
25462         Reported by Jim Meyering.
25463
25464 2008-03-30  Bruno Haible  <bruno@clisp.org>
25465
25466         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25467         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25468
25469 2008-03-30  Bruno Haible  <bruno@clisp.org>
25470
25471         Avoid failure when attempting to return empty iconv results on some
25472         platforms.
25473         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25474         allocation, don't report ENOMEM when the resulting string is empty.
25475
25476 2008-03-30  Bruno Haible  <bruno@clisp.org>
25477
25478         Fix buffer overrun.
25479         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25480         Don't consider the width for tmp_length. Check count against tmp_length
25481         before doing the padding. Ensure enough allocation during padding.
25482
25483 2008-03-30  Eric Blake  <ebb9@byu.net>
25484
25485         strtod touchups.
25486         * lib/strtod.c (strtod): Avoid compiler warnings.
25487         Reported by Jim Meyering.
25488
25489 2008-03-30  Bruno Haible  <bruno@clisp.org>
25490
25491         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25492         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25493         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25494         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25495         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25496         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25497         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25498         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25499
25500         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25501         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25502         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25503         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25504         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25505         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25506         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25507         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25508
25509         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25510         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25511         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25512         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25513         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25514         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25515         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25516         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25517
25518         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25519         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25520
25521         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25522         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25523
25524         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25525         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25526
25527         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25528         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25529         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25530
25531         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25533         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25534
25535         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25536         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25537         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25538
25539         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25540         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25541         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25542
25543         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25544         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25546         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25547         (Depends-on): Add EOVERFLOW.
25548         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25549         (Depends-on): Add EOVERFLOW.
25550         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25551         (Depends-on): Add EOVERFLOW.
25552         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25553         (Depends-on): Add EOVERFLOW.
25554         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25555         (Depends-on): Add EOVERFLOW.
25556         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25557         (Depends-on): Add EOVERFLOW.
25558         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25559         (Depends-on): Add EOVERFLOW.
25560         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25561         (Depends-on): Add EOVERFLOW.
25562
25563         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25564         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25565         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25566
25567         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25569         * modules/snprintf (Depends-on): Add EOVERFLOW.
25570
25571         * lib/poll.c (EOVERFLOW): Remove fallback.
25572         * modules/poll (Depends-on): Add EOVERFLOW.
25573
25574         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25575         * modules/getugroups (Depends-on): Add EOVERFLOW.
25576
25577         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25578         * modules/getdelim (Depends-on): Add EOVERFLOW.
25579
25580         * lib/ftell.c (EOVERFLOW): Remove fallback.
25581         * modules/ftell (Depends-on): Add EOVERFLOW.
25582
25583         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25585         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25586
25587         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25588
25589         * modules/EOVERFLOW-tests: New file.
25590         * tests/test-EOVERFLOW.c: New file.
25591
25592         * modules/EOVERFLOW: New file.
25593         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25594
25595 2008-03-30  Bruno Haible  <bruno@clisp.org>
25596
25597         Fix bug introduced on 2007-06-10.
25598         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25599         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25600
25601 2008-03-30  Bruno Haible  <bruno@clisp.org>
25602
25603         Improve freadseek's efficiency after ungetc.
25604         * lib/freadseek.c: Include freadahead.h.
25605         (freadptrinc): New function, extracted from freadseek.
25606         (freadseek): Use it in a loop. Use freadahead to determine the number
25607         of loop iterations.
25608         * modules/freadseek (Depends-on): Add freadahead.
25609         (configure.ac): Require AC_C_INLINE.
25610
25611 2008-03-30  Bruno Haible  <bruno@clisp.org>
25612
25613         * lib/freadseek.c (freadseek): Don't ignore the return value of
25614         freadptr.
25615
25616 2008-03-29  Eric Blake  <ebb9@byu.net>
25617
25618         Add hex float support.
25619         * modules/strtod (Depends-on): Add c-ctype.
25620         (Link): Mention POW_LIB.
25621         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25622         whitespace between 'e' and exponent.
25623         * tests/test-strtod.c (main): Enable hex float tests.
25624         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25625         now provides.
25626
25627         Document various strtod bugs, with some fixes.
25628         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25629         "-0x", "inf", "nan", and hex constants.
25630         * doc/posix-functions/atof.texi (atof): Likewise.
25631         * modules/stdlib (Makefile.am): Support strtod.
25632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25633         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25634         detect additional strtod bugs.
25635         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25636         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25637         bool where appropriate.  Parse 'inf' and 'nan'.
25638         * tests/test-strtod.c: New file.
25639         * modules/strtod (Depends-on): Add stdbool, stdlib.
25640         (configure.ac): Turn on module indicator.
25641         * modules/strtod-tests: New module.
25642
25643 2008-03-29  Eric Blake  <ebb9@byu.net>
25644
25645         Fix ftell on mingw.
25646         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25647         * modules/ftell-tests (Depends-on): Add binary-io.
25648         * modules/ftello-tests (Depends-on): Likewise.
25649         * tests/test-ftell.c (main): Enhance test to cover behavior after
25650         ungetc.  Enforce binary mode.
25651         * tests/test-ftello.c (main): Likewise.
25652
25653         Pass test-freadseek on cygwin.
25654         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25655         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25656         ungetc buffer.
25657
25658         * tests/test-fflush2.c (main): Fix typo.
25659
25660 2008-03-29  Bruno Haible  <bruno@clisp.org>
25661
25662         * tests/test-fflush2.c (main): Temporarily disable the contents of
25663         this test.
25664         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25665         Reported by Eric Blake.
25666
25667 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25668
25669         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25670         (GC_SHA224_DIGEST_SIZE): Add.
25671
25672         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25673         (gc_hash_digest_length): Likewise.
25674         (gc_hash_buffer): Likewise.
25675
25676 2008-03-25  Bruno Haible  <bruno@clisp.org>
25677
25678         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25679         detail which gettext release to use.
25680         Reported by Simon Josefsson.
25681
25682 2008-03-26  Jim Meyering  <meyering@redhat.com>
25683
25684         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25685         * modules/gnumakefile (clean-GNUmakefile): Also, use
25686         test ... && ... || : syntax rather than if-then ... fi.
25687
25688         gnumakefile: Don't double-quote-expand $(VPATH) value.
25689         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25690
25691 2008-03-24  Eric Blake  <ebb9@byu.net>
25692
25693         Alter GNUmakefile to install into top directory.
25694         * modules/maintainer-makefile: Split, and add dependency...
25695         * modules/gnumakefile: to this new module.
25696         * build-aux/GNUmakefile: Move...
25697         * top/GNUmakefile: ...here.
25698         * build-aux/maint.mk: Move...
25699         * top/maint.mk: ...here.
25700         * MODULES.html.sh (Support for maintaining...): Document new
25701         module.
25702
25703 2008-03-23  Bruno Haible  <bruno@clisp.org>
25704
25705         * gnulib-tool: New options --vc-files, --no-vc-files.
25706         (func_usage): Document them.
25707         (vc_files): New variable.
25708         (func_import): Consider vc_files.
25709         (func_create_testdir): Set vc_files to empty.
25710         Suggested by Jim Meyering and Karl Berry.
25711
25712 2008-03-23  Bruno Haible  <bruno@clisp.org>
25713
25714         Fix regex compilation error on HP-UX 11.
25715         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25716         * modules/regex (Files): Add m4/mbstate_t.m4.
25717         Reported by Ton Voon <ton.voon@altinity.com>.
25718
25719 2008-03-23  Bruno Haible  <bruno@clisp.org>
25720
25721         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25722
25723 2008-03-23  Eric Blake  <ebb9@byu.net>
25724             Bruno Haible  <bruno@clisp.org>
25725
25726         Install files from top/ in the destination directory.
25727         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25728         augmentation also for the files from top/.
25729         (func_import, func_create_testdir): Rewrite file names:
25730         top/filename -> filename.
25731
25732 2008-03-23  Bruno Haible  <bruno@clisp.org>
25733
25734         Tweak "gnulib --version" output.
25735         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25736
25737 2008-03-23  Bruno Haible  <bruno@clisp.org>
25738
25739         Tweak "gnulib --version" output.
25740         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25741         rather than contents of ChangeLog, when possible.
25742
25743 2008-03-21  Eric Blake  <ebb9@byu.net>
25744
25745         More --version tweaks.
25746         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25747         date of last ChangeLog entry.
25748
25749 2008-03-21  Jim Meyering  <meyering@redhat.com>
25750
25751         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25752
25753 2008-03-20  Eric Blake  <ebb9@byu.net>
25754
25755         VPATH fix.
25756         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25757
25758 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25759
25760         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25761         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25762
25763 2008-03-20  Eric Blake  <ebb9@byu.net>
25764
25765         Sync GNUmakefile with coreutils.
25766         * build-aux/GNUmakefile (have-Makefile): Rename...
25767         (_have-Makefile): ...to this, for namespace consideration.
25768         (GNUmakefile.cfg): Include, if present.
25769         (_autoreconf): Define a default.
25770         (_is-dist-target): New rule for rebuilds to pick up intra-release
25771         version.
25772         (maint-cfg.mk): Rename...
25773         (cfg.mk): ...to this.
25774
25775 2008-03-18  Jim Meyering  <meyering@redhat.com>
25776
25777         New script and module: mktempd
25778         * MODULES.html.sh (maint+release support): Add mktempd.
25779         * build-aux/mktempd: New file.
25780         * modules/mktempd: New file.
25781
25782 2008-03-15  Jim Meyering  <meyering@redhat.com>
25783
25784         Undo last change.
25785         * lib/sha1.c, lib/md5.c: 63 != ~63.
25786         Reported by Andreas Schwab.
25787
25788         sha1.c, md5.c: Hoist a redundant expression.
25789         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25790         "ctx->buflen" only once, before calling *_process_block.
25791         * lib/md5.c (md5_process_bytes): Likewise.
25792
25793 2008-03-14  Eric Blake  <ebb9@byu.net>
25794
25795         Bump copyright year in files generated by gnulib-tool.
25796         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25797         gnulib-tool, rather than hard-coding it.
25798
25799         Fix 'gnulib-tool --version' output to work with git.
25800         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25801         (startup): ...here.
25802         (func_version): Use it to invoke git-version-gen, rather than
25803         relying on CVS keyword expansion.  Modernize wording.
25804         (cvsdatestamp, last_checkin_date, version): Kill unused
25805         variables.
25806
25807 2008-03-12  Jim Meyering  <meyering@redhat.com>
25808
25809         Recognize optional cast of the argument to free.
25810         * build-aux/useless-if-before-free: Update regexps.
25811
25812         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25813
25814 2008-03-11  Bruno Haible  <bruno@clisp.org>
25815
25816         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25817         by a single package.
25818         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25819         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25820         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25821         Reported by Sam Steingold <sds@gnu.org>.
25822
25823 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25824
25825         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25826         repositories.
25827
25828 2008-03-11  Bruno Haible  <bruno@clisp.org>
25829
25830         Avoid conflicts between local macro definitions.
25831         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25832         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25833
25834 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25835             Bruno Haible  <bruno@clisp.org>
25836
25837         Make va_copy work with some version of xlc on AIX 5.1.
25838         * lib/stdarg.in.h: New file.
25839         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25840         On AIX, use a <stdarg.h> file substitute.
25841         * modules/stdarg (Files): Add lib/stdarg.in.h.
25842         (Depends-on): Add include_next.
25843         (Makefile.am): Build a stdarg.h substitute if requested.
25844         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25845
25846 2008-03-10  Bruno Haible  <bruno@clisp.org>
25847
25848         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25850         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25851
25852 2008-03-10  Bruno Haible  <bruno@clisp.org>
25853
25854         * modules/stdlib (Depends-on): Add include_next, remove
25855         absolute-header.
25856
25857 2008-03-09  Bruno Haible  <bruno@clisp.org>
25858
25859         * lib/freadahead.h (freadahead): Document more precisely.
25860         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25861         the sum of both buffer sizes.
25862         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25863         * NEWS: Document the change.
25864
25865 2008-03-09  Bruno Haible  <bruno@clisp.org>
25866
25867         Extend freadptr to return also the buffer size.
25868         * lib/freadptr.h (freadptr): Add sizep argument.
25869         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25870         (freadptr): Add sizep argument. Determine buffer size like freadahead
25871         does.
25872         * tests/test-freadptr.c: Don't include freadahead.h.
25873         (main): Adapt for new calling convention of freadptr.
25874         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25875         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25876         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25877         tests/test-freadptr2.sh.
25878         (Depends): Remove freadahead.
25879         (TESTS): Add test-freadptr2.sh.
25880         (check_PROGRAMS): Add test-freadptr2.
25881
25882 2008-03-09  Bruno Haible  <bruno@clisp.org>
25883
25884         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25885         Report and solution by Simon Josefsson.
25886
25887 2008-03-06  Bruno Haible  <bruno@clisp.org>
25888
25889         Make fflush after ungetc work on BSD platforms.
25890         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25891         * tests/test-fflush2.c: New file.
25892         * tests/test-fflush2.sh: New file.
25893         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25894         tests/test-fflush2.c.
25895         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25896         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25897
25898 2008-03-06  Eric Blake  <ebb9@byu.net>
25899
25900         Likewise for ftello.
25901         * modules/ftello (Dependencies): Add extensions.
25902         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25903
25904 2008-03-06  Bruno Haible  <bruno@clisp.org>
25905
25906         * modules/fseeko (Dependencies): Add extensions.
25907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25908         Needed on glibc systems.
25909
25910 2008-03-06  Bruno Haible  <bruno@clisp.org>
25911
25912         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25913         email address.
25914         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25915
25916 2008-03-06  Bruno Haible  <bruno@clisp.org>
25917
25918         * users.txt: Add libgnupdf.
25919
25920 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25921
25922         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25923         (Header File Substitutes, Function Substitutes,
25924         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25925         (Build robot for gnulib): Fix typo.
25926
25927 2008-03-06  Bruno Haible  <bruno@clisp.org>
25928
25929         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25930         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25931
25932 2008-03-06  Bruno Haible  <bruno@clisp.org>
25933
25934         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25935         * doc/gnulib.texi: Include it.
25936
25937 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25938
25939         * modules/func (License): Change license to unlimited; there was
25940         no LGPL parts in the module anyway.
25941
25942 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25943
25944         * modules/__func__: Renamed to modules/func.
25945         * modules/__func__-tests: Renamed to modules/func-tests.
25946         * tests/test-__func__.c: Renamed to tests/test-func.c.
25947         * m4/__func__.m4: Renamed to m4/func.m4.
25948         * doc/gnulib.texi (__func__): Section renamed to func.
25949         Suggested by Eric Blake <ebb9@byu.net>.
25950
25951 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25952
25953         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25954         about __func__.  Make example self-contained.  Suggested by Eric
25955         Blake <ebb9@byu.net>.
25956
25957         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25958         Suggested by Eric Blake <ebb9@byu.net>.
25959
25960 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25961
25962         * modules/__func__: New file.
25963         * modules/__func__-tests: New file.
25964         * tests/test-__func__.c: New file.
25965         * m4/__func__.m4: New file.
25966         * doc/gnulib.texi (__func__): Document __func__ module.
25967
25968 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25969
25970         * modules/byteswap (License): Re-license as LGPLv2+.
25971
25972 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25973
25974         * doc/Makefile: Add pdf target.
25975
25976 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25977
25978         * modules/inline (License): Use 'unlimited', since there are only
25979         *.m4 files in this module.
25980
25981 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25982             Bruno Haible  <bruno@clisp.org>
25983
25984         Add support for HP C 7.1 on OpenVMS 8.3.
25985         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25986
25987 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25988
25989         Update VMS specifics.
25990         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25991
25992 2008-03-02  Jim Meyering  <meyering@redhat.com>
25993
25994         Remove the last dependency on the "free" module.
25995         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25996         Reported by Bob Proulx.
25997
25998         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25999
26000         Remove useless "if" tests before free.  Deprecate "free" module.
26001         * doc/posix-functions/free.texi: Mention that this
26002         module is no longer useful.
26003         * modules/free (Notice): Say this module is obsolete.
26004         * modules/readutmp (Depends-on): Remove free.
26005         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26006         * lib/putenv.c (putenv): Likewise.
26007         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26008         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26009         * tests/test-c-strcasestr.c (main): Likewise.
26010         * tests/test-c-strstr.c (main): Likewise.
26011         * tests/test-mbscasestr1.c (main): Likewise.
26012         * tests/test-mbscasestr2.c (main): Likewise.
26013         * tests/test-mbsstr1.c (main): Likewise.
26014         * tests/test-mbsstr2.c (main): Likewise.
26015         * tests/test-memmem.c (main): Likewise.
26016         * tests/test-strcasestr.c (main): Likewise.
26017         * tests/test-striconv.c (main): Likewise.
26018         * tests/test-striconveh.c (main): Likewise.
26019         * tests/test-striconveha.c (main): Likewise.
26020         * tests/test-strstr.c (main): Likewise.
26021
26022         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26023
26024         bootstrap: sync from coreutils again
26025         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26026
26027 2008-03-01  Jim Meyering  <meyering@redhat.com>
26028
26029         bootstrap: sync from coreutils
26030         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26031         also when the target doesn't exist.
26032
26033 2008-03-01  Eric Blake  <ebb9@byu.net>
26034
26035         Fix bugs in last patch.
26036         * lib/memchr2.c (memchr2): Fix typo.
26037         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26038         extension.
26039         Reported by Bruce Korb.
26040
26041         New module 'memchr2'.
26042         * modules/memchr2: New file.
26043         * modules/memchr2-tests: Likewise.
26044         * lib/memchr2.h: Likewise.
26045         * lib/memchr2.c: Likewise, based on memchr.c.
26046         * tests/test-memchr2.c: New test.
26047         * MODULES.html.sh (String handling): Add memchr2.
26048
26049 2008-02-29  Bruno Haible  <bruno@clisp.org>
26050
26051         * modules/freadseek-tests: New file.
26052         * tests/test-freadseek.sh: New file.
26053         * tests/test-freadseek.c: New file.
26054
26055         New module 'freadseek'.
26056         * modules/freadseek: New file.
26057         * lib/freadseek.h: New file.
26058         * lib/freadseek.c: New file.
26059         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26060
26061 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26062
26063         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26064         wydawca.
26065
26066         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26067         program_invocation_name and program_invocation_short_name are
26068         present.
26069
26070 2008-02-28  Bruno Haible  <bruno@clisp.org>
26071
26072         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26073         * tests/test-freadptr.sh: Also test non-seekable stdin.
26074
26075 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26076
26077         * build-aux/bootstrap (source_base, m4_base)
26078         (doc_base, tests_base): New variables.
26079         (gnulib_tool_options): Do not hardcode base directories, use
26080         the above variables instead.
26081
26082 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26083
26084         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26085
26086 2008-02-28  Bruno Haible  <bruno@clisp.org>
26087
26088         * modules/freadptr-tests: New file.
26089         * tests/test-freadptr.sh: New file.
26090         * tests/test-freadptr.c: New file.
26091
26092         New module 'freadptr'.
26093         * modules/freadptr: New file.
26094         * lib/freadptr.h: New file.
26095         * lib/freadptr.c: New file.
26096         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26097
26098 2008-02-26  Karl Berry  <karl@freefriends.org>
26099
26100         Sync from Libtool:
26101         * libltdl/argz.c (argz_add, argz_count): New functions.
26102         * libltdl/argz.in.h: Declare them.
26103         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26104
26105 2008-02-22  Bruno Haible  <bruno@clisp.org>
26106
26107         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26108         is a pointer type.  Needed for HP-UX 10.
26109         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26110         * doc/posix-functions/gmtime_r.texi: Likewise.
26111         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26112
26113 2008-02-24  Bruno Haible  <bruno@clisp.org>
26114
26115         * modules/environ-tests: New file.
26116         * tests/test-environ.c: New file.
26117
26118         New module 'environ'.
26119         * modules/environ: New file.
26120         * lib/unistd.in.h (environ): New declaration.
26121         * m4/environ.m4: New file.
26122         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26123         after use.
26124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26125         HAVE_DECL_ENVIRON.
26126         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26127         HAVE_DECL_ENVIRON.
26128         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26129         wrong claim that 'environ' is missing on some systems.
26130         * modules/execute (Depends-on): Add environ.
26131         * lib/execute.c (environ): Remove fallback declaration.
26132         * modules/pipe (Depends-on): Add environ.
26133         * lib/pipe.c (environ): Remove fallback declaration.
26134         * modules/setenv (Depends-on): Add environ.
26135         * lib/setenv.c (environ): Remove fallback declaration.
26136         * modules/unsetenv (Depends-on): Add environ.
26137         * lib/unsetenv.c (environ): Remove fallback declaration.
26138         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26139         m4/environ.m4.
26140         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26141         (gl_PREREQ_UNSETENV): Likewise.
26142
26143 2008-02-24  Bruno Haible  <bruno@clisp.org>
26144
26145         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26146
26147 2008-02-20  Bob Proulx  <bob@proulx.com>
26148
26149         Enable use of older two part flavor 'git describe'.
26150         * build-aux/git-version-gen: If using the older two part flavor of
26151         git version then recreate the third part now present in the
26152         newer three part flavor of git describe.
26153
26154 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26155
26156         * lib/fts.c (fts_build): Typo correction to comment.
26157
26158 2008-02-17  Bruno Haible  <bruno@clisp.org>
26159
26160         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26161         generating no-op conflicts.
26162
26163 2008-02-17  Bruno Haible  <bruno@clisp.org>
26164
26165         Speed up by 10%.
26166         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26167         result_entries, rather than an index-based loop.
26168
26169 2008-02-17  Bruno Haible  <bruno@clisp.org>
26170
26171         Speed up by 25%.
26172         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26173         'hashcode_cached'.
26174         (entry_create): New function.
26175         (entry_hashcode): Use the cached hashcode if possible.
26176         (read_changelog_file, try_split_merged_entry): Use entry_create.
26177
26178 2008-02-17  Bruno Haible  <bruno@clisp.org>
26179
26180         Speed up from O(n^2) to O(n) for long ChangeLog files.
26181         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26182         (read_changelog_file): Change implementation of entries_reversed list
26183         to rbtreehash.
26184         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26185
26186 2008-02-17  Bruno Haible  <bruno@clisp.org>
26187
26188         New option --split-merged-entry.
26189         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26190         (find_paragraph_end, try_split_merged_entry): New functions.
26191         (long_options): Add option --split-merged-entry.
26192         (usage): Document option --split-merged-entry.
26193         (main): Implement option --split-merged-entry.
26194         Reported by Eric Blake.
26195
26196 2008-02-17  Bruno Haible  <bruno@clisp.org>
26197
26198         * lib/git-merge-changelog.c: Include c-strstr.h.
26199         (main): Support the "git pull --rebase" situation.
26200         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26201         Reported by Eric Blake.
26202
26203 2008-02-16  Eric Blake  <ebb9@byu.net>
26204
26205         Avoid doubling \ in common case of "c-maybe" quoting style.
26206         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26207         eliding outer quotes.
26208         * lib/quotearg.h: Document this.
26209         * tests/test-quotearg.c (result_strings, inputs, results_g)
26210         (flag_results, locale_results): Test it by adding a new string to
26211         each test group.
26212         (compare_strings): Test new string.
26213
26214 2008-02-13  Eric Blake  <ebb9@byu.net>
26215
26216         Avoid trigraph quoting in default output.
26217         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26218         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26219         unless explicitly requested.
26220         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26221
26222 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26223
26224         Don't rely on signed integer overflowing to negative value.
26225         * lib/getugroups.c (getugroups): Include <limits.h>.
26226         Instead, compare against INT_MAX, and increment only if the test passes.
26227
26228 2008-02-13  Jim Meyering  <meyering@redhat.com>
26229         and Eric Blake  <ebb9@byu.net>
26230
26231         Avoid shadowing warning and compile errors on Linux.
26232         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26233         forwarding macros on Linux.
26234         (dcgettext): Define a stub, for Linux.
26235         (results_g, main): Avoid warnings.
26236
26237 2008-02-12  Eric Blake  <ebb9@byu.net>
26238
26239         Silence warning in last patch.
26240         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26241
26242         Quotearg part 4: add tests, fix c-maybe colon quoting.
26243         * lib/quotearg.h: Improve documentation.
26244         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26245         escapes when adding outer quotes.  When quoting trigraphs, use
26246         valid C notation.  When quoting NUL, omit extra characters if next
26247         character is not digit.  Alter prototype.
26248         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26249         callers.
26250         * modules/quotearg-tests: New module.
26251         * tests/test-quotearg.c: New test.
26252
26253 2008-02-07  Eric Blake  <ebb9@byu.net>
26254
26255         Quotearg part 3: add flag to control outer quote elision.
26256         * lib/quotearg.h (c_maybe_quoting_style): New style.
26257         (enum quoting_flags): Better documentation of flags.
26258         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26259         c-maybe style.
26260         (quotearg_buffer_restyled): Handle new flag to elide outer
26261         quotes.
26262
26263         Quotearg part 2: add flag that can control NUL elision.
26264         * lib/quotearg.h (set_quoting_flags): New prototype.
26265         * lib/quotearg.c (struct quoting_options): Add flag field.
26266         (set_quoting_flags): New function.
26267         (quotearg_buffer_restyled): Add flags parameter.
26268         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26269         (quotearg_n_options): Set the flag, since length cannot be
26270         returned.
26271         (quoting_options_from_style): Default flags correctly.
26272
26273         Quotearg part 1: more wrappers, restore quotearg_char state.
26274         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26275         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26276         (quotearg_colon_mem): New wrappers.
26277         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26278         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26279         functions.
26280         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26281         (quotearg_colon_mem): New functions.
26282
26283 2008-02-11  Bruno Haible  <bruno@clisp.org>
26284
26285         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26286         library in the current directory: it does not work with parallel make.
26287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26288
26289 2008-02-11  Bruno Haible  <bruno@clisp.org>
26290
26291         * .gitattributes: New file.
26292
26293 2008-02-11  Jim Meyering  <meyering@redhat.com>
26294
26295         useless-if-before-free: Fix reversed exit values.
26296         * build-aux/useless-if-before-free: Use correct values
26297         for EXIT_MATCH and EXIT_NO_MATCH.
26298
26299         * build-aux/useless-if-before-free: Close stdout carefully.
26300
26301 2008-02-10  Bruno Haible  <bruno@clisp.org>
26302
26303         New module 'git-merge-changelog'.
26304         * modules/git-merge-changelog: New file.
26305         * lib/git-merge-changelog.c: New file.
26306
26307 2008-02-10  Jim Meyering  <meyering@redhat.com>
26308
26309         useless-if-before-free: New option: --list (-l).
26310
26311         useless-if-before-free: Don't exit immediately upon open failure.
26312         * build-aux/useless-if-before-free: Exit 2 for errors.
26313         Upon failure to open a file, don't exit immediately.
26314         Rather, just warn and continue with any remaining files.
26315
26316 2008-02-10  Bruno Haible  <bruno@clisp.org>
26317
26318         New abstract list operation 'node_set_value'.
26319         * lib/gl_list.h (gl_list_node_set_value): New function.
26320         (struct gl_list_implementation): New field node_set_value.
26321         * lib/gl_list.c (gl_list_node_set_value): New function.
26322         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26323         (gl_array_list_implementation): Update.
26324         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26325         (gl_carray_list_implementation): Update.
26326         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26327         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26328         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26329         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26330         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26331         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26332         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26333         Update.
26334         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26335         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26336         (gl_sublist_list_implementation): Update.
26337
26338 2008-02-10  Bruno Haible  <bruno@clisp.org>
26339
26340         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26341         Needed when ELEMENT is #defined to 'some_type *'.
26342
26343 2008-02-10  Jim Meyering  <meyering@redhat.com>
26344
26345         New script and module: useless-if-before-free
26346         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26347         * build-aux/useless-if-before-free: New file.
26348         * modules/useless-if-before-free: New file.
26349
26350         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26351
26352         xstrtol_error: Fix typo.
26353         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26354         s/exit_failure/exit_status/.
26355
26356 2008-02-09  Jim Meyering  <meyering@redhat.com>
26357
26358         New script and module: gitlog-to-changelog
26359         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26360         * modules/gitlog-to-changelog: New file.
26361         * build-aux/gitlog-to-changelog: New file.
26362
26363 2008-02-08  Jim Meyering  <meyering@redhat.com>
26364
26365         Avoid two "parameter unused" warnings.
26366         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26367         Mark "st" as used.
26368
26369         Use "git COMMAND", not "git-COMMAND".
26370         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26371         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26372         * build-aux/git-version-gen: Use "git status", not "git-status".
26373
26374 2008-02-07  Bruno Haible  <bruno@clisp.org>
26375
26376         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26377         Avoids a crash on Windows Vista.
26378         Reported by Adam Strzelecki <ono@java.pl> via
26379         Simon Josefsson <simon@josefsson.org>.
26380
26381 2008-02-06  Bruno Haible  <bruno@clisp.org>
26382
26383         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26384         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26385         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26387         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26389         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26390         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26398         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26399         left-adjust flag.
26400         * tests/test-snprintf-posix.h (test_function): Likewise.
26401         * tests/test-sprintf-posix.h (test_function): Likewise.
26402         * tests/test-vasprintf-posix.c (test_function): Likewise.
26403         * doc/posix-functions/fprintf.texi: Update.
26404         * doc/posix-functions/printf.texi: Update.
26405         * doc/posix-functions/snprintf.texi: Update.
26406         * doc/posix-functions/sprintf.texi: Update.
26407         * doc/posix-functions/vfprintf.texi: Update.
26408         * doc/posix-functions/vprintf.texi: Update.
26409         * doc/posix-functions/vsnprintf.texi: Update.
26410         * doc/posix-functions/vsprintf.texi: Update.
26411         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26412
26413 2008-02-06  Bruno Haible  <bruno@clisp.org>
26414
26415         Fix bug introduced on 2008-01-26.
26416         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26417
26418 2008-02-06  Bruno Haible  <bruno@clisp.org>
26419
26420         Fix bug introduced on 2007-06-10.
26421         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26422         !NEED_PRINTF_FLAG_ZERO.
26423
26424 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26425
26426         getloadavg: use libperfstat on AIX5
26427         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26428
26429 2008-02-03  Bruno Haible  <bruno@clisp.org>
26430
26431         * lib/diffseq.h: Add comments about required #includes.
26432         Reported by Michael Biggs <gnulib@doubleplum.net>.
26433
26434 2008-02-01  Bruno Haible  <bruno@clisp.org>
26435
26436         * users.txt: Add gnuit.
26437
26438 2008-01-31  Bruno Haible  <bruno@clisp.org>
26439
26440         * lib/md4.c (set_uint32): Mark as inline.
26441         * lib/md5.c (set_uint32): Likewise.
26442         * lib/sha1.c (set_uint32): Likewise.
26443         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26444         * m4/md5.m4 (gl_MD5): Likewise.
26445         * m4/sha1.m4 (gl_SHA1): Likewise.
26446
26447 2008-01-31  Jim Meyering  <meyering@redhat.com>
26448
26449         Use "sizeof VAR", rather than a literal "4".
26450         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26451         * lib/md4.c (md4_read_ctx): Likewise.
26452         * lib/sha1.c (sha1_read_ctx): Likewise.
26453
26454 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26455
26456         * tests/test-sha1.c: New file, based on test-md5.c.
26457
26458         * modules/crypto/sha1-tests: New file.
26459
26460 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26461
26462         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26463
26464 2008-01-31  Jim Meyering  <meyering@redhat.com>
26465
26466         Prefer "sizeof v" over the equivalent "4".
26467         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26468         * lib/md5.c (set_uint32): Likewise.
26469         * lib/sha1.c (set_uint32): Likewise.
26470
26471 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26472
26473         * lib/sha1.c (set_uint32): Mark function as static.
26474
26475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26476
26477         md2: clarify comments to say that alignment is not required.
26478         * lib/md2.h: Remove warning about alignment in comment.
26479         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26480         never been required.
26481
26482 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26483
26484         md4: adapt alignment constraint fix from sha1.
26485         * lib/md4.c (set_uint32): New function, from sha1.c
26486         (md4_read_ctx): Use it.
26487         (md4_finish_ctx): Doc fix.
26488         * lib/md4.h: Doc fix.
26489
26490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26491
26492         md5: adapt alignment constraint fix from sha1.
26493         * lib/md5.c (set_uint32): New function, from sha1.c
26494         (md5_read_ctx): Use it.
26495         (md5_finish_ctx): Doc fix.
26496         * lib/md5.h: Doc fix.
26497
26498 2008-01-30  Peter Palfrader  <weasel@debian.org>
26499
26500         sha1: remove the result buffer alignment constraint
26501         * lib/sha1.c (set_uint32): New function.
26502         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26503         constraint.
26504         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26505         * lib/sha1.h: Likewise.
26506
26507 2008-01-30  Andreas Schwab  <schwab@suse.de>
26508             Bruno Haible  <bruno@clisp.org>
26509
26510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26511         correct definition of LDBL_MIN_EXP.
26512
26513 2008-01-30  Karl Berry  <karl@gnu.org>
26514
26515         * config/srclist-update: try to preserve x bit on updates.
26516         * config/srclistvars.sh: update for karl.
26517
26518 2008-01-29  Jim Meyering  <meyering@redhat.com>
26519
26520         vasnprintf.c: Avoid warning about unused label
26521         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26522         "overflow" label definition and associated code with the
26523         same cpp condition that guards the sole use of that label.
26524
26525 2008-01-26  Bruno Haible  <bruno@clisp.org>
26526
26527         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26528         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26529         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26530         * lib/isnanl-nolibm.h (isnanl): Likewise.
26531         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26532
26533 2008-01-26  Bruno Haible  <bruno@clisp.org>
26534
26535         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26536         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26537
26538 2008-01-26  Bruno Haible  <bruno@clisp.org>
26539
26540         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26541         GCC >= 4.0 built-in.
26542         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26543
26544 2008-01-26  Bruno Haible  <bruno@clisp.org>
26545
26546         Rename isnan, applicable to 'double' only, to isnand.
26547         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26548         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26549         (configure.ac): Update.
26550         (Include): Replace "isnan.h" with "isnand.h".
26551         * m4/isnand.m4: Renamed from m4/isnan.m4.
26552         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26553         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26554         instead of isnan.c.
26555         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26556         instead of HAVE_ISNAN_IN_LIBC.
26557         (isnand): Renamed from isnan.
26558         * lib/isnand.c: New file.
26559         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26560         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26561         (Makefile.am): Update.
26562         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26563         Include isnand.h instead of isnan.h.
26564         (main): Test isnand instead of isnan.
26565         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26566         isnan-nolibm.
26567         * modules/frexp (Depends-on): Likewise.
26568         * modules/frexp-tests (Depends-on): Likewise.
26569         * modules/frexp-nolibm (Depends-on): Likewise.
26570         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26571         * modules/isfinite (Depends-on): Likewise.
26572         * modules/round-tests (Depends-on): Likewise.
26573         * modules/signbit (Depends-on): Likewise.
26574         * modules/signbit-tests (Depends-on): Likewise.
26575         * modules/snprintf-posix (Depends-on): Likewise.
26576         * modules/sprintf-posix (Depends-on): Likewise.
26577         * modules/trunc-tests (Depends-on): Likewise.
26578         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26579         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26580         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26581         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26582         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26583         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26584         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26585         * modules/vasnprintf-posix (Depends-on): Likewise.
26586         * modules/vasprintf-posix (Depends-on): Likewise.
26587         * modules/vfprintf-posix (Depends-on): Likewise.
26588         * modules/vsnprintf-posix (Depends-on): Likewise.
26589         * modules/vsprintf-posix (Depends-on): Likewise.
26590         * lib/frexp.c: Include isnand.h instead of isnan.h.
26591         (ISNAN): Set to isnand instead of isnan.
26592         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26593         (gl_isfinited): Use isnand instead of isnan.
26594         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26595         (gl_signbitd): Use isnand instead of isnan.
26596         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26597         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26598         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26599         (main): Use isnand instead of isnan.
26600         * tests/test-round1.c: Include isnand.h.
26601         (main): Use isnand instead of isnan.
26602         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26603         (ISNAN): Set to isnand instead of isnan.
26604         * tests/test-trunc1.c: Include isnand.h.
26605         (main): Use isnand instead of isnan.
26606         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26607         (equal): Use isnand instead of isnan.
26608         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26609         isnand-nolibm.
26610         * NEWS: Mention the change.
26611
26612 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26613             Bruno Haible  <bruno@clisp.org>
26614
26615         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26616         the GCC builtins for signbits are present and set
26617         REPLACE_SIGNBIT_USING_GCC if so.
26618         * lib/math.in.h (signbit): Define using GCC builtins if
26619         REPLACE_SIGNBIT_USING_GCC is set.
26620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26621         REPLACE_SIGNBIT_USING_GCC.
26622         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26623
26624 2008-01-25  Jim Meyering  <meyering@redhat.com>
26625
26626         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26627         * lib/poll.c: Include <config.h>, not "config.h".
26628         * tests/test-getaddrinfo.c: Likewise.
26629
26630 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26631
26632         * modules/sockets-tests: New file.
26633
26634 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26635
26636         * modules/sockets: New module, can be used to call WSA_Startup and
26637         WSA_Cleanup when needed.
26638
26639         * lib/sockets.h, lib/sockets.c: New files.
26640
26641         * m4/sockets.m4: New file.
26642
26643         * tests/test-sockets.c: New file.
26644
26645 2008-01-19  Bruno Haible  <bruno@clisp.org>
26646
26647         * doc/posix-headers: Renamed from doc/headers.
26648         * doc/posix-functions: Renamed from doc/functions.
26649         * doc/gnulib.texi: Update.
26650
26651 2008-01-19  Bruno Haible  <bruno@clisp.org>
26652
26653         * doc/glibc-functions/strcasestr.texi: Include contents of
26654         doc/functions/strcasestr.texi, fixing the list of platforms.
26655         * doc/functions/strcasestr.texi: Remove file.
26656
26657 2008-01-19  Bruno Haible  <bruno@clisp.org>
26658
26659         * doc/glibc-functions/memmem.texi: Include contents of
26660         doc/functions/memmem.texi.
26661         * doc/functions/memmem.texi: Remove file.
26662
26663 2008-01-18  Bruno Haible  <bruno@clisp.org>
26664
26665         * doc/glibc-functions/*.texi: New files.
26666         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26667         to use the new files.
26668
26669 2008-01-17  Bruno Haible  <bruno@clisp.org>
26670
26671         * tests/test-gethostname.c (main): Fix printf statement.
26672
26673 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26674
26675         * modules/gethostname-tests: New file.
26676
26677         * tests/test-gethostname.c: New file.
26678
26679 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26680
26681         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26682         used by the UNAME case.  Reported by Bruno Haible
26683         <bruno@clisp.org>.
26684
26685 2008-01-17  Eric Blake  <ebb9@byu.net>
26686
26687         Convert c-strcasestr to be more efficient.
26688         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26689         (Depends-on): Add c-strcase, remove malloca, strnlen.
26690         * tests/test-c-strcasestr.c (main): Enhance test.
26691         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26692
26693 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26694
26695         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26696         Use it in creating po/Makevars.
26697
26698 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26699
26700         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26701         Applications that requires it should initialize libgcrypt
26702         manually.
26703
26704 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26705
26706         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26707
26708 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26709
26710         Fix problem with getdate on mingw32 reported by Simon Josefsson
26711         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26712         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26713         tzname", when deciding whether to declare tzname.
26714         * lib/strftime.c (tzname): Likewise.
26715
26716 2008-01-15  Bruno Haible  <bruno@clisp.org>
26717
26718         Work around a MacOS X 10.5 bug in frexpl().
26719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26720         * doc/functions/frexpl.texi: Document the bug.
26721         Reported by Elias Pipping <pipping@gentoo.org>.
26722
26723 2008-01-14  Eric Blake  <ebb9@byu.net>
26724
26725         Touch up previous patch.
26726         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26727         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26728
26729         Convert strcasestr module to use Two-Way algorithm.
26730         * modules/strcasestr-simple: New module, based on the old
26731         strcasestr, but with Two-Way rather than KMP.
26732         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26733         * lib/string.in.h (rpl_strcasestr): Declare.
26734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26735         performance.
26736         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26737         * modules/string (Makefile.am): Support strcasestr.
26738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26739         * modules/strcasestr-tests (Depends-on): Check for alarm.
26740         * tests/test-strcasestr.c: Augment test.
26741         * lib/str-two-way.h: Clean up stray macro.
26742         * NEWS: Document new module.
26743         * MODULES.html.sh (string handling): Likewise.
26744         * doc/functions/strcasestr.texi: New file.
26745         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26746         here, since it is not a POSIX function.
26747
26748 2008-01-14  Colin Watson  <cjwatson@debian.org>
26749             Bruno Haible  <bruno@clisp.org>
26750
26751         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26752         works fine; if not, set REPLACE_STRSIGNAL.
26753         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26755         REPLACE_STRSIGNAL.
26756         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26757         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26758         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26759
26760 2008-01-14  Bruno Haible  <bruno@clisp.org>
26761
26762         * modules/strsignal (Include): Change to <string.h>.
26763
26764 2008-01-14  Colin Watson  <cjwatson@debian.org>
26765
26766         * modules/argp (Notice): Add a notice recommending to change
26767         XGETTEXT_OPTIONS.
26768         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26769
26770 2008-01-13  Colin Watson  <cjwatson@debian.org>
26771
26772         * modules/strsignal-tests: New file.
26773         * tests/test-strsignal.c: New file.
26774
26775         * lib/strsignal.c: New file, from glibc with modifications.
26776         * lib/siglist.h: New file, from glibc with modifications.
26777         * lib/string.in.h (strsignal): New declaration.
26778         * m4/strsignal.m4: New file.
26779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26780         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26781         * modules/strsignal: New file.
26782         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26783         HAVE_DECL_STRSIGNAL.
26784
26785 2008-01-13  Bruno Haible  <bruno@clisp.org>
26786
26787         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26788         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26789         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26790         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26791
26792 2008-01-13  Bruno Haible  <bruno@clisp.org>
26793
26794         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26795         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26796         * lib/argp.h (__attribute__): Likewise.
26797         * lib/c-stack.c (__attribute__): Likewise.
26798         * lib/error.h (__attribute__): Likewise.
26799         * lib/fts.c (__attribute__): Likewise.
26800         * lib/openat.h (__attribute__): Likewise.
26801         * lib/stdio.in.h (__attribute__): Likewise.
26802         * lib/string.in.h (__attribute__): Likewise.
26803         * lib/utimens.c (__attribute__): Likewise.
26804         * lib/vasnprintf.h (__attribute__): Likewise.
26805         * lib/xalloc.h (__attribute__): Likewise.
26806         * lib/xprintf.h (__attribute__): Likewise.
26807         * lib/xstrtol.h (__attribute__): Likewise.
26808         * lib/xvasprintf.h (__attribute__): Likewise.
26809
26810 2008-01-12  Bruno Haible  <bruno@clisp.org>
26811
26812         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26813         * doc/glibc-headers/a.out.texi: New file.
26814         * doc/glibc-headers/aliases.texi: New file.
26815         * doc/glibc-headers/alloca.texi: New file.
26816         * doc/glibc-headers/ar.texi: New file.
26817         * doc/glibc-headers/argp.texi: New file.
26818         * doc/glibc-headers/argz.texi: New file.
26819         * doc/glibc-headers/byteswap.texi: New file.
26820         * doc/glibc-headers/crypt.texi: New file.
26821         * doc/glibc-headers/endian.texi: New file.
26822         * doc/glibc-headers/envz.texi: New file.
26823         * doc/glibc-headers/err.texi: New file.
26824         * doc/glibc-headers/error.texi: New file.
26825         * doc/glibc-headers/execinfo.texi: New file.
26826         * doc/glibc-headers/fpu_control.texi: New file.
26827         * doc/glibc-headers/fstab.texi: New file.
26828         * doc/glibc-headers/fts.texi: New file.
26829         * doc/glibc-headers/getopt.texi: New file.
26830         * doc/glibc-headers/ieee754.texi: New file.
26831         * doc/glibc-headers/ifaddrs.texi: New file.
26832         * doc/glibc-headers/libintl.texi: New file.
26833         * doc/glibc-headers/mcheck.texi: New file.
26834         * doc/glibc-headers/mntent.texi: New file.
26835         * doc/glibc-headers/obstack.texi: New file.
26836         * doc/glibc-headers/paths.texi: New file.
26837         * doc/glibc-headers/printf.texi: New file.
26838         * doc/glibc-headers/pty.texi: New file.
26839         * doc/glibc-headers/resolv.texi: New file.
26840         * doc/glibc-headers/shadow.texi: New file.
26841         * doc/glibc-headers/sysexits.texi: New file.
26842         * doc/glibc-headers/ttyent.texi: New file.
26843
26844 2008-01-12  Jim Meyering  <meyering@redhat.com>
26845
26846         announce-gen: emit Gnulib's git-based version string.
26847         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26848         New option --gnulib-version=V, where V is expected to be
26849         the output of running git describe in the gnulib directory.
26850         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26851         not useful, and plan to stop publishing an xdelta file with each
26852         coreutils release.
26853
26854         * build-aux/announce-gen: Also check for lzma-compressed files.
26855
26856 2008-01-11  Bruno Haible  <bruno@clisp.org>
26857
26858         * tests/test-memmem.c (main): Increase maximum allowed time.
26859         * tests/test-strstr.c (main): Likewise.
26860
26861 2008-01-11  Bruno Haible  <bruno@clisp.org>
26862
26863         * doc/functions/memmem.texi: Add more precisions about platforms.
26864         * doc/functions/strstr.texi: Likewise.
26865
26866 2008-01-10  Eric Blake  <ebb9@byu.net>
26867
26868         * m4/strstr.m4: Delete cruft from copy-n-paste.
26869         Reported by Bruno Haible.
26870
26871 2008-01-10  Bruno Haible  <bruno@clisp.org>
26872
26873         Make c-strstr rely on strstr.
26874         * lib/c-strstr.c: Don't include str-kmp.h.
26875         (c_strstr): Define in terms of strstr.
26876         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26877         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26878
26879 2008-01-10  Bruno Haible  <bruno@clisp.org>
26880
26881         * doc/gnulib.texi (String Functions in C Locale): New section.
26882         * doc/c-ctype.texi: New file.
26883         * doc/c-strcase.texi: New file.
26884         * doc/c-strcaseeq.texi: New file.
26885         * doc/c-strcasestr.texi: New file.
26886         * doc/c-strstr.texi: New file.
26887         * doc/c-strtod.texi: New file.
26888         * doc/c-strtold.texi: New file.
26889
26890 2008-01-10  Eric Blake  <ebb9@byu.net>
26891
26892         * lib/relocatable.h: Fix a comment.
26893
26894 2008-01-10  Eric Blake  <ebb9@byu.net>
26895
26896         Share two-way algorithm.
26897         * lib/str-two-way.h: New file, merged from...
26898         * lib/memmem.c: ...here...
26899         * lib/strstr.c: ...and here.
26900         * modules/memmem (Files): Use it.
26901         * modules/strstr (Files): Likewise.
26902
26903         Avoid quadratic strstr implementations.
26904         * lib/strstr.c: New file.
26905         * m4/strstr.m4: Likewise.
26906         * modules/strstr: Likewise.
26907         * modules/strstr-tests: Likewise.
26908         * tests/test-strstr.c: Likewise.
26909         * lib/string.in.h (rpl_strstr): Declare.
26910         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26912         * modules/string (Makefile.am): Likewise.
26913         * MODULES.html.sh (string handling): Mention new module.
26914         * doc/functions/strstr.texi (strstr): Document the bug.
26915
26916 2008-01-10  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/relocatable.h (relocate): State whether result is freshly
26919         allocated or not.
26920         * lib/relocatable.c (relocate): Return a freshly allocated string
26921         instead of a pointer to a privately held string.
26922         Reported by Sylvain Beucler <beuc@gnu.org>.
26923
26924 2008-01-10  Colin Watson  <cjwatson@debian.org>
26925
26926         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26927         s/S_ISNLK/S_ISLNK/.
26928
26929 2008-01-09  Bruno Haible  <bruno@clisp.org>
26930
26931         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26932         and other files.
26933         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26934         if it's only a guess.
26935         * modules/memmem: Simplify by depending on memmem-simple.
26936
26937 2008-01-09  Bruno Haible  <bruno@clisp.org>
26938
26939         Work around OpenBSD 4.0 tdelete() bug.
26940         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26941         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26942         macros and don't redefine the enum values.
26943         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26944         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26945         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26946
26947 2008-01-09  Bruno Haible  <bruno@clisp.org>
26948
26949         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26950         (main): Don't perform the tests if setlocale did not install a UTF-8
26951         locale. Needed on OpenBSD 4.0.
26952         * modules/wcwidth-tests (Depends-on): Add localcharset.
26953
26954 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26955
26956         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26957         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26958         * NEWS: announce this.
26959         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26960
26961 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26962         and Eric Blake  <ebb9@byu.net>
26963
26964         Add memmem-simple module.
26965         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26966         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26967         * modules/memmem-simple: New file.
26968         * modules/memmem (Description): Tweak.
26969         * MODULES.html.sh (string handling): Mention new module.
26970         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26971         addressed by memmem-simple.
26972         * NEWS: Document the difference.
26973
26974 2008-01-09  Eric Blake  <ebb9@byu.net>
26975
26976         Give gcc some memmem optimization hints.
26977         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26978         (strcasestr): Declare as pure.
26979         * modules/memmem (Maintainer): Claim my implementation.
26980
26981 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26982
26983         Support AIX 6.1 and higher.
26984         * build-aux/config.libpath: Likewise.
26985         * build-aux/config.rpath: Likewise.
26986
26987 2008-01-08  Jim Meyering  <meyering@redhat.com>
26988             Bruno Haible  <bruno@clisp.org>
26989
26990         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26991         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26992         Reported by Peter Fales in
26993         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26994
26995 2008-01-08  Bruno Haible  <bruno@clisp.org>
26996
26997         * modules/unictype/category-of (Depends-on): Add
26998         unictype/category-none.
26999         * modules/unictype/category-and-tests (Depends-on): Add
27000         unictype/category-{L,N,Lu,Nd}.
27001         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27002         * modules/unictype/category-or-tests (Depends-on): Add
27003         unictype/category-{L,N}.
27004         * modules/unictype/category-name-tests (Depends-on): Add
27005         unictype/category-{Z,Nl}.
27006         Reported by Simon Josefsson.
27007
27008 2008-01-08  Bruno Haible  <bruno@clisp.org>
27009
27010         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27011         convention better.
27012         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27013         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27014         Reported by Peter Miller <millerp@canb.auug.org.au>.
27015
27016 2008-01-08  Eric Blake  <ebb9@byu.net>
27017
27018         Rewrite memmem to guarantee linear complexity without malloc.
27019         * lib/memmem.c (memmem): Use Two-Way rather than
27020         Knuth-Morris-Pratt, to allow O(1) space usage.
27021         (critical_factorization, two_way_short_needle)
27022         (two_way_long_needle): New functions.
27023         (knuth_morris_pratt): Delete.
27024         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27025         Add stdint.
27026         * tests/test-memmem.c (main): Add tests for periodic needle and
27027         sublinear performance.
27028         * doc/functions/memmem.texi (memmem): Document other deficiencies
27029         in cygwin and older glibc.
27030
27031 2008-01-08  Bruno Haible  <bruno@clisp.org>
27032
27033         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27034         augmentation.
27035
27036 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27037
27038         Add a configure time option: --disable-acl.
27039         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27040         AC_ARG_ENABLE(acl).
27041
27042 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27043
27044         * tests/test-localename.c: Don't include obsolete "setenv.h".
27045
27046         * modules/localename-tests (Depends-on): Need unsetenv.
27047
27048 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27049
27050         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27051
27052 2008-01-06  Colin Watson  <cjwatson@debian.org>
27053
27054         * users.txt: Add man-db.
27055
27056 2008-01-07  Bruno Haible  <bruno@clisp.org>
27057
27058         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27059         previous section name.
27060
27061 2008-01-07  Bruno Haible  <bruno@clisp.org>
27062
27063         * lib/progname.c (set_program_name): Don't strip off a leading
27064         "lt-" prefix outside a .libs directory.
27065         Suggested by Paul Eggert.
27066
27067 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27068             Bruno Haible  <bruno@clisp.org>
27069
27070         Improve memory cleanup in 'relocatable' module.
27071         * lib/relocatable.h (compute_curr_prefix): Change return type to
27072         'char *'.
27073         * lib/relocatable.c (compute_curr_prefix): Change return type to
27074         'char *'. Free curr_installdir after use.
27075         (relocate): Free curr_prefix_better after use.
27076         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27077
27078 2008-01-01  Bruno Haible  <bruno@clisp.org>
27079
27080         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27081         failure on older glibc systems.
27082         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27083
27084 2008-01-05  Eric Blake  <ebb9@byu.net>
27085
27086         Avoid quadratic system memmem.
27087         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27088         Reported by Ralf Wildenhues.
27089
27090         Fix memmem test for mingw.
27091         * modules/memmem-tests (configure.ac): Check for alarm.
27092         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27093         it.
27094         * doc/functions/memmem.texi: New file.
27095         * doc/gnulib.texi (Function Substitutes): Add memmem.
27096         Reported by Bruno Haible.
27097
27098 2008-01-04  Bruno Haible  <bruno@clisp.org>
27099
27100         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27101         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27102         gl_HEADER_STRING_H_DEFAULTS.
27103
27104 2008-01-04  Eric Blake  <ebb9@byu.net>
27105
27106         Shorten duration of memmem test.
27107         * tests/test-memmem.c (main): Use alarm to declare failure if test
27108         is taking too long.
27109         Reported by Ralf Wildenhues.
27110
27111 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27112
27113         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27114         string, needed by strerror.
27115
27116 2008-01-03  Colin Watson  <cjwatson@debian.org>
27117             Bruno Haible  <bruno@clisp.org>
27118
27119         * doc/gnulib-tool.texi (Localization): New section.
27120
27121 2008-01-02  Bruno Haible  <bruno@clisp.org>
27122
27123         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27124         variables to 'unsigned char *' type.
27125         Reported by Paul Eggert.
27126
27127 2008-01-02  Jim Meyering  <jim@meyering.net>
27128
27129         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27130
27131 2007-12-31  Jim Meyering  <jim@meyering.net>
27132
27133         Avoid use of private FTS type name.
27134         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27135
27136 2007-12-30  Karl Berry  <karl@gnu.org>
27137
27138         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27139         work around defect in Texinfo and/or the standalone Info browser.
27140
27141 2007-12-30  Bruno Haible  <bruno@clisp.org>
27142
27143         Unify 5 copies of the KMP code.
27144         * lib/str-kmp.h: New file.
27145         * lib/c-strcasestr.c: Include str-kmp.h.
27146         (knuth_morris_pratt): Remove function.
27147         (c_strcasestr): Update.
27148         * lib/c-strstr.c: Include str-kmp.h.
27149         (knuth_morris_pratt): Remove function.
27150         (c_strcasestr): Update.
27151         * lib/mbscasestr.c: Include str-kmp.h.
27152         (knuth_morris_pratt_unibyte): Remove function.
27153         * lib/mbsstr.c: Include str-kmp.h.
27154         (knuth_morris_pratt_unibyte): Remove function.
27155         * lib/strcasestr.c: Include str-kmp.h.
27156         (knuth_morris_pratt): Remove function.
27157         (strcasestr): Update.
27158         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27159         * modules/c-strstr (Files): Likewise.
27160         * modules/mbscasestr (Files): Likewise.
27161         * modules/mbsstr (Files): Likewise.
27162         * modules/strcasestr (Files): Likewise.
27163         Suggested by Paul Eggert.
27164
27165 2007-12-30  Bruno Haible  <bruno@clisp.org>
27166
27167         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27168         defined.
27169
27170 2007-12-30  Bruno Haible  <bruno@clisp.org>
27171
27172         * lib/xmalloca.h: Include xalloc.h.
27173         (xnmalloca): New macro.
27174
27175 2007-12-30  Bruno Haible  <bruno@clisp.org>
27176
27177         * lib/malloca.h (nmalloca): New macro.
27178         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27179         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27180         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27181         knuth_morris_pratt_multibyte): Likewise.
27182         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27183         knuth_morris_pratt_multibyte): Likewise.
27184         * lib/memmem.c (knuth_morris_pratt): Likewise.
27185         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27186
27187 2007-12-25  Bruno Haible  <bruno@clisp.org>
27188
27189         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27190         * lib/glob.c: Don't include openat.h.
27191         (link_exists2_p): Add back the code that deals with the
27192         !GLOB_ALTDIRFUNC case.
27193         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27194         let it do the filename concatenation.
27195         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27196         * modules/glob (Depends-on): Remove openat.
27197
27198 2007-12-31  Bruno Haible  <bruno@clisp.org>
27199
27200         * modules/dirfd (License): Change to LGPLv2+.
27201         Approved by Jim Meyering.
27202
27203 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27204
27205         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27206         when multiplying M by sizeof (size_t).
27207
27208 2007-12-10  Martin Lambers  <marlam@marlam.de>
27209
27210         Override getpagesize on mingw.
27211         * lib/getpagesize.c: New file.
27212         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27213         * modules/getpagesize (Files): Add lib/getpagesize.c.
27214         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27216         REPLACE_GETPAGESIZE.
27217         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27218
27219 2007-12-25  Bruno Haible  <bruno@clisp.org>
27220
27221         * modules/localcharset (Notice): New field.
27222         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27223         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27224
27225 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27226             Bruno Haible  <bruno@clisp.org>
27227
27228         Avoid using the syntax symbol() in formatted documentation.
27229         * MODULES.html.sh (func_module): When replacing symbol() with a
27230         hyperlink, remove the parentheses. Show an error if some remain.
27231         Recognize and render the '...' syntax.
27232         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27233         Rework. Add paragraph about GCC's inlining.
27234         * doc/alloca.texi: Likewise.
27235         * doc/error.texi: Remove parentheses from symbol reference.
27236         * doc/gnulib-intro.texi: Likewise.
27237         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27238         * modules/fnmatch (Description): Reword to say "the ... function".
27239         * modules/full-read (Description): Likewise.
27240         * modules/full-write (Description): Likewise.
27241         * modules/safe-read (Description): Likewise.
27242         * modules/safe-write (Description): Likewise.
27243         * modules/strchrnul (Description): Likewise.
27244         * modules/trim (Description): Likewise.
27245         * modules/error (Description): Remove parentheses from symbol
27246         references.
27247         * modules/verror (Description): Likewise.
27248         Reported by Karl Berry.
27249
27250 2007-12-25  Bruno Haible  <bruno@clisp.org>
27251
27252         Fixup after 2007-10-16 commit.
27253         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27254
27255 2007-12-24  Bruno Haible  <bruno@clisp.org>
27256
27257         Make --enable-relocatable work with DESTDIR.
27258         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27259         to compute installdir from destprog.
27260         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27261         also set the RELOC_DESTDIR variable.
27262         Reported by Левашев Иван <octagram@bluebottle.com>.
27263
27264 2007-12-24  Bruno Haible  <bruno@clisp.org>
27265
27266         Fix link error due to xalloc_die().
27267         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27268         of xreadlink.
27269         * lib/relocwrapper.c: Update comments.
27270         * build-aux/install-reloc: Remove xreadlink.c from file list.
27271         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27272         xreadlink.c.
27273         Reported by Левашев Иван <octagram@bluebottle.com>.
27274
27275 2007-12-24  Bruno Haible  <bruno@clisp.org>
27276
27277         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27278         * lib/setenv.h: Remove file.
27279         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27280         lib/setenv.h.
27281         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27282         (Depends-on): Add stdlib.
27283         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27284         gl_FUNC_UNSETENV.
27285         (Include): Replace setenv.h with <stdlib.h>.
27286         * modules/unsetenv: New file.
27287         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27288         * lib/unsetenv.c: Include <stdlib.h> first.
27289         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27290         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27291         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27292         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27293         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27294         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27296         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27297         * doc/functions/unsetenv.texi: Update.
27298         * modules/xsetenv (Depends-on): Add unsetenv.
27299         * modules/getdate (Depends-on): Likewise.
27300         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27301         * lib/xsetenv.c: Don't include setenv.h.
27302         * lib/getdate.y: Likewise.
27303         * lib/relocwrapper.c: Likewise.
27304         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27305         (Depends-on): Add stdlib.
27306         * NEWS: Mention the changes.
27307         Reported by Левашев Иван <octagram@bluebottle.com>.
27308
27309 2007-12-23  Bruno Haible  <bruno@clisp.org>
27310
27311         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27312         indentation.
27313
27314 2007-12-23  Bruno Haible  <bruno@clisp.org>
27315
27316         * lib/c-strcasestr.c: Add more comments.
27317         * lib/c-strstr.c: Likewise.
27318         * lib/mbscasestr.c: Likewise.
27319         * lib/mbsstr.c: Likewise.
27320         * lib/strcasestr.c: Likewise.
27321         * lib/memmem.c: Likewise.
27322
27323 2007-12-23  Bruno Haible  <bruno@clisp.org>
27324
27325         * tests/test-memmem.c: Include <string.h> first.
27326
27327 2007-12-22  Bruno Haible  <bruno@clisp.org>
27328
27329         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27330         the contents of $testsbase.
27331         Reported by Ralf Wildenhues.
27332
27333 2007-12-22  Bruno Haible  <bruno@clisp.org>
27334
27335         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27336         two variables local_ldadd_before, local_ldadd_last.
27337
27338 2007-12-20  Eric Blake  <ebb9@byu.net>
27339
27340         Work around circular library issue when cross-compiling.
27341         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27342         that progname.o does not need to pull in rpl_memcmp.
27343
27344 2007-12-19  Eric Blake  <ebb9@byu.net>
27345
27346         Fix memmem to avoid O(n^2) worst-case complexity.
27347         * lib/memmem.c (knuth_morris_pratt): New function.
27348         (memmem): Use it if first few naive iterations fail.
27349         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27350         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27351         * modules/memchr (License): Likewise.
27352         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27353         malloca.
27354         * tests/test-memmem.c: Rewrite, borrowing ideas from
27355         test-mbsstr1.c; the old version wouldn't even compile!
27356         * modules/memmem-tests: New file.
27357         * lib/string.in.h (rpl_memmem): Add declaration.
27358         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27360         REPLACE_MEMMEM.
27361
27362 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27363
27364         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27365         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27366         before any system include files, and undef after them all.  This
27367         should fix a problem on VMS reported by John E. Malmberg in
27368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27369
27370 2007-12-17  Eric Blake  <ebb9@byu.net>
27371
27372         Revert addition of verify, for BSD/OS.
27373         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27374         can't handle large files, for the sake of obsolete platforms.
27375         * modules/fseeko (Depends-on): Remove verify.
27376         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27377         * doc/functions/ftello.texi (ftello): Likewise.
27378         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27379         Reported by Larry Jones.
27380
27381 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27382
27383         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27384         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27385
27386 2007-12-17  Jim Meyering  <meyering@redhat.com>
27387
27388         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27389         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27390         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27391         * modules/getcwd (Depends-on): Add openat.
27392         Reported by Petr Salinger.
27393
27394 2007-12-17  Bruno Haible  <bruno@clisp.org>
27395
27396         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27397         avoid a segmentation fault of the configure test on x86_64 systems.
27398
27399 2007-12-15  Jim Meyering  <meyering@redhat.com>
27400
27401         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27402
27403 2007-12-13  Eric Blake  <ebb9@byu.net>
27404
27405         Another fseek test.
27406         * tests/test-fseek.c (main): Also test ungetc handling.
27407         * tests/test-fseeko.c (main): Likewise.
27408         * modules/fseeko (Depends-on): Add verify.
27409         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27410         large.
27411         Reported by Larry Jones.
27412
27413         Fix fseeko on mingw.
27414         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27415         seek.
27416
27417         Beef up fseek tests.
27418         * tests/test-fseek.c (main): Also test eof handling.
27419         * tests/test-fseeko.c (main): Likewise.
27420         Reported by Larry Jones.
27421
27422 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27423
27424         Fix fseeko on BSD-based platforms.
27425         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27426         successful seek.
27427
27428 2007-12-12  Eric Blake  <ebb9@byu.net>
27429
27430         Allow circular dependency of separate libtests.a
27431         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27432         when use_libtests.
27433
27434 2007-12-11  Eric Blake  <ebb9@byu.net>
27435
27436         Fix bug with -0.0L in previous patch.
27437         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27438         * tests/test-isnan.c (main): Also test on zeroes.
27439         * tests/test-isnanf.c (main): Likewise.
27440         * tests/test-isnanl.h (main): Likewise.
27441
27442         Detect pseudo-denormals on x86 even when cross-compiling.
27443         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27444         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27445         invalid bit patterns that happen to satisfy ==.
27446
27447         Avoid link failures with separate libtests.a.
27448         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27449         last, to satisfy circular dependencies.
27450
27451 2007-12-11  Eric Blake  <ebb9@byu.net>
27452         and Bruno Haible  <bruno@clisp.org>
27453
27454         Fix OpenBSD 4.0 <float.h> handling of long double.
27455         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27456         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27457         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27458
27459 2007-12-11  Jim Meyering  <meyering@redhat.com>
27460
27461         * users.txt: Add libvirt.
27462
27463         Support versions of autoconf prior to 2.59c.
27464         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27465         if it is not already defined.
27466
27467 2007-12-09  Bruno Haible  <bruno@clisp.org>
27468
27469         Let 'gnulib-tool --import' collect sources needed for the tests in
27470         tests/ rather than in lib/.
27471         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27472         argument. If true, add rules to generate libtests.a, and put libtests.a
27473         into $(LDADD). Consider source files in subdirectories and set
27474         uses_subdirs.
27475         (func_emit_initmacro_start, func_emit_initmacro_end,
27476         func_emit_initmacro_done): Pass all arguments explicitly.
27477         (func_import): Determine two module lists main_modules,
27478         testsrelated_modules. Determine use_libtests. Determine two variables
27479         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27480         instead of just sed_transform_lib_file. Determine two variables
27481         main_files and testsrelated_files. Compute 'files' as the union of
27482         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27483         func_add_or_update. In the generated gnulib-comp.m4, collect the
27484         object files for tests/ in different variables than those for lib/.
27485         Substitute LIBTESTS_LIBDEPS.
27486         (func_create_testdir): Combine the uses_subdirs results from
27487         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27488
27489 2007-12-09  Bruno Haible  <bruno@clisp.org>
27490
27491         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27492         the build-aux directory.
27493
27494 2007-12-09  Bruno Haible  <bruno@clisp.org>
27495
27496         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27497         introduced on 2006-09-09.
27498
27499 2007-12-07  Jim Meyering  <meyering@redhat.com>
27500
27501         Let these macros work also with autoconf-2.59.
27502         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27503         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27504         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27505
27506 2007-12-06  Jim Meyering  <meyering@redhat.com>
27507
27508         Avoid a configure-time syntax error in gl_FUNC_ACL.
27509         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27510         function in each branch, before testing the cache variable.
27511
27512 2007-12-04  Eric Blake  <ebb9@byu.net>
27513
27514         Make scripts executable.
27515         * build-aux/config.guess: Add execute permissions.
27516         * build-aux/config.sub: Likewise.
27517         * build-aux/gendocs.sh: Likewise.
27518
27519         Fix frexp on mingw.
27520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27521         cross-compiling.
27522         * doc/functions/frexp.texi (frexp): Document the bug.
27523
27524         Make cygwin fseeko check more reliable.
27525         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27526         version numbers, rather than unrelated feature check.
27527         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27528         * doc/functions/ftello.texi (ftello): Likewise.
27529         Reported by Bruno Haible.
27530
27531         * m4/strerror.m4: Bump version number.
27532
27533 2007-12-03  Bruno Haible  <bruno@clisp.org>
27534
27535         * doc/functions/mprotect.texi: Mention the mingw problem.
27536
27537 2007-12-03  Eric Blake  <ebb9@byu.net>
27538
27539         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27540         REPLACE_STRERROR is initialized before this macro.
27541
27542 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27543
27544         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27545         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27546         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27547         put -lsec in even for programs other than 'ls'.  This fixes a problem
27548         for gettext reported by Bruno Haible in
27549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27550         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27551         Add support for Solaris 10.  This isn't efficient, but should get the
27552         job done for now.
27553
27554 2007-12-03  James Youngman  <jay@gnu.org>
27555
27556         * doc/regexprops-generic.texi: change "an close-group" to "a
27557         close-group" and "illegal" to "not allowed".
27558
27559 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27560
27561         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27562         pr_byname.h. Needed for the rare case when the maintainer has done
27563         "make maintainer-clean" in the source directory and then attempts a
27564         build outside the source directory.
27565         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27566         scripts_byname.h.
27567
27568 2007-12-02  Martin Lambers <marlam@marlam.de>
27569             Bruno Haible  <bruno@clisp.org>
27570
27571         * lib/getpagesize.h: Remove file.
27572         * lib/unistd.in.h: Include declaration of getpagesize here.
27573         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27574         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27575         HAVE_SYS_PARAM_H.
27576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27577         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27578         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27579         (Depends-on): Add unistd.
27580         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27581         (Include): Use <unistd.h> instead of getpagesize.h.
27582         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27583         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27584         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27585         gl_GETPAGESIZE invocation, already handled by module dependency.
27586         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27587
27588 2007-12-02  Bruno Haible  <bruno@clisp.org>
27589
27590         * modules/strings-tests: New file.
27591         * tests/test-strings.c: New file.
27592
27593         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27594         * lib/strings.in.h: New file.
27595         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27596         * m4/strings_h.m4: New file.
27597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27598         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27599         * modules/strings: New file.
27600         * modules/string (Makefile.am): Update.
27601         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27602         Reported by Karl Berry.
27603
27604 2007-12-01  Eric Blake  <ebb9@byu.net>
27605
27606         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27607         accomodate fix in cygwin 1.5.25.
27608
27609 2007-12-01  Jim Meyering  <meyering@redhat.com>
27610
27611         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27612         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27613         that would inhibit utf8-optimization of a regexp containing line-
27614         or buffer-anchors, e.g., `^', `$'.
27615
27616 2007-11-30  Bruno Haible  <bruno@clisp.org>
27617
27618         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27619         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27620         glthread_recursive_lock_init.
27621         * lib/lock.c (glthread_recursive_lock_init)
27622         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27623         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27624
27625 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27626
27627         New function qset_acl, like set_acl but with syscall semantics.
27628         * lib/acl.h (qset_acl): New decl.
27629         * lib/acl.c (qset_acl): New function.
27630         (set_acl): Use new function.  Use more-consistent diagnostics.
27631
27632 2007-11-28  Jim Meyering  <meyering@redhat.com>
27633
27634         * modules/physmem (License): Change from GPL to LGPLv2+.
27635
27636 2007-11-26  Bruno Haible  <bruno@clisp.org>
27637
27638         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27639         'long double' type has excess precision.
27640         Reported by Jim Meyering in
27641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27642
27643 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27644
27645         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27646         Sync from <http://gnu.org/licenses>.
27647         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27648         with license text from same location.
27649         * doc/maintain.texi, doc/standards.texi:  Sync from
27650         <http://savannah.gnu.org/projects/gnustandards>.
27651
27652 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
27653         and Jim Meyering  <meyering@redhat.com>
27654
27655         Adjust getdate' grammar to accept a slightly more regular language.
27656         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27657         Before, the former was rejected.
27658         * lib/getdate.y (digits_to_date_time): New function, factored
27659         out of ...
27660         (number): ...here.  Just call digits_to_date_time.
27661         (hybrid): New non-terminal to handle an <unsigned number,
27662         signed relative offset> sequence consistently.
27663
27664 2007-11-18  Jim Meyering  <meyering@redhat.com>
27665
27666         Pull my changes from coreutils:
27667         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27668         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27669         use of $gnulib_tool_option_extras, so that it's separated from the
27670         preceding argument.
27671
27672         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27673         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27674         parent destination directories before copying a file into place.
27675
27676 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27677
27678         bootstrap: work also with 4-argument variant of AC_INIT
27679         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27680
27681 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27682
27683         Port test-getaddrinfo to Solaris.
27684         Problem reported by Bruno Haible in
27685         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27686         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27687         explanation of setting 'hints'.
27688         Don't reject an implementation merely because it returns EAI_SERVICE.
27689         (EAI_SERVICE): Define to 0 if not defined.
27690
27691 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27692
27693         The license of gnu-make and posix-shell is now "GPLed build tool".
27694         * modules/gnu-make (License): Likewise.
27695         * modules/posix-shell (License): Likewise.
27696
27697         New module posix-shell, for determining a POSIX shell
27698         or perhaps something that is close enough to a POSIX shell.
27699         * m4/posix-shell.m4: New file.
27700         * modules/posix-shell: New file.
27701
27702         * MODULES.html.sh: Mention new module.
27703
27704         New module gnu-make, for determining whether we're using GNU Make.
27705         * m4/gnu-make.m4: New file.
27706         * modules/gnu-make: New file.
27707         * MODULES.html.sh: Mention new module.
27708
27709 2007-11-14  Jim Meyering  <meyering@redhat.com>
27710
27711         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27712         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27713         use this macro to create a function _definition_.
27714         Remove useless "#undef ARGMATCH_DIE".
27715
27716 2007-11-14  Bruno Haible  <bruno@clisp.org>
27717
27718         * lib/config.charset: Update for OpenBSD 4.1.
27719         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27720
27721 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27722
27723         Document 64-bit #if problems in stdint.texi.
27724         * doc/headers/stdint.texi (stdint.h): Mention problems with
27725         64-bit-#if, and how to work around them.
27726
27727         Don't insist on 'long long int' support in the preprocessor.  It
27728         breaks too many things.  For example, PRIdMAX still uses a 'long
27729         long int' format with the latest Sun compiler, even though
27730         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27731         preprocessor problem.  This causes the latest coreutils to dump
27732         core on Solaris 10 sparc with the Sun C compiler.
27733         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27734         the troublesome expressions at configure-time, not at #if-time.
27735         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27736         preprocessor.
27737         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27738         compile-time C checks, done at 'configure'-time.
27739         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27740         * modules/inttypes (Makefile): Substitute the new symbols that
27741         gl_INTTYPES_H now generates.
27742         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27743
27744 2007-11-12  Bruno Haible  <bruno@clisp.org>
27745
27746         Tests for Unicode character classification functions.
27747
27748         * modules/unictype/bidicategory-byname-tests: New file.
27749         * modules/unictype/bidicategory-name-tests: New file.
27750         * modules/unictype/bidicategory-of-tests: New file.
27751         * modules/unictype/bidicategory-test-tests: New file.
27752         * modules/unictype/block-list-tests: New file.
27753         * modules/unictype/block-of-tests: New file.
27754         * modules/unictype/block-test-tests: New file.
27755         * modules/unictype/category-C-tests: New file.
27756         * modules/unictype/category-Cc-tests: New file.
27757         * modules/unictype/category-Cf-tests: New file.
27758         * modules/unictype/category-Cn-tests: New file.
27759         * modules/unictype/category-Co-tests: New file.
27760         * modules/unictype/category-Cs-tests: New file.
27761         * modules/unictype/category-L-tests: New file.
27762         * modules/unictype/category-Ll-tests: New file.
27763         * modules/unictype/category-Lm-tests: New file.
27764         * modules/unictype/category-Lo-tests: New file.
27765         * modules/unictype/category-Lt-tests: New file.
27766         * modules/unictype/category-Lu-tests: New file.
27767         * modules/unictype/category-M-tests: New file.
27768         * modules/unictype/category-Mc-tests: New file.
27769         * modules/unictype/category-Me-tests: New file.
27770         * modules/unictype/category-Mn-tests: New file.
27771         * modules/unictype/category-N-tests: New file.
27772         * modules/unictype/category-Nd-tests: New file.
27773         * modules/unictype/category-Nl-tests: New file.
27774         * modules/unictype/category-No-tests: New file.
27775         * modules/unictype/category-P-tests: New file.
27776         * modules/unictype/category-Pc-tests: New file.
27777         * modules/unictype/category-Pd-tests: New file.
27778         * modules/unictype/category-Pe-tests: New file.
27779         * modules/unictype/category-Pf-tests: New file.
27780         * modules/unictype/category-Pi-tests: New file.
27781         * modules/unictype/category-Po-tests: New file.
27782         * modules/unictype/category-Ps-tests: New file.
27783         * modules/unictype/category-S-tests: New file.
27784         * modules/unictype/category-Sc-tests: New file.
27785         * modules/unictype/category-Sk-tests: New file.
27786         * modules/unictype/category-Sm-tests: New file.
27787         * modules/unictype/category-So-tests: New file.
27788         * modules/unictype/category-Z-tests: New file.
27789         * modules/unictype/category-Zl-tests: New file.
27790         * modules/unictype/category-Zp-tests: New file.
27791         * modules/unictype/category-Zs-tests: New file.
27792         * modules/unictype/category-and-not-tests: New file.
27793         * modules/unictype/category-and-tests: New file.
27794         * modules/unictype/category-byname-tests: New file.
27795         * modules/unictype/category-name-tests: New file.
27796         * modules/unictype/category-none-tests: New file.
27797         * modules/unictype/category-of-tests: New file.
27798         * modules/unictype/category-or-tests: New file.
27799         * modules/unictype/category-test-withtable-tests: New file.
27800         * modules/unictype/combining-class-tests: New file.
27801         * modules/unictype/ctype-alnum-tests: New file.
27802         * modules/unictype/ctype-alpha-tests: New file.
27803         * modules/unictype/ctype-blank-tests: New file.
27804         * modules/unictype/ctype-cntrl-tests: New file.
27805         * modules/unictype/ctype-digit-tests: New file.
27806         * modules/unictype/ctype-graph-tests: New file.
27807         * modules/unictype/ctype-lower-tests: New file.
27808         * modules/unictype/ctype-print-tests: New file.
27809         * modules/unictype/ctype-punct-tests: New file.
27810         * modules/unictype/ctype-space-tests: New file.
27811         * modules/unictype/ctype-upper-tests: New file.
27812         * modules/unictype/ctype-xdigit-tests: New file.
27813         * modules/unictype/decimal-digit-tests: New file.
27814         * modules/unictype/digit-tests: New file.
27815         * modules/unictype/mirror-tests: New file.
27816         * modules/unictype/numeric-tests: New file.
27817         * modules/unictype/property-alphabetic-tests: New file.
27818         * modules/unictype/property-ascii-hex-digit-tests: New file.
27819         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27820         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27821         * modules/unictype/property-bidi-block-separator-tests: New file.
27822         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27823         * modules/unictype/property-bidi-common-separator-tests: New file.
27824         * modules/unictype/property-bidi-control-tests: New file.
27825         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27826         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27827         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27828         * modules/unictype/property-bidi-european-digit-tests: New file.
27829         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27830         * modules/unictype/property-bidi-left-to-right-tests: New file.
27831         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27832         * modules/unictype/property-bidi-other-neutral-tests: New file.
27833         * modules/unictype/property-bidi-pdf-tests: New file.
27834         * modules/unictype/property-bidi-segment-separator-tests: New file.
27835         * modules/unictype/property-bidi-whitespace-tests: New file.
27836         * modules/unictype/property-byname-tests: New file.
27837         * modules/unictype/property-combining-tests: New file.
27838         * modules/unictype/property-composite-tests: New file.
27839         * modules/unictype/property-currency-symbol-tests: New file.
27840         * modules/unictype/property-dash-tests: New file.
27841         * modules/unictype/property-decimal-digit-tests: New file.
27842         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27843         * modules/unictype/property-deprecated-tests: New file.
27844         * modules/unictype/property-diacritic-tests: New file.
27845         * modules/unictype/property-extender-tests: New file.
27846         * modules/unictype/property-format-control-tests: New file.
27847         * modules/unictype/property-grapheme-base-tests: New file.
27848         * modules/unictype/property-grapheme-extend-tests: New file.
27849         * modules/unictype/property-grapheme-link-tests: New file.
27850         * modules/unictype/property-hex-digit-tests: New file.
27851         * modules/unictype/property-hyphen-tests: New file.
27852         * modules/unictype/property-id-continue-tests: New file.
27853         * modules/unictype/property-id-start-tests: New file.
27854         * modules/unictype/property-ideographic-tests: New file.
27855         * modules/unictype/property-ids-binary-operator-tests: New file.
27856         * modules/unictype/property-ids-trinary-operator-tests: New file.
27857         * modules/unictype/property-ignorable-control-tests: New file.
27858         * modules/unictype/property-iso-control-tests: New file.
27859         * modules/unictype/property-join-control-tests: New file.
27860         * modules/unictype/property-left-of-pair-tests: New file.
27861         * modules/unictype/property-line-separator-tests: New file.
27862         * modules/unictype/property-logical-order-exception-tests: New file.
27863         * modules/unictype/property-lowercase-tests: New file.
27864         * modules/unictype/property-math-tests: New file.
27865         * modules/unictype/property-non-break-tests: New file.
27866         * modules/unictype/property-not-a-character-tests: New file.
27867         * modules/unictype/property-numeric-tests: New file.
27868         * modules/unictype/property-other-alphabetic-tests: New file.
27869         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27870         * modules/unictype/property-other-grapheme-extend-tests: New file.
27871         * modules/unictype/property-other-id-continue-tests: New file.
27872         * modules/unictype/property-other-id-start-tests: New file.
27873         * modules/unictype/property-other-lowercase-tests: New file.
27874         * modules/unictype/property-other-math-tests: New file.
27875         * modules/unictype/property-other-uppercase-tests: New file.
27876         * modules/unictype/property-paired-punctuation-tests: New file.
27877         * modules/unictype/property-paragraph-separator-tests: New file.
27878         * modules/unictype/property-pattern-syntax-tests: New file.
27879         * modules/unictype/property-pattern-white-space-tests: New file.
27880         * modules/unictype/property-private-use-tests: New file.
27881         * modules/unictype/property-punctuation-tests: New file.
27882         * modules/unictype/property-quotation-mark-tests: New file.
27883         * modules/unictype/property-radical-tests: New file.
27884         * modules/unictype/property-sentence-terminal-tests: New file.
27885         * modules/unictype/property-soft-dotted-tests: New file.
27886         * modules/unictype/property-space-tests: New file.
27887         * modules/unictype/property-terminal-punctuation-tests: New file.
27888         * modules/unictype/property-test-tests: New file.
27889         * modules/unictype/property-titlecase-tests: New file.
27890         * modules/unictype/property-unassigned-code-value-tests: New file.
27891         * modules/unictype/property-unified-ideograph-tests: New file.
27892         * modules/unictype/property-uppercase-tests: New file.
27893         * modules/unictype/property-variation-selector-tests: New file.
27894         * modules/unictype/property-white-space-tests: New file.
27895         * modules/unictype/property-xid-continue-tests: New file.
27896         * modules/unictype/property-xid-start-tests: New file.
27897         * modules/unictype/property-zero-width-tests: New file.
27898         * modules/unictype/scripts-tests: New file.
27899         * modules/unictype/syntax-c-ident-tests: New file.
27900         * modules/unictype/syntax-c-whitespace-tests: New file.
27901         * modules/unictype/syntax-java-ident-tests: New file.
27902         * modules/unictype/syntax-java-whitespace-tests: New file.
27903         * tests/unictype/test-bidi_byname.c: New file.
27904         * tests/unictype/test-bidi_name.c: New file.
27905         * tests/unictype/test-bidi_of.c: New file.
27906         * tests/unictype/test-bidi_test.c: New file.
27907         * tests/unictype/test-block_list.c: New file.
27908         * tests/unictype/test-block_of.c: New file.
27909         * tests/unictype/test-block_test.c: New file.
27910         * tests/unictype/test-categ_and.c: New file.
27911         * tests/unictype/test-categ_and_not.c: New file.
27912         * tests/unictype/test-categ_byname.c: New file.
27913         * tests/unictype/test-categ_name.c: New file.
27914         * tests/unictype/test-categ_none.c: New file.
27915         * tests/unictype/test-categ_of.c: New file.
27916         * tests/unictype/test-categ_or.c: New file.
27917         * tests/unictype/test-categ_test_withtable.c: New file.
27918         * tests/unictype/test-combining.c: New file.
27919         * tests/unictype/test-decdigit.c: New file.
27920         * tests/unictype/test-digit.c: New file.
27921         * tests/unictype/test-mirror.c: New file.
27922         * tests/unictype/test-numeric.c: New file.
27923         * tests/unictype/test-pr_byname.c: New file.
27924         * tests/unictype/test-pr_test.c: New file.
27925         * tests/unictype/test-predicate-part1.h: New file.
27926         * tests/unictype/test-predicate-part2.h: New file.
27927         * tests/unictype/test-scripts.c: New file.
27928         * tests/unictype/test-sy_c_ident.c: New file.
27929         * tests/unictype/test-sy_java_ident.c: New file.
27930
27931         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27932         for Unicode 5.0.0.
27933         * tests/unictype/test-categ_Cc.c: Likewise.
27934         * tests/unictype/test-categ_Cf.c: Likewise.
27935         * tests/unictype/test-categ_Cn.c: Likewise.
27936         * tests/unictype/test-categ_Co.c: Likewise.
27937         * tests/unictype/test-categ_Cs.c: Likewise.
27938         * tests/unictype/test-categ_L.c: Likewise.
27939         * tests/unictype/test-categ_Ll.c: Likewise.
27940         * tests/unictype/test-categ_Lm.c: Likewise.
27941         * tests/unictype/test-categ_Lo.c: Likewise.
27942         * tests/unictype/test-categ_Lt.c: Likewise.
27943         * tests/unictype/test-categ_Lu.c: Likewise.
27944         * tests/unictype/test-categ_M.c: Likewise.
27945         * tests/unictype/test-categ_Mc.c: Likewise.
27946         * tests/unictype/test-categ_Me.c: Likewise.
27947         * tests/unictype/test-categ_Mn.c: Likewise.
27948         * tests/unictype/test-categ_N.c: Likewise.
27949         * tests/unictype/test-categ_Nd.c: Likewise.
27950         * tests/unictype/test-categ_Nl.c: Likewise.
27951         * tests/unictype/test-categ_No.c: Likewise.
27952         * tests/unictype/test-categ_P.c: Likewise.
27953         * tests/unictype/test-categ_Pc.c: Likewise.
27954         * tests/unictype/test-categ_Pd.c: Likewise.
27955         * tests/unictype/test-categ_Pe.c: Likewise.
27956         * tests/unictype/test-categ_Pf.c: Likewise.
27957         * tests/unictype/test-categ_Pi.c: Likewise.
27958         * tests/unictype/test-categ_Po.c: Likewise.
27959         * tests/unictype/test-categ_Ps.c: Likewise.
27960         * tests/unictype/test-categ_S.c: Likewise.
27961         * tests/unictype/test-categ_Sc.c: Likewise.
27962         * tests/unictype/test-categ_Sk.c: Likewise.
27963         * tests/unictype/test-categ_Sm.c: Likewise.
27964         * tests/unictype/test-categ_So.c: Likewise.
27965         * tests/unictype/test-categ_Z.c: Likewise.
27966         * tests/unictype/test-categ_Zl.c: Likewise.
27967         * tests/unictype/test-categ_Zp.c: Likewise.
27968         * tests/unictype/test-categ_Zs.c: Likewise.
27969         * tests/unictype/test-ctype_alnum.c: Likewise.
27970         * tests/unictype/test-ctype_alpha.c: Likewise.
27971         * tests/unictype/test-ctype_blank.c: Likewise.
27972         * tests/unictype/test-ctype_cntrl.c: Likewise.
27973         * tests/unictype/test-ctype_digit.c: Likewise.
27974         * tests/unictype/test-ctype_graph.c: Likewise.
27975         * tests/unictype/test-ctype_lower.c: Likewise.
27976         * tests/unictype/test-ctype_print.c: Likewise.
27977         * tests/unictype/test-ctype_punct.c: Likewise.
27978         * tests/unictype/test-ctype_space.c: Likewise.
27979         * tests/unictype/test-ctype_upper.c: Likewise.
27980         * tests/unictype/test-ctype_xdigit.c: Likewise.
27981         * tests/unictype/test-decdigit.h: Likewise.
27982         * tests/unictype/test-digit.h: Likewise.
27983         * tests/unictype/test-numeric.h: Likewise.
27984         * tests/unictype/test-pr_alphabetic.c: Likewise.
27985         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27986         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27987         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27988         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27989         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27990         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27991         * tests/unictype/test-pr_bidi_control.c: Likewise.
27992         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27993         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27994         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27995         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27996         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27997         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27998         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27999         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28000         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28001         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28002         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28003         * tests/unictype/test-pr_combining.c: Likewise.
28004         * tests/unictype/test-pr_composite.c: Likewise.
28005         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28006         * tests/unictype/test-pr_dash.c: Likewise.
28007         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28008         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28009         * tests/unictype/test-pr_deprecated.c: Likewise.
28010         * tests/unictype/test-pr_diacritic.c: Likewise.
28011         * tests/unictype/test-pr_extender.c: Likewise.
28012         * tests/unictype/test-pr_format_control.c: Likewise.
28013         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28014         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28015         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28016         * tests/unictype/test-pr_hex_digit.c: Likewise.
28017         * tests/unictype/test-pr_hyphen.c: Likewise.
28018         * tests/unictype/test-pr_id_continue.c: Likewise.
28019         * tests/unictype/test-pr_id_start.c: Likewise.
28020         * tests/unictype/test-pr_ideographic.c: Likewise.
28021         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28022         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28023         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28024         * tests/unictype/test-pr_iso_control.c: Likewise.
28025         * tests/unictype/test-pr_join_control.c: Likewise.
28026         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28027         * tests/unictype/test-pr_line_separator.c: Likewise.
28028         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28029         * tests/unictype/test-pr_lowercase.c: Likewise.
28030         * tests/unictype/test-pr_math.c: Likewise.
28031         * tests/unictype/test-pr_non_break.c: Likewise.
28032         * tests/unictype/test-pr_not_a_character.c: Likewise.
28033         * tests/unictype/test-pr_numeric.c: Likewise.
28034         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28035         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28036         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28037         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28038         * tests/unictype/test-pr_other_id_start.c: Likewise.
28039         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28040         * tests/unictype/test-pr_other_math.c: Likewise.
28041         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28042         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28043         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28044         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28045         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28046         * tests/unictype/test-pr_private_use.c: Likewise.
28047         * tests/unictype/test-pr_punctuation.c: Likewise.
28048         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28049         * tests/unictype/test-pr_radical.c: Likewise.
28050         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28051         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28052         * tests/unictype/test-pr_space.c: Likewise.
28053         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28054         * tests/unictype/test-pr_titlecase.c: Likewise.
28055         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28056         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28057         * tests/unictype/test-pr_uppercase.c: Likewise.
28058         * tests/unictype/test-pr_variation_selector.c: Likewise.
28059         * tests/unictype/test-pr_white_space.c: Likewise.
28060         * tests/unictype/test-pr_xid_continue.c: Likewise.
28061         * tests/unictype/test-pr_xid_start.c: Likewise.
28062         * tests/unictype/test-pr_zero_width.c: Likewise.
28063         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28064         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28065
28066 2007-11-12  Bruno Haible  <bruno@clisp.org>
28067
28068         Unicode character classification functions.
28069         * lib/unictype.h: New file.
28070         * modules/unictype/base: New file.
28071         * modules/unictype/category-L: New file.
28072         * modules/unictype/category-Lu: New file.
28073         * modules/unictype/category-Ll: New file.
28074         * modules/unictype/category-Lt: New file.
28075         * modules/unictype/category-Lm: New file.
28076         * modules/unictype/category-Lo: New file.
28077         * modules/unictype/category-M: New file.
28078         * modules/unictype/category-Mn: New file.
28079         * modules/unictype/category-Mc: New file.
28080         * modules/unictype/category-Me: New file.
28081         * modules/unictype/category-N: New file.
28082         * modules/unictype/category-Nd: New file.
28083         * modules/unictype/category-Nl: New file.
28084         * modules/unictype/category-No: New file.
28085         * modules/unictype/category-P: New file.
28086         * modules/unictype/category-Pc: New file.
28087         * modules/unictype/category-Pd: New file.
28088         * modules/unictype/category-Ps: New file.
28089         * modules/unictype/category-Pe: New file.
28090         * modules/unictype/category-Pi: New file.
28091         * modules/unictype/category-Pf: New file.
28092         * modules/unictype/category-Po: New file.
28093         * modules/unictype/category-S: New file.
28094         * modules/unictype/category-Sm: New file.
28095         * modules/unictype/category-Sc: New file.
28096         * modules/unictype/category-Sk: New file.
28097         * modules/unictype/category-So: New file.
28098         * modules/unictype/category-Z: New file.
28099         * modules/unictype/category-Zs: New file.
28100         * modules/unictype/category-Zl: New file.
28101         * modules/unictype/category-Zp: New file.
28102         * modules/unictype/category-C: New file.
28103         * modules/unictype/category-Cc: New file.
28104         * modules/unictype/category-Cf: New file.
28105         * modules/unictype/category-Cs: New file.
28106         * modules/unictype/category-Co: New file.
28107         * modules/unictype/category-Cn: New file.
28108         * modules/unictype/category-or: New file.
28109         * modules/unictype/category-of: New file.
28110         * modules/unictype/category-test: New file.
28111         * modules/unictype/category-test-withtable: New file.
28112         * modules/unictype/category-byname: New file.
28113         * modules/unictype/category-none: New file.
28114         * modules/unictype/category-and: New file.
28115         * modules/unictype/category-and-not: New file.
28116         * modules/unictype/category-name: New file.
28117         * modules/unictype/combining-class: New file.
28118         * modules/unictype/category-all: New file.
28119         * modules/unictype/bidicategory-all: New file.
28120         * modules/unictype/bidicategory-byname: New file.
28121         * modules/unictype/bidicategory-name: New file.
28122         * modules/unictype/bidicategory-of: New file.
28123         * modules/unictype/bidicategory-test: New file.
28124         * modules/unictype/decimal-digit: New file.
28125         * modules/unictype/digit: New file.
28126         * modules/unictype/numeric: New file.
28127         * modules/unictype/mirror: New file.
28128         * modules/unictype/property-white-space: New file.
28129         * modules/unictype/property-alphabetic: New file.
28130         * modules/unictype/property-other-alphabetic: New file.
28131         * modules/unictype/property-not-a-character: New file.
28132         * modules/unictype/property-default-ignorable-code-point: New file.
28133         * modules/unictype/property-other-default-ignorable-code-point: New
28134         file.
28135         * modules/unictype/property-deprecated: New file.
28136         * modules/unictype/property-logical-order-exception: New file.
28137         * modules/unictype/property-variation-selector: New file.
28138         * modules/unictype/property-private-use: New file.
28139         * modules/unictype/property-unassigned-code-value: New file.
28140         * modules/unictype/property-uppercase: New file.
28141         * modules/unictype/property-other-uppercase: New file.
28142         * modules/unictype/property-lowercase: New file.
28143         * modules/unictype/property-other-lowercase: New file.
28144         * modules/unictype/property-titlecase: New file.
28145         * modules/unictype/property-soft-dotted: New file.
28146         * modules/unictype/property-id-start: New file.
28147         * modules/unictype/property-other-id-start: New file.
28148         * modules/unictype/property-id-continue: New file.
28149         * modules/unictype/property-other-id-continue: New file.
28150         * modules/unictype/property-xid-start: New file.
28151         * modules/unictype/property-xid-continue: New file.
28152         * modules/unictype/property-pattern-white-space: New file.
28153         * modules/unictype/property-pattern-syntax: New file.
28154         * modules/unictype/property-join-control: New file.
28155         * modules/unictype/property-grapheme-base: New file.
28156         * modules/unictype/property-grapheme-extend: New file.
28157         * modules/unictype/property-other-grapheme-extend: New file.
28158         * modules/unictype/property-grapheme-link: New file.
28159         * modules/unictype/property-bidi-control: New file.
28160         * modules/unictype/property-bidi-left-to-right: New file.
28161         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28162         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28163         * modules/unictype/property-bidi-european-digit: New file.
28164         * modules/unictype/property-bidi-eur-num-separator: New file.
28165         * modules/unictype/property-bidi-eur-num-terminator: New file.
28166         * modules/unictype/property-bidi-arabic-digit: New file.
28167         * modules/unictype/property-bidi-common-separator: New file.
28168         * modules/unictype/property-bidi-block-separator: New file.
28169         * modules/unictype/property-bidi-segment-separator: New file.
28170         * modules/unictype/property-bidi-whitespace: New file.
28171         * modules/unictype/property-bidi-non-spacing-mark: New file.
28172         * modules/unictype/property-bidi-boundary-neutral: New file.
28173         * modules/unictype/property-bidi-pdf: New file.
28174         * modules/unictype/property-bidi-embedding-or-override: New file.
28175         * modules/unictype/property-bidi-other-neutral: New file.
28176         * modules/unictype/property-hex-digit: New file.
28177         * modules/unictype/property-ascii-hex-digit: New file.
28178         * modules/unictype/property-ideographic: New file.
28179         * modules/unictype/property-unified-ideograph: New file.
28180         * modules/unictype/property-radical: New file.
28181         * modules/unictype/property-ids-binary-operator: New file.
28182         * modules/unictype/property-ids-trinary-operator: New file.
28183         * modules/unictype/property-zero-width: New file.
28184         * modules/unictype/property-space: New file.
28185         * modules/unictype/property-non-break: New file.
28186         * modules/unictype/property-iso-control: New file.
28187         * modules/unictype/property-format-control: New file.
28188         * modules/unictype/property-dash: New file.
28189         * modules/unictype/property-hyphen: New file.
28190         * modules/unictype/property-punctuation: New file.
28191         * modules/unictype/property-line-separator: New file.
28192         * modules/unictype/property-paragraph-separator: New file.
28193         * modules/unictype/property-quotation-mark: New file.
28194         * modules/unictype/property-sentence-terminal: New file.
28195         * modules/unictype/property-terminal-punctuation: New file.
28196         * modules/unictype/property-currency-symbol: New file.
28197         * modules/unictype/property-math: New file.
28198         * modules/unictype/property-other-math: New file.
28199         * modules/unictype/property-paired-punctuation: New file.
28200         * modules/unictype/property-left-of-pair: New file.
28201         * modules/unictype/property-combining: New file.
28202         * modules/unictype/property-composite: New file.
28203         * modules/unictype/property-decimal-digit: New file.
28204         * modules/unictype/property-numeric: New file.
28205         * modules/unictype/property-diacritic: New file.
28206         * modules/unictype/property-extender: New file.
28207         * modules/unictype/property-ignorable-control: New file.
28208         * modules/unictype/property-test: New file.
28209         * modules/unictype/property-byname: New file.
28210         * modules/unictype/property-all: New file.
28211         * modules/unictype/scripts: New file.
28212         * modules/unictype/scripts-all: New file.
28213         * modules/unictype/block-of: New file.
28214         * modules/unictype/block-test: New file.
28215         * modules/unictype/block-list: New file.
28216         * modules/unictype/block-all: New file.
28217         * modules/unictype/syntax-c-whitespace: New file.
28218         * modules/unictype/syntax-java-whitespace: New file.
28219         * modules/unictype/syntax-c-ident: New file.
28220         * modules/unictype/syntax-java-ident: New file.
28221         * modules/unictype/ctype-alnum: New file.
28222         * modules/unictype/ctype-alpha: New file.
28223         * modules/unictype/ctype-cntrl: New file.
28224         * modules/unictype/ctype-digit: New file.
28225         * modules/unictype/ctype-graph: New file.
28226         * modules/unictype/ctype-lower: New file.
28227         * modules/unictype/ctype-print: New file.
28228         * modules/unictype/ctype-punct: New file.
28229         * modules/unictype/ctype-space: New file.
28230         * modules/unictype/ctype-upper: New file.
28231         * modules/unictype/ctype-xdigit: New file.
28232         * modules/unictype/ctype-blank: New file.
28233         * lib/unictype/bidi_byname.c: New file.
28234         * lib/unictype/bidi_name.c: New file.
28235         * lib/unictype/bidi_of.c: New file.
28236         * lib/unictype/bidi_test.c: New file.
28237         * lib/unictype/bitmap.h: New file.
28238         * lib/unictype/block_test.c: New file.
28239         * lib/unictype/blocks.c: New file.
28240         * lib/unictype/categ_C.c: New file.
28241         * lib/unictype/categ_Cc.c: New file.
28242         * lib/unictype/categ_Cf.c: New file.
28243         * lib/unictype/categ_Cn.c: New file.
28244         * lib/unictype/categ_Co.c: New file.
28245         * lib/unictype/categ_Cs.c: New file.
28246         * lib/unictype/categ_L.c: New file.
28247         * lib/unictype/categ_Ll.c: New file.
28248         * lib/unictype/categ_Lm.c: New file.
28249         * lib/unictype/categ_Lo.c: New file.
28250         * lib/unictype/categ_Lt.c: New file.
28251         * lib/unictype/categ_Lu.c: New file.
28252         * lib/unictype/categ_M.c: New file.
28253         * lib/unictype/categ_Mc.c: New file.
28254         * lib/unictype/categ_Me.c: New file.
28255         * lib/unictype/categ_Mn.c: New file.
28256         * lib/unictype/categ_N.c: New file.
28257         * lib/unictype/categ_Nd.c: New file.
28258         * lib/unictype/categ_Nl.c: New file.
28259         * lib/unictype/categ_No.c: New file.
28260         * lib/unictype/categ_P.c: New file.
28261         * lib/unictype/categ_Pc.c: New file.
28262         * lib/unictype/categ_Pd.c: New file.
28263         * lib/unictype/categ_Pe.c: New file.
28264         * lib/unictype/categ_Pf.c: New file.
28265         * lib/unictype/categ_Pi.c: New file.
28266         * lib/unictype/categ_Po.c: New file.
28267         * lib/unictype/categ_Ps.c: New file.
28268         * lib/unictype/categ_S.c: New file.
28269         * lib/unictype/categ_Sc.c: New file.
28270         * lib/unictype/categ_Sk.c: New file.
28271         * lib/unictype/categ_Sm.c: New file.
28272         * lib/unictype/categ_So.c: New file.
28273         * lib/unictype/categ_Z.c: New file.
28274         * lib/unictype/categ_Zl.c: New file.
28275         * lib/unictype/categ_Zp.c: New file.
28276         * lib/unictype/categ_Zs.c: New file.
28277         * lib/unictype/categ_and.c: New file.
28278         * lib/unictype/categ_and_not.c: New file.
28279         * lib/unictype/categ_byname.c: New file.
28280         * lib/unictype/categ_name.c: New file.
28281         * lib/unictype/categ_none.c: New file.
28282         * lib/unictype/categ_of.c: New file.
28283         * lib/unictype/categ_or.c: New file.
28284         * lib/unictype/categ_test.c: New file.
28285         * lib/unictype/combining.c: New file.
28286         * lib/unictype/ctype_alnum.c: New file.
28287         * lib/unictype/ctype_alpha.c: New file.
28288         * lib/unictype/ctype_blank.c: New file.
28289         * lib/unictype/ctype_cntrl.c: New file.
28290         * lib/unictype/ctype_digit.c: New file.
28291         * lib/unictype/ctype_graph.c: New file.
28292         * lib/unictype/ctype_lower.c: New file.
28293         * lib/unictype/ctype_print.c: New file.
28294         * lib/unictype/ctype_punct.c: New file.
28295         * lib/unictype/ctype_space.c: New file.
28296         * lib/unictype/ctype_upper.c: New file.
28297         * lib/unictype/ctype_xdigit.c: New file.
28298         * lib/unictype/decdigit.c: New file.
28299         * lib/unictype/digit.c: New file.
28300         * lib/unictype/identsyntaxmap.h: New file.
28301         * lib/unictype/mirror.c: New file.
28302         * lib/unictype/numeric.c: New file.
28303         * lib/unictype/pr_alphabetic.c: New file.
28304         * lib/unictype/pr_ascii_hex_digit.c: New file.
28305         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28306         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28307         * lib/unictype/pr_bidi_block_separator.c: New file.
28308         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28309         * lib/unictype/pr_bidi_common_separator.c: New file.
28310         * lib/unictype/pr_bidi_control.c: New file.
28311         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28312         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28313         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28314         * lib/unictype/pr_bidi_european_digit.c: New file.
28315         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28316         * lib/unictype/pr_bidi_left_to_right.c: New file.
28317         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28318         * lib/unictype/pr_bidi_other_neutral.c: New file.
28319         * lib/unictype/pr_bidi_pdf.c: New file.
28320         * lib/unictype/pr_bidi_segment_separator.c: New file.
28321         * lib/unictype/pr_bidi_whitespace.c: New file.
28322         * lib/unictype/pr_byname.c: New file.
28323         * lib/unictype/pr_byname.gperf: New file.
28324         * lib/unictype/pr_combining.c: New file.
28325         * lib/unictype/pr_composite.c: New file.
28326         * lib/unictype/pr_currency_symbol.c: New file.
28327         * lib/unictype/pr_dash.c: New file.
28328         * lib/unictype/pr_decimal_digit.c: New file.
28329         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28330         * lib/unictype/pr_deprecated.c: New file.
28331         * lib/unictype/pr_diacritic.c: New file.
28332         * lib/unictype/pr_extender.c: New file.
28333         * lib/unictype/pr_format_control.c: New file.
28334         * lib/unictype/pr_grapheme_base.c: New file.
28335         * lib/unictype/pr_grapheme_extend.c: New file.
28336         * lib/unictype/pr_grapheme_link.c: New file.
28337         * lib/unictype/pr_hex_digit.c: New file.
28338         * lib/unictype/pr_hyphen.c: New file.
28339         * lib/unictype/pr_id_continue.c: New file.
28340         * lib/unictype/pr_id_start.c: New file.
28341         * lib/unictype/pr_ideographic.c: New file.
28342         * lib/unictype/pr_ids_binary_operator.c: New file.
28343         * lib/unictype/pr_ids_trinary_operator.c: New file.
28344         * lib/unictype/pr_ignorable_control.c: New file.
28345         * lib/unictype/pr_iso_control.c: New file.
28346         * lib/unictype/pr_join_control.c: New file.
28347         * lib/unictype/pr_left_of_pair.c: New file.
28348         * lib/unictype/pr_line_separator.c: New file.
28349         * lib/unictype/pr_logical_order_exception.c: New file.
28350         * lib/unictype/pr_lowercase.c: New file.
28351         * lib/unictype/pr_math.c: New file.
28352         * lib/unictype/pr_non_break.c: New file.
28353         * lib/unictype/pr_not_a_character.c: New file.
28354         * lib/unictype/pr_numeric.c: New file.
28355         * lib/unictype/pr_other_alphabetic.c: New file.
28356         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28357         * lib/unictype/pr_other_grapheme_extend.c: New file.
28358         * lib/unictype/pr_other_id_continue.c: New file.
28359         * lib/unictype/pr_other_id_start.c: New file.
28360         * lib/unictype/pr_other_lowercase.c: New file.
28361         * lib/unictype/pr_other_math.c: New file.
28362         * lib/unictype/pr_other_uppercase.c: New file.
28363         * lib/unictype/pr_paired_punctuation.c: New file.
28364         * lib/unictype/pr_paragraph_separator.c: New file.
28365         * lib/unictype/pr_pattern_syntax.c: New file.
28366         * lib/unictype/pr_pattern_white_space.c: New file.
28367         * lib/unictype/pr_private_use.c: New file.
28368         * lib/unictype/pr_punctuation.c: New file.
28369         * lib/unictype/pr_quotation_mark.c: New file.
28370         * lib/unictype/pr_radical.c: New file.
28371         * lib/unictype/pr_sentence_terminal.c: New file.
28372         * lib/unictype/pr_soft_dotted.c: New file.
28373         * lib/unictype/pr_space.c: New file.
28374         * lib/unictype/pr_terminal_punctuation.c: New file.
28375         * lib/unictype/pr_test.c: New file.
28376         * lib/unictype/pr_titlecase.c: New file.
28377         * lib/unictype/pr_unassigned_code_value.c: New file.
28378         * lib/unictype/pr_unified_ideograph.c: New file.
28379         * lib/unictype/pr_uppercase.c: New file.
28380         * lib/unictype/pr_variation_selector.c: New file.
28381         * lib/unictype/pr_white_space.c: New file.
28382         * lib/unictype/pr_xid_continue.c: New file.
28383         * lib/unictype/pr_xid_start.c: New file.
28384         * lib/unictype/pr_zero_width.c: New file.
28385         * lib/unictype/scripts.c: New file.
28386         * lib/unictype/sy_c_ident.c: New file.
28387         * lib/unictype/sy_c_whitespace.c: New file.
28388         * lib/unictype/sy_java_ident.c: New file.
28389         * lib/unictype/sy_java_whitespace.c: New file.
28390
28391         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28392         Unicode 5.0.0.
28393         * lib/unictype/blocks.h: Likewise.
28394         * lib/unictype/categ_C.h: Likewise.
28395         * lib/unictype/categ_Cc.h: Likewise.
28396         * lib/unictype/categ_Cf.h: Likewise.
28397         * lib/unictype/categ_Cn.h: Likewise.
28398         * lib/unictype/categ_Co.h: Likewise.
28399         * lib/unictype/categ_Cs.h: Likewise.
28400         * lib/unictype/categ_L.h: Likewise.
28401         * lib/unictype/categ_Ll.h: Likewise.
28402         * lib/unictype/categ_Lm.h: Likewise.
28403         * lib/unictype/categ_Lo.h: Likewise.
28404         * lib/unictype/categ_Lt.h: Likewise.
28405         * lib/unictype/categ_Lu.h: Likewise.
28406         * lib/unictype/categ_M.h: Likewise.
28407         * lib/unictype/categ_Mc.h: Likewise.
28408         * lib/unictype/categ_Me.h: Likewise.
28409         * lib/unictype/categ_Mn.h: Likewise.
28410         * lib/unictype/categ_N.h: Likewise.
28411         * lib/unictype/categ_Nd.h: Likewise.
28412         * lib/unictype/categ_Nl.h: Likewise.
28413         * lib/unictype/categ_No.h: Likewise.
28414         * lib/unictype/categ_P.h: Likewise.
28415         * lib/unictype/categ_Pc.h: Likewise.
28416         * lib/unictype/categ_Pd.h: Likewise.
28417         * lib/unictype/categ_Pe.h: Likewise.
28418         * lib/unictype/categ_Pf.h: Likewise.
28419         * lib/unictype/categ_Pi.h: Likewise.
28420         * lib/unictype/categ_Po.h: Likewise.
28421         * lib/unictype/categ_Ps.h: Likewise.
28422         * lib/unictype/categ_S.h: Likewise.
28423         * lib/unictype/categ_Sc.h: Likewise.
28424         * lib/unictype/categ_Sk.h: Likewise.
28425         * lib/unictype/categ_Sm.h: Likewise.
28426         * lib/unictype/categ_So.h: Likewise.
28427         * lib/unictype/categ_Z.h: Likewise.
28428         * lib/unictype/categ_Zl.h: Likewise.
28429         * lib/unictype/categ_Zp.h: Likewise.
28430         * lib/unictype/categ_Zs.h: Likewise.
28431         * lib/unictype/categ_of.h: Likewise.
28432         * lib/unictype/combining.h: Likewise.
28433         * lib/unictype/ctype_alnum.h: Likewise.
28434         * lib/unictype/ctype_alpha.h: Likewise.
28435         * lib/unictype/ctype_blank.h: Likewise.
28436         * lib/unictype/ctype_cntrl.h: Likewise.
28437         * lib/unictype/ctype_digit.h: Likewise.
28438         * lib/unictype/ctype_graph.h: Likewise.
28439         * lib/unictype/ctype_lower.h: Likewise.
28440         * lib/unictype/ctype_print.h: Likewise.
28441         * lib/unictype/ctype_punct.h: Likewise.
28442         * lib/unictype/ctype_space.h: Likewise.
28443         * lib/unictype/ctype_upper.h: Likewise.
28444         * lib/unictype/ctype_xdigit.h: Likewise.
28445         * lib/unictype/decdigit.h: Likewise.
28446         * lib/unictype/digit.h: Likewise.
28447         * lib/unictype/mirror.h: Likewise.
28448         * lib/unictype/numeric.h: Likewise.
28449         * lib/unictype/pr_alphabetic.h: Likewise.
28450         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28451         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28452         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28453         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28454         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28455         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28456         * lib/unictype/pr_bidi_control.h: Likewise.
28457         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28458         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28459         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28460         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28461         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28462         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28463         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28464         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28465         * lib/unictype/pr_bidi_pdf.h: Likewise.
28466         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28467         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28468         * lib/unictype/pr_combining.h: Likewise.
28469         * lib/unictype/pr_composite.h: Likewise.
28470         * lib/unictype/pr_currency_symbol.h: Likewise.
28471         * lib/unictype/pr_dash.h: Likewise.
28472         * lib/unictype/pr_decimal_digit.h: Likewise.
28473         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28474         * lib/unictype/pr_deprecated.h: Likewise.
28475         * lib/unictype/pr_diacritic.h: Likewise.
28476         * lib/unictype/pr_extender.h: Likewise.
28477         * lib/unictype/pr_format_control.h: Likewise.
28478         * lib/unictype/pr_grapheme_base.h: Likewise.
28479         * lib/unictype/pr_grapheme_extend.h: Likewise.
28480         * lib/unictype/pr_grapheme_link.h: Likewise.
28481         * lib/unictype/pr_hex_digit.h: Likewise.
28482         * lib/unictype/pr_hyphen.h: Likewise.
28483         * lib/unictype/pr_id_continue.h: Likewise.
28484         * lib/unictype/pr_id_start.h: Likewise.
28485         * lib/unictype/pr_ideographic.h: Likewise.
28486         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28487         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28488         * lib/unictype/pr_ignorable_control.h: Likewise.
28489         * lib/unictype/pr_iso_control.h: Likewise.
28490         * lib/unictype/pr_join_control.h: Likewise.
28491         * lib/unictype/pr_left_of_pair.h: Likewise.
28492         * lib/unictype/pr_line_separator.h: Likewise.
28493         * lib/unictype/pr_logical_order_exception.h: Likewise.
28494         * lib/unictype/pr_lowercase.h: Likewise.
28495         * lib/unictype/pr_math.h: Likewise.
28496         * lib/unictype/pr_non_break.h: Likewise.
28497         * lib/unictype/pr_not_a_character.h: Likewise.
28498         * lib/unictype/pr_numeric.h: Likewise.
28499         * lib/unictype/pr_other_alphabetic.h: Likewise.
28500         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28501         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28502         * lib/unictype/pr_other_id_continue.h: Likewise.
28503         * lib/unictype/pr_other_id_start.h: Likewise.
28504         * lib/unictype/pr_other_lowercase.h: Likewise.
28505         * lib/unictype/pr_other_math.h: Likewise.
28506         * lib/unictype/pr_other_uppercase.h: Likewise.
28507         * lib/unictype/pr_paired_punctuation.h: Likewise.
28508         * lib/unictype/pr_paragraph_separator.h: Likewise.
28509         * lib/unictype/pr_pattern_syntax.h: Likewise.
28510         * lib/unictype/pr_pattern_white_space.h: Likewise.
28511         * lib/unictype/pr_private_use.h: Likewise.
28512         * lib/unictype/pr_punctuation.h: Likewise.
28513         * lib/unictype/pr_quotation_mark.h: Likewise.
28514         * lib/unictype/pr_radical.h: Likewise.
28515         * lib/unictype/pr_sentence_terminal.h: Likewise.
28516         * lib/unictype/pr_soft_dotted.h: Likewise.
28517         * lib/unictype/pr_space.h: Likewise.
28518         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28519         * lib/unictype/pr_titlecase.h: Likewise.
28520         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28521         * lib/unictype/pr_unified_ideograph.h: Likewise.
28522         * lib/unictype/pr_uppercase.h: Likewise.
28523         * lib/unictype/pr_variation_selector.h: Likewise.
28524         * lib/unictype/pr_white_space.h: Likewise.
28525         * lib/unictype/pr_xid_continue.h: Likewise.
28526         * lib/unictype/pr_xid_start.h: Likewise.
28527         * lib/unictype/pr_zero_width.h: Likewise.
28528         * lib/unictype/scripts.h: Likewise.
28529         * lib/unictype/scripts_byname.gperf: Likewise.
28530         * lib/unictype/sy_c_ident.h: Likewise.
28531         * lib/unictype/sy_c_whitespace.h: Likewise.
28532         * lib/unictype/sy_java_ident.h: Likewise.
28533         * lib/unictype/sy_java_whitespace.h: Likewise.
28534
28535         * lib/unictype/Makefile: New file.
28536         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28537         glibc.
28538         * lib/unictype/3level.h: New file, copied from glibc.
28539         * lib/unictype/3levelbit.h: New file.
28540
28541 2007-11-11  Bruno Haible  <bruno@clisp.org>
28542
28543         * modules/gperf: New file.
28544         * modules/iconv_open (Depends-on): Add it.
28545         (Makefile.am): Remove the GPERF definition.
28546
28547 2007-11-11  Bruno Haible  <bruno@clisp.org>
28548
28549         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28550         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28551
28552 2007-11-11  Bruno Haible  <bruno@clisp.org>
28553
28554         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28555         (usage): Remove function.
28556
28557 2007-11-11  Bruno Haible  <bruno@clisp.org>
28558
28559         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28560         gl_FUNC_CEILF_LIBS.
28561         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28562         gl_FUNC_CEIL_LIBS.
28563         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28564         gl_FUNC_CEILL_LIBS.
28565         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28566         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28567         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28568
28569 2007-11-11  Bruno Haible  <bruno@clisp.org>
28570
28571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28572         roundf were declared but do not exist on functions.
28573         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28574         roundl were declared but do not exist on functions.
28575         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28576         HAVE_FLOORL_AND_CEILL, respectively.
28577         Needed for Sun C on Solaris 10.
28578
28579 2007-11-11  Bruno Haible  <bruno@clisp.org>
28580
28581         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28582         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28583         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28584         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28585         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28586         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28587         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28588         HAVE_DECL_ROUNDF.
28589         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28590         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28592         of HAVE_DECL_ROUND*.
28593         * modules/math (Makefile.am): Update.
28594
28595 2007-11-10  Bruno Haible  <bruno@clisp.org>
28596
28597         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28598         ptrdiff_t as m4/intl.m4.
28599
28600 2007-11-10  Jim Meyering  <meyering@redhat.com>
28601
28602         Avoid link failure for the argmatch test.
28603         * tests/test-argmatch.c (usage): Define function to avoid a link
28604         failure: argmatch_die requires a usage function.
28605
28606 2007-11-09  Bruno Haible  <bruno@clisp.org>
28607
28608         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28609         * doc/functions/vsnprintf.texi: Likewise.
28610         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28611         with a size argument < 2.
28612
28613 2007-11-09  Bruno Haible  <bruno@clisp.org>
28614
28615         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28616         buffer. Fixes an inefficiency introduced on 2007-11-03.
28617
28618 2007-11-09  Bruno Haible  <bruno@clisp.org>
28619
28620         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28621         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28622
28623 2007-11-08  Jim Meyering  <meyering@redhat.com>
28624
28625         Change cache variable name prefix "jm_" to "gl_" everywhere.
28626         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28627         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28628         * m4/uptime.m4: s/gl_/jm_/
28629
28630 2007-11-07  Bruno Haible  <bruno@clisp.org>
28631
28632         Update to GNU gettext 0.17.
28633         * m4/intl.m4: Update to GNU gettext 0.17.
28634         * m4/po.m4: Likewise.
28635         * modules/gettext (Files): Remove m4/ulonglong.m4.
28636         (configure.ac): Require gettext infrastructure from version 0.17.
28637
28638 2007-11-06  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28641         symbolic values are not defined in a public header.
28642         * lib/freadable.c (freadable) [QNX]: Likewise.
28643         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28644         * lib/freading.c (freading) [QNX]: Likewise.
28645         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28646         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28647         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28648         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28649         Reported by Alain Magloire.
28650
28651         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28652
28653 2007-11-05  Bruno Haible  <bruno@clisp.org>
28654
28655         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28656         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28657         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28658         Reported by Eric Blake.
28659
28660 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28661             Bruno Haible  <bruno@clisp.org>
28662
28663         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28664         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28665         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28666         (malloc): Undefine also before including <stdlib.h>.
28667         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28668         Needed on OSF/1 4.0.
28669
28670 2007-11-05  Jim Meyering  <meyering@redhat.com>
28671
28672         git-version-gen: sync from coreutils.
28673         * build-aux/git-version-gen: Add comments.
28674         Change the first '-' to '.' in the snapshot version string,
28675         e.g., 6.9-377-08144 -> 6.9.377-08144
28676         Remove first parameter.
28677         Don't declare a version "-dirty" merely because a time
28678         stamp has changed.
28679
28680 2007-11-04  Bruno Haible  <bruno@clisp.org>
28681
28682         * lib/lock.h: Protect all macro definitions containing an 'if'
28683         statement through a "do { ... } while (0)".
28684         * lib/tls.h: Likewise.
28685
28686 2007-11-04  Bruno Haible  <bruno@clisp.org>
28687
28688         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28689
28690 2007-11-04  Bruno Haible  <bruno@clisp.org>
28691
28692         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28693         * modules/fprintf-posix (Depends-on): Add nocrash.
28694         * modules/snprintf-posix (Depends-on): Likewise.
28695         * modules/sprintf-posix (Depends-on): Likewise.
28696         * modules/vasnprintf-posix (Depends-on): Likewise.
28697         * modules/vasprintf-posix (Depends-on): Likewise.
28698         * modules/vfprintf-posix (Depends-on): Likewise.
28699         * modules/vsnprintf-posix (Depends-on): Likewise.
28700         * modules/vsprintf-posix (Depends-on): Likewise.
28701         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28702         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28703         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28704         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28705         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28706         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28707         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28708
28709 2007-11-04  Bruno Haible  <bruno@clisp.org>
28710
28711         * modules/nocrash: New file.
28712         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28713         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28714
28715 2007-11-04  Bruno Haible  <bruno@clisp.org>
28716
28717         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28718         precision handling.
28719         * tests/test-vasprintf-posix.c (test_function): Likewise.
28720         * tests/test-snprintf-posix.h (test_function): Likewise.
28721         * tests/test-sprintf-posix.h (test_function): Likewise.
28722
28723         Fix *printf behaviour for large precisions on mingw and BeOS.
28724         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28725         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28727         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28728         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28729         gl_PRINTF_PRECISION and test its result. Invoke
28730         gl_PREREQ_VASNPRINTF_PRECISION.
28731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28738         * doc/functions/fprintf.texi: Update.
28739         * doc/functions/printf.texi: Update.
28740         * doc/functions/snprintf.texi: Update.
28741         * doc/functions/sprintf.texi: Update.
28742         * doc/functions/vfprintf.texi: Update.
28743         * doc/functions/vprintf.texi: Update.
28744         * doc/functions/vsnprintf.texi: Update.
28745         * doc/functions/vsprintf.texi: Update.
28746
28747 2007-11-04  Bruno Haible  <bruno@clisp.org>
28748
28749         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28750
28751 2007-11-04  Bruno Haible  <bruno@clisp.org>
28752
28753         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28754         Reported by Sylvain Beucler <beuc@gnu.org>.
28755
28756 2007-11-03  Bruno Haible  <bruno@clisp.org>
28757
28758         * tests/test-fprintf-posix2.sh: New file.
28759         * tests/test-fprintf-posix2.c: New file.
28760         * modules/fprintf-posix-tests (Files): Add them.
28761         (TESTS): Add test-fprintf-posix2.sh.
28762         (configure.ac): Check for getrlimit and setrlimit.
28763         (check_PROGRAMS): Add test-fprintf-posix2.
28764
28765         * tests/test-printf-posix2.sh: New file.
28766         * tests/test-printf-posix2.c: New file.
28767         * modules/printf-posix-tests (Files): Add them.
28768         (TESTS): Add test-printf-posix2.sh.
28769         (configure.ac): Check for getrlimit and setrlimit.
28770         (check_PROGRAMS): Add test-printf-posix2.
28771
28772         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28773         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28774         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28775         (decode_double): New function, copied from decode_long_double.
28776         (scale10_round_decimal_decoded): New function, extracted from
28777         scale10_round_decimal_long_double.
28778         (scale10_round_decimal_long_double): Use it.
28779         (scale10_round_decimal_double): New function.
28780         (floorlog10): New function.
28781         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28783         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28784         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28785         gl_PRINTF_ENOMEM and test its result. Invoke
28786         gl_PREREQ_VASNPRINTF_ENOMEM.
28787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28789         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28794         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28795         * modules/snprintf-posix (Depends-on): Likewise.
28796         * modules/sprintf-posix (Depends-on): Likewise.
28797         * modules/vasnprintf-posix (Depends-on): Likewise.
28798         * modules/vasprintf-posix (Depends-on): Likewise.
28799         * modules/vfprintf-posix (Depends-on): Likewise.
28800         * modules/vsnprintf-posix (Depends-on): Likewise.
28801         * modules/vsprintf-posix (Depends-on): Likewise.
28802         * doc/functions/fprintf.texi: Update.
28803         * doc/functions/printf.texi: Update.
28804         * doc/functions/snprintf.texi: Update.
28805         * doc/functions/sprintf.texi: Update.
28806         * doc/functions/vfprintf.texi: Update.
28807         * doc/functions/vprintf.texi: Update.
28808         * doc/functions/vsnprintf.texi: Update.
28809         * doc/functions/vsprintf.texi: Update.
28810
28811 2007-11-03  Bruno Haible  <bruno@clisp.org>
28812
28813         * modules/frexp-nolibm-tests: New file.
28814
28815         * modules/frexp-nolibm: New file.
28816         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28817
28818 2007-11-03  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28821         value is C99 compliant.
28822         Needed for OSF/1 5.1.
28823
28824 2007-11-03  Bruno Haible  <bruno@clisp.org>
28825
28826         Fix out-of-memory handling of vasnprintf.
28827         * lib/printf-parse.c: Include <errno.h>.
28828         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28829         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28830         is already set.
28831
28832 2007-11-02  Eric Blake  <ebb9@byu.net>
28833
28834         Fix tests on cygwin.
28835         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28836
28837 2007-11-01  Bruno Haible  <bruno@clisp.org>
28838
28839         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28840         warning.
28841         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28842         needed for POSIX compatibility.
28843
28844 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28845
28846         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28847         for compatibility with GNU.
28848
28849 2007-11-01  Bruno Haible  <bruno@clisp.org>
28850
28851         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28852         (putenv): Renamed from rpl_putenv. Change argument type from
28853         'const char *' to 'char *'.
28854         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28855         of defining putenv in config.h, just set REPLACE_PUTENV.
28856         * modules/putenv (Depends-on): Add stdlib.
28857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28858         (Include): Use <stdlib.h>.
28859         * lib/stdlib.in.h (putenv): New declaration.
28860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28861         REPLACE_PUTENV.
28862         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28863         REPLACE_PUTENV.
28864         Needed for MacOS X 10.5.0.
28865         Reported by Peter O'Gorman <peter@pogma.com>.
28866
28867 2007-11-01  Jim Meyering  <meyering@redhat.com>
28868
28869         Treat an empty date string exactly like "0".
28870         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28871         if the remaining date string (to be parsed) is empty, use "0".
28872         Reported by Mischa Molhoek and discussed in this thread:
28873         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28874
28875 2007-10-31  Bruno Haible  <bruno@clisp.org>
28876
28877         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28878         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28879         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28880         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28881         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28882         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28883
28884 2007-10-31  Bruno Haible  <bruno@clisp.org>
28885
28886         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28887         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28888         (AC_TYPE_LONG_LONG_INT): Use it.
28889         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28890         it as well.
28891         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28892         to m4/longlong.m4.
28893         * modules/stdint (Files): Remove m4/ulonglong.m4.
28894         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28895         m4/ulonglong.m4.
28896         * modules/strtoumax (Files): Likewise.
28897
28898 2007-10-30  Bruno Haible  <bruno@clisp.org>
28899
28900         * modules/xvasprintf-posix: New file.
28901         Suggested by Eric Blake.
28902
28903 2007-10-30  Bruno Haible  <bruno@clisp.org>
28904
28905         * modules/xprintf-posix-tests: New file.
28906         * tests/test-xprintf-posix.sh: New file.
28907         * tests/test-xprintf-posix.c: New file.
28908         * tests/test-xfprintf-posix.c: New file.
28909
28910         * modules/xprintf-posix: New file.
28911
28912 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28913
28914         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28915         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28916         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28917
28918 2007-10-29  Bruno Haible  <bruno@clisp.org>
28919
28920         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28921         contain the special marker '_cv_'.
28922         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28923         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28924         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28925         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28926         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28927         Reported by Ralf Wildenhues.
28928
28929 2007-10-29  Bruno Haible  <bruno@clisp.org>
28930
28931         * gnulib-tool (func_import): When --lgpl is not specified, set
28932         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28933         GPLv3.
28934         Reported by Simon Josefsson.
28935
28936 2007-10-28  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28939         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28940         HAVE_DECL_ISFINITE.
28941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28942         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28943         HAVE_DECL_ISFINITE.
28944
28945 2007-10-28  Bruno Haible  <bruno@clisp.org>
28946
28947         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28948         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28949
28950 2007-10-28  Bruno Haible  <bruno@clisp.org>
28951
28952         Fix link errors with Sun C 5.0 on Solaris 10.
28953         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28954         function is declared but not present in the compiler's libm.
28955         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28956         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28957         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28958         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28959         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28960         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28961         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28963         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28964         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28965         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28966         HAVE_DECL_FLOORL.
28967
28968 2007-10-28  Bruno Haible  <bruno@clisp.org>
28969
28970         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28971         gl_FUNC_FLOORL. Cache the result.
28972         (gl_FUNC_FLOORL): Use it.
28973         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28974         gl_FUNC_CEILL. Cache the result.
28975         (gl_FUNC_CEILL): Use it.
28976
28977         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28978         gl_FUNC_FLOOR. Cache the result.
28979         (gl_FUNC_FLOOR): Use it.
28980         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28981         gl_FUNC_CEIL. Cache the result.
28982         (gl_FUNC_CEIL): Use it.
28983
28984         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28985         gl_FUNC_FLOORF. Cache the result.
28986         (gl_FUNC_FLOORF): Use it.
28987         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28988         gl_FUNC_CEILF. Cache the result.
28989         (gl_FUNC_CEILF): Use it.
28990
28991 2007-10-28  Bruno Haible  <bruno@clisp.org>
28992
28993         * gnulib-tool: Allow specifying the LGPL version number through
28994         --lgpl=2 or --lgpl=3.
28995         (func_usage): Document --lgpl with argument.
28996         Handle --lgpl=... arguments.
28997         (func_import): Recognize also gl_LGPL calls with an argument. When
28998         --lgpl=2 is used and the module's license is just LGPL, report an
28999         error. Set sed_transform_lib_file according to the lgpl variable. In
29000         the generated files, use --lgpl or gl_LGPL invocations with argument,
29001         if necessary.
29002         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29003         an LGPv2+ license.
29004         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29005         gl_LGPL macro.
29006
29007 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29008             Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29011         (u16_uctomb_aux): Likewise.
29012         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29013         !HAVE_INLINE.
29014         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29015
29016 2007-10-28  Bruno Haible  <bruno@clisp.org>
29017
29018         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29019         Invoke AM_GETTEXT_OPTION if it exists.
29020         * modules/vasprintf: Likewise.
29021         * modules/verror: Likewise.
29022         * modules/xprintf: Likewise.
29023         * modules/xvasprintf: Likewise.
29024
29025 2007-10-27  Ben Pfaff  <blp@gnu.org>
29026
29027         * lib/math.in.h: Define isfinite macro and prototypes for
29028         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29029         implementations.
29030         * m4/math_h.m4: New substitutions for isfinite module.
29031         * lib/isfinite.c: New file.
29032         * m4/isfinite.m4: New file.
29033         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29034         * modules/isfinite: New file.
29035         * modules/isfinite-tests: New file.
29036         * tests/tests-isfinite.c: New file.
29037         * doc/functions/isfinite.texi: Mention isfinite module.
29038         * MODULES.html.sh: Mention new module.
29039
29040 2007-10-27  Ben Pfaff  <blp@gnu.org>
29041
29042         Ralf Wildenhues reported that Tru64 4.0D declares the round
29043         functions but does not have definitions.
29044         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29045         cannot be found in any library, set the output variable to
29046         "missing" instead of "".
29047         * m4/round.m4: Also use our substitute if we cannot find round in
29048         any library, even if it is declared.
29049         * m4/roundf.m4: Likewise for roundf.
29050         * m4/roundl.m4: Likewise for roundl.
29051         * lib/math.in.h: Undefine roundf, round, roundl before defining
29052         their replacements, to allow for hypothetical systems where these
29053         may be defined as macros but not available in libraries.
29054
29055 2007-10-27  Bruno Haible  <bruno@clisp.org>
29056
29057         * doc/gnulib.texi: Invoke @firstparagraphindent.
29058         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29059         changes in gnulib.
29060         (Source changes): New section.
29061
29062 2007-10-26  Bruno Haible  <bruno@clisp.org>
29063
29064         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29065         borrowed from autoconf.
29066
29067 2007-10-26  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29070         strerror returned the empty string. Needed on HP-UX 11.00.
29071
29072 2007-10-24  Micah Cowan  <micah@cowan.name>
29073
29074         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29075         * build-aux/bootstrap: Remove support for now-unnecessary option,
29076         --cvs-user, and envvars CVS_USER, CVS_RSH.
29077
29078 2007-10-24  Jim Meyering  <meyering@redhat.com>
29079
29080         Avoid diagnostics from sha1sum when there is no cached checksum.
29081         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29082         if the po.s1 file hasn't been created yet.
29083
29084         * build-aux/bootstrap: Sync from coreutils:
29085         2007-10-24  Jim Meyering  <meyering@redhat.com>
29086         Get gnulib from the git repository, not from an obsolete cvs one.
29087         * build-aux/bootstrap: Suggestion from Micah Cowan.
29088         2007-10-04  Jim Meyering  <jim@meyering.net>
29089         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29090         (update_po_files): Work also when there are no .po files in po/.
29091
29092 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29093
29094         * README: Append ".git" to git and cg examples.
29095         Problem reported by Benoit Sigoure.
29096
29097 2007-10-23  Micah Cowan  <micah@cowan.name>
29098
29099         * users.txt: Add wget.
29100
29101 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29102
29103         Fix linking of some unistdio tests on FreeBSD.
29104         * modules/unistdio/u16-vsnprintf-tests
29105         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29106         * modules/unistdio/u16-vsprintf-tests
29107         (test_u16_vsnprintf1_LDADD): Likewise.
29108         * modules/unistdio/u32-vsnprintf-tests
29109         (test_u32_vsnprintf1_LDADD): Likewise.
29110         * modules/unistdio/u32-vsprintf-tests
29111         (test_u32_vsprintf1_LDADD): Likewise.
29112         * modules/unistdio/u8-vsnprintf-tests
29113         (test_u8_vsnprintf1_LDADD): Likewise.
29114         * modules/unistdio/u8-vsprintf-tests
29115         (test_u8_vsprintf1_LDADD): Likewise.
29116         * modules/unistdio/ulc-vsnprintf-tests
29117         (test_ulc_vsnprintf1_LDADD): Likewise.
29118         * modules/unistdio/ulc-vsprintf-tests
29119         (test_ulc_vsprintf1_LDADD): Likewise.
29120
29121         Fix linking of some uniconv tests on FreeBSD.
29122         * modules/uniconv/u16-conv-from-enc-tests
29123         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29124         * modules/uniconv/u16-conv-to-enc-tests
29125         (test_u16_conv_to_enc_LDADD): Likewise.
29126         * modules/uniconv/u16-strconv-from-enc-tests
29127         (test_u16_strconv_from_enc_LDADD): Likewise.
29128         * modules/uniconv/u16-strconv-to-enc-tests
29129         (test_u16_strconv_to_enc_LDADD): Likewise.
29130         * modules/uniconv/u32-conv-from-enc-tests
29131         (test_u32_conv_from_enc_LDADD): Likewise.
29132         * modules/uniconv/u32-conv-to-enc-tests
29133         (test_u32_conv_to_enc_LDADD): Likewise.
29134         * modules/uniconv/u32-strconv-from-enc-tests
29135         (test_u32_strconv_from_enc_LDADD): Likewise.
29136         * modules/uniconv/u32-strconv-to-enc-tests
29137         (test_u32_strconv_to_enc_LDADD): Likewise.
29138         * modules/uniconv/u8-conv-from-enc-tests
29139         (test_u8_conv_from_enc_LDADD): Likewise.
29140         * modules/uniconv/u8-conv-to-enc-tests
29141         (test_u8_conv_to_enc_LDADD): Likewise.
29142         * modules/uniconv/u8-strconv-from-enc-tests
29143         (test_u8_strconv_from_enc_LDADD): Likewise.
29144         * modules/uniconv/u8-strconv-to-enc-tests
29145         (test_u8_strconv_to_enc_LDADD): Likewise.
29146
29147 2007-10-22  Bruno Haible  <bruno@clisp.org>
29148
29149         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29150         size.
29151
29152 2007-10-22  Eric Blake  <ebb9@byu.net>
29153
29154         Tweak x*printf documentation.
29155         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29156         variable name and comments.
29157         Suggested by Bruno Haible.
29158
29159 2007-10-22  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/acl.c (copy_acl): Fix file name in comment.
29162
29163 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29164
29165         Fix Tru64 problem with stdbool.h.
29166         * lib/stdbool.in.h (false, true):
29167         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29168         Don't declare as an enum in this situation; it runs afoul of Tru64.
29169         Problem reported by Steven M. Schweda in
29170         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29171
29172 2007-10-22  Eric Blake  <ebb9@byu.net>
29173
29174         Also wrap vf?printf.
29175         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29176         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29177         (xvprintf, xvfprintf): New functions.
29178
29179 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29180
29181         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29182         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29183
29184         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29185         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29186
29187 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29188
29189         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29190         by Bruno Haible.
29191
29192 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29193
29194         * lib/getloadavg.c
29195         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29196         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29197
29198         * tests/test-i-ring.c: Work for C89.
29199
29200 2007-10-22  Bruno Haible  <bruno@clisp.org>
29201
29202         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29203         -1u, in preprocessor expression, so that we don't test for the bug
29204         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29206
29207 2007-10-22  Eric Blake  <ebb9@byu.net>
29208
29209         * tests/test-yesno.sh: Silence stderr during test.
29210
29211 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29212
29213         * modules/crypto/gc-camellia: New file.
29214
29215         * m4/gc-camellia.m4: New file.
29216
29217         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29218
29219         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29220
29221 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29222
29223         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29224         --help to stdout.  Reported by sms@antinode.org (Steven
29225         M. Schweda).
29226
29227 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29228
29229         * users.txt: Fix link to libksba.
29230
29231 2007-10-21  Ben Pfaff  <blp@gnu.org>
29232
29233         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29234         round.c roundf implementation that depends on floorf and ceilf to
29235         be tested unconditionally.
29236
29237 2007-10-21  Ben Pfaff  <blp@gnu.org>
29238
29239         * m4/check-libm-func.m4: Removed.
29240         * m4/check-math-lib.m4: New file.
29241         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29242         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29243         definition and lack of AC_LIBOBJ([roundf]).
29244         * m4/roundl.m4: Ditto, and similarly for roundl.
29245         * modules/round: Reference new m4 file.
29246         * modules/roundf: Ditto.
29247         * modules/roundl: Ditto.
29248         * tests/test-round2.c (main): Use ROUND instead of round.
29249         Bug report from Bruno Haible.
29250
29251 2007-10-21  Bruno Haible  <bruno@clisp.org>
29252
29253         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29254         context.
29255
29256 2007-10-21  Bruno Haible  <bruno@clisp.org>
29257
29258         * tests/test-wcwidth.c (main): Allow negative result for some control
29259         characters.
29260
29261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29262         Needed on OSF/1 5.1.
29263
29264 2007-10-21  Bruno Haible  <bruno@clisp.org>
29265
29266         * tests/test-floorf1.c: Include isnanf.h.
29267         (main): Use isnanf() instead of isnan().
29268         * tests/test-ceilf1.c: Include isnanf.h.
29269         (main): Use isnanf() instead of isnan().
29270         * tests/test-truncf1.c: Include isnanf.h.
29271         (main): Use isnanf() instead of isnan().
29272         * tests/test-roundf1.c: Include isnanf.h.
29273         (main): Use isnanf() instead of isnan().
29274
29275 2007-10-21  Eric Blake  <ebb9@byu.net>
29276
29277         * users.txt: Update URL for m4.
29278
29279 2007-10-21  Bruno Haible  <bruno@clisp.org>
29280
29281         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29282
29283 2007-10-21  Bruno Haible  <bruno@clisp.org>
29284
29285         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29286         Git's management files if the CVS files are not present.
29287
29288 2007-10-20  Bruno Haible  <bruno@clisp.org>
29289
29290         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29291         gcc-3.4.x.
29292
29293 2007-10-20  Ben Pfaff  <blp@gnu.org>
29294
29295         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29296         implementations.
29297         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29298         * lib/round.c: New file.
29299         * lib/roundf.c: New file.
29300         * lib/roundl.c: New file.
29301         * m4/round.m4: New file.
29302         * m4/roundf.m4: New file.
29303         * m4/roundl.m4: New file.
29304         * m4/check-libm-func-m4: New file.
29305         * modules/math: Replace round, roundf, roundl related @VARS@ in
29306         math.in.h.
29307         * modules/round: New file.
29308         * modules/round-tests: New file.
29309         * modules/roundf: New file.
29310         * modules/roundf-tests: New file.
29311         * modules/roundl: New file.
29312         * modules/roundl-tests: New file.
29313         * tests/test-round1.c: New file.
29314         * tests/test-round2.c: New file.
29315         * tests/test-roundf1.c: New file.
29316         * tests/test-roundf2.c: New file.
29317         * tests/test-roundl.c: New file.
29318         * doc/functions/round.texi: Mention round module.
29319         * doc/functions/roundf.texi: Mention roundf module.
29320         * doc/functions/roundl.texi: Mention roundl module.
29321         * MODULES.html.sh: Mention new modules.
29322         Thanks to Bruno Haible for suggestions.
29323
29324 2007-10-20  Jim Meyering  <meyering@redhat.com>
29325
29326         * lib/xprintf.c: Include <config.h> unconditionally.
29327
29328         Change xprintf's license to GPL.
29329         * modules/xprintf (License): s/LGPL/GPL/, since this module
29330         depends on modules (exit and exitfail) which are GPL.
29331         Suggestion from Bruno Haible.
29332
29333         xprintf fixes.
29334         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29335         Use a clearer diagnostic.
29336         Patch from Bruno Haible.
29337
29338 2007-10-20  Bruno Haible  <bruno@clisp.org>
29339
29340         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29341         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29343
29344 2007-10-20  Bruno Haible  <bruno@clisp.org>
29345
29346         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29347         precision in the comparison result > x - 1 or similar.
29348         * tests/test-ceilf2.c (correct_result_p): Likewise.
29349         * tests/test-truncf2.c (correct_result_p): Likewise.
29350         * tests/test-trunc2.c (correct_result_p): Likewise.
29351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29352
29353 2007-10-20  Bruno Haible  <bruno@clisp.org>
29354
29355         * modules/ceil: New file.
29356         * m4/ceil.m4: New file.
29357         * doc/functions/ceil.texi: Mention the 'ceil' module.
29358
29359 2007-10-20  Bruno Haible  <bruno@clisp.org>
29360
29361         * modules/floor: New file.
29362         * m4/floor.m4: New file.
29363         * doc/functions/floor.texi: Mention the 'floor' module.
29364
29365 2007-10-20  Bruno Haible  <bruno@clisp.org>
29366
29367         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29368         of %a.
29369         * modules/floorf-tests (Depends-on): Likewise.
29370         * modules/truncf-tests (Depends-on): Likewise.
29371         * modules/trunc-tests (Depends-on): Likewise.
29372         Reported by Ben Pfaff.
29373
29374 2007-10-19  Jim Meyering  <meyering@redhat.com>
29375
29376         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29377         Don't bother testing specific errno values.  Just test ferror.
29378
29379         New module: xprintf
29380         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29381
29382 2007-10-19  Bruno Haible  <bruno@clisp.org>
29383
29384         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29385         syntax.
29386         * modules/javaexec (Makefile.am): Likewise.
29387         * modules/relocatable-prog (Makefile.am): Likewise.
29388         Suggested by Jim Meyering.
29389
29390 2007-10-18  Bruno Haible  <bruno@clisp.org>
29391
29392         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29393         Reported by Jim Meyering.
29394
29395 2007-10-18  Eric Blake  <ebb9@byu.net>
29396
29397         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29398
29399 2007-10-18  Bruno Haible  <bruno@clisp.org>
29400
29401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29402         the format string into writable memory. Needed in Fortify conditions.
29403
29404 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29405             Bruno Haible  <bruno@clisp.org>
29406
29407         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29408         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29409         * modules/trim (Depends-on): Add mbchar.
29410         (configure.ac): Add gl_FUNC_MBRTOWC.
29411         (Makefile.am): Augment lib_SOURCES.
29412
29413 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29414
29415         Modify glob.c to use fstatat and dirfd, to simplify it.
29416         Suggested by Eric Blake.
29417         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29418         Don't include <stdbool.h>; not used.
29419         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29420         (link_exists_p): Simplify implementation, since we can now assume
29421         dirfd and fstatat.
29422         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29423
29424 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29425
29426         * gnulib-tool (func_get_dependencies): Fix sed script to
29427         match only tests.
29428
29429 2007-10-17  Bruno Haible  <bruno@clisp.org>
29430
29431         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29432         allow locale names without encoding suffix.
29433         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29434         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29435
29436 2007-10-16  Bruno Haible  <bruno@clisp.org>
29437
29438         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29439         * lib/getgroups.c (getgroups): Likewise.
29440         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29441
29442 2007-10-16  Bruno Haible  <bruno@clisp.org>
29443
29444         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29445         * modules/malloc-posix (License): Likewise.
29446         * modules/realloc-posix (License): Likewise.
29447         * modules/calloc-posix (License): Likewise.
29448         * modules/intprops (License): Change from GPL to LGPL, with
29449         Paul Eggert's approval.
29450
29451 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29452
29453         Merge glibc changes into lib/glob.c.
29454
29455         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29456         2007-10-15 04:59:03 UTC.  Here are the changes:
29457
29458         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29459
29460         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29461
29462         * lib/glob.c: Add some branch prediction throughout.
29463
29464         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29465
29466         [BZ #5103]
29467         * lib/glob.c (glob): Recognize patterns starting \/.
29468
29469         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29470
29471         [BZ #3996]
29472         * lib/glob.c (attribute_hidden): Define if not defined.
29473         (glob): Unescape dirname, filename or username when needed and not
29474         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29475         is NULL.  Handle unescaped [ in pattern without closing ].
29476         Don't pass GLOB_CHECK down to recursive glob for directories.
29477         (__glob_pattern_type): New function.
29478         (__glob_pattern_p): Implement using __glob_pattern_type.
29479         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29480         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29481         Remove unreachable code.
29482
29483         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29484
29485         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29486         explain why there are no leaks.
29487
29488         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29489
29490         [BZ #3253]
29491         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29492         time, rather allocate increasingly bigger arrays of pointers, if
29493         possible with alloca, if too large with malloc.
29494
29495 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29496
29497         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29498         Problem reported by H.Merijn Brand in
29499         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29500         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29501         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29502
29503 2007-10-15  Bruno Haible  <bruno@clisp.org>
29504
29505         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29506         with explicit rpl_ prefix.
29507         * lib/fopen.c (fopen): Likewise.
29508         * lib/freopen.c (freopen): Likewise.
29509         * lib/iconv.c (iconv): Likewise.
29510         * lib/iconv_close.c (iconv_close): Likewise.
29511
29512 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29513
29514         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29515
29516 2007-10-15  Bruno Haible  <bruno@clisp.org>
29517
29518         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29519         <stddef.h> instead of <stdlib.h> since we only need NULL.
29520         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29521
29522 2007-10-15  Bruno Haible  <bruno@clisp.org>
29523
29524         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29525         Replace paragraph talking about LIBOBJS.
29526         Reported by Colin Watson <cjwatson@debian.org>.
29527
29528 2007-10-15  Bruno Haible  <bruno@clisp.org>
29529
29530         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29531         <stdlib.h> before using NULL.
29532
29533 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29534
29535         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29536         Reported by Albert Chin <china@thewrittenword.com>.
29537
29538 2007-10-14  Bruno Haible  <bruno@clisp.org>
29539
29540         * modules/iconv_open-utf-tests: New file.
29541         * tests/test-iconv-utf.c: New file.
29542
29543         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29544         * modules/iconv_open-utf: New file.
29545         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29546         (iconv, iconv_close): New declarations.
29547         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29548         be defined.
29549         (iconv_open): Add special handling of conversion between UTF-8 and
29550         UTF-{16,32}{BE,LE}.
29551         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29552         * lib/iconv_close.c: New file.
29553         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29554         gl_FUNC_ICONV_OPEN.
29555         (gl_FUNC_ICONV_OPEN): Use it.
29556         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29557         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29558         and REPLACE_ICONV_UTF.
29559         * modules/iconv_open (Depends-on): Add c-strcase.
29560         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29561         ICONV_CONST.
29562         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29563
29564 2007-10-13  Albert Chin  <china@thewrittenword.com>
29565             Bruno Haible  <bruno@clisp.org>
29566
29567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29568         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29569
29570 2007-10-13  Bruno Haible  <bruno@clisp.org>
29571
29572         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29573         defined, use the ISO C99 inline semantics.
29574         * lib/argp.h (ARGP_EI): Likewise.
29575
29576 2007-10-13  Bruno Haible  <bruno@clisp.org>
29577
29578         Handle 'inline' change in gcc 4.3.0.
29579         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29580         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29581         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29582         argp_fmtstream_point): Disable 'extern' declaration if the function
29583         definition is going to be provided inline.
29584         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29585         semantics, not the ISO C99 inline semantics.
29586         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29587         'extern' declaration if the function definition is going to be provided
29588         inline.
29589         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29590         the GNU C inline semantics, not the ISO C99 inline semantics. With
29591         GCC 4.2, avoid a warning.
29592
29593 2007-10-13  Bruno Haible  <bruno@clisp.org>
29594
29595         * lib/freading.h (freading): Enable the use of __freading for
29596         glibc >= 2.7.
29597         * lib/freading.c (freading): Likewise.
29598
29599 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29600
29601         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29602         "warning: C99 inline functions are not supported; using GNU89".
29603
29604 2007-10-12  Bruno Haible  <bruno@clisp.org>
29605
29606         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29607         of 2.
29608         * tests/test-ceilf2.c: New file.
29609         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29610
29611         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29612         * modules/ceilf-tests: Update.
29613
29614 2007-10-12  Bruno Haible  <bruno@clisp.org>
29615
29616         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29617         of 2.
29618         * tests/test-floorf2.c: New file.
29619         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29620
29621         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29622         * modules/floorf-tests: Update.
29623
29624 2007-10-12  Bruno Haible  <bruno@clisp.org>
29625
29626         * tests/test-trunc2.c: New file.
29627         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29628
29629         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29630         * modules/trunc-tests: Update.
29631
29632 2007-10-12  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29635         of 2.
29636         * tests/test-truncf2.c: New file.
29637         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29638
29639         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29640         * modules/truncf-tests: Update.
29641
29642 2007-10-11  Eric Blake  <ebb9@byu.net>
29643
29644         Don't claim strerror is broken on Interix.
29645         * doc/functions/strerror.texi (strerror): Known broken systems are
29646         now Solaris 8, and not Interix.
29647         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29648         Interix on cross-compile.
29649         Reported by Martin Koeppe in
29650         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29651
29652 2007-10-11  Bruno Haible  <bruno@clisp.org>
29653
29654         * modules/i-ring-tests: New file.
29655         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29656         instead of assert.
29657
29658 2007-10-11  Bruno Haible  <bruno@clisp.org>
29659
29660         * modules/filenamecat-tests: New file.
29661         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29662         * lib/filenamecat.c: Remove test code.
29663
29664 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29665
29666         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29667
29668         * lib/strerror.c: Include <string.h> always, to test interface,
29669         and to remove the need for the dummy.
29670         Include intprops.h to compute width instead of doing it ourselves
29671         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29672         (strerror): Define it to return NULL if there's no system strerror.
29673         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29674         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29675         ancient pre-strerror Unix systems well any more.  Saying "unknown
29676         system error" is enough.
29677         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29678         simpler strerror.c implementation.
29679         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29680         Simplify the tests to reflect the simpler strerror implementation.
29681         * modules/strerror (Depends-on): Add intprops.
29682
29683 2007-10-09  Eric Blake  <ebb9@byu.net>
29684
29685         Silence test-fpending.
29686         * modules/fpending-tests (Files): Add wrapper script.
29687         * tests/test-fpending.sh: New file.
29688
29689 2007-10-09  Bruno Haible  <bruno@clisp.org>
29690
29691         * MODULES.html.sh (func_module): Don't create a hyperlink for
29692         function names like 'printf_frexp'.
29693         (Misc): Add crc, memxor.
29694         (Characteristics of floating types): New section.
29695         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29696         isnanf-nolibm, signbit, trunc, truncf, truncl.
29697         (Enhancements for ISO C 99 functions): New subsection Input/output.
29698         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29699         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29700         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29701         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29702         (Enhancements for POSIX:2001 functions): Add chdir-long.
29703         (File system functions): Add areadlink, chdir-safer, read-file.
29704         Remove cycle-check.
29705         (File system as inode set): New section.
29706         (Date and time): Add gethrxtime.
29707         (Multithreading): Add openmp.
29708         (Internationalization functions): Add localename.
29709         (Unicode string functions): Add unistr/u*-mbsnlen.
29710         (Support for maintaining and releasing projects): Add git-version-gen.
29711         (Lone files): Remove directories.
29712
29713 2007-10-08  Ben Pfaff  <blp@gnu.org>
29714
29715         * lib/xmalloca.h: Fix typo in comment.
29716
29717 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29718
29719         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29720         when avoiding problems with integer overflow.  Use a portable test
29721         instead.
29722
29723 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29724
29725         * modules/dummy (License): Change to LGPLv2+.
29726         * modules/float (License): Likewise
29727         * modules/realloc (License): Likewise
29728         * modules/stdlib (License): Likewise
29729
29730 2007-10-07  Bruno Haible  <bruno@clisp.org>
29731
29732         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29733         * floor.c (TWO_MANT_DIG): Likewise.
29734         * ceil.c (TWO_MANT_DIG): Likewise.
29735         Reported by Ben Pfaff.
29736
29737 2007-10-07  Bruno Haible  <bruno@clisp.org>
29738
29739         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29740         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29741         * lib/frexp.c (FUNC): Likewise.
29742         * lib/printf-frexp.h (printf_frexp): Likewise.
29743         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29744         * lib/printf-frexp.c (FUNC): Likewise.
29745         Suggested by Jim Meyering.
29746
29747 2007-10-07  Jim Meyering  <meyering@redhat.com>
29748
29749         Make xnanosleep's integer overflow test more robust.
29750         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29751         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29752
29753 2007-10-07  Bruno Haible  <bruno@clisp.org>
29754
29755         * NEWS: Mention the license change.
29756
29757         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29758         abbreviations in the modules files.
29759
29760         Change copyright notice from GPLv2+ to GPLv3+.
29761         * README: Change copyright notice.
29762         * MODULES.html.sh: Likewise.
29763         * build-aux/bootstrap.conf: Likewise.
29764         * build-aux/config.libpath: Likewise.
29765         * build-aux/csharpcomp.sh.in: Likewise.
29766         * build-aux/csharpexec.sh.in: Likewise.
29767         * build-aux/install-reloc: Likewise.
29768         * build-aux/javacomp.sh.in: Likewise.
29769         * build-aux/javaexec.sh.in: Likewise.
29770         * build-aux/ldd.sh.in: Likewise.
29771         * build-aux/reloc-ldflags: Likewise.
29772         * build-aux/relocatable.sh.in: Likewise.
29773         * build-aux/x-to-1.in: Likewise.
29774         * check-module: Likewise.
29775         * config/srclistvars.sh: Likewise.
29776         * gnulib-tool: Likewise.
29777         * lib/acl-internal.h: Likewise.
29778         * lib/acl.c: Likewise.
29779         * lib/acl.h: Likewise.
29780         * lib/acl_entries.c: Likewise.
29781         * lib/areadlink-with-size.c: Likewise.
29782         * lib/areadlink.c: Likewise.
29783         * lib/areadlink.h: Likewise.
29784         * lib/argmatch.c: Likewise.
29785         * lib/argmatch.h: Likewise.
29786         * lib/argp-ba.c: Likewise.
29787         * lib/argp-eexst.c: Likewise.
29788         * lib/argp-fmtstream.c: Likewise.
29789         * lib/argp-fmtstream.h: Likewise.
29790         * lib/argp-fs-xinl.c: Likewise.
29791         * lib/argp-help.c: Likewise.
29792         * lib/argp-namefrob.h: Likewise.
29793         * lib/argp-parse.c: Likewise.
29794         * lib/argp-pin.c: Likewise.
29795         * lib/argp-pv.c: Likewise.
29796         * lib/argp-pvh.c: Likewise.
29797         * lib/argp-xinl.c: Likewise.
29798         * lib/argp.h: Likewise.
29799         * lib/at-func.c: Likewise.
29800         * lib/atanl.c: Likewise.
29801         * lib/backupfile.c: Likewise.
29802         * lib/backupfile.h: Likewise.
29803         * lib/basename.c: Likewise.
29804         * lib/binary-io.h: Likewise.
29805         * lib/byteswap.in.h: Likewise.
29806         * lib/c-stack.c: Likewise.
29807         * lib/c-stack.h: Likewise.
29808         * lib/c-strcasestr.c: Likewise.
29809         * lib/c-strcasestr.h: Likewise.
29810         * lib/c-strstr.c: Likewise.
29811         * lib/c-strstr.h: Likewise.
29812         * lib/c-strtod.c: Likewise.
29813         * lib/calloc.c: Likewise.
29814         * lib/canon-host.c: Likewise.
29815         * lib/canon-host.h: Likewise.
29816         * lib/canonicalize-lgpl.c: Likewise.
29817         * lib/canonicalize.c: Likewise.
29818         * lib/canonicalize.h: Likewise.
29819         * lib/ceil.c: Likewise.
29820         * lib/ceilf.c: Likewise.
29821         * lib/ceill.c: Likewise.
29822         * lib/chdir-long.c: Likewise.
29823         * lib/chdir-long.h: Likewise.
29824         * lib/chdir-safer.c: Likewise.
29825         * lib/chdir-safer.h: Likewise.
29826         * lib/chown.c: Likewise.
29827         * lib/classpath.c: Likewise.
29828         * lib/classpath.h: Likewise.
29829         * lib/clean-temp.c: Likewise.
29830         * lib/clean-temp.h: Likewise.
29831         * lib/cloexec.c: Likewise.
29832         * lib/close-stream.c: Likewise.
29833         * lib/closein.c: Likewise.
29834         * lib/closein.h: Likewise.
29835         * lib/closeout.c: Likewise.
29836         * lib/closeout.h: Likewise.
29837         * lib/concat-filename.c: Likewise.
29838         * lib/copy-file.c: Likewise.
29839         * lib/copy-file.h: Likewise.
29840         * lib/count-one-bits.h: Likewise.
29841         * lib/crc.c: Likewise.
29842         * lib/crc.h: Likewise.
29843         * lib/creat-safer.c: Likewise.
29844         * lib/csharpcomp.c: Likewise.
29845         * lib/csharpcomp.h: Likewise.
29846         * lib/csharpexec.c: Likewise.
29847         * lib/csharpexec.h: Likewise.
29848         * lib/cycle-check.c: Likewise.
29849         * lib/cycle-check.h: Likewise.
29850         * lib/diacrit.c: Likewise.
29851         * lib/diacrit.h: Likewise.
29852         * lib/diffseq.h: Likewise.
29853         * lib/dirchownmod.c: Likewise.
29854         * lib/dirent.in.h: Likewise.
29855         * lib/dirfd.c: Likewise.
29856         * lib/dirfd.h: Likewise.
29857         * lib/dirname.c: Likewise.
29858         * lib/dirname.h: Likewise.
29859         * lib/dummy.c: Likewise.
29860         * lib/dup-safer.c: Likewise.
29861         * lib/dup2.c: Likewise.
29862         * lib/eealloc.h: Likewise.
29863         * lib/error.c: Likewise.
29864         * lib/error.h: Likewise.
29865         * lib/euidaccess.c: Likewise.
29866         * lib/exclude.c: Likewise.
29867         * lib/exclude.h: Likewise.
29868         * lib/execute.c: Likewise.
29869         * lib/execute.h: Likewise.
29870         * lib/exitfail.c: Likewise.
29871         * lib/exitfail.h: Likewise.
29872         * lib/expl.c: Likewise.
29873         * lib/fatal-signal.c: Likewise.
29874         * lib/fatal-signal.h: Likewise.
29875         * lib/fbufmode.c: Likewise.
29876         * lib/fbufmode.h: Likewise.
29877         * lib/fchdir.c: Likewise.
29878         * lib/fchmodat.c: Likewise.
29879         * lib/fchownat.c: Likewise.
29880         * lib/fcntl--.h: Likewise.
29881         * lib/fcntl-safer.h: Likewise.
29882         * lib/fcntl.in.h: Likewise.
29883         * lib/fd-safer.c: Likewise.
29884         * lib/fflush.c: Likewise.
29885         * lib/file-has-acl.c: Likewise.
29886         * lib/file-set.c: Likewise.
29887         * lib/file-type.c: Likewise.
29888         * lib/file-type.h: Likewise.
29889         * lib/fileblocks.c: Likewise.
29890         * lib/filemode.c: Likewise.
29891         * lib/filemode.h: Likewise.
29892         * lib/filename.h: Likewise.
29893         * lib/filenamecat.c: Likewise.
29894         * lib/filenamecat.h: Likewise.
29895         * lib/findprog.c: Likewise.
29896         * lib/findprog.h: Likewise.
29897         * lib/float.in.h: Likewise.
29898         * lib/floor.c: Likewise.
29899         * lib/floorf.c: Likewise.
29900         * lib/floorl.c: Likewise.
29901         * lib/fopen-safer.c: Likewise.
29902         * lib/fopen.c: Likewise.
29903         * lib/fpending.c: Likewise.
29904         * lib/fpending.h: Likewise.
29905         * lib/fprintf.c: Likewise.
29906         * lib/fprintftime.h: Likewise.
29907         * lib/fpucw.h: Likewise.
29908         * lib/fpurge.c: Likewise.
29909         * lib/fpurge.h: Likewise.
29910         * lib/freadable.c: Likewise.
29911         * lib/freadable.h: Likewise.
29912         * lib/freadahead.c: Likewise.
29913         * lib/freadahead.h: Likewise.
29914         * lib/freading.c: Likewise.
29915         * lib/freading.h: Likewise.
29916         * lib/free.c: Likewise.
29917         * lib/freopen.c: Likewise.
29918         * lib/frexp.c: Likewise.
29919         * lib/frexpl.c: Likewise.
29920         * lib/fseek.c: Likewise.
29921         * lib/fseterr.c: Likewise.
29922         * lib/fseterr.h: Likewise.
29923         * lib/fstatat.c: Likewise.
29924         * lib/fstrcmp.c: Likewise.
29925         * lib/fstrcmp.h: Likewise.
29926         * lib/fsusage.c: Likewise.
29927         * lib/fsusage.h: Likewise.
29928         * lib/ftell.c: Likewise.
29929         * lib/ftello.c: Likewise.
29930         * lib/fts-cycle.c: Likewise.
29931         * lib/fts.c: Likewise.
29932         * lib/fts_.h: Likewise.
29933         * lib/full-read.c: Likewise.
29934         * lib/full-read.h: Likewise.
29935         * lib/full-write.c: Likewise.
29936         * lib/full-write.h: Likewise.
29937         * lib/fwritable.c: Likewise.
29938         * lib/fwritable.h: Likewise.
29939         * lib/fwriteerror.c: Likewise.
29940         * lib/fwriteerror.h: Likewise.
29941         * lib/fwriting.c: Likewise.
29942         * lib/fwriting.h: Likewise.
29943         * lib/gcd.c: Likewise.
29944         * lib/gcd.h: Likewise.
29945         * lib/getcwd.c: Likewise.
29946         * lib/getdate.h: Likewise.
29947         * lib/getdate.y: Likewise.
29948         * lib/getdomainname.c: Likewise.
29949         * lib/getdomainname.h: Likewise.
29950         * lib/getgroups.c: Likewise.
29951         * lib/gethostname.c: Likewise.
29952         * lib/gethrxtime.c: Likewise.
29953         * lib/gethrxtime.h: Likewise.
29954         * lib/getloadavg.c: Likewise.
29955         * lib/getndelim2.c: Likewise.
29956         * lib/getndelim2.h: Likewise.
29957         * lib/getnline.c: Likewise.
29958         * lib/getnline.h: Likewise.
29959         * lib/getopt.c: Likewise.
29960         * lib/getopt.in.h: Likewise.
29961         * lib/getopt1.c: Likewise.
29962         * lib/getopt_int.h: Likewise.
29963         * lib/getpagesize.h: Likewise.
29964         * lib/getsubopt.c: Likewise.
29965         * lib/gettime.c: Likewise.
29966         * lib/getugroups.c: Likewise.
29967         * lib/getugroups.h: Likewise.
29968         * lib/getusershell.c: Likewise.
29969         * lib/gl_anyavltree_list1.h: Likewise.
29970         * lib/gl_anyavltree_list2.h: Likewise.
29971         * lib/gl_anyhash_list1.h: Likewise.
29972         * lib/gl_anyhash_list2.h: Likewise.
29973         * lib/gl_anylinked_list1.h: Likewise.
29974         * lib/gl_anylinked_list2.h: Likewise.
29975         * lib/gl_anyrbtree_list1.h: Likewise.
29976         * lib/gl_anyrbtree_list2.h: Likewise.
29977         * lib/gl_anytree_list1.h: Likewise.
29978         * lib/gl_anytree_list2.h: Likewise.
29979         * lib/gl_anytree_oset.h: Likewise.
29980         * lib/gl_anytreehash_list1.h: Likewise.
29981         * lib/gl_anytreehash_list2.h: Likewise.
29982         * lib/gl_array_list.c: Likewise.
29983         * lib/gl_array_list.h: Likewise.
29984         * lib/gl_array_oset.c: Likewise.
29985         * lib/gl_array_oset.h: Likewise.
29986         * lib/gl_avltree_list.c: Likewise.
29987         * lib/gl_avltree_list.h: Likewise.
29988         * lib/gl_avltree_oset.c: Likewise.
29989         * lib/gl_avltree_oset.h: Likewise.
29990         * lib/gl_avltreehash_list.c: Likewise.
29991         * lib/gl_avltreehash_list.h: Likewise.
29992         * lib/gl_carray_list.c: Likewise.
29993         * lib/gl_carray_list.h: Likewise.
29994         * lib/gl_linked_list.c: Likewise.
29995         * lib/gl_linked_list.h: Likewise.
29996         * lib/gl_linkedhash_list.c: Likewise.
29997         * lib/gl_linkedhash_list.h: Likewise.
29998         * lib/gl_list.c: Likewise.
29999         * lib/gl_list.h: Likewise.
30000         * lib/gl_oset.c: Likewise.
30001         * lib/gl_oset.h: Likewise.
30002         * lib/gl_rbtree_list.c: Likewise.
30003         * lib/gl_rbtree_list.h: Likewise.
30004         * lib/gl_rbtree_oset.c: Likewise.
30005         * lib/gl_rbtree_oset.h: Likewise.
30006         * lib/gl_rbtreehash_list.c: Likewise.
30007         * lib/gl_rbtreehash_list.h: Likewise.
30008         * lib/gl_sublist.c: Likewise.
30009         * lib/gl_sublist.h: Likewise.
30010         * lib/group-member.c: Likewise.
30011         * lib/group-member.h: Likewise.
30012         * lib/hard-locale.c: Likewise.
30013         * lib/hard-locale.h: Likewise.
30014         * lib/hash-pjw.c: Likewise.
30015         * lib/hash-pjw.h: Likewise.
30016         * lib/hash-triple.c: Likewise.
30017         * lib/hash.c: Likewise.
30018         * lib/hash.h: Likewise.
30019         * lib/human.c: Likewise.
30020         * lib/human.h: Likewise.
30021         * lib/i-ring.c: Likewise.
30022         * lib/i-ring.h: Likewise.
30023         * lib/idcache.c: Likewise.
30024         * lib/imaxabs.c: Likewise.
30025         * lib/imaxdiv.c: Likewise.
30026         * lib/inet_pton.c: Likewise.
30027         * lib/inet_pton.h: Likewise.
30028         * lib/intprops.h: Likewise.
30029         * lib/inttostr.c: Likewise.
30030         * lib/inttostr.h: Likewise.
30031         * lib/inttypes.in.h: Likewise.
30032         * lib/isapipe.c: Likewise.
30033         * lib/isdir.c: Likewise.
30034         * lib/isnan.c: Likewise.
30035         * lib/isnan.h: Likewise.
30036         * lib/isnanf.c: Likewise.
30037         * lib/isnanf.h: Likewise.
30038         * lib/isnanl-nolibm.h: Likewise.
30039         * lib/isnanl.c: Likewise.
30040         * lib/isnanl.h: Likewise.
30041         * lib/javacomp.c: Likewise.
30042         * lib/javacomp.h: Likewise.
30043         * lib/javaexec.c: Likewise.
30044         * lib/javaexec.h: Likewise.
30045         * lib/javaversion.c: Likewise.
30046         * lib/javaversion.h: Likewise.
30047         * lib/javaversion.java: Likewise.
30048         * lib/lbrkprop.h: Likewise.
30049         * lib/lchmod.h: Likewise.
30050         * lib/lchown.c: Likewise.
30051         * lib/ldexpl.c: Likewise.
30052         * lib/linebreak.c: Likewise.
30053         * lib/linebreak.h: Likewise.
30054         * lib/linebuffer.c: Likewise.
30055         * lib/linebuffer.h: Likewise.
30056         * lib/locale.in.h: Likewise.
30057         * lib/logl.c: Likewise.
30058         * lib/long-options.c: Likewise.
30059         * lib/long-options.h: Likewise.
30060         * lib/lstat.c: Likewise.
30061         * lib/lstat.h: Likewise.
30062         * lib/math.in.h: Likewise.
30063         * lib/mbchar.c: Likewise.
30064         * lib/mbchar.h: Likewise.
30065         * lib/mbfile.h: Likewise.
30066         * lib/mbiter.h: Likewise.
30067         * lib/mbscasecmp.c: Likewise.
30068         * lib/mbscasestr.c: Likewise.
30069         * lib/mbschr.c: Likewise.
30070         * lib/mbscspn.c: Likewise.
30071         * lib/mbslen.c: Likewise.
30072         * lib/mbsncasecmp.c: Likewise.
30073         * lib/mbsnlen.c: Likewise.
30074         * lib/mbspbrk.c: Likewise.
30075         * lib/mbspcasecmp.c: Likewise.
30076         * lib/mbsrchr.c: Likewise.
30077         * lib/mbssep.c: Likewise.
30078         * lib/mbsspn.c: Likewise.
30079         * lib/mbsstr.c: Likewise.
30080         * lib/mbstok_r.c: Likewise.
30081         * lib/mbswidth.c: Likewise.
30082         * lib/mbswidth.h: Likewise.
30083         * lib/mbuiter.h: Likewise.
30084         * lib/memcasecmp.c: Likewise.
30085         * lib/memcasecmp.h: Likewise.
30086         * lib/memchr.c: Likewise.
30087         * lib/memcmp.c: Likewise.
30088         * lib/memcoll.c: Likewise.
30089         * lib/memcoll.h: Likewise.
30090         * lib/memcpy.c: Likewise.
30091         * lib/memrchr.c: Likewise.
30092         * lib/mkancesdirs.c: Likewise.
30093         * lib/mkdir-p.c: Likewise.
30094         * lib/mkdir-p.h: Likewise.
30095         * lib/mkdir.c: Likewise.
30096         * lib/mkdirat.c: Likewise.
30097         * lib/mkdtemp.c: Likewise.
30098         * lib/mkstemp-safer.c: Likewise.
30099         * lib/mkstemp.c: Likewise.
30100         * lib/modechange.c: Likewise.
30101         * lib/modechange.h: Likewise.
30102         * lib/mountlist.c: Likewise.
30103         * lib/mountlist.h: Likewise.
30104         * lib/mpsort.c: Likewise.
30105         * lib/nanosleep.c: Likewise.
30106         * lib/obstack.c: Likewise.
30107         * lib/obstack.h: Likewise.
30108         * lib/open-safer.c: Likewise.
30109         * lib/open.c: Likewise.
30110         * lib/openat-die.c: Likewise.
30111         * lib/openat-priv.h: Likewise.
30112         * lib/openat-proc.c: Likewise.
30113         * lib/openat.c: Likewise.
30114         * lib/openat.h: Likewise.
30115         * lib/pagealign_alloc.c: Likewise.
30116         * lib/pagealign_alloc.h: Likewise.
30117         * lib/physmem.c: Likewise.
30118         * lib/physmem.h: Likewise.
30119         * lib/pipe-safer.c: Likewise.
30120         * lib/pipe.c: Likewise.
30121         * lib/pipe.h: Likewise.
30122         * lib/posixtm.c: Likewise.
30123         * lib/posixtm.h: Likewise.
30124         * lib/posixver.c: Likewise.
30125         * lib/printf-frexp.c: Likewise.
30126         * lib/printf-frexp.h: Likewise.
30127         * lib/printf-frexpl.c: Likewise.
30128         * lib/printf-frexpl.h: Likewise.
30129         * lib/printf.c: Likewise.
30130         * lib/progname.c: Likewise.
30131         * lib/progname.h: Likewise.
30132         * lib/progreloc.c: Likewise.
30133         * lib/putenv.c: Likewise.
30134         * lib/quote.c: Likewise.
30135         * lib/quote.h: Likewise.
30136         * lib/quotearg.c: Likewise.
30137         * lib/quotearg.h: Likewise.
30138         * lib/raise.c: Likewise.
30139         * lib/readline.c: Likewise.
30140         * lib/readline.h: Likewise.
30141         * lib/readlink.c: Likewise.
30142         * lib/readtokens.c: Likewise.
30143         * lib/readtokens.h: Likewise.
30144         * lib/readtokens0.c: Likewise.
30145         * lib/readtokens0.h: Likewise.
30146         * lib/readutmp.c: Likewise.
30147         * lib/readutmp.h: Likewise.
30148         * lib/realloc.c: Likewise.
30149         * lib/relocwrapper.c: Likewise.
30150         * lib/rename-dest-slash.c: Likewise.
30151         * lib/rename.c: Likewise.
30152         * lib/rmdir.c: Likewise.
30153         * lib/rpmatch.c: Likewise.
30154         * lib/safe-read.c: Likewise.
30155         * lib/safe-read.h: Likewise.
30156         * lib/safe-write.c: Likewise.
30157         * lib/safe-write.h: Likewise.
30158         * lib/same-inode.h: Likewise.
30159         * lib/same.c: Likewise.
30160         * lib/same.h: Likewise.
30161         * lib/save-cwd.c: Likewise.
30162         * lib/save-cwd.h: Likewise.
30163         * lib/savedir.c: Likewise.
30164         * lib/savedir.h: Likewise.
30165         * lib/savewd.c: Likewise.
30166         * lib/savewd.h: Likewise.
30167         * lib/search.in.h: Likewise.
30168         * lib/setenv.c: Likewise.
30169         * lib/setenv.h: Likewise.
30170         * lib/settime.c: Likewise.
30171         * lib/sh-quote.c: Likewise.
30172         * lib/sh-quote.h: Likewise.
30173         * lib/sig2str.c: Likewise.
30174         * lib/sig2str.h: Likewise.
30175         * lib/signal.in.h: Likewise.
30176         * lib/signbitd.c: Likewise.
30177         * lib/signbitf.c: Likewise.
30178         * lib/signbitl.c: Likewise.
30179         * lib/sigprocmask.c: Likewise.
30180         * lib/sincosl.c: Likewise.
30181         * lib/sleep.c: Likewise.
30182         * lib/sprintf.c: Likewise.
30183         * lib/sqrtl.c: Likewise.
30184         * lib/stat-time.h: Likewise.
30185         * lib/stdio--.h: Likewise.
30186         * lib/stdio-safer.h: Likewise.
30187         * lib/stdlib--.h: Likewise.
30188         * lib/stdlib-safer.h: Likewise.
30189         * lib/stdlib.in.h: Likewise.
30190         * lib/stpcpy.c: Likewise.
30191         * lib/stpncpy.c: Likewise.
30192         * lib/strchrnul.c: Likewise.
30193         * lib/strcspn.c: Likewise.
30194         * lib/strerror.c: Likewise.
30195         * lib/strftime.c: Likewise.
30196         * lib/strftime.h: Likewise.
30197         * lib/striconveh.c: Likewise.
30198         * lib/striconveh.h: Likewise.
30199         * lib/striconveha.c: Likewise.
30200         * lib/striconveha.h: Likewise.
30201         * lib/stripslash.c: Likewise.
30202         * lib/strnlen1.c: Likewise.
30203         * lib/strnlen1.h: Likewise.
30204         * lib/strtod.c: Likewise.
30205         * lib/strtoimax.c: Likewise.
30206         * lib/strtok_r.c: Likewise.
30207         * lib/strtol.c: Likewise.
30208         * lib/strtoll.c: Likewise.
30209         * lib/strtoul.c: Likewise.
30210         * lib/strtoull.c: Likewise.
30211         * lib/sysexits.in.h: Likewise.
30212         * lib/tempname.c: Likewise.
30213         * lib/tempname.h: Likewise.
30214         * lib/timespec.h: Likewise.
30215         * lib/tls.c: Likewise.
30216         * lib/tls.h: Likewise.
30217         * lib/tmpdir.c: Likewise.
30218         * lib/tmpdir.h: Likewise.
30219         * lib/tmpfile-safer.c: Likewise.
30220         * lib/tmpfile.c: Likewise.
30221         * lib/trigl.c: Likewise.
30222         * lib/trigl.h: Likewise.
30223         * lib/trim.c: Likewise.
30224         * lib/trim.h: Likewise.
30225         * lib/trunc.c: Likewise.
30226         * lib/truncf.c: Likewise.
30227         * lib/truncl.c: Likewise.
30228         * lib/tsearch.c: Likewise.
30229         * lib/unicodeio.c: Likewise.
30230         * lib/unicodeio.h: Likewise.
30231         * lib/unistd--.h: Likewise.
30232         * lib/unistd-safer.h: Likewise.
30233         * lib/unistdio/ulc-fprintf.c: Likewise.
30234         * lib/unistdio/ulc-vfprintf.c: Likewise.
30235         * lib/unlinkdir.c: Likewise.
30236         * lib/unlinkdir.h: Likewise.
30237         * lib/unlocked-io.h: Likewise.
30238         * lib/unsetenv.c: Likewise.
30239         * lib/userspec.c: Likewise.
30240         * lib/utime.c: Likewise.
30241         * lib/utimecmp.c: Likewise.
30242         * lib/utimecmp.h: Likewise.
30243         * lib/utimens.c: Likewise.
30244         * lib/verify.h: Likewise.
30245         * lib/verror.c: Likewise.
30246         * lib/verror.h: Likewise.
30247         * lib/version-etc-fsf.c: Likewise.
30248         * lib/version-etc.c: Likewise.
30249         * lib/version-etc.h: Likewise.
30250         * lib/vfprintf.c: Likewise.
30251         * lib/vprintf.c: Likewise.
30252         * lib/vsprintf.c: Likewise.
30253         * lib/w32spawn.h: Likewise.
30254         * lib/wait-process.c: Likewise.
30255         * lib/wait-process.h: Likewise.
30256         * lib/wcwidth.c: Likewise.
30257         * lib/write-any-file.c: Likewise.
30258         * lib/xalloc-die.c: Likewise.
30259         * lib/xalloc.h: Likewise.
30260         * lib/xasprintf.c: Likewise.
30261         * lib/xgetcwd.c: Likewise.
30262         * lib/xgetcwd.h: Likewise.
30263         * lib/xgetdomainname.c: Likewise.
30264         * lib/xgetdomainname.h: Likewise.
30265         * lib/xgethostname.c: Likewise.
30266         * lib/xmalloc.c: Likewise.
30267         * lib/xmalloca.c: Likewise.
30268         * lib/xmalloca.h: Likewise.
30269         * lib/xmemcoll.c: Likewise.
30270         * lib/xnanosleep.c: Likewise.
30271         * lib/xreadlink.c: Likewise.
30272         * lib/xreadlink.h: Likewise.
30273         * lib/xsetenv.c: Likewise.
30274         * lib/xsetenv.h: Likewise.
30275         * lib/xstriconv.c: Likewise.
30276         * lib/xstriconv.h: Likewise.
30277         * lib/xstrndup.c: Likewise.
30278         * lib/xstrndup.h: Likewise.
30279         * lib/xstrtod.c: Likewise.
30280         * lib/xstrtod.h: Likewise.
30281         * lib/xstrtol-error.c: Likewise.
30282         * lib/xstrtol.c: Likewise.
30283         * lib/xstrtol.h: Likewise.
30284         * lib/xtime.h: Likewise.
30285         * lib/xvasprintf.c: Likewise.
30286         * lib/xvasprintf.h: Likewise.
30287         * lib/yesno.c: Likewise.
30288         * lib/yesno.h: Likewise.
30289         * posix-modules: Likewise.
30290         * tests/test-alloca-opt.c: Likewise.
30291         * tests/test-arcfour.c: Likewise.
30292         * tests/test-arctwo.c: Likewise.
30293         * tests/test-argmatch.c: Likewise.
30294         * tests/test-argp-2.sh: Likewise.
30295         * tests/test-argp.c: Likewise.
30296         * tests/test-arpa_inet.c: Likewise.
30297         * tests/test-array_list.c: Likewise.
30298         * tests/test-array_oset.c: Likewise.
30299         * tests/test-atexit.c: Likewise.
30300         * tests/test-avltree_list.c: Likewise.
30301         * tests/test-avltree_oset.c: Likewise.
30302         * tests/test-avltreehash_list.c: Likewise.
30303         * tests/test-base64.c: Likewise.
30304         * tests/test-binary-io.c: Likewise.
30305         * tests/test-byteswap.c: Likewise.
30306         * tests/test-c-ctype.c: Likewise.
30307         * tests/test-c-strcasecmp.c: Likewise.
30308         * tests/test-c-strcasestr.c: Likewise.
30309         * tests/test-c-strncasecmp.c: Likewise.
30310         * tests/test-c-strstr.c: Likewise.
30311         * tests/test-canonicalize-lgpl.c: Likewise.
30312         * tests/test-canonicalize.c: Likewise.
30313         * tests/test-carray_list.c: Likewise.
30314         * tests/test-ceilf.c: Likewise.
30315         * tests/test-ceill.c: Likewise.
30316         * tests/test-count-one-bits.c: Likewise.
30317         * tests/test-crc.c: Likewise.
30318         * tests/test-dirname.c: Likewise.
30319         * tests/test-fbufmode.c: Likewise.
30320         * tests/test-fcntl.c: Likewise.
30321         * tests/test-fflush.c: Likewise.
30322         * tests/test-floorf.c: Likewise.
30323         * tests/test-floorl.c: Likewise.
30324         * tests/test-fopen.c: Likewise.
30325         * tests/test-fprintf-posix.c: Likewise.
30326         * tests/test-fprintf-posix.h: Likewise.
30327         * tests/test-fpurge.c: Likewise.
30328         * tests/test-freadable.c: Likewise.
30329         * tests/test-freadahead.c: Likewise.
30330         * tests/test-freading.c: Likewise.
30331         * tests/test-freopen.c: Likewise.
30332         * tests/test-frexp.c: Likewise.
30333         * tests/test-frexpl.c: Likewise.
30334         * tests/test-fseek.c: Likewise.
30335         * tests/test-fseeko.c: Likewise.
30336         * tests/test-fseterr.c: Likewise.
30337         * tests/test-fstrcmp.c: Likewise.
30338         * tests/test-ftell.c: Likewise.
30339         * tests/test-ftello.c: Likewise.
30340         * tests/test-fwritable.c: Likewise.
30341         * tests/test-fwriting.c: Likewise.
30342         * tests/test-getaddrinfo.c: Likewise.
30343         * tests/test-getpass.c: Likewise.
30344         * tests/test-gettimeofday.c: Likewise.
30345         * tests/test-hmac-md5.c: Likewise.
30346         * tests/test-hmac-sha1.c: Likewise.
30347         * tests/test-iconv.c: Likewise.
30348         * tests/test-iconvme.c: Likewise.
30349         * tests/test-inttypes.c: Likewise.
30350         * tests/test-isnan.c: Likewise.
30351         * tests/test-isnanf.c: Likewise.
30352         * tests/test-isnanl-nolibm.c: Likewise.
30353         * tests/test-isnanl.c: Likewise.
30354         * tests/test-isnanl.h: Likewise.
30355         * tests/test-ldexpl.c: Likewise.
30356         * tests/test-linked_list.c: Likewise.
30357         * tests/test-linkedhash_list.c: Likewise.
30358         * tests/test-locale.c: Likewise.
30359         * tests/test-localename.c: Likewise.
30360         * tests/test-lock.c: Likewise.
30361         * tests/test-lseek.c: Likewise.
30362         * tests/test-malloca.c: Likewise.
30363         * tests/test-math.c: Likewise.
30364         * tests/test-mbscasecmp.c: Likewise.
30365         * tests/test-mbscasestr1.c: Likewise.
30366         * tests/test-mbscasestr2.c: Likewise.
30367         * tests/test-mbscasestr3.c: Likewise.
30368         * tests/test-mbscasestr4.c: Likewise.
30369         * tests/test-mbschr.c: Likewise.
30370         * tests/test-mbscspn.c: Likewise.
30371         * tests/test-mbsncasecmp.c: Likewise.
30372         * tests/test-mbspbrk.c: Likewise.
30373         * tests/test-mbspcasecmp.c: Likewise.
30374         * tests/test-mbsrchr.c: Likewise.
30375         * tests/test-mbsspn.c: Likewise.
30376         * tests/test-mbsstr1.c: Likewise.
30377         * tests/test-mbsstr2.c: Likewise.
30378         * tests/test-mbsstr3.c: Likewise.
30379         * tests/test-md5.c: Likewise.
30380         * tests/test-memmem.c: Likewise.
30381         * tests/test-netinet_in.c: Likewise.
30382         * tests/test-open.c: Likewise.
30383         * tests/test-printf-frexp.c: Likewise.
30384         * tests/test-printf-frexpl.c: Likewise.
30385         * tests/test-printf-posix.c: Likewise.
30386         * tests/test-printf-posix.h: Likewise.
30387         * tests/test-rbtree_list.c: Likewise.
30388         * tests/test-rbtree_oset.c: Likewise.
30389         * tests/test-rbtreehash_list.c: Likewise.
30390         * tests/test-read-file.c: Likewise.
30391         * tests/test-rijndael.c: Likewise.
30392         * tests/test-search.c: Likewise.
30393         * tests/test-signbit.c: Likewise.
30394         * tests/test-sleep.c: Likewise.
30395         * tests/test-snprintf-posix.c: Likewise.
30396         * tests/test-snprintf-posix.h: Likewise.
30397         * tests/test-snprintf.c: Likewise.
30398         * tests/test-sprintf-posix.c: Likewise.
30399         * tests/test-sprintf-posix.h: Likewise.
30400         * tests/test-stat-time.c: Likewise.
30401         * tests/test-stdbool.c: Likewise.
30402         * tests/test-stdint.c: Likewise.
30403         * tests/test-stdio.c: Likewise.
30404         * tests/test-stdlib.c: Likewise.
30405         * tests/test-stpncpy.c: Likewise.
30406         * tests/test-strcasestr.c: Likewise.
30407         * tests/test-striconv.c: Likewise.
30408         * tests/test-striconveh.c: Likewise.
30409         * tests/test-striconveha.c: Likewise.
30410         * tests/test-string.c: Likewise.
30411         * tests/test-sys_select.c: Likewise.
30412         * tests/test-sys_socket.c: Likewise.
30413         * tests/test-sys_stat.c: Likewise.
30414         * tests/test-sys_time.c: Likewise.
30415         * tests/test-sysexits.c: Likewise.
30416         * tests/test-time.c: Likewise.
30417         * tests/test-tls.c: Likewise.
30418         * tests/test-trunc.c: Likewise.
30419         * tests/test-truncf.c: Likewise.
30420         * tests/test-truncl.c: Likewise.
30421         * tests/test-unistd.c: Likewise.
30422         * tests/test-vasnprintf-posix.c: Likewise.
30423         * tests/test-vasnprintf-posix2.c: Likewise.
30424         * tests/test-vasnprintf.c: Likewise.
30425         * tests/test-vasprintf-posix.c: Likewise.
30426         * tests/test-vasprintf.c: Likewise.
30427         * tests/test-verify.c: Likewise.
30428         * tests/test-vfprintf-posix.c: Likewise.
30429         * tests/test-vprintf-posix.c: Likewise.
30430         * tests/test-vsnprintf-posix.c: Likewise.
30431         * tests/test-vsnprintf.c: Likewise.
30432         * tests/test-vsprintf-posix.c: Likewise.
30433         * tests/test-wchar.c: Likewise.
30434         * tests/test-wctype.c: Likewise.
30435         * tests/test-wcwidth.c: Likewise.
30436         * tests/test-xstrtol.c: Likewise.
30437         * tests/test-xvasprintf.c: Likewise.
30438         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30439         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30440         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30441         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30442         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30443         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30444         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30445         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30446         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30447         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30448         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30449         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30450         * tests/uniname/test-uninames.c: Likewise.
30451         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30452         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30453         * tests/unistdio/test-u16-printf1.h: Likewise.
30454         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30455         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30456         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30457         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30458         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30459         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30460         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30461         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30462         * tests/unistdio/test-u32-printf1.h: Likewise.
30463         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30464         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30465         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30466         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30467         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30468         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30469         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30470         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30471         * tests/unistdio/test-u8-printf1.h: Likewise.
30472         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30473         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30474         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30475         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30476         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30477         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30478         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30479         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30480         * tests/unistdio/test-ulc-printf1.h: Likewise.
30481         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30482         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30483         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30484         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30485         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30486         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30487         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30488         * tests/uniwidth/test-u16-width.c: Likewise.
30489         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30490         * tests/uniwidth/test-u32-width.c: Likewise.
30491         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30492         * tests/uniwidth/test-u8-width.c: Likewise.
30493         * tests/uniwidth/test-uc_width.c: Likewise.
30494         * config/srclist-update: Likewise.
30495         (fixlicense): Update to GPLv3+.
30496
30497         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30498         * tests/test-tsearch.c: Change copyright notice.
30499
30500         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30501         * lib/c-strcaseeq.h: Change copyright notice.
30502         * lib/streq.h: Likewise.
30503         * lib/uniconv.h: Likewise.
30504         * lib/uniconv/u-conv-from-enc.h: Likewise.
30505         * lib/uniconv/u-conv-to-enc.h: Likewise.
30506         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30507         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30508         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30509         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30510         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30511         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30512         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30513         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30514         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30515         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30516         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30517         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30518         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30519         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30520         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30521         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30522         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30523         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30524         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30525         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30526         * lib/uniname.h: Likewise.
30527         * lib/uniname/uniname.c: Likewise.
30528         * lib/unistdio.h: Likewise.
30529         * lib/unistdio/u-asnprintf.h: Likewise.
30530         * lib/unistdio/u-asprintf.h: Likewise.
30531         * lib/unistdio/u-printf-args.c: Likewise.
30532         * lib/unistdio/u-printf-args.h: Likewise.
30533         * lib/unistdio/u-printf-parse.h: Likewise.
30534         * lib/unistdio/u-snprintf.h: Likewise.
30535         * lib/unistdio/u-sprintf.h: Likewise.
30536         * lib/unistdio/u-vasprintf.h: Likewise.
30537         * lib/unistdio/u-vsnprintf.h: Likewise.
30538         * lib/unistdio/u-vsprintf.h: Likewise.
30539         * lib/unistdio/u16-asnprintf.c: Likewise.
30540         * lib/unistdio/u16-asprintf.c: Likewise.
30541         * lib/unistdio/u16-printf-parse.c: Likewise.
30542         * lib/unistdio/u16-snprintf.c: Likewise.
30543         * lib/unistdio/u16-sprintf.c: Likewise.
30544         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30545         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30546         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30547         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30548         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30549         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30550         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30551         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30552         * lib/unistdio/u16-vasnprintf.c: Likewise.
30553         * lib/unistdio/u16-vasprintf.c: Likewise.
30554         * lib/unistdio/u16-vsnprintf.c: Likewise.
30555         * lib/unistdio/u16-vsprintf.c: Likewise.
30556         * lib/unistdio/u32-asnprintf.c: Likewise.
30557         * lib/unistdio/u32-asprintf.c: Likewise.
30558         * lib/unistdio/u32-printf-parse.c: Likewise.
30559         * lib/unistdio/u32-snprintf.c: Likewise.
30560         * lib/unistdio/u32-sprintf.c: Likewise.
30561         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30562         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30563         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30564         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30565         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30566         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30567         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30568         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30569         * lib/unistdio/u32-vasnprintf.c: Likewise.
30570         * lib/unistdio/u32-vasprintf.c: Likewise.
30571         * lib/unistdio/u32-vsnprintf.c: Likewise.
30572         * lib/unistdio/u32-vsprintf.c: Likewise.
30573         * lib/unistdio/u8-asnprintf.c: Likewise.
30574         * lib/unistdio/u8-asprintf.c: Likewise.
30575         * lib/unistdio/u8-printf-parse.c: Likewise.
30576         * lib/unistdio/u8-snprintf.c: Likewise.
30577         * lib/unistdio/u8-sprintf.c: Likewise.
30578         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30579         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30580         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30581         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30582         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30583         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30584         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30585         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30586         * lib/unistdio/u8-vasnprintf.c: Likewise.
30587         * lib/unistdio/u8-vasprintf.c: Likewise.
30588         * lib/unistdio/u8-vsnprintf.c: Likewise.
30589         * lib/unistdio/u8-vsprintf.c: Likewise.
30590         * lib/unistdio/ulc-asnprintf.c: Likewise.
30591         * lib/unistdio/ulc-asprintf.c: Likewise.
30592         * lib/unistdio/ulc-printf-parse.c: Likewise.
30593         * lib/unistdio/ulc-snprintf.c: Likewise.
30594         * lib/unistdio/ulc-sprintf.c: Likewise.
30595         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30596         * lib/unistdio/ulc-vasprintf.c: Likewise.
30597         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30598         * lib/unistdio/ulc-vsprintf.c: Likewise.
30599         * lib/unistr.h: Likewise.
30600         * lib/unistr/u-cpy-alloc.h: Likewise.
30601         * lib/unistr/u-cpy.h: Likewise.
30602         * lib/unistr/u-endswith.h: Likewise.
30603         * lib/unistr/u-move.h: Likewise.
30604         * lib/unistr/u-set.h: Likewise.
30605         * lib/unistr/u-startswith.h: Likewise.
30606         * lib/unistr/u-stpcpy.h: Likewise.
30607         * lib/unistr/u-stpncpy.h: Likewise.
30608         * lib/unistr/u-strcat.h: Likewise.
30609         * lib/unistr/u-strcpy.h: Likewise.
30610         * lib/unistr/u-strcspn.h: Likewise.
30611         * lib/unistr/u-strdup.h: Likewise.
30612         * lib/unistr/u-strlen.h: Likewise.
30613         * lib/unistr/u-strncat.h: Likewise.
30614         * lib/unistr/u-strncpy.h: Likewise.
30615         * lib/unistr/u-strnlen.h: Likewise.
30616         * lib/unistr/u-strpbrk.h: Likewise.
30617         * lib/unistr/u-strspn.h: Likewise.
30618         * lib/unistr/u-strstr.h: Likewise.
30619         * lib/unistr/u-strtok.h: Likewise.
30620         * lib/unistr/u16-check.c: Likewise.
30621         * lib/unistr/u16-chr.c: Likewise.
30622         * lib/unistr/u16-cmp.c: Likewise.
30623         * lib/unistr/u16-cpy-alloc.c: Likewise.
30624         * lib/unistr/u16-cpy.c: Likewise.
30625         * lib/unistr/u16-endswith.c: Likewise.
30626         * lib/unistr/u16-mblen.c: Likewise.
30627         * lib/unistr/u16-mbsnlen.c: Likewise.
30628         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30629         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30630         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30631         * lib/unistr/u16-mbtouc.c: Likewise.
30632         * lib/unistr/u16-mbtoucr.c: Likewise.
30633         * lib/unistr/u16-move.c: Likewise.
30634         * lib/unistr/u16-next.c: Likewise.
30635         * lib/unistr/u16-prev.c: Likewise.
30636         * lib/unistr/u16-set.c: Likewise.
30637         * lib/unistr/u16-startswith.c: Likewise.
30638         * lib/unistr/u16-stpcpy.c: Likewise.
30639         * lib/unistr/u16-stpncpy.c: Likewise.
30640         * lib/unistr/u16-strcat.c: Likewise.
30641         * lib/unistr/u16-strchr.c: Likewise.
30642         * lib/unistr/u16-strcmp.c: Likewise.
30643         * lib/unistr/u16-strcpy.c: Likewise.
30644         * lib/unistr/u16-strcspn.c: Likewise.
30645         * lib/unistr/u16-strdup.c: Likewise.
30646         * lib/unistr/u16-strlen.c: Likewise.
30647         * lib/unistr/u16-strmblen.c: Likewise.
30648         * lib/unistr/u16-strmbtouc.c: Likewise.
30649         * lib/unistr/u16-strncat.c: Likewise.
30650         * lib/unistr/u16-strncmp.c: Likewise.
30651         * lib/unistr/u16-strncpy.c: Likewise.
30652         * lib/unistr/u16-strnlen.c: Likewise.
30653         * lib/unistr/u16-strpbrk.c: Likewise.
30654         * lib/unistr/u16-strrchr.c: Likewise.
30655         * lib/unistr/u16-strspn.c: Likewise.
30656         * lib/unistr/u16-strstr.c: Likewise.
30657         * lib/unistr/u16-strtok.c: Likewise.
30658         * lib/unistr/u16-to-u32.c: Likewise.
30659         * lib/unistr/u16-to-u8.c: Likewise.
30660         * lib/unistr/u16-uctomb-aux.c: Likewise.
30661         * lib/unistr/u16-uctomb.c: Likewise.
30662         * lib/unistr/u32-check.c: Likewise.
30663         * lib/unistr/u32-chr.c: Likewise.
30664         * lib/unistr/u32-cmp.c: Likewise.
30665         * lib/unistr/u32-cpy-alloc.c: Likewise.
30666         * lib/unistr/u32-cpy.c: Likewise.
30667         * lib/unistr/u32-endswith.c: Likewise.
30668         * lib/unistr/u32-mblen.c: Likewise.
30669         * lib/unistr/u32-mbsnlen.c: Likewise.
30670         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30671         * lib/unistr/u32-mbtouc.c: Likewise.
30672         * lib/unistr/u32-mbtoucr.c: Likewise.
30673         * lib/unistr/u32-move.c: Likewise.
30674         * lib/unistr/u32-next.c: Likewise.
30675         * lib/unistr/u32-prev.c: Likewise.
30676         * lib/unistr/u32-set.c: Likewise.
30677         * lib/unistr/u32-startswith.c: Likewise.
30678         * lib/unistr/u32-stpcpy.c: Likewise.
30679         * lib/unistr/u32-stpncpy.c: Likewise.
30680         * lib/unistr/u32-strcat.c: Likewise.
30681         * lib/unistr/u32-strchr.c: Likewise.
30682         * lib/unistr/u32-strcmp.c: Likewise.
30683         * lib/unistr/u32-strcpy.c: Likewise.
30684         * lib/unistr/u32-strcspn.c: Likewise.
30685         * lib/unistr/u32-strdup.c: Likewise.
30686         * lib/unistr/u32-strlen.c: Likewise.
30687         * lib/unistr/u32-strmblen.c: Likewise.
30688         * lib/unistr/u32-strmbtouc.c: Likewise.
30689         * lib/unistr/u32-strncat.c: Likewise.
30690         * lib/unistr/u32-strncmp.c: Likewise.
30691         * lib/unistr/u32-strncpy.c: Likewise.
30692         * lib/unistr/u32-strnlen.c: Likewise.
30693         * lib/unistr/u32-strpbrk.c: Likewise.
30694         * lib/unistr/u32-strrchr.c: Likewise.
30695         * lib/unistr/u32-strspn.c: Likewise.
30696         * lib/unistr/u32-strstr.c: Likewise.
30697         * lib/unistr/u32-strtok.c: Likewise.
30698         * lib/unistr/u32-to-u16.c: Likewise.
30699         * lib/unistr/u32-to-u8.c: Likewise.
30700         * lib/unistr/u32-uctomb.c: Likewise.
30701         * lib/unistr/u8-check.c: Likewise.
30702         * lib/unistr/u8-chr.c: Likewise.
30703         * lib/unistr/u8-cmp.c: Likewise.
30704         * lib/unistr/u8-cpy-alloc.c: Likewise.
30705         * lib/unistr/u8-cpy.c: Likewise.
30706         * lib/unistr/u8-endswith.c: Likewise.
30707         * lib/unistr/u8-mblen.c: Likewise.
30708         * lib/unistr/u8-mbsnlen.c: Likewise.
30709         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30710         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30711         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30712         * lib/unistr/u8-mbtouc.c: Likewise.
30713         * lib/unistr/u8-mbtoucr.c: Likewise.
30714         * lib/unistr/u8-move.c: Likewise.
30715         * lib/unistr/u8-next.c: Likewise.
30716         * lib/unistr/u8-prev.c: Likewise.
30717         * lib/unistr/u8-set.c: Likewise.
30718         * lib/unistr/u8-startswith.c: Likewise.
30719         * lib/unistr/u8-stpcpy.c: Likewise.
30720         * lib/unistr/u8-stpncpy.c: Likewise.
30721         * lib/unistr/u8-strcat.c: Likewise.
30722         * lib/unistr/u8-strchr.c: Likewise.
30723         * lib/unistr/u8-strcmp.c: Likewise.
30724         * lib/unistr/u8-strcpy.c: Likewise.
30725         * lib/unistr/u8-strcspn.c: Likewise.
30726         * lib/unistr/u8-strdup.c: Likewise.
30727         * lib/unistr/u8-strlen.c: Likewise.
30728         * lib/unistr/u8-strmblen.c: Likewise.
30729         * lib/unistr/u8-strmbtouc.c: Likewise.
30730         * lib/unistr/u8-strncat.c: Likewise.
30731         * lib/unistr/u8-strncmp.c: Likewise.
30732         * lib/unistr/u8-strncpy.c: Likewise.
30733         * lib/unistr/u8-strnlen.c: Likewise.
30734         * lib/unistr/u8-strpbrk.c: Likewise.
30735         * lib/unistr/u8-strrchr.c: Likewise.
30736         * lib/unistr/u8-strspn.c: Likewise.
30737         * lib/unistr/u8-strstr.c: Likewise.
30738         * lib/unistr/u8-strtok.c: Likewise.
30739         * lib/unistr/u8-to-u16.c: Likewise.
30740         * lib/unistr/u8-to-u32.c: Likewise.
30741         * lib/unistr/u8-uctomb-aux.c: Likewise.
30742         * lib/unistr/u8-uctomb.c: Likewise.
30743         * lib/unitypes.h: Likewise.
30744         * lib/uniwidth.h: Likewise.
30745         * lib/uniwidth/cjk.h: Likewise.
30746         * lib/uniwidth/u16-strwidth.c: Likewise.
30747         * lib/uniwidth/u16-width.c: Likewise.
30748         * lib/uniwidth/u32-strwidth.c: Likewise.
30749         * lib/uniwidth/u32-width.c: Likewise.
30750         * lib/uniwidth/u8-strwidth.c: Likewise.
30751         * lib/uniwidth/u8-width.c: Likewise.
30752         * lib/uniwidth/width.c: Likewise.
30753
30754 2007-10-07  Bruno Haible  <bruno@clisp.org>
30755
30756         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30757         The file is still under LGPL (see modules/inttypes).
30758
30759 2007-10-06  Bruno Haible  <bruno@clisp.org>
30760
30761         * modules/trunc (Dependencies): Add 'extensions'.
30762         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30763         Reported by Ben Pfaff <blp@gnu.org>.
30764
30765 2007-10-06  Bruno Haible  <bruno@clisp.org>
30766
30767         * modules/freopen-tests: New file.
30768         * tests/test-freopen.c: New file.
30769
30770         * modules/fopen-tests: New file.
30771         * tests/test-fopen.c: New file.
30772
30773         * modules/fopen: New file.
30774         * lib/fopen.c: New file.
30775         * m4/fopen.m4: New file.
30776         * modules/freopen: New file.
30777         * lib/freopen.c: New file.
30778         * m4/freopen.m4: New file.
30779         * lib/stdio.in.h (fopen, freopen): New declarations.
30780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30781         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30782         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30783         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30784         * doc/functions/fopen.texi: Mention the 'fopen' module.
30785         * doc/functions/freopen.texi: Mention the 'freopen' module.
30786
30787 2007-10-06  Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/open-tests: New file.
30790         * tests/test-open.c: New file.
30791
30792         * modules/open: New file.
30793         * lib/open.c: New file.
30794         * m4/open.m4: New file.
30795         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30796         lib/open.c does.
30797         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30798         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30799         macros.
30800         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30801         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30802         REPLACE_OPEN.
30803         * doc/functions/open.texi: Mention the 'open' module.
30804
30805 2007-10-04  Bruno Haible  <bruno@clisp.org>
30806
30807         * modules/ceill-tests: New file.
30808         * tests/test-ceill.c: New file.
30809
30810         * modules/ceill: New file.
30811         * lib/ceill.c: Replace entire file.
30812         * m4/ceill.m4: New file.
30813         * lib/math.in.h (ceill): Replace declaration.
30814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30815         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30816         * doc/functions/ceill.texi: Mention the 'ceill' module.
30817         * modules/mathl (Files): Remove lib/ceill.c.
30818         (Depends-on): Add ceill.
30819
30820 2007-10-04  Bruno Haible  <bruno@clisp.org>
30821
30822         * modules/ceilf-tests: New file.
30823         * tests/test-ceilf.c: New file.
30824
30825         * modules/ceilf: New file.
30826         * lib/ceil.c: New file.
30827         * lib/ceilf.c: New file.
30828         * m4/ceilf.m4: New file.
30829         * lib/math.in.h (ceilf): New declaration.
30830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30831         HAVE_DECL_CEILF.
30832         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30833         HAVE_DECL_CEILF.
30834         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30835
30836 2007-10-04  Bruno Haible  <bruno@clisp.org>
30837
30838         * modules/floorl-tests: New file.
30839         * tests/test-floorl.c: New file.
30840
30841         * modules/floorl: New file.
30842         * lib/floorl.c: Replace entire file.
30843         * m4/floorl.m4: New file.
30844         * lib/math.in.h (floorl): Replace declaration.
30845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30846         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30847         * doc/functions/floorl.texi: Mention the 'floorl' module.
30848         * modules/mathl (Files): Remove lib/floorl.c.
30849         (Depends-on): Add floorl.
30850
30851 2007-10-04  Bruno Haible  <bruno@clisp.org>
30852
30853         * modules/floorf-tests: New file.
30854         * tests/test-floorf.c: New file.
30855
30856         * modules/floorf: New file.
30857         * lib/floor.c: New file.
30858         * lib/floorf.c: New file.
30859         * m4/floorf.m4: New file.
30860         * lib/math.in.h (floorf): New declaration.
30861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30862         HAVE_DECL_FLOORF.
30863         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30864         HAVE_DECL_FLOORF.
30865         * doc/functions/floorf.texi: Mention the 'floorf' module.
30866
30867 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30868             Bruno Haible  <bruno@clisp.org>
30869
30870         Advertise for the Git server instead of the CVS server.
30871         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30872         repository instead of the CVS one.
30873         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30874         about all VCS systems generically.
30875         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30876
30877 2007-10-04  Bruno Haible  <bruno@clisp.org>
30878
30879         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30880         means.
30881         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30882
30883 2007-10-04  Bruno Haible  <bruno@clisp.org>
30884
30885         * modules/truncl-tests: New file.
30886         * tests/test-truncl.c: New file.
30887
30888         * modules/truncl: New file.
30889         * lib/truncl.c: New file.
30890         * m4/truncl.m4: New file.
30891         * lib/math.in.h (truncl): New declaration.
30892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30893         HAVE_DECL_TRUNCL.
30894         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30895         HAVE_DECL_TRUNCL.
30896         * doc/functions/truncl.texi: Mention the 'truncl' module.
30897
30898 2007-10-04  Bruno Haible  <bruno@clisp.org>
30899
30900         * modules/truncf-tests: New file.
30901         * tests/test-truncf.c: New file.
30902
30903         * modules/truncf: New file.
30904         * lib/trunc.c: Make paramerizable through USE_* macros.
30905         * lib/truncf.c: New file.
30906         * m4/truncf.m4: New file.
30907         * lib/math.in.h (truncf): New declaration.
30908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30909         HAVE_DECL_TRUNCF.
30910         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30911         HAVE_DECL_TRUNCF.
30912         * doc/functions/truncf.texi: Mention the 'truncf' module.
30913
30914 2007-10-03  Bruno Haible  <bruno@clisp.org>
30915
30916         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30917         augmentation also for tests modules.
30918         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30919         * modules/atexit-tests (Makefile.am): Likewise.
30920         * modules/binary-io-tests (Makefile.am): Likewise.
30921         * modules/c-strcase-tests (Makefile.am): Likewise.
30922         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30923         * modules/canonicalize-tests (Makefile.am): Likewise.
30924         * modules/closein-tests (Makefile.am): Likewise.
30925         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30926         * modules/freadahead-tests (Makefile.am): Likewise.
30927         * modules/fseek-tests (Makefile.am): Likewise.
30928         * modules/fseeko-tests (Makefile.am): Likewise.
30929         * modules/ftell-tests (Makefile.am): Likewise.
30930         * modules/ftello-tests (Makefile.am): Likewise.
30931         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30932         * modules/isnanl-tests (Makefile.am): Likewise.
30933         * modules/lseek-tests (Makefile.am): Likewise.
30934         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30935         * modules/mbscasestr-tests (Makefile.am): Likewise.
30936         * modules/mbschr-tests (Makefile.am): Likewise.
30937         * modules/mbscspn-tests (Makefile.am): Likewise.
30938         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30939         * modules/mbspbrk-tests (Makefile.am): Likewise.
30940         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30941         * modules/mbsrchr-tests (Makefile.am): Likewise.
30942         * modules/mbsspn-tests (Makefile.am): Likewise.
30943         * modules/mbsstr-tests (Makefile.am): Likewise.
30944         * modules/printf-posix-tests (Makefile.am): Likewise.
30945         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30946         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30947         * modules/tsearch-tests (Makefile.am): Likewise.
30948         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30949         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30950         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30951         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30952         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30953         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30954         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30955         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30956         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30957         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30958         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30959         * modules/xstrtol-tests (Makefile.am): Likewise.
30960         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30961         * modules/yesno-tests (Makefile.am): Likewise.
30962
30963 2007-10-03  Bruno Haible  <bruno@clisp.org>
30964
30965         * modules/trunc-tests: New file.
30966         * tests/test-trunc.c: New file.
30967
30968         * modules/trunc: New file.
30969         * lib/trunc.c: New file.
30970         * m4/trunc.m4: New file.
30971         * lib/math.in.h (trunc): New declaration.
30972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30973         HAVE_DECL_TRUNC.
30974         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30975         HAVE_DECL_TRUNC.
30976         * doc/functions/trunc.texi: Mention the 'trunc' module.
30977
30978 2007-10-03  Bruno Haible  <bruno@clisp.org>
30979
30980         * tests/test-fpending.c: New file, mostly copied
30981         from coreutils/lib/t-fpending.c.
30982         * modules/fpending-tests: New file.
30983
30984 2007-10-03  Bruno Haible  <bruno@clisp.org>
30985
30986         Port the stdio extensions to QNX (untested).
30987         * lib/fseterr.c (fseterr): Add support for QNX.
30988         * lib/fbufmode.c (fbufmode): Likewise.
30989         * lib/freadable.c (freadable): Likewise.
30990         * lib/fwritable.c (fwritable): Likewise.
30991         * lib/freading.c (freading): Likewise.
30992         * lib/fwriting.c (fwriting): Likewise.
30993         * lib/freadahead.c (freadahed): Likewise.
30994         * lib/fpurge.c (fpurge): Likewise.
30995         * lib/fseeko.c (rpl_fseeko): Likewise.
30996
30997 2007-10-03  Bruno Haible  <bruno@clisp.org>
30998             Jim Meyering  <jim@meyering.net>
30999             Eric Blake  <ebb9@byu.net>
31000
31001         * doc/relocatable.texi: Use @command instead of @program.
31002
31003 2007-10-02  Jim Meyering  <jim@meyering.net>
31004
31005         Perform one more "_.h" -> ".in.h" substitution.
31006         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31007         instead of unistd_.h here, too.
31008
31009 2007-10-01  Bruno Haible  <bruno@clisp.org>
31010
31011         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31012         Needed for the alloca-opt module.
31013
31014 2007-09-30  Bruno Haible  <bruno@clisp.org>
31015
31016         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31017         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31018         alloca_.h.
31019         * lib/argz.in.h: Renamed from lib/argz_.h.
31020         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31021         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31022         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31023         byteswap_.h.
31024         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31025         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31026         dirent_.h.
31027         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31028         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31029         fcntl_.h.
31030         * lib/float.in.h: Renamed from lib/float_.h.
31031         * modules/float (Files, Makefile.am): Use float.in.h instead of
31032         float_.h.
31033         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31034         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31035         fnmatch_.h.
31036         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31037         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31038         getopt_.h.
31039         * lib/glob.in.h: Renamed from lib/glob_.h.
31040         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31041         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31042         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31043         iconv_.h.
31044         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31045         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31046         inttypes_.h.
31047         * lib/locale.in.h: Renamed from lib/locale_.h.
31048         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31049         locale_.h.
31050         * lib/math.in.h: Renamed from lib/math_.h.
31051         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31052         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31053         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31054         of netinet_in_.h. Add dependency.
31055         * lib/poll.in.h: Renamed from lib/poll_.h.
31056         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31057         * lib/search.in.h: Renamed from lib/search_.h.
31058         * modules/search (Files, Makefile.am): Use search.in.h instead of
31059         search_.h.
31060         * lib/signal.in.h: Renamed from lib/signal_.h.
31061         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31062         _signal.h.
31063         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31064         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31065         stdbool_.h.
31066         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31067         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31068         stdint_.h.
31069         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31070         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31071         stdio_.h.
31072         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31073         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31074         stdlib_.h.
31075         * lib/string.in.h: Renamed from lib/string_.h.
31076         * modules/string (Files, Makefile.am): Use string.in.h instead of
31077         string_.h.
31078         * doc/gnulib-tool.texi (Initial import): Update.
31079         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31080         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31081         of sys_select_.h. Add dependency.
31082         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31083         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31084         of sys_socket_.h.
31085         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31086         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31087         sys_stat_.h.
31088         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31089         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31090         sys_time_.h.
31091         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31092         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31093         sysexits_.h.
31094         * lib/time.in.h: Renamed from lib/time_.h.
31095         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31096         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31097         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31098         unistd_.h.
31099         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31100         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31101         wchar_.h.
31102         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31103         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31104         wctype_.h.
31105         * build-aux/bootstrap (slurp): Update.
31106         * lib/.cppi-disable: Update.
31107
31108 2007-09-30  Bruno Haible  <bruno@clisp.org>
31109
31110         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31111         Needed on BeOS.
31112
31113 2007-09-30  Bruno Haible  <bruno@clisp.org>
31114
31115         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31116
31117 2007-09-29  Bruno Haible  <bruno@clisp.org>
31118
31119         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31120
31121 2007-09-29  Bruno Haible  <bruno@clisp.org>
31122
31123         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31124         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31125         * build-aux/install-reloc: Compile also areadlink.c.
31126         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31127
31128 2007-09-29  Bruno Haible  <bruno@clisp.org>
31129
31130         * gnulib-tool (func_emit_initmacro_done): Indentation.
31131
31132 2007-09-29  Bruno Haible  <bruno@clisp.org>
31133
31134         * README: Add CVS checkout update instructions.
31135         Info from Bob Proulx <bob@proulx.com>.
31136
31137 2007-09-28  Eric Blake  <ebb9@byu.net>
31138
31139         Provide move-if-change.
31140         * build-aux/move-if-change: New file, based on best practice
31141         rather than any canonical upstream location.
31142
31143 2007-09-28  Jim Meyering  <jim@meyering.net>
31144
31145         Fix canonicalize loop-detection corner case.
31146         Do not attempt to stat the symlink values stored via seen_triple.
31147         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31148         on linux-2.6.18, (but not 2.6.22).
31149         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31150         triple_compare.  The former compares dev,ino,filename, while the latter
31151         would actually stat dirname(filename) when dev and ino were equal.
31152         * lib/hash-triple.c: Install <string.h>.
31153         (STREQ): Define.
31154         (triple_compare_ino_str): New function.
31155         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31156
31157 2007-09-28  Eric Blake  <ebb9@byu.net>
31158
31159         Enforce that AC_REPLACE_FUNCS files exist.
31160         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31161         override check for typos.
31162
31163         Fix test-closein on Solaris 10.
31164         * tests/test-closein.c (main): Don't assume stdin can be inherited
31165         closed on all systems.
31166         * tests/test-closein.sh: Likewise.
31167         Reported by Piotr Tarnowski.
31168
31169 2007-09-28  Jim Meyering  <jim@meyering.net>
31170
31171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31172
31173 2007-09-27  Jim Meyering  <jim@meyering.net>
31174
31175         canonicalize: Avoid a false-positive cycle failure.
31176         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31177         Sort.  Remove cycle-check.
31178         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31179         not cycle-check.h.
31180         (seen_triple): New function.
31181         (canonicalize_filename_mode): Use it instead of cycle-check.
31182         * tests/test-canonicalize.c: Add a test for this bug.
31183         * tests/test-canonicalize.sh: Set up and run the test.
31184
31185         New module, file-set, from coreutils.
31186         * modules/file-set: Define it.
31187         * lib/file-set.c, lib/file-set.h: Implement.
31188
31189         New module, hash-triple, from coreutils.
31190         * modules/hash-triple: Define it.
31191         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31192
31193 2007-09-25  Eric Blake  <ebb9@byu.net>
31194
31195         Fix strerror on Interix.
31196         * lib/string_.h (strerror): Declare replacement.
31197         * doc/functions/strerror.texi (strerror): Document the Interix
31198         shortcoming.
31199         * modules/string (Makefile.am): Support new hooks.
31200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31201         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31202         gl_FUNC_STRERROR_SEPARATE.
31203         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31204         * lib/strerror.c (rpl_strerror): Provide replacement.
31205         * modules/strerror (Depends-on): Add string.
31206         (configure.ac): Detect use of module.
31207         * tests/test-strerror.c: New file.
31208         * modules/strerror-tests: New test module.
31209         * modules/argp (Depends-on): Add strerror.
31210         * modules/error (Depends-on): Likewise.
31211         Reported by Martin Koeppe.
31212
31213 2007-09-24  Bruno Haible  <bruno@clisp.org>
31214
31215         * README: Update git instructions.
31216
31217 2007-09-24  Eric Blake  <ebb9@byu.net>
31218
31219         Revert fpending breakage from 2007-09-08.
31220         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31221         __fpending.c.
31222
31223 2007-09-24  Jim Meyering  <jim@meyering.net>
31224
31225         filenamecat.c: Add a test.
31226         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31227         showing how the function works when DIR is the empty string.
31228
31229 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31230
31231         * tests/test-canonicalize.sh: Turn on executable bit.
31232
31233 2007-09-19  Eric Blake  <ebb9@byu.net>
31234
31235         * README: Update CVS instructions.
31236
31237 2007-09-18  Bruno Haible  <bruno@clisp.org>
31238
31239         * modules/areadlink: New file.
31240         * lib/areadlink.h (areadlink): New declaration.
31241         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31242
31243 2007-09-17  Jim Meyering  <jim@meyering.net>
31244
31245         * lib/savewd.c (ESTALE) [!defined]: Define.
31246         Reported to be required on Interix by Martin Koeppe.
31247
31248 2007-09-17  Bruno Haible  <bruno@clisp.org>
31249
31250         * gnulib-tool (func_version): Use $version.
31251
31252 2007-09-16  Bruno Haible  <bruno@clisp.org>
31253
31254         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31255         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31256         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31257         Reported by Greg Schafer <gschafer@zip.com.au>.
31258
31259 2007-09-15  Bruno Haible  <bruno@clisp.org>
31260
31261         * gnulib-tool (sed): Try a little harder to make bash understand the
31262         alias.
31263         Reported by Bruce Korb <bruce.korb@gmail.com>.
31264
31265 2007-09-13  Eric Blake  <ebb9@byu.net>
31266
31267         * ChangeLog: Remove conflict markers.
31268
31269 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31270
31271         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31272         Reported by Bruno Haible <bruno@clisp.org>.
31273
31274 2007-09-12  Bruno Haible  <bruno@clisp.org>
31275
31276         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31277         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31278         is not defined.
31279
31280 2007-09-12  Eric Blake  <ebb9@byu.net>
31281
31282         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31283         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31284         Autoconf definition.
31285         * modules/euidaccess (Depends-on): Add extensions, for
31286         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31287         * modules/fnmatch (Depends-on): Likewise.
31288         * modules/getaddrinfo (Depends-on): Likewise.
31289         * modules/getdelim (Depends-on): Likewise.
31290         * modules/getline (Depends-on): Likewise.
31291         * modules/getsubopt (Depends-on): Likewise.
31292         * modules/gettext (Depends-on): Likewise.
31293         * modules/group-member (Depends-on): Likewise.
31294         * modules/mbchar (Depends-on): Likewise.
31295         * modules/memmem (Depends-on): Likewise.
31296         * modules/mempcpy (Depends-on): Likewise.
31297         * modules/memrchr (Depends-on): Likewise.
31298         * modules/pagealign_alloc (Depends-on): Likewise.
31299         * modules/readutmp (Depends-on): Likewise.
31300         * modules/stpcpy (Depends-on): Likewise.
31301         * modules/stpncpy (Depends-on): Likewise.
31302         * modules/strchrnul (Depends-on): Likewise.
31303         * modules/strndup (Depends-on): Likewise.
31304         * modules/strsep (Depends-on): Likewise.
31305         * modules/strverscmp (Depends-on): Likewise.
31306         * modules/vasprintf (Depends-on): Likewise.
31307         * modules/wcwidth (Depends-on): Likewise.
31308         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31309         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31310         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31312         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31313         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31314         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31315         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31316         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31317         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31319         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31321         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31322         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31323         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31324         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31325         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31327         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31328         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31329         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31330         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31331         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31332         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31334         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31335         so that lock.m4 can be used in gettext without extensions module.
31336
31337 2007-09-11  Bruno Haible  <bruno@clisp.org>
31338
31339         * m4/isc-posix.m4: Remove file.
31340         Suggested by Eric Blake.
31341
31342 2007-09-11  Eric Blake  <ebb9@byu.net>
31343
31344         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31345
31346 2007-09-10  Bruno Haible  <bruno@clisp.org>
31347
31348         * posix-modules: Fix typo in error message.
31349         Reported by Matt <mkraai@beckman.com>.
31350
31351 2007-09-09  Bruno Haible  <bruno@clisp.org>
31352
31353         * doc/functions/getdelim.texi: Update list of platforms lacking the
31354         function.
31355         * doc/functions/getline.texi: Likewise.
31356
31357 2007-09-09  Jim Meyering  <jim@meyering.net>
31358
31359         * lib/hash.c (hash_initialize): Detect calloc failure.
31360         Reported by Bruno Haible.
31361
31362 2007-09-09  Bruno Haible  <bruno@clisp.org>
31363
31364         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31365         malloc or realloc fails.
31366
31367 2007-09-09  Bruno Haible  <bruno@clisp.org>
31368
31369         * modules/getcwd (Depends-on): Add malloc-posix.
31370         * modules/glob (Depends-on): Likewise.
31371         * modules/putenv (Depends-on): Likewise.
31372         * modules/strdup (Depends-on): Likewise.
31373         * modules/getdelim (Depends-on): Add realloc-posix.
31374         * modules/read-file (Depends-on): Likewise.
31375
31376 2007-09-09  Bruno Haible  <bruno@clisp.org>
31377
31378         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31379         (gl_FUNC_MALLOC_POSIX): Require it.
31380         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31381         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31382         * modules/realloc (Files): Add m4/malloc.m4.
31383         * modules/calloc (Files): Likewise.
31384
31385 2007-09-09  Bruno Haible  <bruno@clisp.org>
31386
31387         * modules/malloc-posix: New file.
31388         * modules/malloc (Depends-on): Add malloc-posix.
31389         * lib/malloc.c: Include errno.h.
31390         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31391         and a POSIX-compatible malloc into a single function. Set ENOMEM
31392         when returning NULL.
31393         * m4/malloc.m4: New file.
31394         * doc/functions/malloc.texi: Mention the malloc-posix module.
31395         * lib/stdlib_.h (malloc): New declaration.
31396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31397         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31398         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31399         and HAVE_MALLOC_POSIX.
31400
31401 2007-09-09  Bruno Haible  <bruno@clisp.org>
31402
31403         * modules/realloc-posix: New file.
31404         * modules/realloc (Depends-on): Add realloc-posix.
31405         * lib/realloc.c: Include errno.h.
31406         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31407         and a POSIX-compatible realloc into a single function. Set ENOMEM
31408         when returning NULL.
31409         * m4/realloc.m4: New file.
31410         * doc/functions/realloc.texi: Mention the realloc-posix module.
31411         * lib/stdlib_.h (realloc): New declaration.
31412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31413         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31414         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31415         and HAVE_REALLOC_POSIX.
31416
31417 2007-09-09  Bruno Haible  <bruno@clisp.org>
31418
31419         * modules/calloc-posix: New file.
31420         * modules/calloc (Depends-on): Add calloc-posix.
31421         * lib/calloc.c: Include errno.h.
31422         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31423         and a POSIX-compatible calloc into a single function. Set ENOMEM
31424         when returning NULL.
31425         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31426         * doc/functions/calloc.texi: Mention the calloc-posix module.
31427         * lib/stdlib_.h (calloc): New declaration.
31428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31429         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31430         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31431         and HAVE_CALLOC_POSIX.
31432
31433 2007-09-09  Bruno Haible  <bruno@clisp.org>
31434
31435         Allow for modules to show an arbitrary notice.
31436         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31437         * gnulib-tool: New option --extract-notice.
31438         (func_usage): Document it.
31439         (sed_extract_prog): Update.
31440         (func_get_notice): New function.
31441         (func_modules_notice): New function.
31442         (func_import, func_create_testdir): Invoke it.
31443         Suggested by Jim Meyering.
31444
31445 2007-09-09  Bruno Haible  <bruno@clisp.org>
31446
31447         * gnulib-tool: New options --verbose, --quiet.
31448         (func_usage): Document them.
31449         (verbose): New variable.
31450         (func_execute_command): New function.
31451         (func_import): Don't show the module list and the file list if
31452         $verbose < 0.
31453         (func_create_testdir): Likewise. Use func_execute_command.
31454         (func_create_megatestdir): Use func_execute_command.
31455
31456 2007-09-08  Bruno Haible  <bruno@clisp.org>
31457
31458         * gnulib-tool (func_import): Prefer rsync over wget when available,
31459         for fetching the PO files.
31460
31461 2007-09-08  Bruno Haible  <bruno@clisp.org>
31462
31463         * posix-modules: New file. Portions copied from gnulib-tool.
31464         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31465
31466 2007-09-08  Jim Meyering  <jim@meyering.net>
31467
31468         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31469         * lib/fpending.h: Rename from __fpending.h.
31470         * lib/fpending.c: Rename from __fpending.c.
31471         Include "fpending.h", not "__fpending.h".
31472         * lib/__fpending.h, lib/__fpending.c: Remove files.
31473         * modules/fpending (Files): Reflect new file names.
31474         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31475
31476 2007-09-08  Bruno Haible  <bruno@clisp.org>
31477
31478         * m4/inttypes-h.m4: Remove stub file.
31479
31480 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31481
31482         * doc/headers/stdint.texi: Discuss #include_next issue.
31483
31484 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31485
31486         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31487
31488 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31489
31490         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31491         in variable name.
31492
31493 2007-09-03  Jim Meyering  <jim@meyering.net>
31494
31495         New module: git-version-gen.
31496         * modules/git-version-gen: New file.
31497
31498         Import changes from coreutils for bootstrap script.
31499
31500         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31501
31502         bootstrap: uses rsync to download the .po files
31503         * build-aux/bootstrap (po_download_command_format): New global.
31504         (download_po_files): Use rsync.
31505         (update_po_files): Don't remove .po files after download,
31506         so future rsync runs can take advantage of the copies.
31507
31508         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31509
31510         Solve the unnecessary-.po-file-regeneration problem once and for all.
31511         * build-aux/bootstrap (download_po_files): New function, renamed from
31512         get_translations.  Now, downloads, but doesn't update LINGUAS.
31513         (update_po_files): New function.
31514
31515         bootstrap: Ignore more.
31516         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31517         uniwidth to e.g., lib/.gitignore.
31518         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31519
31520         * build-aux/bootstrap: New setting: vc_ignore.
31521         (insert_sorted_if_absent): Create $file if absent.
31522         Adapt to new, possibly empty, list: $vc_ignore.
31523
31524         bootstrap: generate more ignorable names
31525         * build-aux/bootstrap (slurp): When generating ignorable names,
31526         also map .sin to .sed, .gperf to .c, and .y to .c.
31527
31528 2007-09-03  Jim Meyering  <jim@meyering.net>
31529
31530         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31531         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31532
31533 2007-09-02  Bruno Haible  <bruno@clisp.org>
31534
31535         Fix mis-recognition of 'mcs' on QNX 6.
31536         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31537         output contains the string "Mono".
31538         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31539         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31540
31541 2007-09-01  Bruno Haible  <bruno@clisp.org>
31542
31543         Fix collision between uniwidth/* and linebreak modules.
31544         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31545         u32_width): Remove declarations.
31546         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31547         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31548         streq3, streq2, streq1, streq0): Remove functions.
31549         (STREQ): Remove macro.
31550         (is_cjk_encoding): Remove function.
31551         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31552         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31553         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31554         * NEWS: Document the change.
31555
31556 2007-09-01  Bruno Haible  <bruno@clisp.org>
31557
31558         * lib/streq.h: Add double-inclusion guard.
31559
31560 2007-09-01  Karl Berry  <karl@gnu.org>
31561
31562         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31563
31564 2007-08-28  Jim Meyering  <jim@meyering.net>
31565
31566         Rename mreadlink_with_size to areadlink_with_size.
31567         * NEWS: Document the change.
31568         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31569         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31570         * lib/mreadlink.h: Rename this to...
31571         * lib/areadlink.h: ...this.
31572         * modules/mreadlink-with-size: Rename this to...
31573         * modules/areadlink-with-size: ...this.
31574         * lib/canonicalize.c: Reflect the renaming.
31575         * modules/canonicalize: Likewise.
31576
31577 2007-08-26  Bruno Haible  <bruno@clisp.org>
31578
31579         * gnulib-tool (func_import): When deciding which files to remove,
31580         consider also dangling symbolic links.
31581         Reported by Eric Blake.
31582
31583 2007-08-26  Bruno Haible  <bruno@clisp.org>
31584
31585         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31586
31587 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31588
31589         * lib/readline.c: Don't include getline.h, the prototype is now
31590         found in stdio.h.
31591
31592 2007-08-23  Jim Meyering  <jim@meyering.net>
31593
31594         Getdelim touchup.
31595         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31596         around the funlockfile call, since funlockfile never sets errno.
31597         Don't set errno upon failed realloc.
31598
31599 2007-08-22  Eric Blake  <ebb9@byu.net>
31600
31601         Getline touchups.
31602         * lib/getdelim.c (getdelim): Revert regression that required *n to
31603         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31605         getdelim, rather than whether implementation is missing.
31606         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31607         * lib/stdio_.h (getline): Also declare if replacement is
31608         required.
31609         * doc/functions/getdelim.texi: New file.
31610         * doc/functions/getline.texi: Likewise.
31611         * doc/gnulib.texi (Function Substitutes): Add new files.
31612         Reported by Bruno Haible.
31613
31614 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31615
31616         * users.txt: Add Guile.
31617
31618 2007-08-22  Eric Blake  <ebb9@byu.net>
31619
31620         * tests/test-getdelim.c (main): Use remove, not unlink.
31621         * tests/test-getline.c (main): Likewise.
31622
31623         Move getline and getdelim into stdio.h, per POSIX 200x.
31624         * modules/getline (Files): Remove getline.h.
31625         (Depends-on): Add stdio.
31626         (configure.ac): Add module indicator.
31627         * modules/getdelim (Files): Remove getdelim.h.
31628         (Depends-on): Add stdio.
31629         (configure.ac): Add module indicator.
31630         * modules/stdio (Makefile.am): Work with new indicators.
31631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31632         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31633         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31634         * lib/getdelim.h: Delete.
31635         * lib/getline.h: Delete.
31636         * lib/stdio_.h (getdelim, getline): Declare.
31637         * modules/getdelim-tests: New module.
31638         * modules/getline-tests: Likewise.
31639         * tests/test-getdelim.c: New file.
31640         * tests/test-getline.c: Likewise.
31641         * NEWS: Document the change.
31642         * lib/getline.c: Update choice of header.
31643         * lib/csharpcomp.c: Likewise.
31644         * lib/getpass.c: Likewise.
31645         * lib/javacomp.c: Likewise.
31646         * lib/javaversion.c: Likewise.
31647         * lib/yesno.c: Likewise.
31648         * lib/getdelim.c: Likewise.
31649         (getdelim): Set errno on failure, and avoid memory leak.
31650
31651 2007-08-19  Bruno Haible  <bruno@clisp.org>
31652
31653         * modules/closein (Depends-on): Add freadahead.
31654         * lib/closein.c: Include freadahead.h.
31655         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31656         is zero.
31657
31658 2007-08-19  Bruno Haible  <bruno@clisp.org>
31659
31660         * modules/freadahead-tests: New file.
31661         * tests/test-freadahead.sh: New file.
31662         * tests/test-freadahead.c: New file.
31663
31664         * modules/freadahead: New file.
31665         * lib/freadahead.h: New file.
31666         * lib/freadahead.c: New file.
31667         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31668         fbufmode, fpurge, freadable, fwritable.
31669
31670 2007-08-19  Eric Blake  <ebb9@byu.net>
31671
31672         Test yesno in combination with closein.
31673         * lib/yesno.c (yesno): Document use of stdin.
31674         * modules/yesno-tests (Files): New module.
31675         * tests/test-yesno.c (main): New file.
31676         * tests/test-yesno.sh: Likewise.
31677
31678 2007-08-19  Bruno Haible  <bruno@clisp.org>
31679
31680         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31681         * lib/fseeko.c (rpl_fseeko): Likewise.
31682         * lib/fseterr.c (fseterr): Likewise.
31683
31684 2007-08-19  Bruno Haible  <bruno@clisp.org>
31685
31686         * tests/test-lseek.c (main): Disable a test for BeOS.
31687         * doc/functions/lseek.texi: Document the BeOS bug.
31688
31689 2007-08-19  Bruno Haible  <bruno@clisp.org>
31690             Eric Blake  <ebb9@byu.net>
31691
31692         * lib/lseek.c: Include <sys/stat.h>.
31693         (rpl_lseek): Add workaround code also for Unix platforms.
31694         Needed for BeOS.
31695         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31696         * doc/functions/lseek.texi: Document BeOS definiency.
31697
31698 2007-08-18  Bruno Haible  <bruno@clisp.org>
31699
31700         * modules/fstrcmp-tests: New file.
31701         * tests/test-fstrcmp.c: New file.
31702
31703 2007-08-18  Bruno Haible  <bruno@clisp.org>
31704
31705         * modules/fstrcmp: New file, from GNU gettext with modifications.
31706         * lib/fstrcmp.h: New file, from GNU gettext.
31707         * lib/fstrcmp.c: New file, from GNU gettext.
31708         * MODULES.html.sh (String handling): Add fstrcmp.
31709
31710 2007-08-18  Bruno Haible  <bruno@clisp.org>
31711
31712         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31713         'bool'.
31714         (diag, compareseq): Remove const from the ctxt argument.
31715         (USE_HEURISTIC): Undefine at the end.
31716
31717 2007-08-18  Jim Meyering  <jim@meyering.net>
31718
31719         New file: lib/idcache.h
31720         * NEWS: Mention the addition.
31721         * modules/idcache (Files): Add lib/idcache.h
31722         * lib/idcache.c: Include "idcache.h".
31723         Don't include <sys/types.h>.
31724         Add a FIXME comment.
31725         Move file-scoped "static" declarations to the top.
31726         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31727
31728 2007-08-17  Bruno Haible  <bruno@clisp.org>
31729         and Paul Eggert  <eggert@cs.ucla.edu>
31730
31731         * MODULES.html.sh: Add diffseq.
31732         * modules/diffseq: New file.
31733         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31734         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31735
31736 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31737
31738         Import changes from coreutils for bootstrap script.
31739
31740         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31741
31742         * build-aux/bootstrap (slurp): Work even in environments where
31743         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31744         current code does not slurp files whose names start with ".", and
31745         this looks like it might be a troublesome area.
31746
31747         2007-07-11  Jim Meyering  <jim@meyering.net>
31748
31749         If there's a GPL vN copyright comment, require that N == 3.
31750
31751         2007-07-08  Jim Meyering  <jim@meyering.net>
31752
31753         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31754         * build-aux/bootstrap (mam_template): Move definition out of loop.
31755
31756         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31757
31758         * build-aux/bootstrap (symlink_to_dir): Rename function from
31759         symlink_to_gnulib.  Add a directory parameter.  Update all
31760         callers.
31761         (cp_mark_as_generated): Also check for -- and link to -- files in
31762         gl/.
31763
31764         2007-07-08  Jim Meyering  <jim@meyering.net>
31765
31766         Adapt to deeper hierarchy in gnulib.
31767         * build-aux/bootstrap (symlink_to_dir): If the destination
31768         directory doesn't exist, create it. This is required at least for
31769         "lib/uniwidth/cjk.h".
31770
31771         2007-05-15  Jim Meyering  <jim@meyering.net>
31772
31773         * build-aux/bootstrap: Now that generated Makefile.am files
31774         are no longer under version control, they must be created at
31775         bootstrap time.
31776
31777 2007-08-14  Ben Pfaff  <blp@gnu.org>
31778
31779         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31780
31781 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31782
31783         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31784         given the changes below.
31785         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31786         even on hosts that have padding bits beyond the supported 64.
31787
31788 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31789
31790         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31791         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31792         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31793         depends on it.
31794         (xstrtol_error): Remove.
31795         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31796         but with a different signature.
31797         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31798         * lib/xstrtol-error.c: Include exitfail.h.
31799         (xstrtol_fatal): New function, with a different signature from the
31800         old xstrtol_error, so that the caller need not worry about passing
31801         in an exit status, or about storage management of the option argument.
31802         (xstrtol_error): Now a static function.  Redo signature to
31803         implement xstrtol_fatal.  Output the correct number of hyphens in
31804         front of the option so that the caller need not worry about
31805         storage management.
31806         (N_): New macro.
31807         (_): Remove; not used now.
31808         * modules/xstrtol: Depend on getopt.
31809         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31810         of old STRTOL_FATAL_ERROR macro.
31811         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31812         of test program.
31813         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31814         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31815
31816 2007-08-08  Eric Blake  <ebb9@byu.net>
31817
31818         * lib/xstrtol-error.c: Add missing include.
31819
31820         Move xstrtol messages into gnulib domain, when --pobase is used.
31821         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31822         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31823         * modules/xstrtol (Files): Distribute new file.
31824         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31825         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31826         * tests/test-xstrtol.c: ...into new file.
31827         * tests/test-xstrtoul.c: Also test xstrtoul.
31828         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31829         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31830         * tests/test-xstrtol.sh: Drive the tests.
31831         * tests/test-xstrtoimax.sh: Likewise.
31832         * tests/test-xstrtoumax.sh: Likewise.
31833         * modules/xstrtol-tests: New module.
31834         * modules/xstrtoimax-tests: Likewise.
31835         * modules/xstrtoumax-tests: Likewise.
31836
31837 2007-08-08  Jim Meyering  <jim@meyering.net>
31838
31839         New function: mfile_name_concat.
31840         * lib/filenamecat.c (mfile_name_concat): New function, just like
31841         file_name_concat, but return NULL upon failure rather than exiting
31842         with a diagnostic.
31843         * lib/filenamecat.h: Declare it.
31844
31845 2007-08-07  Bruno Haible  <bruno@clisp.org>
31846
31847         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31848         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31849         warning from gcc.
31850         Reported by Eric Blake.
31851
31852 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31853
31854         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31855         * modules/crypto/arcfour (License): Likewise.
31856         * modules/crypto/des-tests (License): Likewise.
31857         * modules/crypto/gc-arctwo-tests (License): Likewise.
31858         * modules/crypto/gc-des-tests (License): Likewise.
31859         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31860         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31861         * modules/crypto/gc-md2-tests (License): Likewise.
31862         * modules/crypto/gc-md4-tests (License): Likewise.
31863         * modules/crypto/gc-md5-tests (License): Likewise.
31864         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31865         * modules/crypto/gc-rijndael-tests (License): Likewise.
31866         * modules/crypto/gc-sha1-tests (License): Likewise.
31867         * modules/crypto/gc-tests (License): Likewise.
31868         * modules/crypto/hmac-md5 (License): Likewise.
31869         * modules/crypto/hmac-sha1 (License): Likewise.
31870         * modules/crypto/md2-tests (License): Likewise.
31871         * modules/crypto/md4-tests (License): Likewise.
31872         * modules/crypto/md5 (License): Likewise.
31873         * modules/crypto/rijndael (License): Likewise.
31874         * modules/crypto/sha1 (License): Likewise.
31875         * modules/memxor (License): Likewise.
31876
31877 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31878         and Bruno Haible  <bruno@clisp.org>
31879
31880         * NEWS: Describe interface changes to human, xstrtol.
31881         * lib/human.h: Include <xstrtol.h>.
31882         (human_options): Return enum strtol_error, not int.  Remove
31883         bool arg; take int * instead.
31884         * lib/human.c: Don't include "gettext.h".
31885         (_): Remove; no longer used.
31886         Don't include <xstrtol.h>, since human.h does it.
31887         (human_options): Adjust to abovementioned interface changes.
31888         Do not report error to stderr; that's now the caller's
31889         responsibility.
31890         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31891         interface change.
31892         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31893         Str, Argument_type_string.  All uses changed.  Put " argument"
31894         in diagnostics to make them clearer.  Change wording of suffix
31895         message for clarity.
31896         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31897         Argument_type_string.
31898         (STRTOL_FATAL_WARN): Remove; no longer used.
31899         * modules/human (Depends-on): Remove gettext-h.
31900
31901 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31902
31903         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31904
31905 2007-07-31  Bruno Haible  <bruno@clisp.org>
31906
31907         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31908         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31909         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31910
31911 2007-07-31  Bruno Haible  <bruno@clisp.org>
31912
31913         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31914         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31915
31916 2007-07-30  Bruno Haible  <bruno@clisp.org>
31917
31918         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31919         * modules/c-ctype (License): Likewise.
31920         * modules/c-strcase (License): Likewise.
31921         * modules/check-version (License): Likewise.
31922         * modules/iconv (License): Likewise.
31923         * modules/iconv_open (License): Likewise.
31924         * modules/read-file (License): Likewise.
31925         * modules/striconv (License): Likewise.
31926         * modules/strverscmp (License): Likewise.
31927         * modules/vasprintf (License): Likewise.
31928         * modules/crypto/des (License): Likewise.
31929         * modules/crypto/gc (License): Likewise.
31930         * modules/crypto/gc-arcfour (License): Likewise.
31931         * modules/crypto/gc-arctwo (License): Likewise.
31932         * modules/crypto/gc-des (License): Likewise.
31933         * modules/crypto/gc-hmac-md5 (License): Likewise.
31934         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31935         * modules/crypto/gc-md2 (License): Likewise.
31936         * modules/crypto/gc-md4 (License): Likewise.
31937         * modules/crypto/gc-md5 (License): Likewise.
31938         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31939         * modules/crypto/gc-random (License): Likewise.
31940         * modules/crypto/gc-rijndael (License): Likewise.
31941         * modules/crypto/gc-sha1 (License): Likewise.
31942         * modules/crypto/md2 (License): Likewise.
31943         * modules/crypto/md4 (License): Likewise.
31944
31945 2007-07-30  Jim Meyering  <jim@meyering.net>
31946
31947         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31948         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31949         it has valid stat data.  This bug would cause du not to count the
31950         sizes of inaccessible directories.
31951         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31952         in <http://bugzilla.redhat.com/250077>.
31953
31954 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31955             Bruno Haible  <bruno@clisp.org>
31956
31957         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31958         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31959         #include_next, gives a diagnostic about it, but reports no error in
31960         the exit code.
31961         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31962
31963 2007-07-24  Ben Pfaff  <blp@gnu.org>
31964
31965         Improve name: "count-one-bits" is better than "popcount".
31966         * MODULES.html.sh: Update name.
31967         * lib/popcount.h: Renamed lib/count-one-bits.h.
31968         (popcount): Renamed count_one_bits.
31969         (popcountl): Renamed count_one_bits_l.
31970         (popcountll): Renamed count_one_bits_ll.
31971         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31972         * modules/popcount: Renamed module/count-one-bits.
31973         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31974         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31975
31976 2007-07-23  Ben Pfaff  <blp@gnu.org>
31977
31978         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31979         better code generation, and add U to large constants to avoid
31980         warnings, in non-GCC case.
31981         Suggested by Bruno Haible.
31982
31983 2007-07-23  Ben Pfaff  <blp@gnu.org>
31984
31985         * lib/popcount.h: Use verify_true instead of if...abort.
31986         * modules/popcount: Depend on verify module.
31987         Suggested by Jim Meyering.
31988
31989 2007-07-23  Bruno Haible  <bruno@clisp.org>
31990
31991         * gnulib-tool (func_import): Create a .cvsignore file also when the
31992         directory is not yet in CVS but the toplevel directory is. When
31993         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31994         Reported by Karl Berry.
31995
31996 2007-07-22  Ben Pfaff  <blp@gnu.org>
31997
31998         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31999         case.
32000         Suggested by Eric Blake.
32001
32002 2007-07-22  Ben Pfaff  <blp@gnu.org>
32003
32004         New module: popcount.
32005         * MODULES.html.sh: Add popcount.
32006         * modules/popcount: New file.
32007         * modules/popcount-tests: New file.
32008         * tests/test-popcount.c: New file.
32009         * lib/popcount.h: New file.
32010         * m4/popcount.m4: New file.
32011
32012 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32013
32014         * build-aux/announce-gen: Update to GPLv3.
32015
32016         * build-aux/config.guess: Update from config.
32017
32018 2007-07-21  Bruno Haible  <bruno@clisp.org>
32019
32020         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32021         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32022
32023 2007-07-20  Jim Meyering  <jim@meyering.net>
32024
32025         * check-module: Diagnose a self-dependency.
32026
32027 2007-07-19  Bruno Haible  <bruno@clisp.org>
32028
32029         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32030         empty.
32031         Reported by Eric Blake.
32032
32033 2007-07-18  Bruno Haible  <bruno@clisp.org>
32034
32035         * gnulib-tool: New options --po-base, --po-domain.
32036         (func_usage): Document them.
32037         (pobase, po_domain): New variables.
32038         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32039         DEFAULT_TEXT_DOMAIN.
32040         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32041         (func_import): Consider pobase and po_domain. Create a po/ directory.
32042         (func_create_testdir): Set pobase and po_domain to empty.
32043         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32044         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32045
32046 2007-07-18  Bruno Haible  <bruno@clisp.org>
32047
32048         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32049         EXTRA_DIST augmentation for files in build-aux/.
32050
32051 2007-07-16  Bruno Haible  <bruno@clisp.org>
32052
32053         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32054         * modules/getdelim (License): Likewise.
32055
32056 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32057
32058         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32059         * modules/d-type (License): Likewise.
32060         * modules/extensions (License): Likewise.
32061         * modules/fnmatch (License): Likewise.
32062         * modules/fseeko (License): Likewise.
32063         * modules/getaddrinfo (License): Likewise.
32064         * modules/getline (License): Likewise.
32065         * modules/getlogin_r (License): Likewise.
32066         * modules/getpass (License): Likewise.
32067         * modules/gettimeofday (License): Likewise.
32068         * modules/glob (License): Likewise.
32069         * modules/inet_ntop (License): Likewise.
32070         * modules/malloc (License): Likewise.
32071         * modules/malloca (License): Likewise.
32072         * modules/memmem (License): Likewise.
32073         * modules/mempcpy (License): Likewise.
32074         * modules/memset (License): Likewise.
32075         * modules/minmax (License): Likewise.
32076         * modules/mktime (License): Likewise.
32077         * modules/netinet_in (License): Likewise.
32078         * modules/pathmax (License): Likewise.
32079         * modules/poll (License): Likewise.
32080         * modules/regex (License): Likewise.
32081         * modules/snprintf (License): Likewise.
32082         * modules/stdbool (License): Likewise.
32083         * modules/stdint (License): Likewise.
32084         * modules/stdio (License): Likewise.
32085         * modules/strcase (License): Likewise.
32086         * modules/strcasestr (License): Likewise.
32087         * modules/strdup (License): Likewise.
32088         * modules/string (License): Likewise.
32089         * modules/strndup (License): Likewise.
32090         * modules/strnlen (License): Likewise.
32091         * modules/strpbrk (License): Likewise.
32092         * modules/strptime (License): Likewise.
32093         * modules/strsep (License): Likewise.
32094         * modules/sys_select (License): Likewise.
32095         * modules/sys_socket (License): Likewise.
32096         * modules/sys_stat (License): Likewise.
32097         * modules/sys_time (License): Likewise.
32098         * modules/time (License): Likewise.
32099         * modules/time_r (License): Likewise.
32100         * modules/timegm (License): Likewise.
32101         * modules/unistd (License): Likewise.
32102         * modules/vsnprintf (License): Likewise.
32103         * modules/wctype (License): Likewise.
32104
32105 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32106
32107         * modules/argz (License): LGPLv2+.
32108
32109 2007-07-15  Karl Berry  <karl@gnu.org>
32110
32111         * doc/gnulib.texi: revise node structure per new fdl.texi.
32112
32113 2007-07-14  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32116         the output file.
32117         * lib/uniname/uninames.h: Regenerated.
32118
32119 2007-07-14  Karl Berry  <karl@gnu.org>
32120
32121         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32122         omitting sectioning and index commands.
32123
32124 2007-07-13  Bruno Haible  <bruno@clisp.org>
32125
32126         New gnulib-tool option --more-symlinks.
32127         * gnulib-tool (func_usage): Document --more-symlinks.
32128         (do_copyrights): New variable.
32129         Recognize option --more-symlinks.
32130         (func_import): Don't add a copyright notice transform to
32131         sed_transform_lib_file if do_copyrights is empty.
32132
32133 2007-07-13  Bruno Haible  <bruno@clisp.org>
32134
32135         * lib/vasnprintf.c (decimal_point_char): Define also if
32136         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32137         && !NEED_PRINTF_DIRECTIVE_A.
32138         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32139         Gary V. Vaughan <gary@gnu.org>.
32140
32141 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32142
32143         * lib/inttypes_.h: Undo previous change, since it was fixed
32144         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32145
32146 2007-07-13  Bruno Haible  <bruno@clisp.org>
32147
32148         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32149         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32150
32151 2007-07-13  Jim Meyering  <jim@meyering.net>
32152
32153         df: Don't fail for Tru64's "file-on-file mount".
32154         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32155         so we fall through and use statfs instead.  Details here:
32156         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32157         Reported by Albert Chin.
32158
32159 2007-07-13  Bruno Haible  <bruno@clisp.org>
32160
32161         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32162         * modules/configmake (License): Likewise.
32163         * modules/gettext (License): Likewise.
32164         * modules/gettext-h (License): Likewise.
32165         * modules/include_next (License): Likewise.
32166         * modules/link-warning (License): Likewise.
32167         * modules/localcharset (License): Likewise.
32168         * modules/localename (License): Likewise.
32169         * modules/lock (License): Likewise.
32170         * modules/relocatable-lib-lgpl (License): Likewise.
32171         * modules/size_max (License): Likewise.
32172         * modules/vasnprintf (License): Likewise.
32173         * modules/wchar (License): Likewise.
32174         * modules/xsize (License): Likewise.
32175
32176 2007-07-13  Bruno Haible  <bruno@clisp.org>
32177
32178         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32179         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32180
32181 2007-07-12  Bruno Haible  <bruno@clisp.org>
32182
32183         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32184         in the modules files.
32185
32186 2007-07-11  Karl Berry  <karl@gnu.org>
32187
32188         * MODULES.html.sh (func_module): use
32189          sed -e '\|^'"${includefile}"'$|d'
32190          instead of /.../d, to avoid errors on $includefile's containing /.
32191
32192 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32193
32194         * gnulib-tool (func_import): Avoid duplication of --avoid
32195         statements
32196         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32197         names to `_' in variable names.
32198
32199 2007-07-10  Eric Blake  <ebb9@byu.net>
32200
32201         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32202         * NEWS: Document this change.
32203
32204 2007-07-08  Bruno Haible  <bruno@clisp.org>
32205
32206         Update to Unicode 5.0.
32207         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32208         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32209         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32210         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32211         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32212         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32213         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32214         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32215         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32216         U+10A3F, U+1D242..U+1D244.
32217         (nonspacing_table_ind): Update.
32218         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32219         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32220
32221 2007-07-08  Bruno Haible  <bruno@clisp.org>
32222
32223         Update to Unicode 5.0.
32224         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32225         code transform. Extend the name index field of unicode_name_to_code and
32226         unicode_code_to_name from 16 to 24 bits.
32227         * lib/uniname/uniname.c (unicode_character_name,
32228         unicode_name_character): Add the range 0x12xxx to the code transform.
32229         * lib/uniname/uninames.h: Regenerated.
32230         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32231
32232 2007-07-07  Bruno Haible  <bruno@clisp.org>
32233
32234         * modules/wcwidth-tests: New file.
32235         * tests/test-wcwidth.c: New file.
32236
32237         Work around MacOS X wcwidth() bug.
32238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32239         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32240         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32241         original wcwidth in non-UTF-8 locales.
32242         * modules/wcwidth (Depends-on): Add localcharset, streq,
32243         uniwidth/width.
32244         * doc/functions/wcwidth.texi: Update.
32245
32246 2007-07-07  Bruno Haible  <bruno@clisp.org>
32247
32248         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32249         (wcwidth): New declaration.
32250         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32251         macros.
32252         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32253         here. Prepare for creating <wchar.h> unconditionally.
32254         * modules/wchar (Depends-on): Add link-warning.
32255         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32256         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32257         * lib/wcwidth.h: Remove file.
32258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32259         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32260         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32261         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32262         (Include): Replace wcwidth.h with <wchar.h>.
32263         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32264         * lib/mbchar.h: Don't include wcwidth.h.
32265         * lib/mbswidth.c: Likewise.
32266         * NEWS: Mention the change.
32267
32268 2007-07-07  Bruno Haible  <bruno@clisp.org>
32269
32270         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32271         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32272         definition with an external declaration.
32273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32274         defined as a function. Remove AC_C_INLINE requirement.
32275         * modules/wcwidth (Files): Add lib/wcwidth.c.
32276         (Makefile.am): Remove redundant statement.
32277
32278 2007-07-07  Bruno Haible  <bruno@clisp.org>
32279
32280         * MODULES.html.sh (Unicode string functions): Add the new modules.
32281
32282         * tests/uniwidth/test-u32-strwidth.c: New file.
32283         * modules/uniwidth/u32-strwidth-tests: New file.
32284
32285         * lib/uniwidth/u32-strwidth.c: New file.
32286         * modules/uniwidth/u32-strwidth: New file.
32287
32288         * tests/uniwidth/test-u16-strwidth.c: New file.
32289         * modules/uniwidth/u16-strwidth-tests: New file.
32290
32291         * lib/uniwidth/u16-strwidth.c: New file.
32292         * modules/uniwidth/u16-strwidth: New file.
32293
32294         * tests/uniwidth/test-u8-strwidth.c: New file.
32295         * modules/uniwidth/u8-strwidth-tests: New file.
32296
32297         * lib/uniwidth/u8-strwidth.c: New file.
32298         * modules/uniwidth/u8-strwidth: New file.
32299
32300         * tests/uniwidth/test-u32-width.c: New file.
32301         * modules/uniwidth/u32-width-tests: New file.
32302
32303         * lib/uniwidth/u32-width.c: New file.
32304         * modules/uniwidth/u32-width: New file.
32305
32306         * tests/uniwidth/test-u16-width.c: New file.
32307         * modules/uniwidth/u16-width-tests: New file.
32308
32309         * lib/uniwidth/u16-width.c: New file.
32310         * modules/uniwidth/u16-width: New file.
32311
32312         * tests/uniwidth/test-u8-width.c: New file.
32313         * modules/uniwidth/u8-width-tests: New file.
32314
32315         * lib/uniwidth/u8-width.c: New file.
32316         * modules/uniwidth/u8-width: New file.
32317
32318         * tests/uniwidth/test-uc_width.c: New file.
32319         * modules/uniwidth/width-tests: New file.
32320
32321         * lib/uniwidth/width.c: New file, from GNU libiconv.
32322         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32323         * modules/uniwidth/width: New file.
32324
32325         * lib/uniwidth.h: New file, from GNU libiconv.
32326         * modules/uniwidth/base: New file.
32327
32328 2007-07-07  Bruno Haible  <bruno@clisp.org>
32329
32330         * lib/uniname.h: New file, from GNU gettext.
32331         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32332         * lib/uniname/uninames.h: New file, from GNU gettext.
32333         * lib/uniname/uniname.c: New file, from GNU gettext.
32334         * tests/uniname/test-uninames.sh: New file.
32335         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32336         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32337         * modules/uniname/base: New file.
32338         * modules/uniname/uniname: New file.
32339         * modules/uniname/uniname-tests: New file.
32340         * MODULES.html.sh (Unicode string functions): Add the new modules.
32341
32342 2007-07-06  Bruno Haible  <bruno@clisp.org>
32343
32344         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32345
32346 2007-07-06  Bruno Haible  <bruno@clisp.org>
32347
32348         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32349         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32350         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32351         include <sys/time.h>.
32352         Reported by Eric Blake.
32353
32354 2007-07-06  Eric Blake  <ebb9@byu.net>
32355
32356         Fix testing canonicalize on cygwin.
32357         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32358         Revert patch from 2007-06-19.
32359         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32360         canonicalize module is also in use.
32361         * tests/test-canonicalize.c: New file.
32362         * tests/test-canonicalize.sh: Likewise.
32363         * modules/canonicalize-tests: Likewise.
32364
32365 2007-07-06  Jim Meyering  <jim@meyering.net>
32366
32367         * lib/getugroups.c (getugroups): Detect getgrent failure.
32368         Adjust comment to reflect reality: this function may return -1.
32369
32370 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32371
32372         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32373         the new TP address.
32374         (usage): Fix typo
32375         (gnulib_mk): New variable.
32376
32377 2007-07-05  Jim Meyering  <jim@meyering.net>
32378
32379         Don't let endgrent clobber errno, no matter how improbable.
32380         * lib/getugroups.c (getugroups): Save and restore errno around
32381         endgrent call.
32382
32383         Close the group DB even when failing with 2^31 or more members.
32384         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32385
32386 2007-07-04  Jim Meyering  <jim@meyering.net>
32387
32388         * lib/getugroups.h: New file.
32389         * lib/getugroups.c: Include "getugroups.h".
32390         Remove uses of "register" keyword.
32391         Move local variable, "cp", down into scope where used.
32392         Give "username" parameter the "const" attribute.
32393         * modules/getugroups (Files): Add lib/getugroups.h
32394
32395 2007-07-04  Karl Berry  <karl@gnu.org>
32396
32397         * MODULES.html.sh (func_all_modules): Complete rename of
32398         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32399
32400 2007-07-02  Bruno Haible  <bruno@clisp.org>
32401
32402         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32403         mode, when inttypes.h comes from gnulib.
32404         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32405
32406 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32407
32408         * NEWS: Mention lgpl module name change.
32409
32410         * modules/lgpl-2.1: Renamed from lgpl.
32411
32412         * NEWS: Mention gpl module name change.
32413
32414         * modules/gpl-3.0: New file, based on gpl-2.0.
32415
32416         * modules/gpl-2.0: Renamed from gpl.
32417
32418         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32419         doc/gpl-2.0.texi.
32420
32421 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32422
32423         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32424         #define __STDC_LIMIT_MACROS temporarily while including
32425         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32426         Problem reported by Joel E. Denny in
32427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32428
32429 2007-07-01  Bruno Haible  <bruno@clisp.org>
32430
32431         * lib/unistdio.h: New file.
32432         * lib/unistdio/u-asnprintf.h: New file.
32433         * lib/unistdio/u-asprintf.h: New file.
32434         * lib/unistdio/u-printf-args.c: New file.
32435         * lib/unistdio/u-printf-args.h: New file.
32436         * lib/unistdio/u-printf-parse.h: New file.
32437         * lib/unistdio/u-snprintf.h: New file.
32438         * lib/unistdio/u-sprintf.h: New file.
32439         * lib/unistdio/u-vasprintf.h: New file.
32440         * lib/unistdio/u-vsnprintf.h: New file.
32441         * lib/unistdio/u-vsprintf.h: New file.
32442         * lib/unistdio/ulc-asnprintf.c: New file.
32443         * lib/unistdio/ulc-asprintf.c: New file.
32444         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32445         * lib/unistdio/ulc-printf-parse.c: New file.
32446         * lib/unistdio/ulc-snprintf.c: New file.
32447         * lib/unistdio/ulc-sprintf.c: New file.
32448         * lib/unistdio/ulc-vasnprintf.c: New file.
32449         * lib/unistdio/ulc-vasprintf.c: New file.
32450         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32451         * lib/unistdio/ulc-vsnprintf.c: New file.
32452         * lib/unistdio/ulc-vsprintf.c: New file.
32453         * lib/unistdio/u8-asnprintf.c: New file.
32454         * lib/unistdio/u8-asprintf.c: New file.
32455         * lib/unistdio/u8-printf-parse.c: New file.
32456         * lib/unistdio/u8-snprintf.c: New file.
32457         * lib/unistdio/u8-sprintf.c: New file.
32458         * lib/unistdio/u8-vasnprintf.c: New file.
32459         * lib/unistdio/u8-vasprintf.c: New file.
32460         * lib/unistdio/u8-vsnprintf.c: New file.
32461         * lib/unistdio/u8-vsprintf.c: New file.
32462         * lib/unistdio/u8-u8-asnprintf.c: New file.
32463         * lib/unistdio/u8-u8-asprintf.c: New file.
32464         * lib/unistdio/u8-u8-snprintf.c: New file.
32465         * lib/unistdio/u8-u8-sprintf.c: New file.
32466         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32467         * lib/unistdio/u8-u8-vasprintf.c: New file.
32468         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32469         * lib/unistdio/u8-u8-vsprintf.c: New file.
32470         * lib/unistdio/u16-asnprintf.c: New file.
32471         * lib/unistdio/u16-asprintf.c: New file.
32472         * lib/unistdio/u16-printf-parse.c: New file.
32473         * lib/unistdio/u16-snprintf.c: New file.
32474         * lib/unistdio/u16-sprintf.c: New file.
32475         * lib/unistdio/u16-vasnprintf.c: New file.
32476         * lib/unistdio/u16-vasprintf.c: New file.
32477         * lib/unistdio/u16-vsnprintf.c: New file.
32478         * lib/unistdio/u16-vsprintf.c: New file.
32479         * lib/unistdio/u16-u16-asnprintf.c: New file.
32480         * lib/unistdio/u16-u16-asprintf.c: New file.
32481         * lib/unistdio/u16-u16-snprintf.c: New file.
32482         * lib/unistdio/u16-u16-sprintf.c: New file.
32483         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32484         * lib/unistdio/u16-u16-vasprintf.c: New file.
32485         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32486         * lib/unistdio/u16-u16-vsprintf.c: New file.
32487         * lib/unistdio/u32-asnprintf.c: New file.
32488         * lib/unistdio/u32-asprintf.c: New file.
32489         * lib/unistdio/u32-printf-parse.c: New file.
32490         * lib/unistdio/u32-snprintf.c: New file.
32491         * lib/unistdio/u32-sprintf.c: New file.
32492         * lib/unistdio/u32-vasnprintf.c: New file.
32493         * lib/unistdio/u32-vasprintf.c: New file.
32494         * lib/unistdio/u32-vsnprintf.c: New file.
32495         * lib/unistdio/u32-vsprintf.c: New file.
32496         * lib/unistdio/u32-u32-asnprintf.c: New file.
32497         * lib/unistdio/u32-u32-asprintf.c: New file.
32498         * lib/unistdio/u32-u32-snprintf.c: New file.
32499         * lib/unistdio/u32-u32-sprintf.c: New file.
32500         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32501         * lib/unistdio/u32-u32-vasprintf.c: New file.
32502         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32503         * lib/unistdio/u32-u32-vsprintf.c: New file.
32504         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32505         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32506         * tests/unistdio/test-ulc-printf1.h: New file.
32507         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32508         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32509         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32510         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32511         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32512         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32513         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32514         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32515         * tests/unistdio/test-u8-asnprintf1.c: New file.
32516         * tests/unistdio/test-u8-asnprintf1.h: New file.
32517         * tests/unistdio/test-u8-printf1.h: New file.
32518         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32519         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32520         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32521         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32522         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32523         * tests/unistdio/test-u8-vasprintf1.c: New file.
32524         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32525         * tests/unistdio/test-u8-vsprintf1.c: New file.
32526         * tests/unistdio/test-u16-asnprintf1.c: New file.
32527         * tests/unistdio/test-u16-asnprintf1.h: New file.
32528         * tests/unistdio/test-u16-printf1.h: New file.
32529         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32530         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32531         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32532         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32533         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32534         * tests/unistdio/test-u16-vasprintf1.c: New file.
32535         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32536         * tests/unistdio/test-u16-vsprintf1.c: New file.
32537         * tests/unistdio/test-u32-asnprintf1.c: New file.
32538         * tests/unistdio/test-u32-asnprintf1.h: New file.
32539         * tests/unistdio/test-u32-printf1.h: New file.
32540         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32541         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32542         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32543         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32544         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32545         * tests/unistdio/test-u32-vasprintf1.c: New file.
32546         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32547         * tests/unistdio/test-u32-vsprintf1.c: New file.
32548         * modules/unistdio/base: New file.
32549         * modules/unistdio/u-printf-args: New file.
32550         * modules/unistdio/ulc-asnprintf: New file.
32551         * modules/unistdio/ulc-asprintf: New file.
32552         * modules/unistdio/ulc-fprintf: New file.
32553         * modules/unistdio/ulc-printf-parse: New file.
32554         * modules/unistdio/ulc-snprintf: New file.
32555         * modules/unistdio/ulc-sprintf: New file.
32556         * modules/unistdio/ulc-vasnprintf: New file.
32557         * modules/unistdio/ulc-vasprintf: New file.
32558         * modules/unistdio/ulc-vfprintf: New file.
32559         * modules/unistdio/ulc-vsnprintf: New file.
32560         * modules/unistdio/ulc-vsprintf: New file.
32561         * modules/unistdio/u8-asnprintf: New file.
32562         * modules/unistdio/u8-asprintf: New file.
32563         * modules/unistdio/u8-printf-parse: New file.
32564         * modules/unistdio/u8-snprintf: New file.
32565         * modules/unistdio/u8-sprintf: New file.
32566         * modules/unistdio/u8-vasnprintf: New file.
32567         * modules/unistdio/u8-vasprintf: New file.
32568         * modules/unistdio/u8-vsnprintf: New file.
32569         * modules/unistdio/u8-vsprintf: New file.
32570         * modules/unistdio/u8-u8-asnprintf: New file.
32571         * modules/unistdio/u8-u8-asprintf: New file.
32572         * modules/unistdio/u8-u8-snprintf: New file.
32573         * modules/unistdio/u8-u8-sprintf: New file.
32574         * modules/unistdio/u8-u8-vasnprintf: New file.
32575         * modules/unistdio/u8-u8-vasprintf: New file.
32576         * modules/unistdio/u8-u8-vsnprintf: New file.
32577         * modules/unistdio/u8-u8-vsprintf: New file.
32578         * modules/unistdio/u16-asnprintf: New file.
32579         * modules/unistdio/u16-asprintf: New file.
32580         * modules/unistdio/u16-printf-parse: New file.
32581         * modules/unistdio/u16-snprintf: New file.
32582         * modules/unistdio/u16-sprintf: New file.
32583         * modules/unistdio/u16-vasnprintf: New file.
32584         * modules/unistdio/u16-vasprintf: New file.
32585         * modules/unistdio/u16-vsnprintf: New file.
32586         * modules/unistdio/u16-vsprintf: New file.
32587         * modules/unistdio/u16-u16-asnprintf: New file.
32588         * modules/unistdio/u16-u16-asprintf: New file.
32589         * modules/unistdio/u16-u16-snprintf: New file.
32590         * modules/unistdio/u16-u16-sprintf: New file.
32591         * modules/unistdio/u16-u16-vasnprintf: New file.
32592         * modules/unistdio/u16-u16-vasprintf: New file.
32593         * modules/unistdio/u16-u16-vsnprintf: New file.
32594         * modules/unistdio/u16-u16-vsprintf: New file.
32595         * modules/unistdio/u32-asnprintf: New file.
32596         * modules/unistdio/u32-asprintf: New file.
32597         * modules/unistdio/u32-printf-parse: New file.
32598         * modules/unistdio/u32-snprintf: New file.
32599         * modules/unistdio/u32-sprintf: New file.
32600         * modules/unistdio/u32-vasnprintf: New file.
32601         * modules/unistdio/u32-vasprintf: New file.
32602         * modules/unistdio/u32-vsnprintf: New file.
32603         * modules/unistdio/u32-vsprintf: New file.
32604         * modules/unistdio/u32-u32-asnprintf: New file.
32605         * modules/unistdio/u32-u32-asprintf: New file.
32606         * modules/unistdio/u32-u32-snprintf: New file.
32607         * modules/unistdio/u32-u32-sprintf: New file.
32608         * modules/unistdio/u32-u32-vasnprintf: New file.
32609         * modules/unistdio/u32-u32-vasprintf: New file.
32610         * modules/unistdio/u32-u32-vsnprintf: New file.
32611         * modules/unistdio/u32-u32-vsprintf: New file.
32612         * modules/unistdio/ulc-asnprintf-tests: New file.
32613         * modules/unistdio/ulc-vasnprintf-tests: New file.
32614         * modules/unistdio/ulc-vasprintf-tests: New file.
32615         * modules/unistdio/ulc-vsnprintf-tests: New file.
32616         * modules/unistdio/ulc-vsprintf-tests: New file.
32617         * modules/unistdio/u8-asnprintf-tests: New file.
32618         * modules/unistdio/u8-vasnprintf-tests: New file.
32619         * modules/unistdio/u8-vasprintf-tests: New file.
32620         * modules/unistdio/u8-vsnprintf-tests: New file.
32621         * modules/unistdio/u8-vsprintf-tests: New file.
32622         * modules/unistdio/u16-asnprintf-tests: New file.
32623         * modules/unistdio/u16-vasnprintf-tests: New file.
32624         * modules/unistdio/u16-vasprintf-tests: New file.
32625         * modules/unistdio/u16-vsnprintf-tests: New file.
32626         * modules/unistdio/u16-vsprintf-tests: New file.
32627         * modules/unistdio/u32-asnprintf-tests: New file.
32628         * modules/unistdio/u32-vasnprintf-tests: New file.
32629         * modules/unistdio/u32-vasprintf-tests: New file.
32630         * modules/unistdio/u32-vsnprintf-tests: New file.
32631         * modules/unistdio/u32-vsprintf-tests: New file.
32632         * MODULES.html.sh (Unicode string functions): Add the new modules.
32633
32634 2007-07-01  Bruno Haible  <bruno@clisp.org>
32635
32636         * lib/sprintf.c (sprintf): Limit the available length estimation,
32637         to avoid address wraparound.
32638         * lib/vsprintf.c (vsprintf): Likewise.
32639         * modules/sprintf-posix (Dependencies): Add stdint.
32640         * modules/vsprintf-posix (Dependencies): Likewise.
32641
32642 2007-07-01  Bruno Haible  <bruno@clisp.org>
32643
32644         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32645         Windows PATH as well. Conservative double-quoting. Comments.
32646
32647 2007-07-01  Bruno Haible  <bruno@clisp.org>
32648             Eric Blake  <ebb9@byu.net>
32649             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32650
32651         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32652         empty components in $PATH, denoting '.'.
32653
32654 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32655
32656         * gnulib-tool: Fix indentation.
32657         (func_create_megatestdir): Likewise.
32658         Report by Bruno Haible.
32659
32660 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32661
32662         Sync from Automake.
32663         * build-aux/gnupload: Fix shell portability issues with for loops.
32664         Report by Karl Berry.
32665
32666 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32667
32668         * build-aux/maint.mk (POURL): Use translationproject.org.
32669
32670 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32671             Bruno Haible  <bruno@clisp.org>
32672
32673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32674         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32675         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32676         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32677         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32678
32679 2007-06-27  Bruno Haible  <bruno@clisp.org>
32680
32681         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32682         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32683
32684 2007-06-26  Karl Berry  <karl@gnu.org>
32685
32686         * MODULES.html.sh: remove xreadlink-with-size.
32687
32688 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32689
32690         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32691         method that I hope also handles the double-include problem noted
32692         by Bruno Haible in
32693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32694
32695 2007-06-23  Bruno Haible  <bruno@clisp.org>
32696
32697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32698         Don't let the 'mostlyclean' target fail if the last subdirectory could
32699         not be removed.
32700         Reported by Karl Berry.
32701
32702 2007-06-23  Bruno Haible  <bruno@clisp.org>
32703
32704         * gnulib-tool (echo): Add a speedier workaround for ksh.
32705         * tests/test-echo.sh: Likewise.
32706
32707 2007-06-23  Bruno Haible  <bruno@clisp.org>
32708
32709         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32710         * tests/test-echo.sh: Likewise.
32711
32712 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32713
32714         * gnulib-tool (IFS): Initialize early, so we don't set it to
32715         empty later.
32716         (self_abspathname): Rewrite algorithm to set it, reindent.
32717         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32718         (func_create_megatestdir): Merge some sed scripts.
32719
32720 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32721
32722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32723         exposed by Sun Studio 11 cc on Solaris 8.
32724
32725 2007-06-22  Bruno Haible  <bruno@clisp.org>
32726
32727         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32728         backslashes.
32729         * tests/test-echo.sh: New file.
32730
32731 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32732
32733         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32734         simplify `sed_replace_build_aux' scripts, they are portable but
32735         echoing them with `echo' is not.
32736         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32737
32738 2007-06-21  Karl Berry  <karl@gnu.org>
32739
32740         * config/srclist.txt: guess we can't handle the licenses via
32741         srclist at the moment.
32742
32743 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32744
32745         * MODULES.html.sh: Add include_next.
32746         * modules/include_next: New file.
32747
32748 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32749
32750         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32751         INCLUDE_NEXT.
32752         (gl_CHECK_NEXT_HEADERS): New macro.
32753         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32754         the obsolescent gl_ABSOLUTE_HEADER.
32755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32756         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32757         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32758         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32759         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32760         * m4/math_h.m4 (gl_MATH_H): Likewise.
32761         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32762         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32763         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32764         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32765         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32766         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32767         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32768         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32769         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32771         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32772         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32773         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32774         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32775         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32776         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32777         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32778         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32779         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32780         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32781         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32782         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32783         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32784         * lib/float_.h: Likewise.
32785         * lib/inttypes_.h: Likewise.
32786         * lib/math_.h: Likewise.
32787         * lib/search_.h: Likewise.
32788         * lib/signal_.h: Likewise.
32789         * lib/stdint_.h: Likewise.
32790         * lib/stdio_.h: Likewise.
32791         * lib/stdlib_.h: Likewise.
32792         * lib/string_.h: Likewise.
32793         * lib/sys_stat_.h: Likewise.
32794         * lib/sys_time_.h: Likewise.
32795         * lib/time_.h: Likewise.
32796         * lib/unistd_.h: Likewise.
32797         * lib/wchar_.h: Likewise.
32798         * lib/wctype_.h: Likewise.
32799         * lib/dirent_.h: Likewise.
32800         * lib/iconv_.h: Likewise.
32801         * lib/locale_.h: Likewise.
32802         * lib/netinet_in_.h: Likewise.
32803         * lib/sys_select_.h: Likewise.
32804         * lib/sys_socket_.h: Likewise.
32805         * lib/sysexits_.h: Likewise.
32806         * modules/fcntl (Depends-on): Depend on include_next, not
32807         absolute_header.
32808         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32809         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32810         * modules/fchdir: Likewise.
32811         * modules/float: Likewise.
32812         * modules/iconv_open: Likewise.
32813         * modules/inttypes: Likewise.
32814         * modules/locale: Likewise.
32815         * modules/math: Likewise.
32816         * modules/netinet_in: Likewise.
32817         * modules/search: Likewise.
32818         * modules/signal: Likewise.
32819         * modules/stdint: Likewise.
32820         * modules/stdio: Likewise.
32821         * modules/stdlib: Likewise.
32822         * modules/string: Likewise.
32823         * modules/sys_select: Likewise.
32824         * modules/sys_socket: Likewise.
32825         * modules/sys_stat: Likewise.
32826         * modules/sys_time: Likewise.
32827         * modules/sysexits: Likewise.
32828         * modules/time: Likewise.
32829         * modules/unistd: Likewise.
32830         * modules/wchar: Likewise.
32831         * modules/wctype: Likewise.
32832         * modules/sys_stat: Change maintainer to "all".
32833         * modules/unistd: Likewise.
32834
32835 2007-06-20  Karl Berry  <karl@gnu.org>
32836
32837         * config/srclist.txt: track www changes in license files.
32838
32839 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32840
32841         * build-aux/bootstrap: Remove stray dot.
32842         Make sure build_aux settings are honored when linking
32843         gnulib_extra_files.
32844
32845 2007-06-19  Eric Blake  <ebb9@byu.net>
32846
32847         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32848         Allow compilation on cygwin.
32849
32850 2007-06-19  Jim Meyering  <jim@meyering.net>
32851
32852         xreadlink-with-size: Remove module.  No longer used.
32853         Ex-callers now use xreadlink or mreadlink-with-size.
32854         * modules/xreadlink-with-size: Remove module.
32855         * lib/xreadlink-with-size.c: Remove file.
32856         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32857         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32858         just before the function definition *is* accurate.
32859
32860         Eliminate one way canonicalize_filename_mode could exit.
32861         * lib/canonicalize.c (canonicalize_filename_mode):
32862         Use mreadlink_with_size, not xreadlink_with_size.
32863
32864 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32865
32866         Detect porting problems to FreeBSD/arm, which has time_t wider than
32867         long int.  Original problem reported for GNU diff by Xin Li in
32868         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32869         * modules/getdate (Depends-on): Add intprops, verify.
32870         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32871         is an integer type no wider than long int.
32872
32873 2007-06-18  Jim Meyering  <jim@meyering.net>
32874
32875         New module: mreadlink-with-size.
32876         * MODULES.html.sh: Add mreadlink-with-size.
32877         * modules/mreadlink-with-size: New module
32878         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32879         not xreadlink-with-size.
32880         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32881
32882 2007-06-16  Bruno Haible  <bruno@clisp.org>
32883
32884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32885         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32886         Reported by Gary V. Vaughan <gary@gnu.org>.
32887
32888 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32889
32890         Revamp lchown so that it lives in unistd.h where it belongs.
32891         * lib/lchown.h: Remove.
32892         * lib/dirchownmod.c: Don't include lib/lchown.h.
32893         * lib/fchownat.c: Likewise.
32894         * lib/openat.c: Likewise.
32895         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32896         does not follow symlinks.
32897         (EOPNOTSUPP): Define if not defined.
32898         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32899         is defined to 0.
32900         (lchown): New decl.
32901         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32902         Do not check for lchown decl.
32903         Set REPLACE_LCHOWN.
32904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32905         REPLACE_LCHOWN.
32906         * modules/chown: Make it clear it follows symlinks.
32907         * modules/lchown: Make it clear it doesn't follow symlinks.
32908         (Files): Remove lib/lchown.h
32909         (Depends-on): Add unistd.
32910         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32911         (Include): Include <unistd.h>, not "lchown.h".
32912         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32913         REPLACE_LCHOWN.
32914
32915 2007-06-15  Jim Meyering  <jim@meyering.net>
32916
32917         Change license (GPL to LGPL) of fsusage and dependents.
32918         * modules/fsusage (License): Change to LGPL.
32919         * modules/full-read (License): Likewise.
32920         * modules/full-write (License): Likewise.
32921         * modules/safe-read (License): Likewise.
32922         * modules/safe-write (License): Likewise.
32923
32924 2007-06-14  Ben Pfaff  <blp@gnu.org>
32925
32926         Missing part of allocsa -> malloca transition.
32927         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32928         gl_MALLOCA.
32929
32930 2007-06-12  Bruno Haible  <bruno@clisp.org>
32931
32932         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32933         to ia64, x86_64, i386.
32934         Reported by Eric Blake.
32935
32936 2007-06-12  Bruno Haible  <bruno@clisp.org>
32937
32938         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32939         cross-compiling to x86_64.
32940
32941 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32942
32943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32944         glitch reported by Ralf Wildenhues in
32945         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32946
32947         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32948         Vin Shelton.
32949
32950 2007-06-11  Bruno Haible  <bruno@clisp.org>
32951
32952         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32953         replacement string.
32954         Reported by Eric Blake.
32955
32956 2007-06-10  Bruno Haible  <bruno@clisp.org>
32957
32958         Prepare vasnprintf code for use with Unicode strings.
32959         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32960         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32961         TYPE_U32_STRING.
32962         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32963         a_u32_string variants.
32964         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32965         * lib/printf-args.c: Don't include config.h and the specification
32966         header if PRINTF_FETCHARGS is already defined.
32967         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32968         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32969         TYPE_U16_STRING, TYPE_U32_STRING.
32970         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32971         u16_directive, u16_directives, u32_directive, u32_directives): New
32972         types.
32973         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32974         New declarations.
32975         * lib/printf-parse.c: Don't include config.h and the specification
32976         header if PRINTF_PARSE is already defined. Eliminate the set of
32977         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32978         them now. Include c-ctype.h.
32979         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32980         directive and CHAR_T_ONLY_ASCII.
32981         * lib/vasnprintf.c: Don't include config.h and the specification header
32982         if VASNPRINTF is already defined.
32983         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32984         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32985         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32986         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32987         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32988         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32989         code accordingly.
32990         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32991         pad_ourselves also in this case, with the 'c' and 's' directives, and
32992         with a different notion of "width".
32993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32994
32995 2007-06-10  Bruno Haible  <bruno@clisp.org>
32996
32997         * modules/unistr/u32-mbsnlen: New file.
32998         * lib/unistr/u32-mbsnlen.c: New file.
32999
33000         * modules/unistr/u16-mbsnlen: New file.
33001         * lib/unistr/u16-mbsnlen.c: New file.
33002
33003         * modules/unistr/u8-mbsnlen: New file.
33004         * lib/unistr/u8-mbsnlen.c: New file.
33005
33006         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33007         declarations.
33008
33009 2007-06-10  Bruno Haible  <bruno@clisp.org>
33010
33011         * lib/string_.h (mbsnlen): New declaration.
33012         * lib/mbsnlen.c: New file.
33013         * m4/mbsnlen.m4: New file.
33014         * modules/mbsnlen: New file.
33015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33016         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33017         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33018
33019 2007-06-10  Bruno Haible  <bruno@clisp.org>
33020
33021         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33022
33023 2007-06-10  Bruno Haible  <bruno@clisp.org>
33024
33025         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33026         * lib/mbuiter.h: Likewise.
33027
33028 2007-06-10  Bruno Haible  <bruno@clisp.org>
33029
33030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33031         declaration.
33032
33033 2007-06-10  Karl Berry  <karl@gnu.org>
33034
33035         * config/srclist.txt: remove gettext entries, Bruno prefers
33036         to update individually.
33037
33038 2007-06-10  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33041         'maxlen'. Ensure only length + width bytes are allocated, not
33042         length + 1 + width.
33043
33044 2007-06-09  Bruno Haible  <bruno@clisp.org>
33045
33046         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33047         (CHAR_T): Remove macro.
33048         (VASNPRINTF): Update.
33049
33050 2007-06-09  Bruno Haible  <bruno@clisp.org>
33051
33052         * MODULES.html.sh (Unicode string functions): Add the new modules.
33053
33054         * modules/uniconv/u32-conv-to-enc: New file.
33055         * lib/uniconv/u32-conv-to-enc.c: New file.
33056         * modules/uniconv/u32-conv-to-enc-tests: New file.
33057         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33058
33059         * modules/uniconv/u16-conv-to-enc: New file.
33060         * lib/uniconv/u16-conv-to-enc.c: New file.
33061         * lib/uniconv/u-conv-to-enc.h: New file.
33062         * modules/uniconv/u16-conv-to-enc-tests: New file.
33063         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33064
33065         * modules/uniconv/u8-conv-to-enc: New file.
33066         * lib/uniconv/u8-conv-to-enc.c: New file.
33067         * modules/uniconv/u8-conv-to-enc-tests: New file.
33068         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33069
33070         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33071         u32_conv_to_encoding): New declarations.
33072
33073 2007-06-09  Bruno Haible  <bruno@clisp.org>
33074
33075         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33076
33077 2007-06-09  Bruno Haible  <bruno@clisp.org>
33078
33079         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33080         * modules/malloca: Renamed from modules/allocsa, updated.
33081         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33082         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33083         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33084         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33085         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33086         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33087         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33088         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33089         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33090         * modules/c-strcasestr (Depends-on): Update.
33091         * lib/c-strcasestr.c: Update.
33092         * modules/c-strstr (Depends-on): Update.
33093         * lib/c-strstr.c: Update.
33094         * modules/canonicalize-lgpl (Depends-on): Update.
33095         * lib/canonicalize-lgpl.c: Update.
33096         * modules/clean-temp (Depends-on): Update.
33097         * lib/clean-temp.c: Update.
33098         * modules/csharpcomp (Depends-on): Update.
33099         * lib/csharpcomp.c: Update.
33100         * modules/csharpexec (Depends-on): Update.
33101         * lib/csharpexec.c: Update.
33102         * modules/javacomp (Depends-on): Update.
33103         * lib/javacomp.c: Update.
33104         * modules/javaexec (Depends-on): Update.
33105         * lib/javaexec.c: Update.
33106         * modules/mbscasestr (Depends-on): Update.
33107         * lib/mbscasestr.c: Update.
33108         * modules/mbsstr (Depends-on): Update.
33109         * lib/mbsstr.c: Update.
33110         * modules/setenv (Depends-on): Update.
33111         * lib/setenv.c: Update.
33112         * modules/strcasestr (Depends-on): Update.
33113         * lib/strcasestr.c: Update.
33114         * modules/striconveha (Depends-on): Update.
33115         * lib/striconveha.c: Update.
33116         * modules/relocatable-prog-wrapper (Files): Update.
33117         * lib/relocwrapper.c: Update.
33118         * build-aux/install-reloc: Update.
33119         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33120
33121 2007-06-08  Bruno Haible  <bruno@clisp.org>
33122
33123         Port to uClibc.
33124         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33125         * lib/fpurge.c (fpurge): Likewise.
33126         * lib/freading.c (freading): Likewise.
33127         * lib/fseeko.c (rpl_fseeko): Likewise.
33128         * lib/fseterr.c (fseterr): Likewise.
33129         * lib/fwriting.c (fwriting): Likewise.
33130         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33131
33132 2007-06-08  Bruno Haible  <bruno@clisp.org>
33133
33134         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33135         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33136         * modules/gettext (Files): Add m4/intlmacosx.m4.
33137
33138 2007-06-07  Bruno Haible  <bruno@clisp.org>
33139
33140         * modules/localename-tests: New file.
33141         * tests/test-localename.c: New file.
33142
33143         New module 'localename'.
33144         * lib/localename.h: New file.
33145         * lib/localename.c: New file, from GNU gettext.
33146         * m4/localename.m4: New file.
33147         * modules/localename: New file.
33148
33149 2007-06-07  Bruno Haible  <bruno@clisp.org>
33150
33151         Work around the lack of <wchar.h> on some builds of uClibc.
33152         * doc/headers/wchar.texi: Update.
33153         * lib/wchar_.h: Include <wchar.h> only if it exists.
33154         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33155         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33156         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33157         doesn't exist.
33158         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33159         * modules/mbfile (Depends-on): Add wchar.
33160         * modules/mbiter (Depends-on): Likewise.
33161         * modules/mbuiter (Depends-on): Likewise.
33162         Reported by Simon Josefsson.
33163
33164 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33165
33166         Work around problem reported by Steven M. Schweda in
33167         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33168         Tru64 5.1B with the Compaq compiler environment installed declares
33169         an 'isblank' function but does not define it in the C library.
33170         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33171         * lib/regex_internal.h (isblank): Likewise.
33172         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33173         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33174
33175 2007-06-05  Bruno Haible  <bruno@clisp.org>
33176
33177         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33178         ia64.
33179         * modules/printf-safe: New file.
33180         * modules/fprintf-posix (Depends-on): Add printf-safe.
33181         * modules/printf-posix (Depends-on): Likewise.
33182         * modules/snprintf-posix (Depends-on): Likewise.
33183         * modules/sprintf-posix (Depends-on): Likewise.
33184         * modules/vasnprintf-posix (Depends-on): Likewise.
33185         * modules/vasprintf-posix (Depends-on): Likewise.
33186         * modules/vfprintf-posix (Depends-on): Likewise.
33187         * modules/vprintf-posix (Depends-on): Likewise.
33188         * modules/vsnprintf-posix (Depends-on): Likewise.
33189         * modules/vsprintf-posix (Depends-on): Likewise.
33190         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33191         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33192         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33193         "no" on i386, x86_64, ia64.
33194         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33195         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33196         on i386, x86_64, ia64.
33197         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33198         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33199         on i386, x86_64, ia64.
33200         * tests/test-vasnprintf-posix.c: Include float.h.
33201         (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-vasprintf-posix.c: Include float.h.
33205         (LDBL80_WORDS): New macro.
33206         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33207         on i386, x86_64, ia64.
33208         * tests/test-snprintf-posix.c: Include float.h.
33209         * tests/test-sprintf-posix.c: Likewise.
33210         * tests/test-vsnprintf-posix.c: Likewise.
33211         * tests/test-vsprintf-posix.c: Likewise.
33212
33213 2007-06-05  Bruno Haible  <bruno@clisp.org>
33214
33215         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33216         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33217         non-IEEE numbers on i386, x86_64, ia64.
33218         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33219         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33220         * tests/test-isnanl.h: Include float.h.
33221         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33222
33223 2007-06-05  Bruno Haible  <bruno@clisp.org>
33224
33225         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33226         also the %a / %A. Handle the %a / %A code before this extra handling.
33227
33228 2007-06-05  Bruno Haible  <bruno@clisp.org>
33229
33230         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33231         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33232
33233 2007-06-05  Bruno Haible  <bruno@clisp.org>
33234
33235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33236         typo in variable name.
33237
33238 2007-06-05  Eric Blake  <ebb9@byu.net>
33239
33240         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33241         Reported by Simon Josefsson.
33242
33243 2007-06-04  Bruno Haible  <bruno@clisp.org>
33244
33245         Avoid test failures on some PowerPC platforms.
33246         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33247         Define differently for PowerPC.
33248         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33249         Reported by Gary V. Vaughan <gary@gnu.org>.
33250
33251 2007-06-02  Bruno Haible  <bruno@clisp.org>
33252
33253         Fix test-stdint failure on FreeBSD/ia64.
33254         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33255         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33256         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33257         * doc/headers/stdint.texi: Update.
33258
33259 2007-06-01  Bruno Haible  <bruno@clisp.org>
33260
33261         * tests/test-binary-io.c (main): Pass a third argument to open().
33262         Reported by Gary V. Vaughan <gary@gnu.org>.
33263
33264 2007-06-01  Bruno Haible  <bruno@clisp.org>
33265
33266         * doc/functions/frexpl.texi: Update for mingw.
33267
33268 2007-06-01  Bruno Haible  <bruno@clisp.org>
33269
33270         * tests/test-lseek.c (main): Disable test of errno for invalid third
33271         argument.
33272         * doc/functions/lseek.texi: Update.
33273         Reported by Gary V. Vaughan <gary@gnu.org>.
33274
33275 2007-05-28  Bruno Haible  <bruno@clisp.org>
33276
33277         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33278
33279 2007-05-31  Eric Blake  <ebb9@byu.net>
33280
33281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33282         cross compiling.
33283
33284 2007-05-30  Eric Blake  <ebb9@byu.net>
33285         and Bruno Haible  <bruno@clisp.org>
33286
33287         Work around mingw test failures exposed by m4-1.4.9b.
33288         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33289         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33290         moment.
33291
33292 2007-05-30  Bruno Haible  <bruno@clisp.org>
33293
33294         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33295         assuming that they are closed. Needed on HP-UX 11.
33296
33297 2007-05-29  Bruno Haible  <bruno@clisp.org>
33298
33299         Fix a problem with #include_next.
33300         * lib/dirent_.h: Split the double-inclusion guard.
33301         * lib/fcntl_.h: Likewise.
33302         * lib/float_.h: Likewise.
33303         * lib/iconv_.h: Likewise.
33304         * lib/inttypes_.h: Likewise.
33305         * lib/locale_.h: Likewise.
33306         * lib/math_.h: Likewise.
33307         * lib/netinet_in_.h: Likewise.
33308         * lib/search_.h: Likewise.
33309         * lib/signal_.h: Likewise.
33310         * lib/stdint_.h: Likewise.
33311         * lib/stdio_.h: Likewise.
33312         * lib/stdlib_.h: Likewise.
33313         * lib/string_.h: Likewise.
33314         * lib/sys_select_.h: Likewise.
33315         * lib/sys_socket_.h: Likewise.
33316         * lib/sys_stat_.h: Likewise.
33317         * lib/sys_time_.h: Likewise.
33318         * lib/sysexits_.h: Likewise.
33319         * lib/time_.h: Likewise.
33320         * lib/unistd_.h: Likewise.
33321         * lib/wchar_.h: Likewise.
33322         * lib/wctype_.h: Likewise.
33323
33324 2007-05-29  Bruno Haible  <bruno@clisp.org>
33325
33326         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33327         for the moment.
33328
33329 2007-05-29  Bruno Haible  <bruno@clisp.org>
33330
33331         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33332         invocation.
33333         Reported by Eric Blake.
33334
33335 2007-05-29  Bruno Haible  <bruno@clisp.org>
33336
33337         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33338         compiling case.
33339
33340 2007-05-29  Eric Blake  <ebb9@byu.net>
33341             Bruno Haible  <bruno@clisp.org>
33342
33343         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33344         cross compiles.
33345
33346 2007-05-28  Eric Blake  <ebb9@byu.net>
33347
33348         * modules/closein-tests (test_closein_LDADD): Support test on
33349         cygwin with libtool.
33350
33351 2007-05-28  Bruno Haible  <bruno@clisp.org>
33352
33353         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33354         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33355         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33356         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33357         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33358         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33359         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33360         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33361         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33362
33363 2007-05-28  Eric Blake  <ebb9@byu.net>
33364
33365         Unconditionally include <config.h> in unit tests.
33366         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33367         * tests/test-allocsa.c, tests/test-arcfour.c,
33368         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33369         tests/test-array_list.c, tests/test-array_oset.c,
33370         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33371         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33372         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33373         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33374         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33375         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33376         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33377         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33378         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33379         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33380         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33381         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33382         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33383         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33384         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33385         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33386         test-md5.c, test-memmem.c, test-printf-posix.c,
33387         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33388         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33389         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33390         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33391         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33392         test-vasnprintf-posix2.c, test-vasnprintf.c,
33393         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33394         test-vfprintf-posix.c, test-vprintf-posix.c,
33395         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33396         test-xvasprintf.c: Likewise.
33397
33398 2007-05-28  Bruno Haible  <bruno@clisp.org>
33399
33400         * gnulib-tool (func_import): Remember the --with-tests command-line
33401         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33402         Reported by Eric Blake.
33403
33404 2007-05-28  Bruno Haible  <bruno@clisp.org>
33405
33406         * modules/ftell-tests: New file.
33407         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33408         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33409
33410         * lib/ftell.c: New file.
33411         * modules/ftell: New file.
33412         * m4/ftell.m4: New file.
33413         * doc/functions/ftell.texi: Update.
33414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33415         REPLACE_FTELL.
33416         * lib/stdio_.h (rpl_ftell): New declaration.
33417         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33418         REPLACE_FTELL.
33419
33420 2007-05-28  Eric Blake  <ebb9@byu.net>
33421
33422         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33423
33424 2007-05-28  Bruno Haible  <bruno@clisp.org>
33425
33426         * modules/fseek-tests: New file.
33427         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33428         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33429
33430         * lib/fseek.c: New file.
33431         * modules/fseek: New file.
33432         * m4/fseek.m4: New file.
33433         * doc/functions/fseek.texi: Update.
33434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33435         REPLACE_FSEEK.
33436         * lib/stdio_.h (rpl_fseek): New declaration.
33437         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33438         REPLACE_FSEEK.
33439
33440 2007-05-28  Bruno Haible  <bruno@clisp.org>
33441
33442         * lib/stdio_.h (fflush): More comments.
33443
33444 2007-05-28  Bruno Haible  <bruno@clisp.org>
33445
33446         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33447         runtime test.
33448
33449 2007-05-28  Eric Blake  <ebb9@byu.net>
33450
33451         Improve lseek module.
33452         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33453         * lib/unistd_.h (lseek): Scale back link warning message.
33454         * tests/test-lseek.c: Beef up test.
33455         * tests/test-lseek.sh: Exercise more facets of lseek.
33456         Reported by Bruno Haible.
33457
33458 2007-05-28  Bruno Haible  <bruno@clisp.org>
33459
33460         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33461         to define.
33462
33463 2007-05-27  Bruno Haible  <bruno@clisp.org>
33464
33465         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33466
33467 2007-05-27  Bruno Haible  <bruno@clisp.org>
33468
33469         * modules/openmp: New file.
33470         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33471         Noah Misch.
33472
33473 2007-05-26  Bruno Haible  <bruno@clisp.org>
33474
33475         * modules/chdir-long (Depends-on): Add fchdir.
33476         * modules/chdir-safer (Depends-on): Likewise.
33477         * modules/fts (Depends-on): Likewise.
33478         * modules/fts-lgpl (Depends-on): Likewise.
33479         * modules/openat (Depends-on): Likewise.
33480         * modules/savewd (Depends-on): Likewise.
33481
33482 2007-05-24  Eric Blake  <ebb9@byu.net>
33483
33484         Fix lseek on mingw.
33485         * modules/lseek: New module.
33486         * m4/lseek.m4: New file.
33487         * lib/lseek.c: New file.
33488         * modules/lseek-tests: New file.
33489         * tests/test-lseek.c: New file.
33490         * tests/test-lseek.sh: New file.
33491         * MODULES.html.sh: Document lseek module.
33492         * modules/fflush (Depends-on): Add lseek, fseeko.
33493         * modules/fseeko (Depends-on): Likewise.
33494         * modules/ftello (Depends-on): Likewise.
33495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33496         broken.
33497         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33498         broken.
33499         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33500         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33501         * lib/ftello.c (rpl_ftello): Likewise.
33502         * tests/test-fseeko.c (main): Test this.
33503         * tests/test-fseeko.sh: Likewise.
33504         * tests/test-ftello.c (main): Likewise.
33505         * tests/test-ftello.sh: Likewise.
33506         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33507         implies replacing fseek.
33508         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33509         HAVE_FTELLO.
33510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33511         * modules/unistd (Makefile.am): Likewise.
33512         * lib/unistd_.h (lseek): Declare a replacement.
33513         * doc/functions/lseek.texi (lseek): Document this fix.
33514         * doc/functions/fseek.texi (fseek): Likewise.
33515         * doc/functions/ftell.texi (ftell): Likewise.
33516
33517 2007-05-24  Bruno Haible  <bruno@clisp.org>
33518
33519         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33520         in the printed representation of a NaN.
33521         * tests/test-vasprintf-posix.c (test_function): Likewise.
33522         * tests/test-snprintf-posix.h (test_function): Likewise.
33523         * tests/test-sprintf-posix.h (test_function): Likewise.
33524         Reported by Eric Blake.
33525
33526 2007-05-23  Eric Blake  <ebb9@byu.net>
33527
33528         Fix fseeko/ftello on cygwin 1.5.24.
33529         * doc/functions/fseeko.texi (fseeko): Document the fix.
33530         * doc/functions/ftello.texi (ftello): Document the fix.
33531         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33532         * doc/functions/stdout.text (stdout): New file.
33533         * doc/functions/stderr.text (stderr): New file.
33534         * doc/gnulib.texi (Function Substitutes): Use new files.
33535         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33536         prior to 1.7.0.
33537         * tests/test-ftello.c (main): Likewise for ftello.
33538         * tests/test-fseeko.sh: New file.
33539         * tests/test-ftello.sh: New file.
33540         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33541         with seekable stdin.
33542         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33543         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33544         (gl_REPLACE_FSEEKO): New macro.
33545         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33546         * modules/fseeko (Files): Distribute fseeko.c.
33547         * modules/ftello (Files): Distribute ftello.c.
33548         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33549         mode.
33550         * lib/ftello.c (rpl_ftello): New file.
33551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33552         fseeko, ftello.
33553         (gl_STDIN_LARGE_OFFSET): New macro.
33554         * modules/stdio (Makefile.am): Perform the replacement.
33555         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33556
33557 2007-05-23  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33560         GNULIB_POSIXCHECK is defined.
33561
33562 2007-05-21  Bruno Haible  <bruno@clisp.org>
33563
33564         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33565         Check also the output for NaN arguments. When cross-compiling, guess
33566         no on IRIX.
33567         * lib/vasnprintf.c: Update comments.
33568         * tests/test-vasnprintf-posix.c (strisnan): New function.
33569         (test_function): Use it.
33570         * tests/test-vasprintf-posix.c (strisnan): New function.
33571         (test_function): Use it.
33572         * tests/test-snprintf-posix.h (strisnan): New function.
33573         (test_function): Use it.
33574         * tests/test-sprintf-posix.h (strisnan): New function.
33575         (test_function): Use it.
33576         Reported by Eric Blake.
33577
33578 2007-05-20  Bruno Haible  <bruno@clisp.org>
33579
33580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33581         numbers that fails on BeOS.
33582         * doc/functions/frexpl.texi: Update.
33583
33584 2007-05-20  Jim Meyering  <jim@meyering.net>
33585
33586         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33587         forced upon us by glibc-2.6.
33588
33589 2007-05-20  Bruno Haible  <bruno@clisp.org>
33590
33591         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33592         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33593         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33594         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33595         NEED_PRINTF_INFINITE.
33596         (is_infinitel): New function.
33597         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33599         gl_PREREQ_VASNPRINTF_INFINITE.
33600         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33602         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33603         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33604         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33605         gl_PREREQ_VASNPRINTF_INFINITE.
33606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33613         * doc/functions/fprintf.texi: Update.
33614         * doc/functions/printf.texi: Update.
33615         * doc/functions/snprintf.texi: Update.
33616         * doc/functions/sprintf.texi: Update.
33617         * doc/functions/vfprintf.texi: Update.
33618         * doc/functions/vprintf.texi: Update.
33619         * doc/functions/vsnprintf.texi: Update.
33620         * doc/functions/vsprintf.texi: Update.
33621
33622 2007-05-20  Bruno Haible  <bruno@clisp.org>
33623
33624         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33625         was not found in libc.
33626         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33627
33628 2007-05-20  Bruno Haible  <bruno@clisp.org>
33629
33630         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33631         printed as "-nan" instead of "nan".
33632         * tests/test-vasprintf-posix.c (test_function): Likewise.
33633         * tests/test-snprintf-posix.h (test_function): Likewise.
33634         * tests/test-sprintf-posix.h (test_function): Likewise.
33635         Needed for HP-UX 11.
33636
33637 2007-05-20  Jim Meyering  <jim@meyering.net>
33638
33639         Fix buggy test for the fchownat-deref bug.
33640         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33641         symlink required for the run-test.  Without it, this test would
33642         always declare that fchownat doesn't work, and client code would
33643         unnecessarily use the replacement function with fixed libc.
33644         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33645         Reported by Greg Schafer.
33646
33647 2007-05-19  Bruno Haible  <bruno@clisp.org>
33648
33649         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33650         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33651         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33652         Needed for IRIX 6.5 and Solaris 2.5.1.
33653
33654 2007-05-19  Bruno Haible  <bruno@clisp.org>
33655
33656         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33657         (test_function): Skip tests involving -0.0 on platforms where
33658         -0.0 = 0.0.
33659         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33660         (test_function): Skip tests involving -0.0 on platforms where
33661         -0.0 = 0.0.
33662         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33663         (test_function): Skip tests involving -0.0 on platforms where
33664         -0.0 = 0.0.
33665         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33666         (test_function): Skip tests involving -0.0 on platforms where
33667         -0.0 = 0.0.
33668         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33669         tests.
33670         * tests/test-printf-posix.h (test_function): Likewise.
33671         * tests/test-printf-posix.output: Remove all -0.0 related results.
33672         Needed for IRIX 6.5.
33673
33674 2007-05-19  Bruno Haible  <bruno@clisp.org>
33675
33676         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33677         printed as "nan0x7fffffff" instead of "nan".
33678         * tests/test-vasprintf-posix.c (test_function): Likewise.
33679         * tests/test-snprintf-posix.h (test_function): Likewise.
33680         * tests/test-sprintf-posix.h (test_function): Likewise.
33681         * tests/test-fprintf-posix.h (NaN): Remove macro.
33682         (test_function): Remove all NaN related tests.
33683         * tests/test-printf-posix.h (NaN): Remove macro.
33684         (test_function): Remove all NaN related tests.
33685         * tests/test-printf-posix.output: Remove all NaN related results.
33686         Needed for IRIX 6.5.
33687
33688 2007-05-19  Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33692
33693 2007-05-19  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/float_.h: New file.
33696         * m4/float_h.m4: New file.
33697         * modules/float: New file.
33698         * modules/isnanl (Dependencies): Add float.
33699         * modules/isnanl-nolibm (Dependencies): Likewise.
33700         * modules/mathl (Dependencies): Likewise.
33701         * modules/printf-frexpl (Dependencies): Likewise.
33702         * modules/signbit (Dependencies): Likewise.
33703         * modules/vasnprintf (Dependencies): Likewise.
33704         * doc/headers/float.texi: Update.
33705
33706 2007-05-19  Jim Meyering  <jim@meyering.net>
33707
33708         * lib/utimens.c (gl_futimens): Rename from futimens,
33709         now that glibc-2.6 declares futimens.
33710         * lib/utimens.h: Likewise.
33711
33712 2007-05-19  Bruno Haible  <bruno@clisp.org>
33713
33714         Avoid test failures on mingw.
33715         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33716         * tests/test-printf-posix.sh: Likewise.
33717         * tests/test-vfprintf-posix.sh: Likewise.
33718         * tests/test-vprintf-posix.sh: Likewise.
33719
33720 2007-05-19  Bruno Haible  <bruno@clisp.org>
33721
33722         Fix *printf result for NaN, Inf, -0.0 on mingw.
33723         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33724         * lib/vasnprintf.c: Include math.h and isnan.h.
33725         (is_infinite_or_zero): New function.
33726         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33727         values in the %f, %F, %e, %E, %g, %G directives.
33728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33729         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33730         gl_PRINTF_INFINITE and test its result. Invoke
33731         gl_PREREQ_VASNPRINTF_INFINITE.
33732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33739         * doc/functions/fprintf.texi: Update.
33740         * doc/functions/printf.texi: Update.
33741         * doc/functions/snprintf.texi: Update.
33742         * doc/functions/sprintf.texi: Update.
33743         * doc/functions/vfprintf.texi: Update.
33744         * doc/functions/vprintf.texi: Update.
33745         * doc/functions/vsnprintf.texi: Update.
33746         * doc/functions/vsprintf.texi: Update.
33747
33748 2007-05-19  Bruno Haible  <bruno@clisp.org>
33749
33750         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33751         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33752         Instead of multiplying with 10^k, set extra_zeroes to k.
33753         (scale10_round_long_double): Remove function.
33754
33755 2007-05-18  Bruno Haible  <bruno@clisp.org>
33756
33757         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33758         introduced on 2007-05-06.
33759
33760 2007-05-18  Bruno Haible  <bruno@clisp.org>
33761
33762         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33763         %g directives.
33764         * tests/test-vasprintf-posix.c (test_function): Likewise.
33765         * tests/test-snprintf-posix.h (test_function): Likewise.
33766         * tests/test-sprintf-posix.h (test_function): Likewise.
33767
33768 2007-05-18  Bruno Haible  <bruno@clisp.org>
33769
33770         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33771         (strmatch): New function.
33772         (test_function): Test the %f directive on numbers of various exponents.
33773         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33774         (strmatch): New function.
33775         (test_function): Test the %f directive on numbers of various exponents.
33776         * tests/test-snprintf-posix.h (strmatch): New function.
33777         (test_function): Test the %f directive on numbers of various exponents.
33778         * tests/test-sprintf-posix.h (strmatch): New function.
33779         (test_function): Test the %f directive on numbers of various exponents.
33780         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33781         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33782         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33783         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33784
33785 2007-05-18  Bruno Haible  <bruno@clisp.org>
33786
33787         Add support for 'long double' number output.
33788         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33789         * lib/vasnprintf.c: Include math.h and float+.h.
33790         (mp_limb_t): New type.
33791         (GMP_LIMB_BITS): New macro.
33792         (mp_twolimb_t): New type.
33793         (GMP_TWOLIMB_BITS): New macro.
33794         (mpn_t): New type.
33795         (multiply, divide, convert_to_decimal, decode_long_double,
33796         scale10_round_long_double, scale10_round_decimal_long_double,
33797         floorlog10l): New functions.
33798         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33799         for the %f, %F, %e, %E, %g, %G directives.
33800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33802         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33803         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33808         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33810         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33811         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33812         * modules/snprintf-posix (Depends-on): Likewise.
33813         * modules/sprintf-posix (Depends-on): Likewise.
33814         * modules/vasnprintf-posix (Depends-on): Likewise.
33815         * modules/vasprintf-posix (Depends-on): Likewise.
33816         * modules/vfprintf-posix (Depends-on): Likewise.
33817         * modules/vsnprintf-posix (Depends-on): Likewise.
33818         * modules/vsprintf-posix (Depends-on): Likewise.
33819         * modules/vasnprintf (Files): Add lib/float+.h.
33820         * doc/functions/fprintf.texi: Update.
33821         * doc/functions/printf.texi: Update.
33822         * doc/functions/snprintf.texi: Update.
33823         * doc/functions/sprintf.texi: Update.
33824         * doc/functions/vfprintf.texi: Update.
33825         * doc/functions/vprintf.texi: Update.
33826         * doc/functions/vsnprintf.texi: Update.
33827         * doc/functions/vsprintf.texi: Update.
33828
33829 2007-05-18  Bruno Haible  <bruno@clisp.org>
33830
33831         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33832
33833 2007-05-18  Bruno Haible  <bruno@clisp.org>
33834
33835         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33836         for printing 64-bit integers. Needed for mingw.
33837
33838 2007-05-18  Bruno Haible  <bruno@clisp.org>
33839
33840         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33841         gl_FUNC_FREXPL_WORKS.
33842         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33843
33844 2007-05-18  Bruno Haible  <bruno@clisp.org>
33845
33846         * modules/frexpl-nolibm-tests: New file.
33847
33848         * modules/frexpl-nolibm: New file.
33849         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33850
33851 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33852
33853         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33854         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33855         GCC 4.2, which otherwise issues a lot of warnings.
33856         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33857         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33858         Likewise.
33859         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33860         * modules/iconv_open (iconv.h): Likewise.
33861         * modules/locale (locale.h): Likewise.
33862         * modules/netinet_in (netinet/in.h): Likewise.
33863         * modules/sys_select (sys_select.h): Likewise.
33864         * modules/sys_socket (sys/socket.h): Likewise.
33865         * modules/sys_stat (sys/stat.h): Likewise.
33866         * modules/sysexits (sysexits.h): Likewise.
33867         * modules/unistd (unistd.h): Likewise.
33868
33869 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33870
33871         * modules/closein-tests (Makefile.am): Distribute
33872         `test-closein.sh'.
33873
33874 2007-05-17  Bruno Haible  <bruno@clisp.org>
33875
33876         * tests/test-printf-posix.output: Renamed from
33877         tests/test-fprintf-posix.out.
33878         * modules/fprintf-posix-tests: Update.
33879         * modules/printf-posix-tests: Update.
33880         * modules/vfprintf-posix-tests: Update.
33881         * modules/vprintf-posix-tests: Update.
33882         * tests/test-fprintf-posix.sh: Update.
33883         * tests/test-printf-posix.sh: Update.
33884         * tests/test-vfprintf-posix.sh: Update.
33885         * tests/test-vprintf-posix.sh: Update.
33886         Reported by Ralf Wildenhues.
33887
33888 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33889
33890         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33891         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33892         GCC 4.2, which otherwise issues a lot of warnings.
33893         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33894         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33895         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33896         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33897         it should no longer be needed.
33898         * lib/string_.h: Likewise.
33899         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33900         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33901         * modules/inttypes (inttypes.h): Likewise.
33902         * modules/math (math.h): Likewise.
33903         * modules/search (search.h): Likewise.
33904         * modules/signal (signal.h): Likewise.
33905         * modules/stdint (stdint.h): Likewise.
33906         * modules/stdio (stdio.h): Likewise.
33907         * modules/stdlib (stdlib.h): Likewise.
33908         * modules/string (string.h): Likewise.
33909         * modules/sys_time (sys/time.h): Likewise.
33910         * modules/time (time.h): Likewise.
33911         * modules/wchar (wchar.h): Likewise.
33912         * modules/wctype (wtype.h): Likewise.
33913
33914 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33915
33916         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33917
33918 2007-05-13  Bruno Haible  <bruno@clisp.org>
33919
33920         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33921         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33922         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33923         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33924         (gl_PREREQ_STRTOK_R): Don't require it here.
33925
33926 2007-05-13  Bruno Haible  <bruno@clisp.org>
33927
33928         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33929         when used in C++ mode.
33930
33931 2007-05-12  Bruno Haible  <bruno@clisp.org>
33932
33933         * lib/linebuffer.h: Tweak doc.
33934         * lib/linebuffer.c: Likewise.
33935
33936 2007-05-12  James Youngman  <jay@gnu.org>
33937
33938         * lib/linebuffer.c (readlinebuffer_delim): New function,
33939         like readlinebuffer, but use a caller-specified delimiter.
33940         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33941         as the delimiter.
33942         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33943
33944 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33945
33946         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33947         * modules/openat (Files): Remove openat-die.c.
33948         (Depends-on): Add openat-die.
33949         * modules/openat-die: New module.
33950
33951 2007-05-06  Bruno Haible  <bruno@clisp.org>
33952
33953         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33954         Update with info about Cygwin.
33955         * doc/functions/fprintf.texi: Update.
33956         * doc/functions/printf.texi: Update.
33957         * doc/functions/snprintf.texi: Update.
33958         * doc/functions/sprintf.texi: Update.
33959         * doc/functions/vfprintf.texi: Update.
33960         * doc/functions/vprintf.texi: Update.
33961         * doc/functions/vsnprintf.texi: Update.
33962         * doc/functions/vsprintf.texi: Update.
33963         Reported by Eric Blake.
33964
33965 2007-05-06  Bruno Haible  <bruno@clisp.org>
33966
33967         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33968         padding ourselves for the floating-point directives.
33969         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33972         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33973         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33981         * tests/test-snprintf-posix.h (test_function): Also check the width
33982         and some flags in the %f directive.
33983         * tests/test-sprintf-posix.h (test_function): Likewise.
33984         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33985         * tests/test-vasprintf-posix.c (test_function): Likewise.
33986         * doc/functions/fprintf.texi: Update.
33987         * doc/functions/printf.texi: Update.
33988         * doc/functions/snprintf.texi: Update.
33989         * doc/functions/sprintf.texi: Update.
33990         * doc/functions/vfprintf.texi: Update.
33991         * doc/functions/vprintf.texi: Update.
33992         * doc/functions/vsnprintf.texi: Update.
33993         * doc/functions/vsprintf.texi: Update.
33994
33995 2007-05-06  Bruno Haible  <bruno@clisp.org>
33996
33997         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33998         pass the ' flag character to sprintf or snprintf.
33999         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34002         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34003         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34004         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34005         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34008         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34010         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34011         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34012         flag.
34013         * tests/test-sprintf-posix.h (test_function): Likewise.
34014         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34015         * tests/test-vasprintf-posix.c (test_function): Likewise.
34016         * doc/functions/fprintf.texi: Update.
34017         * doc/functions/printf.texi: Update.
34018         * doc/functions/snprintf.texi: Update.
34019         * doc/functions/sprintf.texi: Update.
34020         * doc/functions/vfprintf.texi: Update.
34021         * doc/functions/vprintf.texi: Update.
34022         * doc/functions/vsnprintf.texi: Update.
34023         * doc/functions/vsprintf.texi: Update.
34024
34025 2007-05-01  Bruno Haible  <bruno@clisp.org>
34026
34027         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34028
34029 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34030
34031         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34032         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34033
34034 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34035
34036         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34037         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34039
34040 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34041
34042         * lib/argp-help.c (struct hol_entry): New member `ord'.
34043         (HOL_ENTRY_PTRCMP): Use ord for comparison
34044         (hol_sort): Initialize ord.
34045
34046 2007-05-01  Bruno Haible  <bruno@clisp.org>
34047
34048         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34049         Reported by Eric Blake.
34050         * doc/gnulib.texi (Function Substitutes): Update.
34051
34052 2007-05-01  Bruno Haible  <bruno@clisp.org>
34053
34054         * doc/functions.texi: Remove file, now redundant through
34055         doc/functions/*.texi.
34056
34057 2007-05-01  Bruno Haible  <bruno@clisp.org>
34058
34059         * modules/argp (Depends-on): Add sleep.
34060
34061 2007-05-01  Bruno Haible  <bruno@clisp.org>
34062
34063         * modules/sleep-tests: New file.
34064         * tests/test-sleep.c: New file.
34065
34066         * modules/sleep: New file.
34067         * lib/sleep.c: New file.
34068         * m4/sleep.m4: New file.
34069         * lib/unistd_.h (sleep): New declaration.
34070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34071         HAVE_SLEEP.
34072         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34073         * doc/functions/sleep.texi: Document the sleep module.
34074
34075 2007-05-01  Bruno Haible  <bruno@clisp.org>
34076
34077         * lib/sigprocmask.h: Remove file.
34078         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34079         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34080         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34081         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34082         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34083         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34084         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34085         HAVE_SIGSET_T as a shell variable.
34086         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34087         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34088         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34089         (Depends-on): Add signal. Remove verify.
34090         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34091         (Include): Mention <signal.h> instead of sigprocmask.h.
34092         * NEWS: Mention the change.
34093         * lib/fatal-signal.c: Don't include sigprocmask.h.
34094
34095 2007-05-01  Bruno Haible  <bruno@clisp.org>
34096
34097         * modules/signal: New file.
34098         * lib/signal_.h: New file.
34099         * m4/signal_h.m4: New file.
34100
34101 2007-05-01  Bruno Haible  <bruno@clisp.org>
34102
34103         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34104         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34105         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34106         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34107
34108 2007-05-01  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34111         configure time.
34112         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34113         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34114         * modules/sys_stat (Makefile.am): Substitute their values into
34115         sys/stat.h.
34116
34117 2007-05-01  Bruno Haible  <bruno@clisp.org>
34118
34119         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34120         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34121         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34122
34123 2007-05-01  Bruno Haible  <bruno@clisp.org>
34124
34125         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34126         'assert' module here.
34127
34128 2007-05-01  Bruno Haible  <bruno@clisp.org>
34129
34130         * doc/functions/*.texi: New files.
34131         * doc/functions/google-ranking.txt: New file.
34132         * doc/gnulib.texi (Function Substitutes): New chapter.
34133         (ctime, inet_ntoa): Remove sections.
34134         * doc/ctime.texi: Remove file.
34135         * doc/inet_ntoa.texi: Remove file.
34136         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34137         dependencies.
34138         (%.info): New rule, specifying a --reference-limit.
34139
34140 2007-05-01  Bruno Haible  <bruno@clisp.org>
34141
34142         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34143
34144 2007-05-01  Bruno Haible  <bruno@clisp.org>
34145
34146         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34147         the portability of 'mkdir' to mingw systems.
34148
34149 2007-05-01  Bruno Haible  <bruno@clisp.org>
34150
34151         * doc/headers/google-ranking.txt: New file.
34152
34153 2007-04-30  Eric Blake  <ebb9@byu.net>
34154
34155         Prefer fseeko to fseek.
34156         * modules/getpass (Depends-on): Add fseeko.
34157         * lib/getpass.c (getpass): Use fseeko, not fseek.
34158
34159 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34160
34161         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34162         assumes the sorting is stable, while most qsort implementations
34163         are not.  Use argument addresses to ensure they never compare as
34164         equal.
34165
34166         * tests/test-argp-2.sh (usage-indent test): Fix output
34167         (func_compare): Restore diff options
34168         * tests/test-argp.c: Restore #include "progname.h"
34169
34170 2007-04-29  Bruno Haible  <bruno@clisp.org>
34171
34172         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34174         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34176         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34177         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34178         (TESTS, check_PROGRAMS): Add test-snprintf.
34179         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34180         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34181         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34182         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34183         assertions that fail on HP-UX, OSF/1, or IRIX.
34184         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34185
34186 2007-04-29  Bruno Haible  <bruno@clisp.org>
34187
34188         * MODULES.html.sh (posix_functions): Remove 'contents'.
34189
34190 2007-04-29  Karl Berry  <karl@gnu.org>
34191
34192         * config/srclist.txt (gendocs_template_min): new entry.
34193
34194 2007-04-29  Bruno Haible  <bruno@clisp.org>
34195
34196         Work around fpurge bug on BSD systems.
34197         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34198         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34199         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34200         fpurge to rpl_fpurge if the system already has this function.
34201         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34202         the case where the system already has this function. Correct invariants
34203         on BSD systems.
34204         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34205         BSD systems.
34206
34207 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34208
34209         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34210         proposed by Sven Verdoolaege.
34211
34212         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34213         options.
34214         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34215         (usage and help tests): Update
34216
34217 2007-04-29  Bruno Haible  <bruno@clisp.org>
34218
34219         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34220         Print more information in case of failure. Disable a test on BeOS.
34221
34222 2007-04-29  Bruno Haible  <bruno@clisp.org>
34223
34224         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34225         This helps debugging on systems on which no gdb is available.
34226
34227 2007-04-29  Bruno Haible  <bruno@clisp.org>
34228
34229         * lib/freading.h: Improve comments.
34230         * lib/fwriting.h: Likewise.
34231         * tests/test-freading.c (main): Don't check freading immediately after
34232         repositioning. Needed for glibc.
34233
34234 2007-04-29  Bruno Haible  <bruno@clisp.org>
34235
34236         * lib/freading.c (freading): Trivial simplification.
34237
34238 2007-04-28  Bruno Haible  <bruno@clisp.org>
34239
34240         * tests/test-fwriting.c (main): Also test the interaction between
34241         fflush and fwriting.
34242         * modules/fwriting-tests (Depends-on): Add fflush.
34243
34244         * tests/test-freading.c (main): Also test the interaction between
34245         fflush and freading.
34246         * modules/freading-tests (Depends-on): Add fflush.
34247
34248 2007-04-28  Bruno Haible  <bruno@clisp.org>
34249
34250         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34251         fseeko and ftello.
34252         Suggested by Eric Blake.
34253
34254 2007-04-28  Jim Meyering  <jim@meyering.net>
34255
34256         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34257         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34258         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34259
34260 2007-04-27  Eric Blake  <ebb9@byu.net>
34261
34262         * doc/headers/assert.texi (assert.h): Document assert module use.
34263
34264 2007-04-27  Bruno Haible  <bruno@clisp.org>
34265
34266         * doc/headers/*.texi: New files.
34267         * doc/gnulib.texi (Header File Substitutes): New chapter.
34268         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34269         dependencies.
34270         (standards.info ,standards.html, standards.dvi): Update dependencies.
34271         (mostlyclean, clean): New targets.
34272
34273 2007-04-27  Bruno Haible  <bruno@clisp.org>
34274
34275         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34276         * modules/sysexits (Files, Makefile.am): Update.
34277
34278         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34279         * modules/sys_socket (Files, Makefile.am): Update.
34280
34281         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34282         * modules/sys_stat (Files, Makefile.am): Update.
34283
34284 2007-04-27  Eric Blake  <ebb9@byu.net>
34285
34286         * lib/freading.h: Improve comments.
34287         * lib/fwriting.h: Likewise.
34288         * lib/fflush.c: Likewise.
34289
34290         Fix closein for mingw.
34291         * modules/closein-tests: Add tests for closein.
34292         * tests/test-closein.c: New file.
34293         * tests/test-closein.sh: Likewise.
34294         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34295         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34296
34297 2007-04-27  Bruno Haible  <bruno@clisp.org>
34298
34299         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34300         version is < 6.
34301         * lib/math_.h [__DECC]: Likewise.
34302         * lib/stdio_.h [__DECC]: Likewise.
34303         * lib/stdlib_.h [__DECC]: Likewise.
34304         * lib/string_.h [__DECC]: Likewise.
34305         * lib/time_.h [__DECC]: Likewise.
34306         * lib/wchar_.h [__DECC]: Likewise.
34307         * lib/wctype_.h [__DECC]: Likewise.
34308
34309 2007-04-27  Bruno Haible  <bruno@clisp.org>
34310
34311         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34312
34313 2007-04-27  Bruno Haible  <bruno@clisp.org>
34314
34315         * lib/fflush.c: Add comments.
34316         * modules/fpurge-tests (Depends-on): Add fflush.
34317         * modules/freadable-tests (Depends-on): Likewise.
34318         * modules/fwritable-tests (Depends-on): Likewise.
34319
34320 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34321
34322         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34323         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34324         Report by Bruno Haible <bruno@clisp.org>.
34325
34326 2007-04-26  Eric Blake  <ebb9@byu.net>
34327
34328         Fix fflush on mingw.
34329         * modules/fflush (Depends-on): Add freading.
34330         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34331         but unread data.
34332
34333 2007-04-26  Eric Blake  <ebb9@byu.net>
34334         and Bruno Haible  <bruno@clisp.org>
34335
34336         Implement freading and fwriting.
34337         * lib/freading.c: New file.
34338         * lib/freading.h: Likewise.
34339         * m4/freading.m4: Likewise.
34340         * modules/freading: Likewise.
34341         * modules/freading-tests: Likewise.
34342         * tests/test-freading.c: Likewise.
34343         * lib/fwriting.c: New file.
34344         * lib/fwriting.h: Likewise.
34345         * m4/fwriting.m4: Likewise.
34346         * modules/fwriting: Likewise.
34347         * modules/fwriting-tests: Likewise.
34348         * tests/test-fwriting.c: Likewise.
34349         * MODULES.html.sh (File stream based Input/Output): Mention them.
34350
34351 2007-04-26  Bruno Haible  <bruno@clisp.org>
34352
34353         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34354         'long' when we assume it.
34355         Suggested by Eric Blake.
34356
34357 2007-04-26  Bruno Haible  <bruno@clisp.org>
34358
34359         Ensure fseeko, ftello are declared on glibc systems.
34360         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34361         * modules/fseeko (configure.ac-early): Likewise.
34362         * modules/ftello (configure.ac-early): Likewise.
34363         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34364         AC_FUNC_FSEEKO for this.
34365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34366         (gl_CHECK_FSEEKO): Remove macro.
34367
34368 2007-04-26  Bruno Haible  <bruno@clisp.org>
34369
34370         * tests/test-fflush.c (main): Also check the ftell result after
34371         fflush and fseek/fseeko.
34372         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34373         file descriptor position cache in the stream.
34374         * lib/fseeko.c (rpl_fseeko): Likewise.
34375
34376 2007-04-26  Bruno Haible  <bruno@clisp.org>
34377
34378         * modules/fflush-tests (Depends-on): Add fseeko.
34379
34380 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34381             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34382
34383         * lib/argz_.h: ensure error_t definition is obtained in same
34384         mechanism system argz.h would have.
34385         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34386         argz facilities are known bad.  Err on the side of caution if
34387         cross-compiling.
34388
34389 2007-04-25  Eric Blake  <ebb9@byu.net>
34390
34391         * lib/fpurge.c (includes): Use stdlib.h for free.
34392         * tests/test-fflush.c (main): Also test fflush-fseeko.
34393
34394 2007-04-25  Bruno Haible  <bruno@clisp.org>
34395
34396         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34397         * lib/fseeko.c: New file.
34398         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34399         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34400         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34401         gl_FUNC_FSEEKO.
34402         (gl_FUNC_FSEEKO): Invoke it.
34403         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34404         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34405         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34406
34407 2007-04-25  Bruno Haible  <bruno@clisp.org>
34408
34409         * modules/fflush (Depends-on): Add ftello.
34410
34411 2007-04-25  Bruno Haible  <bruno@clisp.org>
34412
34413         * modules/ftello-tests: New file.
34414         * tests/test-ftello.c: New file.
34415
34416         * modules/ftello: New file.
34417         * m4/ftello.m4: New file.
34418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34419         HAVE_FTELLO.
34420         * lib/stdio_.h (ftello): New declaration.
34421         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34422         HAVE_FTELLO.
34423
34424 2007-04-25  Bruno Haible  <bruno@clisp.org>
34425
34426         * modules/fseeko-tests: New file.
34427         * tests/test-fseeko.c: New file.
34428
34429         * modules/fseeko: New file.
34430         * m4/fseeko.m4: New file.
34431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34432         HAVE_FSEEKO.
34433         * lib/stdio_.h (fseeko): New declaration.
34434         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34435         HAVE_FSEEKO.
34436
34437 2007-04-25  Bruno Haible  <bruno@clisp.org>
34438
34439         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34440
34441 2007-04-25  Bruno Haible  <bruno@clisp.org>
34442
34443         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34444         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34445         * tests/test-unistd.c: Likewise.
34446         * tests/test-fcntl.c: Likewise.
34447
34448 2007-04-23  Eric Blake  <ebb9@byu.net>
34449
34450         * lib/fflush.c: Fix missing include.
34451         Reported by Bruno Haible.
34452
34453 2007-04-23  Bruno Haible  <bruno@clisp.org>
34454
34455         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34456         Reported by Eric Blake.
34457
34458 2007-04-23  Bruno Haible  <bruno@clisp.org>
34459
34460         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34461
34462 2007-04-23  Bruno Haible  <bruno@clisp.org>
34463
34464         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34465
34466 2007-04-23  Bruno Haible  <bruno@clisp.org>
34467
34468         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34469         Needed on HP-UX 11.
34470
34471 2007-04-16  Eric Blake  <ebb9@byu.net>
34472
34473         Make fflush rely on fpurge.
34474         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34475         open coding all variants.
34476         * modules/fflush (Depends-on): Add fpurge and unistd.
34477         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34478         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34479
34480         Fix --with-tests compilation on cygwin.
34481         * modules/argmatch-tests (Makefile.am): List gnulib library first
34482         in LDADD.
34483         * modules/argp-tests (Makefile.am): Likewise.
34484         * modules/array-list-tests (Makefile.am): Likewise.
34485         * modules/array-oset-tests (Makefile.am): Likewise.
34486         * modules/avltree-list-tests (Makefile.am): Likewise.
34487         * modules/avltree-oset-tests (Makefile.am): Likewise.
34488         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34489         * modules/carray-list-tests (Makefile.am): Likewise.
34490         * modules/dirname-tests (Makefile.am): Likewise.
34491         * modules/frexp-tests (Makefile.am): Likewise.
34492         * modules/isnanl-tests (Makefile.am): Likewise.
34493         * modules/linked-list-tests (Makefile.am): Likewise.
34494         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34495         * modules/lock-tests (Makefile.am): Likewise.
34496         * modules/rbtree-list-tests (Makefile.am): Likewise.
34497         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34498         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34499         * modules/tls-tests (Makefile.am): Likewise.
34500         * modules/tsearch-tests (Makefile.am): Likewise.
34501         * modules/xvasprintf-tests (Makefile.am): Likewise.
34502
34503         Fix fpurge for cygwin.
34504         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34505         value.
34506         * modules/fpurge-tests (Depends-on): Clean up trash.
34507
34508 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34509
34510         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34511
34512         * m4/autobuild.m4: Re-indent.
34513
34514 2007-04-13  Bruno Haible  <bruno@clisp.org>
34515
34516         * modules/fpurge-tests: New file.
34517         * tests/test-fpurge.c: New file.
34518
34519         * modules/fpurge: New file.
34520         * lib/fpurge.h: New file.
34521         * lib/fpurge.c: New file.
34522         * m4/fpurge.m4: New file.
34523
34524 2007-04-13  Bruno Haible  <bruno@clisp.org>
34525
34526         * modules/fbufmode-tests: New file.
34527         * tests/test-fbufmode.c: New file.
34528
34529         * modules/fbufmode: New file.
34530         * lib/fbufmode.h: New file.
34531         * lib/fbufmode.c: New file.
34532         * m4/fbufmode.m4: New file.
34533
34534 2007-04-13  Bruno Haible  <bruno@clisp.org>
34535
34536         * modules/fwritable-tests: New file.
34537         * tests/test-fwritable.c: New file.
34538
34539         * modules/fwritable: New file.
34540         * lib/fwritable.h: New file.
34541         * lib/fwritable.c: New file.
34542         * m4/fwritable.m4: New file.
34543
34544 2007-04-13  Bruno Haible  <bruno@clisp.org>
34545
34546         * modules/freadable-tests: New file.
34547         * tests/test-freadable.c: New file.
34548
34549         * modules/freadable: New file.
34550         * lib/freadable.h: New file.
34551         * lib/freadable.c: New file.
34552         * m4/freadable.m4: New file.
34553
34554 2007-04-13  Bruno Haible  <bruno@clisp.org>
34555
34556         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34557         MOSTLYCLEANFILES.
34558
34559 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34560
34561         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34562         gzip bootstrap.conf to avoid dragging in i18n machinery.
34563         (gnulib_tool_option): Use it.
34564
34565 2007-04-13  Bruno Haible  <bruno@clisp.org>
34566
34567         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34568         %F directives.
34569         * tests/test-vasprintf-posix.c (test_function): Likewise.
34570         * tests/test-snprintf-posix.h (test_function): Likewise.
34571         * tests/test-sprintf-posix.h (test_function): Likewise.
34572         * tests/test-fprintf-posix.h (test_function): Likewise.
34573         * tests/test-printf-posix.h (test_function): Likewise.
34574         * tests/test-fprintf-posix.out: Likewise.
34575
34576 2007-04-13  Bruno Haible  <bruno@clisp.org>
34577
34578         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34579         * modules/tls-tests (configure.ac): Likewise.
34580         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34581
34582 2007-04-13  Bruno Haible  <bruno@clisp.org>
34583
34584         * lib/tls.c (glthread_tls_get): Fix return type.
34585         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34586
34587 2007-04-12  Eric Blake  <ebb9@byu.net>
34588
34589         * modules/gettime (Depends-on): Remove gettime.
34590         Reported by Dmitry V. Levin.
34591
34592 2007-04-12  Bruno Haible  <bruno@clisp.org>
34593
34594         * modules/fflush (Include): Mention <stdio.h>.
34595         * modules/strtoimax (Include): Mention <inttypes.h>.
34596         * modules/strtoumax (Include): Likewise.
34597
34598 2007-04-12  Eric Blake  <ebb9@byu.net>
34599
34600         * .cvsignore: New file.
34601         * .gitignore: Likewise.
34602
34603 2007-04-12  Bruno Haible  <bruno@clisp.org>
34604
34605         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34606         not before, since $(LDADD) often contains libgnu.a.
34607         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34608         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34609         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34610         Needed on Cygwin.
34611
34612 2007-04-12  Eric Blake  <ebb9@byu.net>
34613
34614         Work around glibc's failure to flush stdin on fclose.
34615         * lib/closein.c (close_stdin): Flush stdin before closing.
34616
34617         Work around glibc's failure to reset seekable stdin on exit.
34618         * modules/closein: New module.
34619         * lib/closein.c: New file.
34620         * lib/closein.h: Likewise.
34621         * m4/closein.m4: Likewise.
34622         * MODULES.html.sh (File stream based Input/Output): Document it.
34623
34624 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34625
34626         * gnulib-tool: Rename generated 'autobuild' script to
34627         'do-autobuild' in --create-megatestdir output.
34628
34629         * doc/gnulib.texi (Build robot for gnulib): Fix.
34630
34631 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34632
34633         * modules/sysexits (Depends-on): Add absolute-header.
34634
34635 2007-04-12  Eric Blake  <ebb9@byu.net>
34636
34637         No need to preserve errno on success.
34638         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34639         Reported by Bruno Haible.
34640
34641 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34642
34643         * MODULES.html.sh (Support for maintaining and releasing
34644         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34645
34646 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34647
34648         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34649
34650 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34651
34652         * modules/autobuild: New module.
34653
34654         * m4/autobuild.m4: New file.
34655
34656 2007-04-11  Bruno Haible  <bruno@clisp.org>
34657
34658         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34659         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34662         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34663         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34664         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34665         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34666         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34667         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34669         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34670         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34672         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34673         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34675         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34676         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34686         Reported by Eric Blake.
34687
34688 2007-04-11  Bruno Haible  <bruno@clisp.org>
34689
34690         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34691
34692 2007-04-10  Bruno Haible  <bruno@clisp.org>
34693
34694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34695         for NaN and Infinity. Needed on FreeBSD 6.1.
34696         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34697         regarding results for "%010a" of Infinity and NaN.
34698         * tests/test-vasprintf-posix.c (test_function): Likewise.
34699         * tests/test-snprintf-posix.h (test_function): Likewise.
34700         * tests/test-sprintf-posix.h (test_function): Likewise.
34701         * tests/test-fprintf-posix.h (test_function): Likewise.
34702         * tests/test-printf-posix.h (test_function): Likewise.
34703         * tests/test-fprintf-posix.out: Likewise.
34704
34705 2007-04-10  Bruno Haible  <bruno@clisp.org>
34706
34707         * modules/locale-tests: New file.
34708         * tests/test-locale.c: New file.
34709
34710         * modules/locale: New file.
34711         * lib/locale_.h: New file.
34712         * m4/locale_h.m4: New file.
34713
34714 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34715             Bruno Haible  <bruno@clisp.org>
34716
34717         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34718         be determined, test for availability of the copysignf, copysign,
34719         copysignl functions.
34720         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34721         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34722         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34723
34724 2007-04-09  Eric Blake  <ebb9@byu.net>
34725
34726         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34727         * modules/stdio (Makefile.am): Support fflush.
34728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34729         * modules/fflush: New file.
34730         * lib/fflush.c: Likewise.
34731         * m4/fflush.m4: Likewise.
34732         * modules/fflush-tests: New test.
34733         * tests/test-fflush.c: Likewise.
34734         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34735
34736 2007-04-06  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34739         (VASNPRINTF): Use signbit for faster determination whether to print a
34740         minus sign.
34741         * modules/vasnprintf (Files): Remove lib/float+.h.
34742         * modules/fprintf-posix (Depends-on): Add signbit.
34743         * modules/snprintf-posix (Depends-on): Likewise.
34744         * modules/sprintf-posix (Depends-on): Likewise.
34745         * modules/vasnprintf-posix (Depends-on): Likewise.
34746         * modules/vasprintf-posix (Depends-on): Likewise.
34747         * modules/vfprintf-posix (Depends-on): Likewise.
34748         * modules/vsnprintf-posix (Depends-on): Likewise.
34749         * modules/vsprintf-posix (Depends-on): Likewise.
34750
34751 2007-04-06  Bruno Haible  <bruno@clisp.org>
34752
34753         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34754         * tests/test-frexpl.c (main): Likewise.
34755         * tests/test-ldexpl.c (main): Likewise.
34756         * modules/frexp-tests (Depends-on): Add signbit.
34757         * modules/frexpl-tests (Depdends-on): Likewise.
34758         * modules/ldexpl-tests (Depdends-on): Likewise.
34759
34760 2007-04-06  Bruno Haible  <bruno@clisp.org>
34761
34762         * modules/signbit-tests: New file.
34763         * tests/test-signbit.c: New file.
34764
34765         * modules/signbit: New file.
34766         * lib/signbitf.c: New file.
34767         * lib/signbitd.c: New file.
34768         * lib/signbitl.c: New file.
34769         * m4/signbit.m4: New file.
34770         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34771         (signbit): New macro.
34772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34773         REPLACE_SIGNBIT.
34774         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34775         REPLACE_FREXPL into math.h.
34776
34777 2007-04-06  Bruno Haible  <bruno@clisp.org>
34778
34779         * modules/isnanf-nolibm-tests: New file.
34780         * tests/test-isnanf.c: New file.
34781
34782         * modules/isnanf-nolibm: New file.
34783         * lib/isnanf.h: New file.
34784         * lib/isnanf.c: New file.
34785         * lib/isnan.c: Consider the USE_FLOAT macro.
34786         * m4/isnanf.m4: New file.
34787
34788 2007-04-06  Bruno Haible  <bruno@clisp.org>
34789
34790         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34791         (Link): New section.
34792
34793         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34794
34795 2007-04-06  Bruno Haible  <bruno@clisp.org>
34796
34797         Assume the 'long double' type.
34798         * m4/longdouble.m4: Remove file.
34799         * config/srclist.txt: Don't mention longdouble.m4.
34800         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34801         * lib/float+.h: Likewise.
34802         * lib/frexp.c: Likewise.
34803         * lib/printf-args.h: Likewise.
34804         * lib/printf-args.c: Likewise.
34805         * lib/printf-frexp.c: Likewise.
34806         * lib/printf-parse.c: Likewise.
34807         * lib/vasnprintf.c: Likewise.
34808         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34809         * m4/intl.m4: Likewise.
34810         * m4/isnanl.m4: Likewise.
34811         * m4/printf.m4: Likewise.
34812         * m4/printf-frexpl.m4: Likewise.
34813         * m4/vasnprintf.m4: Likewise.
34814         * modules/allocsa (Files): Remove m4/longdouble.m4.
34815         * modules/gettext (Files): Likewise.
34816         * modules/relocatable-prog-wrapper (Files): Likewise.
34817         * modules/vasnprintf (Files): Likewise.
34818         * modules/isnanl (Files): Likewise.
34819         (Include): Simplify.
34820         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34821         (Include): Simplify.
34822         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34823         (Include): Simplify.
34824         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34825         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34826         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34827         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34828         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34830         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34832         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34834         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34835         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34836         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34837         * tests/test-isnanl.c: Likewise.
34838         * tests/test-snprintf-posix.h: Likewise.
34839         * tests/test-sprintf-posix.h: Likewise.
34840         * tests/test-vasnprintf-posix.c: Likewise.
34841         * tests/test-vasnprintf-posix2.c: Likewise.
34842         * tests/test-vasprintf-posix.c: Likewise.
34843
34844 2007-04-06  Bruno Haible  <bruno@clisp.org>
34845
34846         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34847         * lib/math_.h [__DECC]: Include the overridden include file through
34848         #include_next, outside the double-inclusion guard.
34849         * lib/stdio_.h [__DECC]: Likewise.
34850         * lib/stdlib_.h [__DECC]: Likewise.
34851         * lib/string_.h [__DECC]: Likewise.
34852         * lib/time_.h [__DECC]: Likewise.
34853         * lib/wchar_.h [__DECC]: Likewise.
34854         * lib/wctype_.h [__DECC]: Likewise.
34855         * lib/inttypes_.h [__DECC]: Likewise.
34856         Reported by Albert Chin <china@thewrittenword.com> in
34857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34858
34859 2007-04-04  Eric Blake  <ebb9@byu.net>
34860
34861         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34862         1.5.x.
34863
34864 2007-04-04  Bruno Haible  <bruno@clisp.org>
34865
34866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34867         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34868
34869 2007-04-04  Bruno Haible  <bruno@clisp.org>
34870
34871         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34872         results for "%010a" of Infinity and NaN.
34873         * tests/test-vasprintf-posix.c (test_function): Likewise.
34874         * tests/test-snprintf-posix.h (test_function): Likewise.
34875         * tests/test-sprintf-posix.h (test_function): Likewise.
34876         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34877         * tests/test-printf-posix.h (test_function): Likewise.
34878         * tests/test-fprintf-posix.out: Update.
34879         Needed for FreeBSD 6.1.
34880
34881 2007-04-04  Bruno Haible  <bruno@clisp.org>
34882
34883         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34884         directly used by the gnulib modules nor by gnulib-tool.
34885
34886 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34887
34888         * DEPENDENCIES: Give overall description of version dependency
34889         desirability.  Use more-typical names for apps.
34890         Add shell, coreutils, diffutils, grep, tar, gzip.
34891
34892 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34893
34894         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34895
34896 2007-04-04  Karl Berry  <karl@gnu.org>
34897
34898         * MODULES.html.sh (func_module): missing '.
34899
34900 2007-04-03  Bruno Haible  <bruno@clisp.org>
34901
34902         * modules/argmatch-tests (Makefile.am): New variable
34903         test_argmatch_LDADD.
34904         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34905         * modules/array-list-tests (Makefile.am): New variable
34906         test_array_list_LDADD.
34907         * modules/array-oset-tests (Makefile.am): New variable
34908         test_array_oset_LDADD.
34909         * modules/avltree-list-tests (Makefile.am): New variable
34910         test_avltree_list_LDADD.
34911         * modules/avltree-oset-tests (Makefile.am): New variable
34912         test_avltree_oset_LDADD.
34913         * modules/avltreehash-list-tests (Makefile.am): New variable
34914         test_avltreehash_list_LDADD.
34915         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34916         test_canonicalize_lgpl_LDADD.
34917         * modules/carray-list-tests (Makefile.am): New variable
34918         test_carray_list_LDADD.
34919         * modules/dirname-tests (Makefile.am): New variable
34920         test_dirname_LDADD.
34921         * modules/linked-list-tests (Makefile.am): New variable
34922         test_linked_list_LDADD.
34923         * modules/linkedhash-list-tests (Makefile.am): New variable
34924         test_linkedhash_list_LDADD.
34925         * modules/rbtree-list-tests (Makefile.am): New variable
34926         test_rbtree_list_LDADD.
34927         * modules/rbtree-oset-tests (Makefile.am): New variable
34928         test_rbtree_oset_LDADD.
34929         * modules/rbtreehash-list-tests (Makefile.am): New variable
34930         test_rbtreehash_list_LDADD.
34931         * modules/xvasprintf-tests (Makefile.am): New variable
34932         test_xvasprintf_LDADD.
34933         Reported by Eric Blake.
34934
34935 2007-04-03  Eric Blake  <ebb9@byu.net>
34936
34937         * DEPENDENCIES: Weaken m4 requirements.
34938
34939 2007-04-03  Bruno Haible  <bruno@clisp.org>
34940
34941         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34942         * modules/isnanl-tests (configure.ac): Likewise.
34943
34944 2007-04-03  Ben Pfaff  <blp@gnu.org>
34945
34946         * modules/iconv_open: Add $(srcdir)/ to source directory
34947         references in Makefile fragments that call gperf, to fix VPATH
34948         builds.
34949
34950 2007-04-03  Bruno Haible  <bruno@clisp.org>
34951
34952         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34953         * lib/ldexpl.c: Undo last change.
34954
34955 2007-04-03  Bruno Haible  <bruno@clisp.org>
34956
34957         * modules/printf-frexpl (Depends-on): Undo last change.
34958         (Files): Add m4/ldexpl.m4.
34959
34960 2007-04-03  Bruno Haible  <bruno@clisp.org>
34961
34962         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34963         * modules/isnanl (Link): New section.
34964
34965         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34966         * modules/frexp (Link): New section.
34967
34968         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34969         * modules/frexpl (Link): New section.
34970
34971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34972         * modules/ldexpl (Link): New section.
34973
34974 2007-04-03  Bruno Haible  <bruno@clisp.org>
34975
34976         * modules/TEMPLATE-EXTENDED: New file.
34977         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34978
34979 2007-04-03  Bruno Haible  <bruno@clisp.org>
34980
34981         * DEPENDENCIES: New file.
34982         Suggested by Simon Josefsson.
34983
34984 2007-04-03  Bruno Haible  <bruno@clisp.org>
34985
34986         * doc/gnulib.texi: Escape @.
34987
34988 2007-04-03  James Youngman  <jay@gnu.org>
34989         and Paul Eggert  <eggert@cs.ucla.edu>
34990
34991         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34992         birthtime on all systems that have birthtime, not just those which
34993         use st_birthtimensec rather than st_birthtim.  Putting zero in
34994         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34995         that the birth time is not available for files on an NFS mount.
34996
34997 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34998
34999         * modules/memxor: Move back from crypto/, suggested by Bruno.
35000         * modules/crypto/hmac-sha1: Fix memxor dependency.
35001
35002         * modules/crypto/gc: Moved from ../.
35003
35004 2007-04-02  Eric Blake  <ebb9@byu.net>
35005
35006         * lib/ldexpl.c (includes): Avoid libm.
35007
35008         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35009
35010 2007-04-02  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35013         on IRIX.
35014
35015 2007-04-02  Bruno Haible  <bruno@clisp.org>
35016
35017         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35018         x86 or x86_64 platforms running MacOS X.
35019         Reported by Ryan Schmidt <@ryandesign.com>.
35020
35021 2007-04-02  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35024         i386.
35025
35026 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35027
35028         * modules/crypto/arcfour: Moved from ../.
35029         * modules/crypto/arcfour-tests: Moved from ../.
35030         * modules/crypto/arctwo: Moved from ../.
35031         * modules/crypto/arctwo-tests: Moved from ../.
35032         * modules/crypto/des: Moved from ../.
35033         * modules/crypto/des-tests: Moved from ../.
35034         * modules/crypto/gc-arcfour: Moved from ../.
35035         * modules/crypto/gc-arcfour-tests: Moved from ../.
35036         * modules/crypto/gc-arctwo: Moved from ../.
35037         * modules/crypto/gc-arctwo-tests: Moved from ../.
35038         * modules/crypto/gc-des: Moved from ../.
35039         * modules/crypto/gc-des-tests: Moved from ../.
35040         * modules/crypto/gc-hmac-md5: Moved from ../.
35041         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35042         * modules/crypto/gc-hmac-sha1: Moved from ../.
35043         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35044         * modules/crypto/gc-md2: Moved from ../.
35045         * modules/crypto/gc-md2-tests: Moved from ../.
35046         * modules/crypto/gc-md4: Moved from ../.
35047         * modules/crypto/gc-md4-tests: Moved from ../.
35048         * modules/crypto/gc-md5: Moved from ../.
35049         * modules/crypto/gc-md5-tests: Moved from ../.
35050         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35051         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35052         * modules/crypto/gc-random: Moved from ../.
35053         * modules/crypto/gc-rijndael: Moved from ../.
35054         * modules/crypto/gc-rijndael-tests: Moved from ../.
35055         * modules/crypto/gc-sha1: Moved from ../.
35056         * modules/crypto/gc-sha1-tests: Moved from ../.
35057         * modules/crypto/gc-tests: Moved from ../.
35058         * modules/crypto/hmac-md5: Moved from ../.
35059         * modules/crypto/hmac-md5-tests: Moved from ../.
35060         * modules/crypto/hmac-sha1: Moved from ../.
35061         * modules/crypto/hmac-sha1-tests: Moved from ../.
35062         * modules/crypto/md2: Moved from ../.
35063         * modules/crypto/md2-tests: Moved from ../.
35064         * modules/crypto/md4: Moved from ../.
35065         * modules/crypto/md4-tests: Moved from ../.
35066         * modules/crypto/md5: Moved from ../.
35067         * modules/crypto/md5-tests: Moved from ../.
35068         * modules/crypto/memxor: Moved from ../.
35069         * modules/crypto/rijndael: Moved from ../.
35070         * modules/crypto/rijndael-tests: Moved from ../.
35071         * modules/crypto/sha1: Moved from ../.
35072
35073 2007-03-30  James Youngman  <jay@gnu.org>
35074
35075         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35076         rename() to change the ctime of a file (because ctime is unaffected
35077         by rename on jfs2 on AIX 5.1).
35078         (main): Start by doing cleanup, in case a previous run failed leaving
35079         test files behind.
35080
35081 2007-03-31  Bruno Haible  <bruno@clisp.org>
35082
35083         Support old proprietary implementations of iconv.
35084         * modules/iconv_open: New file.
35085         * lib/iconv_.h: New file.
35086         * m4/iconv_h.m4: New file.
35087         * lib/iconv_open.c: New file.
35088         * lib/iconv_open-aix.gperf: New file.
35089         * lib/iconv_open-hpux.gperf: New file.
35090         * lib/iconv_open-irix.gperf: New file.
35091         * lib/iconv_open-osf.gperf: New file.
35092         * m4/iconv_open.m4: New file.
35093         * modules/linebreak (Depends-on): Add iconv_open.
35094         * modules/striconv (Depends-on): Likewise.
35095         * modules/striconveh (Depends-on): Likewise.
35096         * modules/unicodeio (Depends-on): Likewise.
35097         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35098         (iconv_t)(-1).
35099         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35100         conversion if cd is (iconv_t)(-1).
35101         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35102         is not possible.
35103
35104 2007-03-31  Bruno Haible  <bruno@clisp.org>
35105
35106         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35107         work on Solaris either. Protect also second use of "autodetect_jp".
35108
35109 2007-03-31  Bruno Haible  <bruno@clisp.org>
35110
35111         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35112         the function is not present.
35113
35114 2007-03-31  Bruno Haible  <bruno@clisp.org>
35115
35116         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35117         the function is not present.
35118
35119 2007-03-31  Bruno Haible  <bruno@clisp.org>
35120
35121         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35122         a bug in HP-UX iconv_open().
35123
35124 2007-03-31  Bruno Haible  <bruno@clisp.org>
35125
35126         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35127         (Mathematics <math.h>): New section, add fpieee.
35128         (Input/output <stdio.h>): Add fseterr.
35129         (Mathematics <math.h>): New section, add printf-frexp.
35130         (Container data structures): Add sublist.
35131         (Core language properties): Add fpucw, inline.
35132         (Functions for greatest-width integer types <inttypes.h>): Add
35133         imaxabs, imaxdiv, inttypes.
35134         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35135         isnanl-nolibm, ldexp.
35136         (Mathematics <math.h>): New section, add printf-frexpl.
35137         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35138         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35139         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35140         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35141         (Unicode string functions): Add unistr/u*-mbtoucr.
35142         (Java): Add javacomp-script, javaexec-script.
35143         (C#): Add csharpcomp-script, csharpexec-script.
35144         (Support for building libraries and executables): Add havelib,
35145         relocatable-*.
35146         (Support for maintaining and releasing projects): Renamed from
35147         'Support for maintaining and release projects'. Add announce-gen.
35148
35149 2007-03-31  Bruno Haible  <bruno@clisp.org>
35150
35151         * README: Talk primarily about git.
35152         (git and CVS): Renamed from CVS.
35153         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35154         gnulib is available through git.
35155         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35156
35157 2007-03-30  Bruno Haible  <bruno@clisp.org>
35158
35159         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35160         * lib/poll_.h: Likewise.
35161         * lib/stat_.h: Likewise.
35162         * lib/sys_time_.h: Likewise.
35163         * lib/sysexit_.h: Likewise.
35164         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35165         * lib/stdbool_.h: Likewise.
35166         * lib/byteswap_.h: Add double-inclusion guard.
35167
35168 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35169
35170         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35171
35172 2007-03-30  Karl Berry  <karl@gnu.org>
35173
35174         * config/srclist-update: double space after USA in the license
35175         substitution, since that's how it's usually (?) written.
35176
35177 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35178
35179         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35180         reported by Bruno Haible.
35181
35182 2007-03-29  Bruno Haible  <bruno@clisp.org>
35183
35184         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35185         a bug in AIX iconv().
35186
35187 2007-03-29  Bruno Haible  <bruno@clisp.org>
35188
35189         * modules/ldexpl-tests: New file.
35190         * tests/test-ldexpl.c: New file.
35191
35192 2007-03-29  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/ldexpl.c: Include fpucw.h.
35195         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35196         multiplication.
35197         * modules/ldexpl (Depends-on): Add fpucw.
35198
35199 2007-03-29  Bruno Haible  <bruno@clisp.org>
35200
35201         * modules/ldexpl: New file.
35202         * m4/ldexpl.m4: New file.
35203         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35204         set.
35205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35206         REPLACE_LDEXPL.
35207         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35208         REPLACE_LDEXPL.
35209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35210         gl_FUNC_LDEXPL_WORKS.
35211         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35212         * modules/mathl (Files): Remove lib/ldexpl.c.
35213         (Depends-on): Add ldexpl.
35214
35215 2007-03-29  Bruno Haible  <bruno@clisp.org>
35216
35217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35218
35219 2007-03-29  Bruno Haible  <bruno@clisp.org>
35220
35221         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35222         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35223         and possibly also HP-UX.
35224         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35225         work on AIX, IRIX, HP-UX, OSF/1.
35226         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35227         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35228         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35229         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35230         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35231         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35232
35233 2007-03-29  Bruno Haible  <bruno@clisp.org>
35234
35235         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35236
35237 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35238
35239         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35240         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35241
35242 2007-03-29  Eric Blake  <ebb9@byu.net>
35243
35244         * lib/acl-internal.h: Remove redundant include.
35245         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35246         Cygwin when a file is locked.
35247
35248 2007-03-29  Bruno Haible  <bruno@clisp.org>
35249
35250         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35251         file.
35252         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35253
35254 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35255
35256         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35257         try to remove a parent directory if the child couldn't be removed
35258         (except for the first rmdir, which could fail because the child
35259         doesn't exist).  Problem reported by Jeff Blaine in
35260         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35261
35262 2007-03-28  Bruno Haible  <bruno@clisp.org>
35263
35264         * lib/striconveh.c (utf8conv_carefully): New function.
35265         (mem_cd_iconveh_internal): Invoke it.
35266
35267 2007-03-28  Bruno Haible  <bruno@clisp.org>
35268
35269         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35270         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35271         input.
35272         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35273         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35274         unistr/u8-uctomb.
35275
35276 2007-03-28  Bruno Haible  <bruno@clisp.org>
35277
35278         * modules/unistr/u8-mbtoucr: New file.
35279         * lib/unistr/u8-mbtoucr.c: New file.
35280         * modules/unistr/u16-mbtoucr: New file.
35281         * lib/unistr/u16-mbtoucr.c: New file.
35282         * modules/unistr/u16-mbtoucr: New file.
35283         * lib/unistr/u16-mbtoucr.c: New file.
35284         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35285
35286 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35287             Bruno Haible  <bruno@clisp.org>
35288
35289         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35290         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35291         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35292
35293         * m4/stdio_h.m4: Add stubs for vasprintf too.
35294
35295         * modules/stdio: Support vasprintf in sed command.
35296
35297         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35298         vasprintf.h.  Add stdio module indicator.
35299
35300         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35301         vasprintf.h.
35302
35303         * lib/vasprintf.h: File removed.
35304
35305         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35306         * lib/vasprintf.c: Ditto.
35307         * lib/xvasprintf.c: Ditto.
35308         * tests/test-vasprintf-posix.c: Ditto.
35309         * tests/test-vasprintf.c: Ditto.
35310
35311 2007-03-27  Bruno Haible  <bruno@clisp.org>
35312
35313         Make vasnprintf multithread-safe.
35314         * lib/vasnprintf.c (decimal_point_char): New function.
35315         (VASNPRINTF): Use it.
35316         Suggested by Simon Josefsson.
35317
35318 2007-03-27  Eric Blake  <ebb9@byu.net>
35319
35320         Support sub-second birthtime on cygwin.
35321         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35322         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35323         (get_stat_birthtime): Also work with st_birthtim.
35324
35325 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35326
35327         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35328         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35329         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35330         (get_stat_birthtime_ns): Simplify compile-time tests.
35331         (get_stat_birthtime): Change the API to look like
35332         get_stat_mtime etc., except return a negative tv_nsec on error.
35333         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35334         Don't check for "spare" fields.
35335         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35336         or for struct stat.st_birthtime, as these tests aren't used.
35337         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35338
35339 2007-03-27  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/stat-time.h: Include <sys/stat.h>.
35342
35343 2007-03-27  James Youngman  <jay@gnu.org>
35344
35345         * lib/stat-time.h (get_stat_birthtime): New function for
35346           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35347         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35348           and its variants.
35349         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35350         * modules/stat-time-test: New file.
35351         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35352
35353 2007-03-26  Bruno Haible  <bruno@clisp.org>
35354
35355         Better support of signalling NaNs.
35356         * lib/atanl.c: Include isnanl.h.
35357         (atanl): Perform test for NaN at the beginning of the function and
35358         through a call to isnanl.
35359         * lib/cosl.c: Include isnanl.h.
35360         (cosl): Perform test for NaN at the beginning of the function and
35361         through a call to isnanl.
35362         * lib/ldexpl.c: Include isnanl.h.
35363         (ldexpl): Perform test for NaN through a call to isnanl.
35364         * lib/logl.c: Include isnanl.h.
35365         (logl): Perform test for NaN at the beginning of the function and
35366         through a call to isnanl.
35367         * lib/sinl.c: Include isnanl.h.
35368         (sinl): Perform test for NaN at the beginning of the function and
35369         through a call to isnanl.
35370         * lib/sqrtl.c: Include isnanl.h.
35371         (sqrtl): Perform test for NaN at the beginning of the function and
35372         through a call to isnanl.
35373         * lib/tanl.c: Include isnanl.h.
35374         (tanl): Perform test for NaN at the beginning of the function and
35375         through a call to isnanl.
35376         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35377         * modules/mathl (Depends-on): Add isnanl.
35378
35379 2007-03-26  Eric Blake  <ebb9@byu.net>
35380
35381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35382         regression in logic sense of previous patch.
35383
35384 2007-03-26  Bruno Haible  <bruno@clisp.org>
35385
35386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35387         unportable shell command "if ! ...".
35388         Reported by Ralf Wildenhues.
35389
35390 2007-03-25  Bruno Haible  <bruno@clisp.org>
35391
35392         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35393         <sysexits.h> file, and only add EX_CONFIG.
35394         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35395         absolute file name and whether it is sufficient. Substitute also
35396         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35397         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35398         ABSOLUTE_SYSEXITS_H into sysexits.h.
35399
35400 2007-03-25  Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35403         hints is NULL.
35404
35405 2007-03-25  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35408         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35409
35410 2007-03-25  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/vasnprintf.c: Include langinfo.h.
35413         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35414         multithread-safe.
35415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35418         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35421         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35423         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35424         Reported by Simon Josefsson.
35425
35426 2007-03-25  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35429         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35430         * modules/vasnprintf (Depends-on): Add stdint.
35431
35432 2007-03-25  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/fpieee: New file.
35435         * m4/fpieee.m4: New file.
35436         * modules/isnan-nolibm (Depends-on): Add fpieee.
35437         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35438         * modules/isnanl (Depends-on): Add fpieee.
35439
35440 2007-03-25  Bruno Haible  <bruno@clisp.org>
35441
35442         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35443
35444 2007-03-25  Bruno Haible  <bruno@clisp.org>
35445
35446         Avoid test failures on IRIX 6.5.
35447         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35448         (main): Use it.
35449         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35450         macros.
35451         (main): Use them.
35452
35453 2007-03-25  Bruno Haible  <bruno@clisp.org>
35454
35455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35456         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35457         exists but doesn't work.
35458         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35459         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35461         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35462
35463 2007-03-25  Bruno Haible  <bruno@clisp.org>
35464
35465         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35466         returns inf. Needed on IRIX 6.5.
35467
35468 2007-03-25  Bruno Haible  <bruno@clisp.org>
35469
35470         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35471         (main): Use isnanl instead of x != x idiom.
35472         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35473
35474         * tests/test-frexp.c: Include isnan.h.
35475         (main): Use isnan instead of x != x idiom.
35476         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35477
35478 2007-03-25  Bruno Haible  <bruno@clisp.org>
35479
35480         * tests/test-frexp.c (NaN): New function/macro.
35481         (main): Use it instead of 0.0 / 0.0.
35482         * tests/test-isnan.c (NaN): New function/macro.
35483         (main): Use it instead of 0.0 / 0.0.
35484         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35485         (test_function): Use it instead of 0.0 / 0.0.
35486         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35487         (test_function): Use it instead of 0.0 / 0.0.
35488         * tests/test-snprintf-posix.h (NaN): New function/macro.
35489         (test_function): Use it instead of 0.0 / 0.0.
35490         * tests/test-sprintf-posix.h (NaN): New function/macro.
35491         (test_function): Use it instead of 0.0 / 0.0.
35492         * tests/test-fprintf-posix.h (NaN): New function/macro.
35493         (test_function): Use it instead of 0.0 / 0.0.
35494         * tests/test-printf-posix.h (NaN): New function/macro.
35495         (test_function): Use it instead of 0.0 / 0.0.
35496
35497         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35498
35499 2007-03-25  Bruno Haible  <bruno@clisp.org>
35500
35501         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35502
35503 2007-03-25  Bruno Haible  <bruno@clisp.org>
35504
35505         * lib/regexec.c (merge_state_with_log): Make static.
35506
35507 2007-03-25  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/trigl.c (kernel_rem_pio2): Make static.
35510
35511 2007-03-25  Bruno Haible  <bruno@clisp.org>
35512
35513         * lib/sincosl.c (sincosl_table): Make static.
35514
35515 2007-03-25  Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35518         if the compiler does not support C99.
35519
35520 2007-03-25  Bruno Haible  <bruno@clisp.org>
35521
35522         * modules/time (Makefile.am): Ensure all rule action lines start with a
35523         tab.
35524
35525 2007-03-24  Bruno Haible  <bruno@clisp.org>
35526
35527         * modules/tsearch-tests: New file.
35528         * tests/test-tsearch.sh: New file.
35529         * tests/test-tsearch.c: New file, mostly copied from glibc.
35530
35531         * modules/search-tests: New file.
35532         * tests/test-search.c: New file.
35533
35534         * modules/search: New file.
35535         * lib/search_.h: New file, incorporating lib/tsearch.h.
35536         * m4/search_h.m4: New file.
35537         * lib/tsearch.h: Remove file.
35538         * lib/tsearch.c: Include search.h instead of tsearch.h.
35539         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35540         HAVE_TSEARCH.
35541         * modules/tsearch (Files): Remove lib/tsearch.h.
35542         (Depends-on): Add search.
35543         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35544         (Include): Change tsearch.h into search.h.
35545
35546 2007-03-24  Bruno Haible  <bruno@clisp.org>
35547
35548         * modules/fpucw: New file.
35549         * lib/fpucw.h: New file.
35550         * lib/frexp.c: Include fpucw.h.
35551         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35552         (FUNC): Use them.
35553         * lib/printf-frexp.c: Include fpucw.h.
35554         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35555         (FUNC): Use them.
35556         * lib/vasnprintf.c: Include fpucw.h.
35557         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35558         'long double' calculations.
35559         * tests/test-frexpl.c: Include fpucw.h.
35560         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35561         * tests/test-printf-frexpl.c: Include fpucw.h.
35562         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35563         * modules/frexpl (Depends-on): Add fpucw.
35564         * modules/printf-frexpl (Depends-on): Likewise.
35565         * modules/fprintf-posix (Depends-on): Likewise.
35566         * modules/snprintf-posix (Depends-on): Likewise.
35567         * modules/sprintf-posix (Depends-on): Likewise.
35568         * modules/vasnprintf-posix (Depends-on): Likewise.
35569         * modules/vasprintf-posix (Depends-on): Likewise.
35570         * modules/vfprintf-posix (Depends-on): Likewise.
35571         * modules/vsnprintf-posix (Depends-on): Likewise.
35572         * modules/vsprintf-posix (Depends-on): Likewise.
35573         * modules/frexpl-tests (Depends-on): Likewise.
35574         * modules/printf-frexpl-tests (Depends-on): Likewise.
35575
35576 2007-03-24  Bruno Haible  <bruno@clisp.org>
35577
35578         * lib/float+.h: New file.
35579         * lib/isnan.c: Include float+.h.
35580         (SIZE): New macro.
35581         (FUNC): Compare only SIZE bytes of the value.
35582         * lib/vasnprintf.c: Include float+.h.
35583         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35584         SIZEOF_LDBL or SIZEOF_DBL bytes.
35585         * modules/isnan-nolibm (Files): Add lib/float+.h.
35586         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35587         * modules/isnanl (Files): Add lib/float+.h.
35588         * modules/vasnprintf (Files): Add lib/float+.h.
35589
35590 2007-03-24  Bruno Haible  <bruno@clisp.org>
35591
35592         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35593         include isnanl-nolibm.h.
35594
35595 2007-03-24  Bruno Haible  <bruno@clisp.org>
35596
35597         * tests/test-read-file.c (main): Don't produce spurious output for
35598         expected situations. Make the test fail if it encountered unexpected
35599         results.
35600
35601 2007-03-24  Bruno Haible  <bruno@clisp.org>
35602
35603         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35604         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35605
35606 2007-03-24  Bruno Haible  <bruno@clisp.org>
35607
35608         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35609
35610 2007-03-24  Bruno Haible  <bruno@clisp.org>
35611
35612         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35613         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35614
35615         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35616         * modules/utf8-ucs4: Turn into a symbolic link to module
35617         unistr/u8-mbtouc.
35618
35619         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35620         utf8-ucs4-unsafe.
35621         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35622         unistr/u8-mbtouc-unsafe.
35623
35624         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35625         * modules/utf16-ucs4: Turn into a symbolic link to module
35626         unistr/u16-mbtouc.
35627
35628         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35629         utf16-ucs4-unsafe.
35630         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35631         unistr/u16-mbtouc-unsafe.
35632
35633         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35634         * modules/ucs4-utf8: Turn into a symbolic link to module
35635         unistr/u8-ubtomb.
35636
35637         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35638         * modules/ucs4-utf16: Turn into a symbolic link to module
35639         unistr/u16-ubtomb.
35640
35641 2007-03-24  Bruno Haible  <bruno@clisp.org>
35642
35643         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35644         Enable the function only if HAVE_INLINE.
35645         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35646         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35647         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35648         Enable the function only if HAVE_INLINE.
35649         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35650         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35651         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35652         Enable the function only if HAVE_INLINE.
35653         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35654         Enable the function only if HAVE_INLINE.
35655         * modules/utf8-ucs4: Update.
35656         * modules/utf8-ucs4-unsafe: Update.
35657         * modules/utf16-ucs4: Update.
35658         * modules/utf16-ucs4-unsafe: Update.
35659         * modules/ucs4-utf8: Update.
35660         * modules/ucs4-utf16: Update.
35661
35662 2007-03-24  Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/utf8-ucs4.h: Remove file.
35665         * lib/utf8-ucs4-unsafe.h: Remove file.
35666         * lib/utf16-ucs4.h: Remove file.
35667         * lib/utf16-ucs4-unsafe.h: Remove file.
35668         * lib/ucs4-utf8.h: Remove file.
35669         * lib/ucs4-utf16.h: Remove file.
35670         * lib/unistr.h: Include their previous contents.
35671         * m4/utf-ucs4.m4: Remove file.
35672         * m4/ucs4-utf.m4: Remove file.
35673         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35674         (Depends-on): Add unistr/base.
35675         (configure.ac): Remove gl_UTF_UCS4.
35676         (Makefile.am): Update.
35677         (Include): Change to unistr.h.
35678         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35679         (Depends-on): Add unistr/base.
35680         (configure.ac): Remove gl_UTF_UCS4.
35681         (Makefile.am): Update.
35682         (Include): Change to unistr.h.
35683         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35684         (Depends-on): Add unistr/base.
35685         (configure.ac): Remove gl_UTF_UCS4.
35686         (Makefile.am): Update.
35687         (Include): Change to unistr.h.
35688         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35689         (Depends-on): Add unistr/base.
35690         (configure.ac): Remove gl_UTF_UCS4.
35691         (Makefile.am): Update.
35692         (Include): Change to unistr.h.
35693         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35694         (Depends-on): Add unistr/base.
35695         (configure.ac): Remove gl_UCS4_UTF.
35696         (Makefile.am): Update.
35697         (Include): Change to unistr.h.
35698         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35699         (Depends-on): Add unistr/base.
35700         (configure.ac): Remove gl_UCS4_UTF.
35701         (Makefile.am): Update.
35702         (Include): Change to unistr.h.
35703         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35704         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35705         utf8-ucs4-unsafe.h.
35706         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35707         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35708         utf16-ucs4-unsafe.h.
35709         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35710         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35711         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35712         * lib/unistr/u8-strchr.c: Likewise.
35713         * lib/unistr/u8-strrchr.c: Likewise.
35714         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35715         * lib/unistr/u16-strchr.c: Likewise.
35716         * lib/unistr/u16-strrchr.c: Likewise.
35717         * lib/striconveh.c: Update.
35718         * lib/linebreak.c: Update.
35719
35720 2007-03-24  Bruno Haible  <bruno@clisp.org>
35721
35722         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35723         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35724
35725 2007-03-22  Bruno Haible  <bruno@clisp.org>
35726
35727         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35728
35729 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35730
35731         * MODULES.html.sh (File system functions): New module write-any-file.
35732         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35733         * m4/write-any-file.m4: New files.
35734
35735 2007-03-23  Eric Blake  <ebb9@byu.net>
35736
35737         * gnulib-tool: Rearrange space-tab sequences, since some editors
35738         like to eat them.
35739
35740 2007-03-23  Eric Blake  <ebb9@byu.net>
35741
35742         * lib/version-etc.c (version_etc_va): Update license wording to
35743         be more concise.  Recommended by Richard Stallman.
35744
35745 2007-03-22  Bruno Haible  <bruno@clisp.org>
35746
35747         * lib/poll.c (MSG_PEEK): New fallback definition.
35748
35749 2007-03-22  Bruno Haible  <bruno@clisp.org>
35750
35751         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35752         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35753         (main): Update.
35754         Fixes a compilation error on BeOS.
35755
35756 2007-03-22  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/frexpl-tests: New file.
35759         * tests/test-frexpl.c: New file.
35760
35761         * modules/frexpl: New file.
35762         * m4/frexpl.m4: New file.
35763         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35764         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35766         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35767         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35768         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35769
35770 2007-03-22  Bruno Haible  <bruno@clisp.org>
35771
35772         * lib/frexpl.c: Share code with lib/frexp.c.
35773         * modules/mathl (Files): Add lib/frexp.c.
35774         (Depends-on): Add isnanl-nolibm.
35775
35776 2007-03-22  Bruno Haible  <bruno@clisp.org>
35777
35778         * modules/printf-frexp (Files): Add m4/frexp.m4.
35779         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35780         only if the found frexp function actually works.
35781
35782 2007-03-22  Bruno Haible  <bruno@clisp.org>
35783
35784         * lib/frexp.c: Remove older implementation that uses divisions.
35785
35786 2007-03-21  Bruno Haible  <bruno@clisp.org>
35787
35788         * modules/frexp-tests: New file.
35789         * tests/test-frexp.c: New file.
35790
35791         * modules/frexp: New file.
35792         * lib/frexp.c: New file.
35793         * m4/frexp.m4: New file.
35794         * lib/math_.h (frexp): New declaration.
35795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35796         REPLACE_FREXP.
35797         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35798
35799 2007-03-21  Bruno Haible  <bruno@clisp.org>
35800
35801         * modules/isnanl-tests: New file.
35802         * tests/test-isnanl.c: New file.
35803
35804         * modules/isnanl: New file.
35805         * lib/isnanl.h: New file.
35806         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35807         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35808         gl_FUNC_ISNANL_WORKS.
35809         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35810         New macros.
35811
35812 2007-03-21  Bruno Haible  <bruno@clisp.org>
35813
35814         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35815         lib/isnanl.h.
35816         (Include): Update.
35817         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35818         * lib/vasnprintf.c: Update.
35819         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35820         tests/test-isnanl.h, remove tests/test-isnanl.c.
35821         (Makefile.am): Update.
35822         * tests/test-isnanl-nolibm.c: New file.
35823         * tests/test-isnanl.h: New file.
35824         * tests/test-isnanl.c: Remove file.
35825
35826 2007-03-21  Jim Meyering  <jim@meyering.net>
35827
35828         When trying to open ".", treat ESTALE like EACCES.
35829         * lib/savewd.c (savewd_save): Resort to forking not just upon
35830         failure with EACCES, but also when errno is ESTALE.
35831
35832 2007-03-20  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35835         Needed on AIX 5.1. Reported by Matthew Woehlke.
35836
35837 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35838
35839         Suggestions by Bruno Haible:
35840         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35841         our own.
35842         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35843         * modules/acl (Depends-on): Add gettext.
35844
35845 2007-03-19  Bruno Haible  <bruno@clisp.org>
35846
35847         * modules/iconvme: Remove file.
35848         * lib/iconvme.h: Remove file.
35849         * lib/iconvme.c: Remove file.
35850         * m4/iconvme.m4: Remove file.
35851
35852 2007-03-19  Bruno Haible  <bruno@clisp.org>
35853
35854         * doc/relocatable-maint.texi: Break long shell script line.
35855         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35856
35857 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35858
35859         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35860         handle file_has_acl.
35861         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35862         * lib/acl.c: Move header inclusions and related macro defns into
35863         lib/acl-internal.h.
35864         (S_ISLNK): Remove defn, since that's now done for us.
35865         (file_has_acl): Move to lib/file-has-acl.c.
35866         Call acl_trivial if available.  This is the crucial part of the fix.
35867         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35868         shared within the library.  Rewrite a bit, partly to make it compatible
35869         with the GNU coding style.
35870         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35871         Remove unnecessary double-quotes.
35872         Don't test for acl_to_text; the build will catch that.
35873         Replace acl_entries if it doesn't exist and it is needed.
35874         Check for -lsec and acl_trivial (as used on Solaris 10).
35875         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35876         lib/file-has-acl.c.
35877         (Depends-on): Add sys_stat, for S_ISLNK.
35878
35879 2007-03-19  Ben Pfaff  <blp@gnu.org>
35880
35881         * doc/gnulib.texi: Fix typos.
35882         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35883
35884 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35885
35886         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35887         If size is zero here, buf must be zero.
35888
35889 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35890
35891         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35892         <bruno@clisp.org>.
35893
35894 2007-03-18  Bruno Haible  <bruno@clisp.org>
35895
35896         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35897         Suggested by Eric Blake.
35898
35899 2007-03-18  Ben Pfaff  <blp@gnu.org>
35900
35901         * doc/relocatable.texi: Recommend using as prefix a directory
35902         that does not exist and will never be created.  Based on
35903         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35904         and others.
35905
35906 2007-03-17  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/fchownat.c: Include lchown.h.
35909
35910 2007-03-17  Bruno Haible  <bruno@clisp.org>
35911
35912         Fix endless loop when the given allocated size was > INT_MAX.
35913         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35914         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35915         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35916         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35917         * lib/sprintf.c (sprintf): Likewise.
35918
35919 2007-03-17  Bruno Haible  <bruno@clisp.org>
35920
35921         * tests/test-argp-2.sh (func_compare): Output a context diff.
35922
35923 2007-03-17  Bruno Haible  <bruno@clisp.org>
35924
35925         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35926         locale's decimal-point character.
35927
35928 2007-03-17  Bruno Haible  <bruno@clisp.org>
35929
35930         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35931         before comparing it. Needed because on some platforms (e.g. x86) a
35932         'long double' occupies less bytes than sizeof (long double).
35933
35934 2007-03-17  Bruno Haible  <bruno@clisp.org>
35935
35936         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35937         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35938         * tests/test-getaddrinfo.c (simple): Likewise.
35939         * tests/test-read-file.c (main): Likewise.
35940
35941 2007-03-17  Bruno Haible  <bruno@clisp.org>
35942
35943         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35944
35945 2007-03-17  Bruno Haible  <bruno@clisp.org>
35946
35947         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35948         unused variable.
35949
35950 2007-03-17  Bruno Haible  <bruno@clisp.org>
35951
35952         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35953         * tests/test-c-strncasecmp.c: Likewise.
35954
35955 2007-03-17  Bruno Haible  <bruno@clisp.org>
35956
35957         * modules/stdlib (Depends-on): Add unistd.
35958         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35959         Needed for MacOS X 10.3.
35960
35961 2007-03-17  Bruno Haible  <bruno@clisp.org>
35962
35963         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35964
35965 2007-03-17  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35968
35969 2007-03-17  Bruno Haible  <bruno@clisp.org>
35970
35971         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35972         to reflect files copied from gnulib (with or without modifications).
35973         Suggested by Jim Meyering.
35974
35975 2007-03-17  Eric Blake  <ebb9@byu.net>
35976
35977         * NEWS: Document stdlib change from 2007-02-18.
35978
35979 2007-03-17  Jim Meyering  <jim@meyering.net>
35980
35981         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35982         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35983         someone uses a name containing shell meta-characters.
35984         Reported by Alfred M. Szmidt.
35985
35986         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35987
35988 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35989
35990         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35991         and copy gettext configuration files only if configure.ac contains
35992         a use of AM_GNU_GETTEXT_VERSION.
35993
35994 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35995
35996         * build-aux/bootstrap (gnulib_name): New variable.
35997         (gnulib_tool_options): Use it.
35998
35999 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36000
36001         * tests/test-des.c: Use new namespace.
36002
36003 2007-03-15  Bruno Haible  <bruno@clisp.org>
36004
36005         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36006         Reported by James Youngman <jay@gnu.org>.
36007
36008 2007-03-15  Bruno Haible  <bruno@clisp.org>
36009
36010         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36011         declared prototype. Needed with cc on OSF/1 5.1.
36012
36013 2007-03-15  Bruno Haible  <bruno@clisp.org>
36014
36015         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36016         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36017         (struct gl_list_implementation): Add dispose_fn argument to the
36018         'create_empty', 'create' methods.
36019         (struct gl_list_impl_base): Add field 'dispose_fn'.
36020         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36021         argument.
36022         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36023         dispose_fn argument.
36024         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36025         dispose_fn on the dropped values.
36026         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36027         dispose_fn argument.
36028         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36029         dropped values.
36030         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36031         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36032         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36033         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36034         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36035         argument.
36036         (gl_tree_list_free): Call dispose_fn on the dropped values.
36037         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36038         the dropped values.
36039         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36040         Add dispose_fn argument.
36041         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36042         Call dispose_fn on the dropped values.
36043         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36044         Add dispose_fn argument.
36045         (gl_sublist_create): Initialize the 'dispose_fn' field.
36046         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36047         * tests/test-array_list.c (main): Update.
36048         * tests/test-carray_list.c (main): Update.
36049         * tests/test-avltree_list.c (main): Update.
36050         * tests/test-rbtree_list.c (main): Update.
36051         * tests/test-avltreehash_list.c (main): Update.
36052         * tests/test-rbtreehash_list.c (main): Update.
36053         * tests/test-linked_list.c (main): Update.
36054         * tests/test-linkedhash_list.c (main): Update.
36055         * tests/test-array_oset.c (main): Update.
36056
36057 2007-03-15  Bruno Haible  <bruno@clisp.org>
36058
36059         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36060         (gl_oset_create_empty): Add dispose_fn argument.
36061         (struct gl_oset_implementation): Add dispose_fn argument to
36062         'create_empty' method.
36063         (struct gl_oset_impl_base): Add dispose_fn field.
36064         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36065         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36066         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36067         values.
36068         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36069         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36070         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36071         dropped value.
36072         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36073         dropped value.
36074         * tests/test-array_oset.c (main): Update.
36075         * tests/test-avltree_oset.c (main): Update.
36076         * tests/test-rbtree_oset.c (main): Update.
36077         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36078
36079 2007-03-13  Bruno Haible  <bruno@clisp.org>
36080
36081         * tests/test-stdbool.c (i): Update after last patch.
36082
36083 2007-03-12  Bruno Haible  <bruno@clisp.org>
36084
36085         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36086         the iswprint macro. Needed on Solaris 2.5.1.
36087
36088 2007-03-12  Bruno Haible  <bruno@clisp.org>
36089
36090         * tests/test-printf-frexp.c (main): Declare x as volatile.
36091
36092 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36093
36094         * doc/gnulib.texi (Build robot for gnulib): New section.
36095
36096 2007-03-12  Jim Meyering  <jim@meyering.net>
36097
36098         * build-aux/bootstrap: New file.
36099         * build-aux/bootstrap.conf: New file, from coreutils.
36100
36101 2007-03-11  Bruno Haible  <bruno@clisp.org>
36102
36103         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36104
36105 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36106
36107         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36108         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36109         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36110
36111 2007-03-11  Bruno Haible  <bruno@clisp.org>
36112
36113         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36114         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36115
36116 2007-03-11  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36119         formula. Needed for SunPRO C 5.0.
36120
36121 2007-03-11  Bruno Haible  <bruno@clisp.org>
36122
36123         * modules/long-options (Depends-on): Add getopt.
36124
36125 2007-03-11  Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/modechange (Depends-on): Add stdbool.
36128
36129 2007-03-11  Bruno Haible  <bruno@clisp.org>
36130
36131         * modules/i-ring (Depends-on): Add stdbool.
36132
36133 2007-03-11  Bruno Haible  <bruno@clisp.org>
36134
36135         * modules/gc-des (Depends-on): Add stdbool.
36136
36137 2007-03-11  Bruno Haible  <bruno@clisp.org>
36138
36139         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36140
36141 2007-03-11  Bruno Haible  <bruno@clisp.org>
36142
36143         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36144
36145 2007-03-11  Bruno Haible  <bruno@clisp.org>
36146
36147         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36148
36149 2007-03-11  Bruno Haible  <bruno@clisp.org>
36150
36151         * lib/vasnprintf.c (sprintf): Undefine.
36152
36153 2007-03-11  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36156         initializers in SunPRO C and Compaq C compilers.
36157
36158 2007-03-11  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36161         decrementing code ANSI C compliant.
36162
36163 2007-03-11  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36166         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36167
36168 2007-03-11  Bruno Haible  <bruno@clisp.org>
36169
36170         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36171         <stdbool.h> substitute doesn't pass.
36172
36173 2007-03-11  Bruno Haible  <bruno@clisp.org>
36174
36175         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36176
36177 2007-03-11  Bruno Haible  <bruno@clisp.org>
36178
36179         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36180         script, for submission to autobuild.josefsson.org.
36181
36182 2007-03-10  Bruno Haible  <bruno@clisp.org>
36183
36184         * modules/canonicalize-lgpl-tests: New file.
36185         * tests/test-canonicalize-lgpl.sh: New file.
36186         * tests/test-canonicalize-lgpl.c: New file.
36187
36188         * modules/c-strcase-tests: New file.
36189         * tests/test-c-strcase.sh: New file.
36190         * tests/test-c-strcasecmp.c: New file.
36191         * tests/test-c-strncasecmp.c: New file.
36192
36193         * modules/atexit-tests: New file.
36194         * tests/test-atexit.sh: New file.
36195         * tests/test-atexit.c: New file.
36196
36197 2007-03-10  Bruno Haible  <bruno@clisp.org>
36198
36199         * tests/test-binary-io.sh: Use temporary filenames that are not so
36200         likely to clash with those of other tests (in a parallel make).
36201         * tests/test-binary-io.c: Likewise.
36202
36203 2007-03-10  Bruno Haible  <bruno@clisp.org>
36204
36205         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36206         fallback; use #error instead.
36207         Suggested by Simon Josefsson.
36208
36209 2007-03-10  Bruno Haible  <bruno@clisp.org>
36210
36211         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36212         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36213         first and the last.
36214
36215 2007-03-10  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36218
36219 2007-03-10  Bruno Haible  <bruno@clisp.org>
36220
36221         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36222         "make distcheck".
36223         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36224         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36225         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36226
36227 2007-03-10  Bruno Haible  <bruno@clisp.org>
36228
36229         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36230         variable.
36231         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36232         variable.
36233
36234 2007-03-09  Eric Blake  <ebb9@byu.net>
36235         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36236
36237         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36238         types are not being provided by gnulib.
36239         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36240         types are supported.
36241
36242 2007-03-10  Bruno Haible  <bruno@clisp.org>
36243
36244         * lib/stdio_.h (__attribute__): New macro.
36245         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36246         vsprintf): Specify __attribute__ __format__ for GCC.
36247         Suggested by Eric Blake.
36248
36249 2007-03-09  Bruno Haible  <bruno@clisp.org>
36250
36251         * modules/printf-posix-tests: New file.
36252         * tests/test-printf-posix.sh: New file.
36253         * tests/test-printf-posix.c: New file.
36254
36255         * modules/printf-posix: New file.
36256         * lib/printf.c: New file.
36257         * m4/printf-posix-rpl.m4: New file.
36258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36259         REPLACE_PRINTF.
36260         * lib/stdio_.h (printf): New declaration.
36261         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36262         ____strfmon____): New macros.
36263         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36264         REPLACE_PRINTF.
36265
36266 2007-03-09  Bruno Haible  <bruno@clisp.org>
36267
36268         * tests/test-vasnprintf-posix2.sh: New file.
36269         * tests/test-vasnprintf-posix2.c: New file.
36270         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36271         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36272         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36273
36274         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36275         a locale dependent decimal point, rather than always '.'.
36276
36277 2007-03-09  Eric Blake  <ebb9@byu.net>
36278
36279         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36280         spite of platforms like Tandem/NSK that define it to -1.
36281
36282 2007-03-08  Bruno Haible  <bruno@clisp.org>
36283
36284         * modules/vprintf-posix-tests: New file.
36285         * tests/test-vprintf-posix.sh: New file.
36286         * tests/test-vprintf-posix.c: New file.
36287         * tests/test-printf-posix.h: New file.
36288
36289         * modules/vprintf-posix: New file.
36290         * lib/vprintf.c: New file.
36291         * m4/vprintf-posix.m4: New file.
36292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36293         REPLACE_VPRINTF.
36294         * lib/stdio_.h (vprintf): New declaration.
36295         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36296         REPLACE_VPRINTF.
36297
36298 2007-03-08  Bruno Haible  <bruno@clisp.org>
36299
36300         * modules/fprintf-posix-tests: New file.
36301         * tests/test-fprintf-posix.sh: New file.
36302         * tests/test-fprintf-posix.c: New file.
36303
36304         * modules/fprintf-posix: New file.
36305         * lib/fprintf.c: New file.
36306         * m4/fprintf-posix.m4: New file.
36307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36308         REPLACE_FPRINTF.
36309         * lib/stdio_.h (fprintf): New declaration.
36310         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36311         REPLACE_FPRINTF.
36312
36313 2007-03-08  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/vfprintf-posix-tests: New file.
36316         * tests/test-vfprintf-posix.sh: New file.
36317         * tests/test-vfprintf-posix.c: New file.
36318         * tests/test-fprintf-posix.h: New file.
36319         * tests/test-fprintf-posix.out: New file.
36320
36321         * modules/vfprintf-posix: New file.
36322         * lib/vfprintf.c: New file.
36323         * m4/vfprintf-posix.m4: New file.
36324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36325         REPLACE_VFPRINTF.
36326         * lib/stdio_.h (vfprintf): New declaration.
36327         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36328         REPLACE_VFPRINTF.
36329
36330 2007-03-08  Bruno Haible  <bruno@clisp.org>
36331
36332         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36333
36334 2007-03-08  Bruno Haible  <bruno@clisp.org>
36335
36336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36337         instead of 'expr' invocations.
36338         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36343         Suggested by Paul Eggert.
36344
36345 2007-03-08  Bruno Haible  <bruno@clisp.org>
36346
36347         * modules/fseterr-tests: New file.
36348         * tests/test-fseterr.c: New file.
36349
36350         * modules/fseterr: New file.
36351         * lib/fseterr.h: New file.
36352         * lib/fseterr.c: New file.
36353
36354 2007-03-08  Bruno Haible  <bruno@clisp.org>
36355
36356         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36357         * lib/getopt_.h: Likewise.
36358         * lib/mbswidth.h: Likewise.
36359         * lib/setenv.h: Likewise.
36360         * lib/vasnprintf.h: Likewise.
36361         * lib/vasprintf.h: Likewise.
36362         * lib/verror.h: Likewise.
36363         * lib/xsetenv.h: Likewise.
36364         * lib/xvasprintf.h: Likewise.
36365
36366 2007-03-08  Jim Meyering  <jim@meyering.net>
36367
36368         * users.txt: Add parted.
36369
36370         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36371
36372 2007-03-07  Bruno Haible  <bruno@clisp.org>
36373
36374         * m4/printf.m4: Make the shell script snippets copy&pastable.
36375
36376 2007-03-02  Bruno Haible  <bruno@clisp.org>
36377
36378         * lib/netinet_in_.h: New file.
36379         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36380         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36381         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36382         (Depends-on): Add absolute-header.
36383         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36384         into netinet/in.h.
36385
36386 2007-03-03  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/sys_select_.h: New file.
36389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36390         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36391         * modules/sys_select (Files): Add lib/sys_select_.h.
36392         (Depends-on): Add absolute-header.
36393         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36394         into sys/select.h.
36395
36396 2007-03-02  Bruno Haible  <bruno@clisp.org>
36397
36398         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36399         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36400         values.
36401         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36402         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36403         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36404         * modules/sys_socket (Depends-on): Add absolute-header.
36405         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36406         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36407         (Include): Remove requirement of inclusion of <sys/types.h>.
36408
36409 2007-03-02  Bruno Haible  <bruno@clisp.org>
36410
36411         * lib/byteswap_.h (bswap_32): Fix formula.
36412
36413 2007-03-06  Bruno Haible  <bruno@clisp.org>
36414
36415         * modules/sprintf-posix-tests: New file.
36416         * tests/test-sprintf-posix.c: New file.
36417
36418         * modules/sprintf-posix: New file.
36419         * lib/sprintf.c: New file.
36420         * m4/sprintf-posix.m4: New file.
36421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36422         REPLACE_SPRINTF.
36423         * lib/stdio_.h (sprintf): New declaration.
36424         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36425         REPLACE_SPRINTF.
36426
36427 2007-03-06  Bruno Haible  <bruno@clisp.org>
36428
36429         * modules/vsprintf-posix-tests: New file.
36430         * tests/test-vsprintf-posix.c: New file.
36431         * tests/test-sprintf-posix.h: New file.
36432
36433         * modules/vsprintf-posix: New file.
36434         * lib/vsprintf.c: New file.
36435         * m4/vsprintf-posix.m4: New file.
36436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36437         REPLACE_VSPRINTF.
36438         * lib/stdio_.h (vsprintf): New declaration.
36439         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36440         REPLACE_VSPRINTF.
36441
36442 2007-03-06  Bruno Haible  <bruno@clisp.org>
36443
36444         * modules/vsnprintf (Depend-on): Remove minmax.
36445
36446 2007-03-06  Bruno Haible  <bruno@clisp.org>
36447
36448         * modules/snprintf-posix-tests: New file.
36449         * tests/test-snprintf-posix.c: New file.
36450
36451         * modules/snprintf-posix: New file.
36452         * m4/snprintf-posix.m4: New file.
36453         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36454         gl_FUNC_SNPRINTF.
36455         (gl_FUNC_SNPRINTF): Invoke it.
36456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36457         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36458         is set.
36459         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36460
36461 2007-03-06  Bruno Haible  <bruno@clisp.org>
36462
36463         * modules/vsnprintf-posix-tests: New file.
36464         * tests/test-vsnprintf-posix.c: New file.
36465         * tests/test-snprintf-posix.h: New file.
36466
36467         * modules/vsnprintf-posix: New file.
36468         * m4/vsnprintf-posix.m4: New file.
36469         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36470         gl_FUNC_VSNPRINTF.
36471         (gl_FUNC_VSNPRINTF): Invoke it.
36472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36473         * lib/stdio_.h (vsnprintf): Define as a replacement if
36474         REPLACE_VSNPRINTF is set.
36475         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36476
36477 2007-03-06  Bruno Haible  <bruno@clisp.org>
36478
36479         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36481
36482 2007-03-06  Bruno Haible  <bruno@clisp.org>
36483
36484         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36485         (asinl): Declare also if HAVE_DECL_ASINL is set.
36486         (atanl): Declare also if HAVE_DECL_ATANL is set.
36487         (ceill): Declare also if HAVE_DECL_CEILL is set.
36488         (cosl): Declare also if HAVE_DECL_COSL is set.
36489         (expl): Declare also if HAVE_DECL_EXPL is set.
36490         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36491         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36492         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36493         (logl): Declare also if HAVE_DECL_LOGL is set.
36494         (sinl): Declare also if HAVE_DECL_SINL is set.
36495         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36496         (tanl): Declare also if HAVE_DECL_TANL is set.
36497         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36499         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36500         declaration of frexpl, ldexpl.
36501         * modules/printf-frexpl (Depends-on): Add math.
36502         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36503
36504 2007-03-05  Bruno Haible  <bruno@clisp.org>
36505
36506         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36507         frexpl and ldexpl are declared.
36508         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36509
36510 2007-03-05  Bruno Haible  <bruno@clisp.org>
36511
36512         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36513         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36514
36515 2007-03-05  Bruno Haible  <bruno@clisp.org>
36516
36517         * lib/stdio_.h: Include <stddef.h>.
36518
36519 2007-03-05  Bruno Haible  <bruno@clisp.org>
36520
36521         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36522
36523 2007-03-05  Bruno Haible  <bruno@clisp.org>
36524
36525         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36526         NetBSD 4, from Ralf Wildenhues.
36527
36528 2007-03-04  Bruno Haible  <bruno@clisp.org>
36529
36530         * lib/vasprintf.h: Update #if logic for the case when the functions
36531         exist but are overridden.
36532
36533 2007-03-04  Bruno Haible  <bruno@clisp.org>
36534
36535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36536         implementations: glibc-2.4 and MacOS X 10.3.
36537         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36538         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36539         * tests/test-vasprintf-posix.c (test_function): Likewise.
36540
36541 2007-03-04  Bruno Haible  <bruno@clisp.org>
36542
36543         * modules/vasprintf-posix-tests: New file.
36544         * tests/test-vasprintf-posix.c: New file.
36545
36546         * modules/vasprintf-posix: New file.
36547         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36548         defined.
36549         * m4/vasprintf-posix.m4: New file.
36550         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36551         gl_FUNC_VASPRINTF.
36552         (gl_FUNC_VASPRINTF): Invoke it.
36553         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36554         here.
36555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36556
36557 2007-03-04  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36560         REPLACE_GETTIMEOFDAY.
36561         * modules/sys_time (Makefile.am): Likewise.
36562         * m4/sys_time_h.m4: Likewise.
36563         * m4/gettimeofday.m4: Likewise.
36564
36565 2007-03-04  Bruno Haible  <bruno@clisp.org>
36566
36567         * modules/vasnprintf-posix-tests: New file.
36568         * tests/test-vasnprintf-posix.c: New file.
36569
36570         * modules/vasnprintf-posix: New file.
36571         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36572         printf-frexpl.h.
36573         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36574         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36575         REPLACE_VASNPRINTF is defined.
36576         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36577         gl_FUNC_VASNPRINTF.
36578         (gl_FUNC_VASNPRINTF): Invoke it.
36579         * m4/vasnprintf-posix.m4: New file.
36580         * m4/printf.m4: New file.
36581
36582 2007-03-04  Bruno Haible  <bruno@clisp.org>
36583
36584         Compile progreloc.c only if --enable-relocatable is specified.
36585         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36586         if --enable-relocatable was specified.
36587         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36588         lib_SOURCES.
36589
36590 2007-03-04  Jim Meyering  <jim@meyering.net>
36591
36592         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36593         Use it consistently, rather than enumerating errno constants.
36594
36595 2007-03-04  Bruno Haible  <bruno@clisp.org>
36596
36597         * modules/xvasprintf-tests: New file.
36598         * tests/test-xvasprintf.c: New file.
36599
36600         * modules/vasprintf-tests: New file.
36601         * tests/test-vasprintf.c: New file.
36602
36603         * modules/vasnprintf-tests: New file.
36604         * tests/test-vasnprintf.c: New file.
36605
36606         * modules/vsnprintf-tests: New file.
36607         * tests/test-vsnprintf.c: New file.
36608
36609         * modules/snprintf-tests: New file.
36610         * tests/test-snprintf.c: New file.
36611
36612 2007-03-04  Bruno Haible  <bruno@clisp.org>
36613
36614         Compile relocatable.c only if --enable-relocatable is specified.
36615         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36616         gl_RELOCATABLE_LIBRARY.
36617         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36618         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36619         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36620         gl_RELOCATABLE_LIBRARY.
36621         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36622         (Makefile.am): Remove lib_SOURCES.
36623         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36624         gl_RELOCATABLE_LIBRARY.
36625         (Makefile.am): Remove lib_SOURCES.
36626         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36627         always.
36628         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36629         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36630
36631 2007-03-04  Bruno Haible  <bruno@clisp.org>
36632
36633         * modules/argmatch-tests: New file.
36634         * tests/test-argmatch.c: New file.
36635
36636         * tests/test-allocsa.c (main): Halve the number of loop runs.
36637
36638         * modules/alloca-opt-tests: New file.
36639         * tests/test-alloca-opt.c: New file.
36640
36641 2007-03-04  Jim Meyering  <jim@meyering.net>
36642
36643         Work around difference between Linux ACLs and Solaris 10 ZFS.
36644         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36645         for EINVAL.
36646
36647 2007-03-03  Bruno Haible  <bruno@clisp.org>
36648
36649         * modules/relocatable-prog (Depends-on): Add back progreloc's
36650         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36651
36652 2007-03-03  Bruno Haible  <bruno@clisp.org>
36653
36654         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36655         * modules/relocatable-lib: New file.
36656
36657 2007-03-03  Bruno Haible  <bruno@clisp.org>
36658
36659         * modules/relocatable-prog: Renamed from modules/relocatable.
36660         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36661
36662 2007-03-03  Bruno Haible  <bruno@clisp.org>
36663
36664         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36665         m4/relocatable-lib.m4.
36666         (Depends-on): Remove 'relocatable'.
36667         (configure.ac): Add gl_RELOCATABLE_NOP.
36668
36669 2007-03-03  Bruno Haible  <bruno@clisp.org>
36670
36671         * modules/relocatable-prog-wrapper: New file.
36672         * modules/relocatable (Depends-on): Add it. Remove all other
36673         dependencies except progname.
36674         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36675
36676         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36677         (gl_FUNC_STRERROR): Nop.
36678         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36679
36680         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36681         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36682
36683         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36684         (gl_FUNC_READLINK): Update.
36685
36686         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36687
36688 2007-03-03  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36691         * modules/xreadlink (Depends-on): Add unistd.
36692         * modules/xreadlink-with-size (Depends-on): Likewise.
36693
36694 2007-03-03  Bruno Haible  <bruno@clisp.org>
36695
36696         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36697         extracted from gt_FUNC_SETENV.
36698         (gt_FUNC_SETENV): Remove macro.
36699         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36700         remove gt_FUNC_SETENV.
36701
36702 2007-03-03  Bruno Haible  <bruno@clisp.org>
36703
36704         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36705         ENABLE_RELOCATABLE here.
36706         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36707
36708 2007-03-03  Bruno Haible  <bruno@clisp.org>
36709
36710         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36711         * tests/test-rbtreehash_list.c: Include progname.h.
36712         (main): Call set_program_name.
36713
36714         * modules/rbtree-oset-tests (Depends-on): Add progname.
36715         * tests/test-rbtree_oset.c: Include progname.h.
36716         (main): Call set_program_name.
36717
36718         * modules/rbtree-list-tests (Depends-on): Add progname.
36719         * tests/test-rbtree_list.c: Include progname.h.
36720         (main): Call set_program_name.
36721
36722         * modules/linked-list-tests (Depends-on): Add progname.
36723         * tests/test-linked_list.c: Include progname.h.
36724         (main): Call set_program_name.
36725
36726 2007-03-03  Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36729         All uses of __restrict changed to _Restrict_.
36730         * lib/glob_.h (__restrict): Remove macro.
36731
36732 2007-03-02  Bruno Haible  <bruno@clisp.org>
36733
36734         * modules/gettext (configure.ac): Require gettext infrastructure
36735         from version 0.16.1.
36736
36737 2007-03-02  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/linkedhash-list-tests (Depends-on): Add progname.
36740         * tests/test-linkedhash_list.c: Include progname.h.
36741         (main): Call set_program_name.
36742
36743         * modules/carray-list-tests (Depends-on): Add progname.
36744         * tests/test-carray_list.c: Include progname.h.
36745         (main): Call set_program_name.
36746
36747         * modules/avltreehash-list-tests (Depends-on): Add progname.
36748         * tests/test-avltreehash_list.c: Include progname.h.
36749         (main): Call set_program_name.
36750
36751         * modules/avltree-oset-tests (Depends-on): Add progname.
36752         * tests/test-avltree_oset.c: Include progname.h.
36753         (main): Call set_program_name.
36754
36755         * modules/avltree-list-tests (Depends-on): Add progname.
36756         * tests/test-avltree_list.c: Include progname.h.
36757         (main): Call set_program_name.
36758
36759         * modules/array-oset-tests (Depends-on): Add progname.
36760         * tests/test-array_oset.c: Include progname.h.
36761         (main): Call set_program_name.
36762
36763         * modules/array-list-tests (Depends-on): Add progname.
36764         * tests/test-array_list.c: Include progname.h.
36765         (main): Call set_program_name.
36766
36767         * modules/argp-tests (Depends-on): Add progname.
36768         * tests/test-argp.c: Include argp.h first. Include progname.h.
36769         (main): Call set_program_name.
36770
36771 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36772
36773         * doc/gnulib-tool.texi (Initial import): Reword description of
36774         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36775         limited effect even if defined after the first system include.
36776
36777 2007-03-01  Bruno Haible  <bruno@clisp.org>
36778
36779         * build-aux/config.libpath: Update to libtool-1.5.22.
36780         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36781
36782 2007-03-01  Bruno Haible  <bruno@clisp.org>
36783
36784         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36785         foo_CFLAGS.
36786         Reported by Ralf Wildenhues.
36787
36788 2007-03-01  Bruno Haible  <bruno@clisp.org>
36789
36790         * build-aux/install-reloc: Remove object files left over by some
36791         compilers.
36792         Reported by Ralf Wildenhues.
36793
36794 2007-03-01  Bruno Haible  <bruno@clisp.org>
36795
36796         * build-aux/install-reloc: Break long lines.
36797
36798 2007-03-01  Bruno Haible  <bruno@clisp.org>
36799
36800         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36801         Reported by Ralf Wildenhues.
36802
36803 2007-03-01  Bruno Haible  <bruno@clisp.org>
36804
36805         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36806         include ordering constraints.
36807
36808 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36809
36810         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36811         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36812         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36813         as another example.
36814         * lib/time_.h: Fix misspelling.
36815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36816         Require gl_HEADER_TIME_H_DEFAULTS.
36817         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36818         * m4/time_r.m4 (gl_TIME_R): Likewise.
36819         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36820
36821 2007-03-01  Bruno Haible  <bruno@clisp.org>
36822
36823         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36824         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36825
36826 2007-03-01  Jim Meyering  <jim@meyering.net>
36827
36828         * modules/xreadlink (Maintainer): Add my name.
36829         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36830
36831 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36832             Bruno Haible  <bruno@clisp.org>
36833
36834         * build-aux/install-reloc: Compile also c-ctype.c.
36835         * build-aux/relocatable.sh.in: New file.
36836         * doc/relocatable.texi: New file.
36837         * doc/relocatable-maint.texi: New file.
36838         * doc/gnulib.texi: Include relocatable-maint.texi.
36839         * lib/progreloc.c: Include unistd.h unconditionally.
36840         * lib/relocwrapper.c: Include unistd.h unconditionally.
36841         Include c-ctype.h.
36842         (add_dotbin): Use c_tolower.
36843         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36844         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36845         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36846         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36847         to m4/relocatable-lib.m4.
36848         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36849         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36850         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36851         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36852         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36853         * modules/relocatable: New file.
36854         * modules/relocatable-lib: New file.
36855         * modules/relocatable-script: New file.
36856
36857 2007-02-28  Bruno Haible  <bruno@clisp.org>
36858
36859         Import --enable-relocatable infrastructure.
36860         * build-aux/config.libpath: New file, from GNU gettext.
36861         * build-aux/install-reloc: New file, from GNU gettext.
36862         * build-aux/reloc-ldflags: New file, from GNU gettext.
36863         * lib/relocatable.h: New file, from GNU gettext.
36864         * lib/relocatable.c: New file, from GNU gettext.
36865         * lib/relocwrapper.c: New file, from GNU gettext.
36866         * m4/relocatable.m4: New file, from GNU gettext.
36867
36868 2007-02-28  Bruno Haible  <bruno@clisp.org>
36869
36870         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36871
36872         * modules/xreadlink: New file, from GNU gettext with modifications.
36873         * lib/xreadlink.c: New file, from GNU gettext.
36874         * lib/xreadlink.h: Add comments.
36875         (xreadlink): New declaration.
36876
36877         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36878         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36879         lib/xreadlink-with-size.c.
36880         (configure.ac): Remove gl_XREADLINK invocation.
36881         (Makefile.am): Augment lib_SOURCES.
36882         * m4/xreadlink.m4: Remove file.
36883         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36884         (xreadlink_with_size): Renamed from xreadink.
36885         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36886         * modules/canonicalize (Depends-on): Replace xreadlink with
36887         xreadlink-with-size.
36888         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36889
36890 2007-02-25  Jim Meyering  <jim@meyering.net>
36891
36892         * build-aux/announce-gen: When complaining about excess arguments,
36893         list them.
36894
36895 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36896
36897         * README: Document signed integer overflow situation more
36898         accurately.
36899
36900 2007-02-25  Bruno Haible  <bruno@clisp.org>
36901
36902         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36903         'a' or 'A' conversion.
36904
36905 2007-02-25  Bruno Haible  <bruno@clisp.org>
36906
36907         * modules/filename: Renamed from modules/pathname.
36908         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36909         lib/concatpath.c with lib/concat-filename.c.
36910         (Makefile.am): Update.
36911         (Include): Replace pathname.h with filename.h.
36912         * lib/filename.h: Renamed from lib/pathname.h.
36913         (concatenated_filename): Renamed from concatenated_pathname.
36914         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36915         (concatenated_filename): Renamed from concatenated_pathname.
36916         * lib/findprog.c: Include filename.h instead of pathname.h.
36917         (find_in_path): Update.
36918         * lib/javacomp.c: Include filename.h instead of pathname.h.
36919         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36920         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36921         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36922         is_oldgcj_14_13_usable, is_javac_usable): Update.
36923         * lib/javaexec.c: Include filename.h instead of pathname.h.
36924         (execute_java_class): Update.
36925         * modules/findprog: Update.
36926         * modules/javacomp: Update.
36927         * modules/javaexec: Update.
36928         * MODULES.html.sh (File system functions): Add 'filename', remove
36929         'pathname'.
36930
36931 2007-02-25  Bruno Haible  <bruno@clisp.org>
36932
36933         * modules/printf-frexpl-tests: New file.
36934         * tests/test-printf-frexpl.c: New file.
36935
36936         * modules/printf-frexpl: New file.
36937         * lib/printf-frexpl.h: New file.
36938         * lib/printf-frexpl.c: New file.
36939         * m4/printf-frexpl.m4: New file.
36940
36941 2007-02-25  Bruno Haible  <bruno@clisp.org>
36942
36943         * modules/printf-frexp-tests: New file.
36944         * tests/test-printf-frexp.c: New file.
36945
36946         * modules/printf-frexp: New file.
36947         * lib/printf-frexp.h: New file.
36948         * lib/printf-frexp.c: New file.
36949         * m4/printf-frexp.m4: New file.
36950
36951 2007-02-25  Bruno Haible  <bruno@clisp.org>
36952
36953         Assume automake >= 1.10 for the tests.
36954         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36955         * modules/arctwo-tests: Likewise.
36956         * modules/argp-tests: Likewise.
36957         * modules/avltree-list-tests: Likewise.
36958         * modules/avltree-oset-tests: Likewise.
36959         * modules/avltreehash-list-tests: Likewise.
36960         * modules/carray-list-tests: Likewise.
36961         * modules/crc-tests: Likewise.
36962         * modules/des-tests: Likewise.
36963         * modules/gc-arcfour-tests: Likewise.
36964         * modules/gc-arctwo-tests: Likewise.
36965         * modules/gc-des-tests: Likewise.
36966         * modules/gc-hmac-md5-tests: Likewise.
36967         * modules/gc-hmac-sha1-tests: Likewise.
36968         * modules/gc-md2-tests: Likewise.
36969         * modules/gc-md4-tests: Likewise.
36970         * modules/gc-md5-tests: Likewise.
36971         * modules/gc-pbkdf2-sha1-tests: Likewise.
36972         * modules/gc-rijndael-tests: Likewise.
36973         * modules/gc-sha1-tests: Likewise.
36974         * modules/gc-tests: Likewise.
36975         * modules/getaddrinfo-tests: Likewise.
36976         * modules/hmac-md5-tests: Likewise.
36977         * modules/hmac-sha1-tests: Likewise.
36978         * modules/linked-list-tests: Likewise.
36979         * modules/linkedhash-list-tests: Likewise.
36980         * modules/lock-tests: Likewise.
36981         * modules/md2-tests: Likewise.
36982         * modules/md4-tests: Likewise.
36983         * modules/md5-tests: Likewise.
36984         * modules/rbtree-list-tests: Likewise.
36985         * modules/rbtree-oset-tests: Likewise.
36986         * modules/rbtreehash-list-tests: Likewise.
36987         * modules/read-file-tests: Likewise.
36988         * modules/rijndael-tests: Likewise.
36989         * modules/stdint-tests: Likewise.
36990         * modules/tls-tests: Likewise.
36991
36992 2007-02-24  Bruno Haible  <bruno@clisp.org>
36993
36994         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36995         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36996         function; instead check whether isnan with a double argument links.
36997         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36998         function; instead check whether isnan with a 'long double' argument
36999         links.
37000         Reported by Eric Blake <ebb9@byu.net>.
37001
37002 2007-02-24  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37005         defined.
37006         * lib/isnanl.c: Remove all code. Just include isnan.c.
37007         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37008
37009 2007-02-25  Jim Meyering  <jim@meyering.net>
37010
37011         Avoid conflicting types for 'unsetenv' on FreeBSD.
37012         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37013         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37014         in stdlib.h.
37015
37016 2007-02-24  Bruno Haible  <bruno@clisp.org>
37017
37018         * modules/isnanl-nolibm-tests: New file.
37019         * tests/test-isnanl.c: New file.
37020
37021         * modules/isnanl-nolibm: New file.
37022         * lib/isnanl.h: New file.
37023         * lib/isnanl.c: New file.
37024         * m4/isnanl.m4: New file.
37025
37026 2007-02-24  Bruno Haible  <bruno@clisp.org>
37027
37028         * modules/isnan-nolibm-tests: New file.
37029         * tests/test-isnan.c: New file.
37030
37031         * modules/isnan-nolibm: New file.
37032         * lib/isnan.h: New file.
37033         * lib/isnan.c: New file.
37034         * m4/isnan.m4: New file.
37035
37036 2007-02-24  Bruno Haible  <bruno@clisp.org>
37037
37038         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37039         assume that an exponent fits in 20 bits.
37040
37041 2007-02-24  Jim Meyering  <jim@meyering.net>
37042
37043         * m4/regex.m4: Update the description of the configure-time option,
37044         --without-included-regex, to state accurately what the defaults are,
37045         and perhaps to give people an idea why using this option is risky.
37046
37047 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37048
37049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37050         loops on small arguments.  This attempts to avoid the problem
37051         Bruno Haible reported for AIX 4.3.2 in
37052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37053
37054 2007-02-23  Bruno Haible  <bruno@clisp.org>
37055
37056         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37057         Needed for help2man.
37058
37059 2007-02-23  Karl Berry  <karl@gnu.org>
37060
37061         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37062         exists, foo.h should be cvs-ignored, not committed.
37063
37064 2007-02-23  Eric Blake  <ebb9@byu.net>
37065
37066         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37067         * lib/stat-time.h (includes): Likewise.
37068         * lib/utimecmp.c (includes): Likewise.
37069         * lib/utimens.h (includes): Likewise.
37070         * lib/getdate.y (includes): Also include "timespec.h" for use
37071         internal to the module.
37072         * modules/utimens (Depends-on): Revert yesterday's patch.
37073         * modules/nanosleep (Depends-on): Add missing dependency.
37074
37075 2007-02-22  Bruno Haible  <bruno@clisp.org>
37076
37077         * lib/glob.c: Don't include getlogin_r.h.
37078
37079 2007-02-22  Jim Meyering  <jim@meyering.net>
37080
37081         * modules/utimens (Depends-on): Add timespec, required for
37082         utimens.h's inclusion of timespec.h.
37083
37084 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37085
37086         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37087         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37088         Schwab in
37089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37090         I'll try to think of a better way to fix the Solaris problem.
37091
37092         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37093         like glibc; on Solaris 10, it fails with errno == EINVAL.
37094         POSIX says the behavior is unspecified if the first argument is NULL,
37095         so play it safe and never pass NULL to the system getcwd.
37096
37097 2007-02-21  Jim Meyering  <jim@meyering.net>
37098
37099         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37100         of gettimeofday.  It would conflict with the one now always
37101         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37102         an IRIX 6.5 build failure.
37103
37104 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37105
37106         Minor fixups to port to Solaris 10 with Sun C 5.8.
37107         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37108         * modules/getcwd (Depends-on): Add dirfd.
37109         * lib/putenv.c (putenv): #undef it.
37110         (rpl_putenv): New decl.
37111         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37112
37113 2007-02-20  Bruno Haible  <bruno@clisp.org>
37114
37115         * modules/stdio-tests: New file.
37116         * tests/test-stdio.c: New file.
37117
37118         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37119         (Depends-on): Add stdio.
37120         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37121         (Include): Use <stdio.h> instead of vsnprintf.h.
37122         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37123         HAVE_DECL_VSNPRINTF.
37124         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37125
37126         * modules/snprintf (Files): Remove lib/snprintf.h.
37127         (Depends-on): Add stdio.
37128         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37129         (Include): Use <stdio.h> instead of snprintf.h.
37130         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37131         HAVE_DECL_SNPRINTF.
37132         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37133         * lib/getaddrinfo.c: Likewise.
37134
37135         * modules/stdio: New file.
37136         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37137         * lib/snprintf.h: Remove file.
37138         * lib/vsnprintf.h: Remove file.
37139         * lib/.cppi-disable: Remove snprintf.h.
37140         * m4/stdio_h.m4: New file.
37141         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37142
37143 2007-02-20  Jim Meyering  <jim@meyering.net>
37144
37145         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37146         used by e.g., mingw.  From Bruno Haible.
37147
37148 2007-02-19  Bruno Haible  <bruno@clisp.org>
37149
37150         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37151         warnings.
37152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37153
37154 2007-02-19  Bruno Haible  <bruno@clisp.org>
37155
37156         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37157         from mingw users.
37158
37159 2007-02-19  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37162         warnings.
37163         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37164
37165 2007-02-19  Jim Meyering  <jim@meyering.net>
37166
37167         Don't use FD after a successful "fdopendir (fd)".
37168         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37169         Reset it by calling dirfd on the just-obtained DIR*.
37170
37171         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37172         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37173
37174 2007-02-18  Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/readlink.c: Include <unistd.h>.
37177         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37178         HAVE_READLINK.
37179         * modules/readlink (Depends-on): Add unistd.
37180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37181         (Include): Add <unistd.h>.
37182
37183         * lib/getlogin_r.h: Remove file.
37184         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37185         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37186         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37187         HAVE_DECL_GETLOGIN_R.
37188         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37190         (Include): Use <unistd.h> instead of getlogin_r.h.
37191
37192         * lib/getcwd.h: Remove file.
37193         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37194         * lib/xgetcwd.c: Likewise.
37195         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37196         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37197         * modules/getcwd (Files): Remove lib/getcwd.h.
37198         (Depends-on): Add unistd.
37199         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37200         (Include): Use <unistd.h> instad of getcwd.h.
37201
37202         * lib/ftruncate.c: Include <unistd.h> first.
37203         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37204         Set HAVE_FTRUNCATE.
37205         * modules/ftruncate (Depends-on): Add unistd.
37206         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37207
37208         * lib/fchdir.c: Include <unistd.h> first.
37209         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37211         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37212         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37213         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37214
37215         * lib/dup2.c: Include <unistd.h> first.
37216         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37217         HAVE_DUP2.
37218         * modules/dup2 (Depends-on): Add unistd.
37219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37220
37221         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37222         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37223         REPLACE_CHOWN. Don't define chown as a macro here.
37224         * modules/chown (Depends-on): Add unistd.
37225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37226
37227         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37228         Add definition for GL_LINK_WARNING.
37229         (chown, dup2): New declarations.
37230         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37231         link warning.
37232         (ftruncate): New declaration.
37233         (getcwd): New declaration, taken from old getcwd.h.
37234         (getlogin_r): New declaration, taken from old getlogin_r.h.
37235         (readlink): New declaration.
37236         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37237         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37238         (gl_PREREQ_UNISTD): Remove macro.
37239         (gl_UNISTD_MODULE_INDICATOR): New macro.
37240         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37241         many new variables. Don't set UNISTD_H.
37242         * modules/unistd (Description): Change.
37243         (Depends-on): Add link-warning.
37244         (configure.ac): Update.
37245         (Makefile.am): Create unistd.h always. Substitute many new variables
37246         into it.
37247
37248 2007-02-18  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37251         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37252         HAVE_GETSUBOPT.
37253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37254         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37255         * lib/getsubopt.h: Remove file.
37256         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37257         (Depends-on): Add stdlib.
37258         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37259         (Includes): Use <stdlib.h> instead of getsubopt.h.
37260         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37261         Set HAVE_GETSUBOPT.
37262         * lib/getsubopt.c: Don't include getsubopt.h.
37263
37264 2007-02-18  Bruno Haible  <bruno@clisp.org>
37265
37266         * modules/fchdir (Depends-on): Add dup2.
37267
37268 2007-02-18  Bruno Haible  <bruno@clisp.org>
37269
37270         * lib/stdlib_.h: Handle glibc's special invocation convention
37271         specially.
37272
37273 2007-02-18  Bruno Haible  <bruno@clisp.org>
37274
37275         * modules/stdlib-tests: New file.
37276         * tests/test-stdlib.c: New file.
37277
37278         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37279         (Depends-on): Add stdlib.
37280         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37281         (Includes): Use <stdlib.h> instead of mkstemp.h.
37282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37283         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37284         * lib/mkstemp.c: Don't include mkstemp.h.
37285         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37286         * lib/stdlib--.h: Don't include mkstemp.h.
37287
37288         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37289         (Depends-on): Add stdlib.
37290         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37291         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37292         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37293         HAVE_MKDTEMP.
37294         * lib/mkdtemp.c: Don't include mkdtemp.h.
37295         * lib/clean-temp.c: Don't include mkdtemp.h.
37296
37297         * modules/exit (Files): Remove lib/exit.h.
37298         (Depends-on): Add stdlib.
37299         (Makefile.am): Remove lib_SOURCES.
37300         (Include): Use <stdlib.h> instead of exit.h.
37301         * lib/argmatch.c: Don't include exit.h.
37302         * lib/execute.c: Likewise.
37303         * lib/pagealign_alloc.c: Likewise.
37304         * lib/pipe.c: Likewise.
37305         * lib/wait-process.c: Likewise.
37306         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37307         * lib/exitfail.c: Likewise.
37308         * lib/savewd.c: Likewise.
37309         * lib/xsetenv.c: Likewise.
37310
37311         * modules/stdlib: New file.
37312         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37313         and extra comments about mkstemp().
37314         * lib/exit.h: Remove file.
37315         * lib/mkdtemp.h: Remove file.
37316         * lib/mkstemp.h: Remove file.
37317         * m4/stdlib_h.m4: New file.
37318         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37319
37320 2007-02-18  Bruno Haible  <bruno@clisp.org>
37321
37322         * modules/math-tests: New file.
37323         * tests/test-math.c: New file.
37324
37325         * modules/math: New file.
37326         * modules/mathl (Files): Remove lib/mathl.h.
37327         (Depends-on): Add math.
37328         (Makefile.am): Don't mention mathl.h.
37329         (Include): Use <math.h> instead of mathl.h.
37330         * lib/math_.h: New file.
37331         * lib/mathl.h: Remove file.
37332         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37333         mathl.h.
37334         * lib/asinl.c: Likewise.
37335         * lib/atanl.c: Likewise.
37336         * lib/ceill.c: Likewise.
37337         * lib/cosl.c: Likewise.
37338         * lib/expl.c: Likewise.
37339         * lib/floorl.c: Likewise.
37340         * lib/frexpl.c: Likewise.
37341         * lib/ldexpl.c: Likewise.
37342         * lib/logl.c: Likewise.
37343         * lib/sincosl.c: Likewise.
37344         * lib/sinl.c: Likewise.
37345         * lib/sqrtl.c: Likewise.
37346         * lib/tanl.c: Likewise.
37347         * lib/trigl.c: Likewise.
37348         * m4/math_h.m4: New file.
37349         * MODULES.html.sh (Mathematics): Add math.
37350
37351 2007-02-17  Bruno Haible  <bruno@clisp.org>
37352
37353         * modules/wctype-tests: New file.
37354         * tests/test-wctype.c: New file.
37355
37356         * modules/wchar-tests: New file.
37357         * tests/test-wchar.c: New file.
37358
37359         * modules/unistd-tests: New file.
37360         * tests/test-unistd.c: New file.
37361
37362         * modules/time-tests: New file.
37363         * tests/test-time.c: New file.
37364
37365         * modules/sysexits-tests: New file.
37366         * tests/test-sysexits.c: New file.
37367
37368         * modules/sys_time-tests: New file.
37369         * tests/test-sys_time.c: New file.
37370
37371         * modules/sys_stat-tests: New file.
37372         * tests/test-sys_stat.c: New file.
37373
37374         * modules/sys_socket-tests: New file.
37375         * tests/test-sys_socket.c: New file.
37376
37377         * modules/sys_select-tests: New file.
37378         * tests/test-sys_select.c: New file.
37379
37380         * modules/string-tests: New file.
37381         * tests/test-string.c: New file.
37382
37383         * modules/stdbool-tests: New file.
37384         * tests/test-stdbool.c: New file.
37385
37386         * modules/netinet_in-tests: New file.
37387         * tests/test-netinet_in.c: New file.
37388
37389         * modules/inttypes-tests: New file.
37390         * tests/test-inttypes.c: New file.
37391
37392         * modules/fcntl-tests: New file.
37393         * tests/test-fcntl.c: New file.
37394
37395         * modules/byteswap-tests: New file.
37396         * tests/test-byteswap.c: New file.
37397
37398         * modules/arpa_inet-tests: New file.
37399         * tests/test-arpa_inet.c: New file.
37400
37401 2007-02-17  Bruno Haible  <bruno@clisp.org>
37402
37403         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37404         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37405         if the corresponding module is not enabled. Emit link warnings if
37406         the function is used nevertheless.
37407         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37408         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37409         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37410         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37411         * modules/inttypes (Depends-on): Add link-warning.
37412         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37413         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37414         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37415         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37416         * modules/imaxdiv (configure.ac): Likewise.
37417         * modules/strtoimax (configure.ac): Likewise.
37418         * modules/strtoumax (configure.ac): Likewise.
37419
37420 2007-02-17  Bruno Haible  <bruno@clisp.org>
37421
37422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37423         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37424         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37425         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37426
37427 2007-02-17  Bruno Haible  <bruno@clisp.org>
37428
37429         * modules/link-warning: New file.
37430         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37431         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37432         * modules/string (Depends-on): Add link-warning.
37433         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37434         string.h.
37435         * MODULES.html.sh (Support for building libraries and executables): Add
37436         link-warning.
37437
37438 2007-02-17  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37441         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37442         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37443         long lines.
37444
37445 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37446             Bruno Haible  <bruno@clisp.org>
37447
37448         * modules/tmpfile: New file.
37449         * lib/tmpfile.c: New file.
37450         * m4/tmpfile.m4: New file.
37451         * MODULES.html.sh (func_all_modules): New section "Input/output".
37452
37453 2007-02-15  Bruno Haible  <bruno@clisp.org>
37454
37455         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37456         (supports_delete_on_close): New function.
37457         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37458
37459 2007-02-14  Bruno Haible  <bruno@clisp.org>
37460
37461         * modules/mbspcasecmp-tests: New file.
37462         * tests/test-mbspcasecmp.sh: New file.
37463         * tests/test-mbspcasecmp.c: New file.
37464
37465         New module mbspcasecmp.
37466         * modules/mbspcasecmp: New file.
37467         * lib/mbspcasecmp.c: New file.
37468         * lib/string_.h (strncasecmp): Change warning message.
37469         (mbspcasecmp): New declaration.
37470         * m4/mbspcasecmp.m4: New file.
37471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37472         GNULIB_MBSPCASECMP.
37473         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37474         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37475
37476 2007-02-14  Bruno Haible  <bruno@clisp.org>
37477
37478         * modules/mbsncasecmp-tests: New file.
37479         * tests/test-mbsncasecmp.sh: New file.
37480         * tests/test-mbsncasecmp.c: New file.
37481
37482         New module mbsncasecmp.
37483         * modules/mbsncasecmp: New file.
37484         * lib/mbsncasecmp.c: New file.
37485         * lib/string_.h (mbsncasecmp): New declaration.
37486         * m4/mbsncasecmp.m4: New file.
37487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37488         GNULIB_MBSNCASECMP.
37489         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37490         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37491
37492 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37493
37494         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37495         Verify that it doesn't overlap with our flags.
37496         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37497         do not have the desired effect in multibyte locales; instead, use
37498         mbscasecmp.
37499         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37500         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37501         we don't require GNU fnmatch ourselves (if our users require it, they
37502         should do so explicitly).
37503
37504         Fix regex code so it doesn't rely on strcasecmp.
37505         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37506         Otherwise, include gnulib's langinfo.h.
37507         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37508         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37509         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37510         * modules/regex (FILES): Remove m4/codeset.m4.
37511         (Depends-on): Add localcharset.  Remove strcase.
37512
37513 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37514
37515         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37516         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37517
37518 2007-02-13  Bruno Haible  <bruno@clisp.org>
37519
37520         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37522
37523 2007-02-12  Bruno Haible  <bruno@clisp.org>
37524
37525         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37526         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37527         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37528         time warning rather than a link error.
37529
37530 2007-02-12  Bruno Haible  <bruno@clisp.org>
37531
37532         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37533         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37534         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37535
37536 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37537
37538         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37539         args, not 2.
37540
37541 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37542
37543         New module 'time', so that apps can include <time.h> as per
37544         POSIX and GNU instead of separate include files like time_r.h
37545         and timegm.h.  This implementation tries out a simpler approach
37546         for replacing decls in standard include files (as compared to
37547         the string module), somewhat as an experiment.
37548
37549         * config/srclist.txt: Comment out mktime.c for now.
37550         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37551         since it doesn't apply any more.  Use generic wording instead.
37552         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37553         'time'.
37554         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37555         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37556         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37557         Don't include <sys/types.h>; no longer needed since we assume C89.
37558         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37559         * lib/strftime.c: Likewise.
37560         * lib/time_r.c: Likewise.
37561         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37562         * lib/nanosleep.c: Include <time.h> first, to check interface.
37563         * lib/strptime.c: Likewise.
37564         * lib/time_r.c: Likewise.
37565         * lib/timegm.c: Likewise.
37566         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37567         needed.
37568         * lib/timegm.c: Don't include timegm.h; no longer needed.
37569         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37570         time.h now handles any problems in that area.
37571         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37572         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37573         that time.h defines struct timespec.
37574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37575         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37576         handles that.
37577         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37578         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37579         needed.  Set REPLACE_LOCALTIME.
37580         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37581         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37582         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37583         nanosleep; time_h.m4 now does that.  Don't require
37584         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37585         module handles this now.
37586         * modules/getdate (Depends-on): Remove timespec.  Add time.
37587         * modules/nanosleep (Depends-on): Likewise.
37588         * modules/stat-time (Depends-on): Likewise.
37589         * modules/nanosleep (Include): Include time.h, not timespec.h.
37590         * modules/strptime (Files): Remove lib/strptime.h.
37591         (Depends-on): Add extensions, time.
37592         (Include): Include time.h, not strptime.h.
37593         * modules/time_r (Files): Remove lib/time_r.h.
37594         (Depends-on): Add time.
37595         (Include): Include time.h, not time_r.h.
37596         * modules/timegm: Likewise.
37597         * modules/timespec (Description): Now does timespec-related decls
37598         of our own, instead of struct timespec itself.
37599         (Depends-on): Add time; remove extensions.
37600         (Maintainer): Add self.
37601         * modules/utimecmp (Depends-on): Add time; remove timespec.
37602         * modules/utimens (Depends-on): Likewise.
37603         * modules/xnanosleep (Depends-on): Likewise.
37604
37605 2007-02-11  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/c-strstr.c: Include allocsa.h.
37608         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37609         * lib/c-strcasestr.c: Include allocsa.h.
37610         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37611         * lib/strcasestr.c: Include allocsa.h.
37612         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37613         * lib/mbsstr.c: Include allocsa.h.
37614         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37615         allocsa/freesa instead of malloc/free.
37616         * lib/mbscasestr.c: Include allocsa.h.
37617         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37618         allocsa/freesa instead of malloc/free.
37619         * modules/c-strstr (Depends-on): Add allocsa.
37620         * modules/c-strcasestr (Depends-on): Likewise.
37621         * modules/strcasestr (Depends-on): Likewise.
37622         * modules/mbsstr (Depends-on): Likewise.
37623         * modules/mbscasestr (Depends-on): Likewise.
37624
37625 2007-02-11  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37628
37629         * modules/mbsspn-tests: New file.
37630         * tests/test-mbsspn.sh: New file.
37631         * tests/test-mbsspn.c: New file.
37632
37633 2007-02-11  Bruno Haible  <bruno@clisp.org>
37634
37635         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37636
37637         * modules/mbspbrk-tests: New file.
37638         * tests/test-mbspbrk.sh: New file.
37639         * tests/test-mbspbrk.c: New file.
37640
37641 2007-02-11  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37644         unneeded cast.
37645
37646         * modules/mbscspn-tests: New file.
37647         * tests/test-mbscspn.sh: New file.
37648         * tests/test-mbscspn.c: New file.
37649
37650 2007-02-11  Bruno Haible  <bruno@clisp.org>
37651
37652         * modules/mbscasecmp-tests: New file.
37653         * tests/test-mbscasecmp.sh: New file.
37654         * tests/test-mbscasecmp.c: New file.
37655
37656 2007-02-11  Bruno Haible  <bruno@clisp.org>
37657
37658         Ensure O(n) worst-case complexity of mbscasestr.
37659         * lib/mbscasestr.c: Include stdbool.h.
37660         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37661         functions.
37662         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37663         the bookkeeping indicates that it's worth it.
37664         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37665
37666         * modules/mbscasestr-tests: New file.
37667         * tests/test-mbscasestr1.c: New file.
37668         * tests/test-mbscasestr2.sh: New file.
37669         * tests/test-mbscasestr2.c: New file.
37670         * tests/test-mbscasestr3.sh: New file.
37671         * tests/test-mbscasestr3.c: New file.
37672         * tests/test-mbscasestr4.sh: New file.
37673         * tests/test-mbscasestr4.c: New file.
37674         * m4/locale-tr.m4: New file.
37675
37676 2007-02-11  Bruno Haible  <bruno@clisp.org>
37677
37678         Ensure O(n) worst-case complexity of mbsstr.
37679         * lib/mbsstr.c: Include stdbool.h.
37680         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37681         functions.
37682         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37683         bookkeeping indicates that it's worth it.
37684         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37685
37686         * modules/mbsstr-tests: New file.
37687         * tests/test-mbsstr1.c: New file.
37688         * tests/test-mbsstr2.sh: New file.
37689         * tests/test-mbsstr2.c: New file.
37690         * tests/test-mbsstr3.sh: New file.
37691         * tests/test-mbsstr3.c: New file.
37692         * m4/locale-fr.m4: New file.
37693
37694 2007-02-11  Bruno Haible  <bruno@clisp.org>
37695
37696         * lib/mbsrchr.c (mbsrchr): Fix bug.
37697
37698         * modules/mbsrchr-tests: New file.
37699         * tests/test-mbsrchr.sh: New file.
37700         * tests/test-mbsrchr.c: New file.
37701
37702 2007-02-11  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/mbschr.c (mbschr): Fix bug.
37705
37706         * modules/mbschr-tests: New file.
37707         * tests/test-mbschr.sh: New file.
37708         * tests/test-mbschr.c: New file.
37709         * m4/locale-zh.m4: New file.
37710
37711 2007-02-11  Bruno Haible  <bruno@clisp.org>
37712
37713         Support for copying multibyte string iterators.
37714         * lib/mbiter.h: Include <string.h>.
37715         (mbiter_multi_copy): New function.
37716         (mbi_copy): New macro.
37717         * lib/mbuiter.h: Include <string.h>.
37718         (mbuiter_multi_copy): New function.
37719         (mbui_copy): New macro.
37720
37721 2007-02-11  Bruno Haible  <bruno@clisp.org>
37722
37723         New module mbslen.
37724         * modules/mbslen: New file.
37725         * lib/mbslen.c: New file.
37726         * lib/string_.h (mbslen): New declaration.
37727         * m4/mbslen.m4: New file.
37728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37729         GNULIB_MBSLEN.
37730         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37731         * MODULES.html.sh (Internationalization functions): Add mbslen.
37732
37733 2007-02-11  Bruno Haible  <bruno@clisp.org>
37734
37735         Ensure O(n) worst-case complexity of strcasestr substitute.
37736         * lib/strcasestr.c: Include stdbool.h.
37737         (knuth_morris_pratt): New function.
37738         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37739         bookkeeping indicates that it's worth it.
37740         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37741
37742         * modules/strcasestr-tests: New file.
37743         * tests/test-strcasestr.c: New file.
37744
37745 2007-02-11  Bruno Haible  <bruno@clisp.org>
37746
37747         Ensure O(n) worst-case complexity of c_strcasestr.
37748         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37749         (knuth_morris_pratt): New function.
37750         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37751         the bookkeeping indicates that it's worth it.
37752         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37753
37754         * modules/c-strcasestr-tests: New file.
37755         * tests/test-c-strcasestr.c: New file.
37756
37757 2007-02-11  Bruno Haible  <bruno@clisp.org>
37758
37759         Ensure O(n) worst-case complexity of c_strstr.
37760         * lib/c-strstr.c: Include stdbool.h, string.h.
37761         (knuth_morris_pratt): New function.
37762         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37763         bookkeeping indicates that it's worth it.
37764         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37765
37766         * lib/c-strstr.c: Complete rewrite for maintainability.
37767
37768         * modules/c-strstr-tests: New file.
37769         * tests/test-c-strstr.c: New file.
37770
37771 2007-02-11  Bruno Haible  <bruno@clisp.org>
37772
37773         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37774         5.2.1 and earlier, whereby \055 was treated just like the range
37775         delimiter '-'.
37776         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37777
37778 2007-02-08  Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/regex (Depends-on): Add stdbool.
37781         Reported by Dalibor Topic <robilad@kaffe.org>.
37782
37783 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37784
37785         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37786         Prefer returning from main to exiting from it.
37787         Remove unnecessary parens after sizeof.
37788
37789 2007-02-05  Bruno Haible  <bruno@clisp.org>
37790
37791         New module mbssep.
37792         * modules/mbssep: New file.
37793         * lib/mbssep.c: New file.
37794         * lib/string_.h (strsep): Add a conditional link warning.
37795         (mbssep): New declaration.
37796         * m4/mbssep.m4: New file.
37797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37798         GNULIB_MBSSEP.
37799         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37800         * MODULES.html.sh (Internationalization functions): Add mbssep.
37801
37802 2007-02-05  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37805         Optimize search in case of 1 delimiter.
37806
37807 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37808
37809         * lib/acl.h: Include sys/types.h before sys/acl.h.
37810
37811 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37812
37813         Merge upstream fix for glibc bugzilla #3957:
37814
37815         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37816
37817         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37818         bit for RE_HAT_LISTS_NOT_NEWLINE.
37819         (build_charclass_op): Remove bogus comment.
37820
37821 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37822
37823         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37824
37825 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37826
37827         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37828         * lib/memmem.c [!defined _LIBC]: Include config.h.
37829
37830 2007-02-04  Bruno Haible  <bruno@clisp.org>
37831
37832         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37833         warning message.
37834
37835 2007-02-04  Bruno Haible  <bruno@clisp.org>
37836
37837         New module mbstok_r.
37838         * modules/mbstok_r: New file.
37839         * lib/mbstok_r.c: New file.
37840         * lib/string_.h (strtok_r): Change argument names to match the
37841         comments. Add a conditional link warning.
37842         (mbstok_r): New declaration.
37843         * m4/mbstok_r.m4: New file.
37844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37845         GNULIB_MBSTOK_R.
37846         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37847         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37848
37849 2007-02-04  Bruno Haible  <bruno@clisp.org>
37850
37851         New module mbsspn.
37852         * modules/mbsspn: New file.
37853         * lib/mbsspn.c: New file.
37854         * lib/string_.h (strspn): Add a conditional link warning.
37855         (mbsspn): New declaration.
37856         * m4/mbsspn.m4: New file.
37857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37858         GNULIB_MBSSPN.
37859         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37860         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37861
37862 2007-02-04  Bruno Haible  <bruno@clisp.org>
37863
37864         New module mbspbrk.
37865         * modules/mbspbrk: New file.
37866         * lib/mbspbrk.c: New file.
37867         * lib/string_.h (strpbrk): Add a conditional link warning.
37868         (mbspbrk): New declaration.
37869         * m4/mbspbrk.m4: New file.
37870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37871         GNULIB_MBSPBRK.
37872         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37873         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37874
37875 2007-02-04  Bruno Haible  <bruno@clisp.org>
37876
37877         New module mbscspn.
37878         * modules/mbscspn: New file.
37879         * lib/mbscspn.c: New file.
37880         * lib/string_.h (strcspn): Add a conditional link warning.
37881         (mbscspn): New declaration.
37882         * m4/mbscspn.m4: New file.
37883         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37884         GNULIB_MBSCSPN.
37885         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37886         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37887
37888 2007-02-04  Bruno Haible  <bruno@clisp.org>
37889
37890         New module mbscasestr, reduced goal of strcasestr.
37891         * modules/mbscasestr: New file.
37892         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37893         (mbscasestr): Renamed from strcasestr.
37894         * lib/strcasestr.c: Don't include mbuiter.h.
37895         (strcasestr): Remove support for multibyte locales.
37896         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37897         Change the conditional link warning.
37898         (mbscasestr): New declaration.
37899         * m4/mbscasestr.m4: New file.
37900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37901         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37902         REPLACE_STRCASESTR.
37903         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37905         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37906         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37907         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37908         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37909         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37910         (Depends-on): Remove mbuiter.
37911         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37912
37913 2007-02-04  Bruno Haible  <bruno@clisp.org>
37914
37915         Simplify handling of strncasecmp.
37916         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37917         the conditional link warning.
37918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37919         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37920         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37921         * modules/strcase (configure.ac): Don't invoke
37922         gl_STRING_MODULE_INDICATOR.
37923         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37924
37925 2007-02-04  Bruno Haible  <bruno@clisp.org>
37926
37927         New module mbscasecmp, reduced goal of strcasecmp.
37928         * modules/mbscasecmp: New file.
37929         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37930         (mbscasecmp): Renamed from strcasecmp.
37931         * lib/strcasecmp.c: Don't include mbuiter.h.
37932         (strcasecmp): Remove support for multibyte locales.
37933         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37934         Change the conditional link warning.
37935         (mbscasecmp): New declaration.
37936         * m4/mbscasecmp.m4: New file.
37937         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37938         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37939         REPLACE_STRCASECMP.
37940         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37942         GNULIB_MBSCASECMP.
37943         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37944         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37945         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37946         (Depends-on): Remove mbuiter.
37947         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37948
37949 2007-02-04  Bruno Haible  <bruno@clisp.org>
37950
37951         New module mbsstr. Remove module strstr.
37952         * modules/mbsstr: New file.
37953         * modules/strstr: Remove file.
37954         * lib/mbsstr.c: Renamed from lib/strstr.c.
37955         (mbsstr): Renamed from strstr.
37956         * lib/string_.h (strstr): Remove declaration. Change the conditional
37957         link warning.
37958         (mbsstr): New declaration.
37959         * m4/mbsstr.m4: New file.
37960         * m4/strstr.m4: Remove file.
37961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37962         REPLACE_STRSTR.
37963         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37964         Don't initialize GNULIB_STRSTR.
37965         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37966         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37967         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37968         (Support for systems lacking ANSI C 89): Remove strstr.
37969
37970 2007-02-04  Bruno Haible  <bruno@clisp.org>
37971
37972         New module mbsrchr.
37973         * modules/mbsrchr: New file.
37974         * lib/mbsrchr.c: New file.
37975         * lib/string_.h (strrchr): Add a conditional link warning.
37976         (mbsrchr): New declaration.
37977         * m4/mbsrchr.m4: New file.
37978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37979         GNULIB_MBSRCHR.
37980         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37981         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37982
37983 2007-02-04  Bruno Haible  <bruno@clisp.org>
37984
37985         New module mbschr.
37986         * modules/mbschr: New file.
37987         * lib/mbschr.c: New file.
37988         * lib/string_.h (strchr): Add a conditional link warning.
37989         (mbschr): New declaration.
37990         * m4/mbschr.m4: New file.
37991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37992         GNULIB_MBSCHR.
37993         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37994         * MODULES.html.sh (Internationalization functions): Add mbschr.
37995
37996 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37997
37998         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37999
38000         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38001
38002 2007-02-04  Bruno Haible  <bruno@clisp.org>
38003
38004         New module description section 'configure.ac-early'.
38005         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38006         (func_get_autoconf_early_snippet): New function.
38007         (func_import, func_create_testdir): Use it. Remove special cases for
38008         modules 'extensions' and 'lock'.
38009         * modules/extensions (configure.ac-early): Require
38010         gl_USE_SYSTEM_EXTENSIONS.
38011         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38012
38013 2007-02-04  Bruno Haible  <bruno@clisp.org>
38014
38015         Make use of gcj-4.3's -fsource and -ftarget option.
38016         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38017         and if so try the options -fsource and -ftarget.
38018         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38019         source_version, ftarget_option, target_version arguments.
38020         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38021         (is_envjavac_oldgcj_14_14_usable): Renamed from
38022         is_envjavac_gcj_14_14_usable.
38023         (is_envjavac_oldgcj_14_13_usable): Renamed from
38024         is_envjavac_gcj_14_13_usable.
38025         (is_gcj_present): Update.
38026         (is_gcj_43, is_gcj43_usable): New functions.
38027         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38028         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38029         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38030         try the options -fsource and -ftarget.
38031
38032 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38033
38034         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38035         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38036         larger value.
38037
38038 2007-02-03  Jim Meyering  <jim@meyering.net>
38039
38040         Give tools a better chance to allocate space for very large buffers.
38041         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38042
38043         Make pwd and readlink work also when run with an unreadable parent dir
38044         on systems with openat support.
38045         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38046         provided getcwd function, even when we have openat support.
38047         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38048
38049 2007-02-02  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38052         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38053         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38054         portability problems if one of these functions is only used on specific
38055         platforms.
38056         Reported by Paul Eggert.
38057
38058 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38059
38060         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38061         is causing more trouble than it's curing.
38062         * lib/regex_internal.h (__mempcpy): Remove.
38063         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38064         (and make the code a tad smaller to boot).
38065         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38066
38067 2007-02-02  Jim Meyering  <jim@meyering.net>
38068
38069         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38070         section, not in the Makefile.am: one.
38071
38072 2007-02-02  Eric Blake  <ebb9@byu.net>
38073
38074         * lib/strchrnul.c: Always include config.h first.
38075
38076         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38077         gnulib strstr is not necessary here.
38078
38079 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38080
38081         * m4/socklen.m4: Fix typo.
38082
38083 2007-02-02  Eric Blake  <ebb9@byu.net>
38084
38085         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38086         * modules/netinet_in (Makefile.am): Likewise.
38087
38088 2007-02-01  Bruno Haible  <bruno@clisp.org>
38089
38090         * lib/string_.h (GL_LINK_WARNING): New macro.
38091         (strcasecmp, strstr, strcasestr): If provided by the system,
38092         conditionally define as a macro that leads to a warning instead of to
38093         an error.
38094         (strncasecmp): Conditionally define as a macro that leads to a warning.
38095
38096 2007-02-01  Karl Berry  <karl@gnu.org>
38097
38098         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38099
38100 2007-02-01  Bruno Haible  <bruno@clisp.org>
38101
38102         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38103         renamings.
38104
38105 2007-02-01  Eric Blake  <ebb9@byu.net>
38106
38107         * modules/regex (Depends-on): Revert dependence on mempcpy.
38108         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38109         module's definition of mempcpy.
38110         Reported by Paul Eggert.
38111
38112 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38113
38114         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38115         the symbol XYZ before redefining it.  This fixes a problem with
38116         programs that don't use XYZ, when compiled on systems that define
38117         XYZ to something else.
38118
38119 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38120
38121         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38122         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38123         writeable to group or other and (2) is intended to have a special
38124         mode bit that is set or cleared.  In such a case, the directory
38125         should be neither group- nor other-writeable until the special
38126         mode bits are right.
38127
38128 2007-01-31  Eric Blake  <ebb9@byu.net>
38129
38130         * modules/mountlist (Depends-on): Add strstr.
38131
38132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38133         bug.
38134         * modules/string (Makefile.am): Remove redundant replacement.
38135         * modules/regex (Depends-on): Add mempcpy.
38136
38137 2007-01-31  Bruno Haible  <bruno@clisp.org>
38138
38139         New module description field 'Link'.
38140         * gnulib-tool (func_usage): Document --extract-link-directive.
38141         (sed_extract_prog): Recognize 'Link' directive.
38142         (func_get_link_directive): New function.
38143         (func_import): Show summary of link directives.
38144         Handle --extract-link-directive option.
38145         * modules/acl (Link): New section.
38146         * modules/clock-time (Link): New section.
38147         * modules/euidaccess (Link): New section.
38148         * modules/gettext (Link): New section.
38149         * modules/iconv (Link): New section.
38150         * modules/lock (Link): New section.
38151         * modules/nanosleep (Link): New section.
38152         * modules/readline (Link): New section.
38153
38154 2007-01-27  Bruno Haible  <bruno@clisp.org>
38155
38156         Enforce the use of gnulib modules for unportable <string.h> functions.
38157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38158         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38159         (gl_HEADER_STRING_H_BODY): Require it.
38160         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38161         the symbol XYZ to one that gives a link error.
38162         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38163         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38164         * modules/mempcpy (configure.ac): Likewise.
38165         * modules/memrchr (configure.ac): Likewise.
38166         * modules/stpcpy (configure.ac): Likewise.
38167         * modules/stpncpy (configure.ac): Likewise.
38168         * modules/strcase (configure.ac): Likewise.
38169         * modules/strcasestr (configure.ac): Likewise.
38170         * modules/strchrnul (configure.ac): Likewise.
38171         * modules/strdup (configure.ac): Likewise.
38172         * modules/strndup (configure.ac): Likewise.
38173         * modules/strnlen (configure.ac): Likewise.
38174         * modules/strpbrk (configure.ac): Likewise.
38175         * modules/strsep (configure.ac): Likewise.
38176         * modules/strstr (configure.ac): Likewise.
38177         * modules/strtok_r (configure.ac): Likewise.
38178
38179 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38180
38181         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38182
38183 2007-01-30  Jim Meyering  <jim@meyering.net>
38184
38185         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38186
38187 2007-01-29  Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38190         * lib/execute.c: Likewise.
38191         * lib/pipe.c: Likewise.
38192         * lib/printf-args.h: Likewise.
38193         * lib/printf-args.c: Likewise.
38194         * lib/printf-parse.c: Likewise.
38195         * lib/vasnprintf.c: Likewise.
38196
38197 2007-01-29  Eric Blake  <ebb9@byu.net>
38198
38199         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38200         declaration.
38201
38202 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38203
38204         * lib/strptime.h (strptime): Use 'restrict' for args where
38205         POSIX requires this.
38206         * lib/strptime.c (strptime): Likewise.
38207         Change license notice from LGPL to GPL, since gnulib-tool will
38208         change this as needed.
38209         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38210         defined.
38211         Include "strptime.h" first, to check interface.
38212         Do not #undef _LIBC and _NL_CURRENT.
38213         Do not include <stdlib.h>; no longer needed.
38214         Include "time_r.h" and declare ptime_locale_status
38215         only if _LIBC is not defined.
38216         (__P): Remove unused macro.
38217         (match_string): Bring back glibc version, but use it only if _LIBC
38218         is defined.
38219         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38220         Remove unnecessary assertion and abort() call.
38221         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38222         * m4/strptime.m4: Fix serial number comment.
38223         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38224         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38225         (Depends-on): Add time_r.
38226
38227 2007-01-29  Bruno Haible  <bruno@clisp.org>
38228
38229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38230         strptime.
38231         * modules/strptime (Depends-on): Add stdbool.
38232         * lib/strptime.h: Include <time.h> always. Add comments.
38233
38234 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38235
38236         * modules/strptime: New file.
38237         * lib/strptime.h: New file.
38238         * lib/strptime.c: New file.
38239         * m4/strptime.m4: New file.
38240
38241 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38242
38243         * MODULES.html.sh: New module mpsort.
38244         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38245
38246         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38247         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38248         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38249         All uses changed.
38250         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38251         All uses changed.
38252         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38253         to _Restrict_.
38254         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38255         the parameter matches the prototype.
38256
38257 2007-01-28  Jim Meyering  <jim@meyering.net>
38258
38259         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38260         sys/time.h here, reverting that part of the previous patch:
38261         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38262
38263 2007-01-28  Bruno Haible  <bruno@clisp.org>
38264
38265         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38266         value of $(SYS_TIME_H).
38267         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38268         remove it conditionally, too. [added by Jim Meyering]
38269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38271         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38272         GETTIMEOFDAY_REPLACEMENT to 1.
38273
38274 2007-01-28  Bruno Haible  <bruno@clisp.org>
38275
38276         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38277         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38279         Set UNISTD_H instead of UNISTD_H2.
38280         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38281
38282 2007-01-28  Bruno Haible  <bruno@clisp.org>
38283
38284         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38285         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38286
38287 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38288
38289         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38290         (func_create_testdir): Ensure C locale for `grep' and `tr'
38291         character ranges.
38292         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38293         ACLOCAL_AMFLAGS parsing state machine.
38294
38295 2007-01-27  Bruno Haible  <bruno@clisp.org>
38296
38297         * modules/unistr/base: Update.
38298
38299 2007-01-27  Bruno Haible  <bruno@clisp.org>
38300
38301         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38302         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38303         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38304         modules/unistr/u32-mbtouc.
38305         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38306         * lib/unistr.h: Update.
38307         * lib/linebreak.c: Update.
38308         * modules/unistr/u32-mbtouc: Renamed from
38309         modules/unistr/u32-mbtouc-safe.
38310         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38311         * lib/unistr.h: Update.
38312         * lib/unistr/u32-to-u8.c: Update.
38313         * lib/unistr/u32-to-u16.c: Update.
38314
38315 2007-01-27  Bruno Haible  <bruno@clisp.org>
38316
38317         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38318         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38319         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38320         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38321         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38322         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38323         modules/unistr/u16-mbtouc.
38324         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38325         * lib/unistr.h: Update.
38326         * lib/linebreak.c: Update.
38327         * modules/linebreak: Update.
38328         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38329         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38330         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38331         * modules/unistr/u16-mbtouc: Renamed from
38332         modules/unistr/u16-mbtouc-safe.
38333         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38334         * lib/unistr.h: Update.
38335         * lib/unistr/u16-to-u8.c: Update.
38336         * modules/unistr/u16-to-u8: Update.
38337         * lib/unistr/u16-to-u32.c: Update.
38338         * modules/unistr/u16-to-u32: Update.
38339
38340 2007-01-27  Bruno Haible  <bruno@clisp.org>
38341
38342         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38343         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38344         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38345         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38346         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38347         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38348         modules/unistr/u8-mbtouc.
38349         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38350         * lib/unistr.h: Update.
38351         * lib/striconveh.c: Update.
38352         * modules/striconveh: Update.
38353         * lib/linebreak.c: Update.
38354         * modules/linebreak: Update.
38355         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38356         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38357         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38358         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38359         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38360         * lib/unistr.h: Update.
38361         * lib/striconveh.c: Update.
38362         * modules/striconveh: Update.
38363         * lib/unistr/u8-to-u16.c: Update.
38364         * modules/unistr/u8-to-u16: Update.
38365         * lib/unistr/u8-to-u32.c: Update.
38366         * modules/unistr/u8-to-u32: Update.
38367
38368 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38369
38370         Sync from Libtool.
38371         * lib/argz.c: Do not include strings.h nor memory.h, include
38372         string.h unconditionally.  Patch by Simon Josefsson.
38373
38374 2007-01-27  Bruno Haible  <bruno@clisp.org>
38375
38376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38377         from gl_HEADER_STRING_H_BODY.
38378         (gl_HEADER_STRING_H_BODY): Require it.
38379         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38380         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38381         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38382         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38383         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38384         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38386         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38387         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38388         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38389         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38390         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38391         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38392         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38393         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38394
38395 2007-01-27  Bruno Haible  <bruno@clisp.org>
38396
38397         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38398         check_PROGRAMS into noinst_PROGRAMS.
38399         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38400         check_PROGRAMS in this case.
38401         (func_import): Set for_test to false.
38402         (func_create_testdir): Set for_test to true.
38403
38404 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38405             Bruno Haible  <bruno@clisp.org>
38406
38407         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38408         (Depends-on): Add string.
38409         (Includes): Use <string.h> instead of strcasestr.h.
38410         * modules/string (Makefile.am): Also substitute the value of
38411         REPLACE_STRCASESTR.
38412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38413         assume strcasestr is declared in <string.h> not <strings.h>. Also
38414         set REPLACE_STRCASESTR.
38415         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38416         REPLACE_STRCASESTR.
38417         * lib/strcasestr.h: Remove file.
38418         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38419         * lib/string_.h (strcasestr): New declaration.
38420
38421 2007-01-27  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/string_.h: Use 'extern'.
38424
38425 2007-01-27  Jim Meyering  <jim@meyering.net>
38426
38427         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38428         of set-but-not-used local, "q".
38429
38430         * lib/mempcpy.c: Include <config.h> before <string.h>.
38431         This fixes a compilation error on HP-UX, due to the system's
38432         "restrict"-using mempcpy prototype.
38433
38434 2007-01-26  Bruno Haible  <bruno@clisp.org>
38435
38436         Small optimization.
38437         * lib/javacomp.c: Include c-strstr.h.
38438          (is_envjavac_gcj): Use c_strstr instead of strstr.
38439         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38440
38441 2007-01-26  Bruno Haible  <bruno@clisp.org>
38442
38443         * MODULES.html.sh (Unicode string functions): Add the new modules.
38444
38445         * modules/uniconv/u32-strconv-to-locale: New file.
38446         * lib/uniconv/u32-strconv-to-locale.c: New file.
38447
38448         * modules/uniconv/u16-strconv-to-locale: New file.
38449         * lib/uniconv/u16-strconv-to-locale.c: New file.
38450
38451         * modules/uniconv/u8-strconv-to-locale: New file.
38452         * lib/uniconv/u8-strconv-to-locale.c: New file.
38453
38454         * modules/uniconv/u32-strconv-from-locale: New file.
38455         * lib/uniconv/u32-strconv-from-locale.c: New file.
38456
38457         * modules/uniconv/u16-strconv-from-locale: New file.
38458         * lib/uniconv/u16-strconv-from-locale.c: New file.
38459
38460         * modules/uniconv/u8-strconv-from-locale: New file.
38461         * lib/uniconv/u8-strconv-from-locale.c: New file.
38462
38463         * modules/uniconv/u32-strconv-to-enc: New file.
38464         * lib/uniconv/u32-strconv-to-enc.c: New file.
38465         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38466         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38467
38468         * modules/uniconv/u16-strconv-to-enc: New file.
38469         * lib/uniconv/u16-strconv-to-enc.c: New file.
38470         * lib/uniconv/u-strconv-to-enc.h: New file.
38471         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38472         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38473
38474         * modules/uniconv/u8-strconv-to-enc: New file.
38475         * lib/uniconv/u8-strconv-to-enc.c: New file.
38476         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38477         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38478
38479         * modules/uniconv/u32-strconv-from-enc: New file.
38480         * lib/uniconv/u32-strconv-from-enc.c: New file.
38481         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38482         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38483
38484         * modules/uniconv/u16-strconv-from-enc: New file.
38485         * lib/uniconv/u16-strconv-from-enc.c: New file.
38486         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38487         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38488
38489         * modules/uniconv/u8-strconv-from-enc: New file.
38490         * lib/uniconv/u8-strconv-from-enc.c: New file.
38491         * lib/uniconv/u-strconv-from-enc.h: New file.
38492         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38493         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38494
38495         * modules/uniconv/u32-conv-from-enc: New file.
38496         * lib/uniconv/u32-conv-from-enc.c: New file.
38497         * modules/uniconv/u32-conv-from-enc-tests: New file.
38498         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38499
38500         * modules/uniconv/u16-conv-from-enc: New file.
38501         * lib/uniconv/u16-conv-from-enc.c: New file.
38502         * lib/uniconv/u-conv-from-enc.h: New file.
38503         * modules/uniconv/u16-conv-from-enc-tests: New file.
38504         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38505
38506         * modules/uniconv/u8-conv-from-enc: New file.
38507         * lib/uniconv/u8-conv-from-enc.c: New file.
38508         * modules/uniconv/u8-conv-from-enc-tests: New file.
38509         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38510
38511         * modules/uniconv/base: New file.
38512         * lib/uniconv.h: New file.
38513
38514 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38515
38516         * doc/gnulib-tool.texi (Initial import): Update to match current
38517         behavior with strdup module.
38518         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38519         * lib/memmem.h: Remove; all uses removed.  This is now done
38520         by <string.h>.
38521         * lib/mempcpy.h: Likewise.
38522         * lib/memrchr.h: Likewise.
38523         * lib/stpcpy.h: Likewise.
38524         * lib/stpncpy.h: Likewise.
38525         * lib/strcase.h: Likewise.
38526         * lib/strchrnul.h: Likewise.
38527         * lib/strdup.h: Likewise.
38528         * lib/strndup.h: Likewise.
38529         * lib/strnlen.h: Likewise.
38530         * lib/strpbrk.h: Likewise.
38531         * lib/strsep.h: Likewise.
38532         * lib/strstr.h: Likewise.
38533         * lib/strtok_r.h: Likewise.
38534         * lib/string_.h: New file.
38535         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38536         Rely on <string.h> instead.
38537         * lib/canon-host.c: Likewise.
38538         * lib/chdir-long.c: Likewise.
38539         * lib/concatpath.c: Likewise.
38540         * lib/exclude.c: Likewise.
38541         * lib/fchdir.c: Likewise.
38542         * lib/getaddrinfo.c: Likewise.
38543         * lib/getcwd.c: Likewise.
38544         * lib/getsubopt.c: Likewise.
38545         * lib/glob.c: Likewise.
38546         * lib/hard-locale.c: Likewise.
38547         * lib/iconvme.c: Likewise.
38548         * lib/javacomp.c: Likewise.
38549         * lib/mempcpy.c: Likewise.
38550         * lib/memrchr.c: Likewise.
38551         * lib/regex_internal.h: Likewise.
38552         * lib/stpncpy.c: Likewise.
38553         * lib/strcasecmp.c: Likewise.
38554         * lib/strchrnul.c: Likewise.
38555         * lib/strdup.c: Likewise.
38556         * lib/striconv.c: Likewise.
38557         * lib/striconveh.c: Likewise.
38558         * lib/striconveha.c: Likewise.
38559         * lib/strncasecmp.c: Likewise.
38560         * lib/strndup.c: Likewise.
38561         * lib/strnlen.c: Likewise.
38562         * lib/strsep.c: Likewise.
38563         * lib/strstr.c: Likewise.
38564         * lib/strtok_r.c: Likewise.
38565         * lib/userspec.c: Likewise.
38566         * lib/w32spawn.h: Likewise.
38567         * lib/xstrndup.c: Likewise.
38568         * lib/mountlist.c (strstr): Remove decl.
38569         * m4/string_h.m4: New file.
38570         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38571         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38572         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38573         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38574         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38575         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38576         Set REPLACE_STRCASECMP if necessary.
38577         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38578         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38579         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38580         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38581         HAVE_DECL_STRDUP if necessary.
38582         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38583         since gl_FUNC_STRNDUP does that now.
38584         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38585         Check for decl here...
38586         (gl_PREREQ_STRNLEN): ... not here.
38587         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38588         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38589         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38590         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38591         necessary.
38592         * modules/string: New file.
38593         * modules/memmem (Files): Remove special-purpose include file.
38594         (Depends-on): Add string.
38595         (Include): Include <string.h>, not the removed file.
38596         * modules/mempcpy: Likewise.
38597         * modules/memrchr: Likewise.
38598         * modules/stpcpy: Likewise.
38599         * modules/stpncpy: Likewise.
38600         * modules/strcase: Likewise.
38601         * modules/strchrnul: Likewise.
38602         * modules/strdup: Likewise.
38603         * modules/strndup: Likewise.
38604         * modules/strnlen: Likewise.
38605         * modules/strpbrk: Likewise.
38606         * modules/strsep: Likewise.
38607         * modules/strstr: Likewise.
38608         * modules/strtok_r: Likewise.
38609         * tests/test-dirname.c: Don't include "strdup.h", since
38610         <string.h> now suffices.
38611         * tests/test-memmem.c: Don't include "memmem.h", since
38612         <string.h> now suffices.
38613
38614 2007-01-25  Bruno Haible  <bruno@clisp.org>
38615
38616         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38617         *resultp is 0.
38618
38619         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38620         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38621         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38622         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38623
38624         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38625         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38626         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38627         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38628         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38629         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38630
38631 2007-01-24  Bruno Haible  <bruno@clisp.org>
38632
38633         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38634         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38635         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38636         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38637         gl_FUNC_FTS_CORE.
38638         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38639         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38640         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38641         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38642         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38643         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38644         gl_FUNC_FCHOWNAT.
38645         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38646         gl_FUNC_STRFTIME.
38647         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38648         Reported by Ralf Wildenhues.
38649
38650 2007-01-24  Bruno Haible  <bruno@clisp.org>
38651
38652         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38653         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38654         gl_GETADDRINFO.
38655         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38656         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38657         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38658
38659 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38660
38661         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38662         Don't use 'exit'; just return from 'main'.
38663         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38664
38665         * lib/fnmatch_.h: Readjust white space and comments to match
38666         glibc, to avoid spurious diffs.
38667
38668 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38669
38670         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38671         2004-12-01 change by Jakub Jelinek, since this code won't compile
38672         if !LIBC.  Problem reported by Bob Proulx.
38673
38674 2007-01-23  Bruno Haible  <bruno@clisp.org>
38675
38676         * lib/striconveh.c: Include c-strcaseeq.h.
38677         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38678         * modules/striconveh (Depends-on): Add c-strcaseeq.
38679
38680 2007-01-23  Bruno Haible  <bruno@clisp.org>
38681
38682         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38683
38684         * modules/c-strcaseeq: New file.
38685         * lib/c-strcaseeq.h: New file.
38686
38687         * modules/streq: New file.
38688         * lib/streq.h: New file.
38689
38690 2007-01-23  Bruno Haible  <bruno@clisp.org>
38691
38692         * modules/striconveha-tests: New file.
38693         * tests/test-striconveha.c: New file.
38694
38695         * lib/striconveha.h: Include <stdbool.h>.
38696         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38697         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38698         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38699         (mem_iconveha): New function.
38700         (str_iconveha_notranslit): Renamed from str_iconveha.
38701         (str_iconveha): New function.
38702         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38703         c-strcase.
38704
38705 2007-01-23  Bruno Haible  <bruno@clisp.org>
38706
38707         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38708         encodings without forgiving before trying any encoding with handler.
38709         (str_iconveha): Try all encodings without forgiving before trying any
38710         encoding with handler.
38711
38712 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38713
38714         Import the following changes from libc.
38715
38716         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38717
38718         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38719
38720         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38721
38722         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38723         normal_bracket label.
38724
38725         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38726
38727         [BZ #361]
38728         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38729         to normal_bracket after fetching the next character.
38730
38731 2007-01-22  Bruno Haible  <bruno@clisp.org>
38732
38733         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38734         argument.
38735         * lib/striconveh.c (iconv_carefully_1): New function.
38736         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38737         argument.
38738         (str_cd_iconveh): Update.
38739         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38740         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38741         * tests/test-striconveh.c (MAGIC): New macro.
38742         (new_offsets): New function.
38743         (main): Test call with and without offsets.
38744
38745 2007-01-22  Bruno Haible  <bruno@clisp.org>
38746
38747         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38748         * modules/sys_select (Makefile.am): Likewise.
38749         * modules/sys_socket (Makefile.am): Likewise.
38750         * modules/sys_time (Makefile.am): Likewise.
38751
38752 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38753
38754         * modules/gettimeofday (License): Change from GPL to LGPL, since
38755         gettimeofday is a library function.
38756
38757 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38758
38759         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38760
38761 2007-01-21  Bruno Haible  <bruno@clisp.org>
38762
38763         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38764
38765 2007-01-21  Bruno Haible  <bruno@clisp.org>
38766
38767         * modules/striconveha: New file.
38768         * lib/striconveha.h: New file.
38769         * lib/striconveha.c: New file.
38770         * MODULES.html.sh (Internationalization functions): Add striconveha.
38771         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38772         string.
38773         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38774
38775 2007-01-21  Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38778         * lib/striconveh.c (str_iconveh): Likewise.
38779
38780 2007-01-21  Bruno Haible  <bruno@clisp.org>
38781
38782         * lib/striconveh.h (mem_iconveh): New declaration.
38783         * lib/striconveh.c (mem_iconveh): New function.
38784         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38785
38786 2007-01-21  Bruno Haible  <bruno@clisp.org>
38787
38788         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38789
38790         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38791         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38792         original result buffer.
38793         (str_cd_iconveh): Update.
38794         * tests/test-striconveh.c (main): Update.
38795
38796         * lib/striconv.h (mem_cd_iconv): Change specification.
38797         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38798         result buffer.
38799         (str_cd_iconv): Update.
38800         * tests/test-striconv.c (main): Update.
38801
38802 2007-01-21  Bruno Haible  <bruno@clisp.org>
38803
38804         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38805
38806 2007-01-20  Jim Meyering  <jim@meyering.net>
38807
38808         * lib/userspec.c (parse_with_separator): If a user or group string
38809         starts with "+", skip the corresponding name-to-ID look-up, since
38810         such a look-up must fail: user and group names may not include "+".
38811
38812 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38813
38814         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38815         since we now assume the sys_time module.
38816         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38817         check for sys/time.h; no longer needed.
38818         * modules/poll (Depends-on): Depend on sys_time.
38819
38820 2007-01-18  Bruno Haible  <bruno@clisp.org>
38821
38822         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38823         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38824
38825         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38826         gettimeofday.
38827
38828         * tests/test-gettimeofday.c: Include <time.h>.
38829         (dummy): Remove variable.
38830
38831         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38832         gl_HEADER_SYS_TIME_H.
38833         (gl_HEADER_SYS_TIME_H): New macro.
38834
38835         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38836         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38838         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38839         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38841         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38842         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38843         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38844         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38845         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38846
38847         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38848         last change; it caused a compilation error when cross-compiling to
38849         Cygwin.
38850
38851 2007-01-18  Jim Meyering  <jim@meyering.net>
38852
38853         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38854         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38855         than the race-prone "test -d sys || mkdir sys".
38856         (configure.ac): Use AC_PROG_MKDIR_P.
38857         * modules/sys_select: Likewise.
38858         * modules/sys_socket: Likewise.
38859         * modules/sys_time: Likewise.
38860
38861 2007-01-18  Eric Blake  <ebb9@byu.net>
38862
38863         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38864         replace gettimeofday.
38865         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38866         name, to avoid infinite recursion.
38867
38868 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38869
38870         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38871         module sys_time.
38872         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38873         assume timespec.h defines struct timeval.
38874         * lib/settime.c: Likewise.
38875         * lib/utimens.c: Likewise.
38876         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38877         since we now assume the gettimeofday module.
38878         * lib/tempname.c (__gen_tempname): Likewise.
38879         * lib/gettimeofday.h: Remove.
38880         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38881         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38882         Include <time.h>, for 'time()'.
38883         (localtime_buffer_addr): Also use this workaround if
38884         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38885         to simplify the uses.  All uses changed.
38886         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38887         that #undef is inside {}, and 'const' follows type name consistently.
38888         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38889         (gettimeofday): Do not use the maximum possible value for
38890         tv->tv_usec, since that might break usages other than ls.c.
38891         Instead, we'll leave ls.c alone.  This undoes today's patch
38892         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38893         we've never observed the problem but might as well keep the
38894         canary.
38895         * lib/nanosleep.c: Include timespec.h first, for interface check.
38896         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38897         now assume the sys_time module.
38898         * lib/tempname.c: Likewise.
38899         * lib/timespec.h: Likewise.
38900         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38901         needed.
38902         * lib/strftime.c: Likewise.
38903         * lib/timespec.h: Likewise.
38904         * lib/posixtm.c: Include posixtm.h first, for interface check.
38905         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38906         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38907         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38908         * lib/sys_time_.h: New file.
38909         * lib/timespec.h (struct timespec): Use long int, not long.
38910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38911         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38912         Remove obsolescent call to AC_HEADER_TIME.
38913         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38916         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38917         Likewise.
38918         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38919         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38921         into the sys_time module.  Check for gettimeofday just once.
38922         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38923         for gettimeofday signature to just check the signature.  Merely
38924         compile it, since linking doesn't test signature.  Improve test for
38925         whether gettimeofday.o is actually needed.
38926         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38927         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38928         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38929         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38930         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38931         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38932         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38933         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38934         than worrying about sys/time.h.
38935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38936         Don't bother worrying about TIME_WITH_SYS_TIME.
38937         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38938         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38939         * m4/sys_time_h.m4: New file.
38940         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38941         Don't include sys/time.h.  Return from main rather than exiting.
38942         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38943         all uses changed.
38944         * modules/gethrxtime (Depends-on): Add sys_time.
38945         * modules/gettime (Depends-on): Likewise.
38946         * modules/gettimeofday (Depends-on): Likewise.
38947         * modules/nanosleep (Depends-on): Likewise.
38948         * modules/settime (Depends-on): Likewise.
38949         * modules/tempname (Depends-on): Likewise.
38950         * modules/utimens (Depends-on): Likewise.
38951         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38952         (Include:) Change back to <sys/time.h>.
38953         (Maintainer:) Add self.
38954         * modules/sys_time: New file.
38955         * modules/tempname (Depends-on): Add gettimeofday.
38956         * tests/test-gettimeofday.c: Include <sys/time.h>
38957         rather than gettimeofday.h.
38958
38959 2007-01-17  Bruno Haible  <bruno@clisp.org>
38960
38961         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38962         the license default to GPL.
38963         (func_create_testdir): Don't complain if a module is LGPL and its
38964         tests module depends on GPLed modules.
38965
38966 2007-01-17  Bruno Haible  <bruno@clisp.org>
38967
38968         * lib/gettimeofday.c (gettimeofday): Add code for the case
38969         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38970         maximum possible value for tv->tv_usec, rather than the minimum one.
38971
38972 2005-10-08  Martin Lambers  <marlam@marlam.de>
38973 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38974 2007-01-16  Bruno Haible  <bruno@clisp.org>
38975
38976         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38977         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38978         gl_FUNC_GETTIMEOFDAY.
38979         (Include): Add gettimeofday.h.
38980         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38981         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38982         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38983         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38984         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38985         * lib/gettimeofday.h: New file.
38986         * lib/gettimeofday.c: Include <sys/timeb.h>.
38987         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38988         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38989         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38990         fall back on time().
38991
38992         * tests/test-gettimeofday.c: New file.
38993         * modules/gettimeofday-tests: New file.
38994
38995 2007-01-16  Eric Blake  <ebb9@byu.net>
38996
38997         * modules/fnmatch (Depends-on): Depend on wchar.
38998         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38999         * m4/fnmatch.m4: Likewise.
39000         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39001         * m4/mbchar.m4: Likewise.
39002         * modules/mbswidth (Depends-on): Depend on wchar.
39003         * lib/mbswidth.c: Assume <wchar.h>.
39004         * m4/mbswidth.m4: Likewise.
39005         * modules/quotearg (Depends-on): Depend on wchar.
39006         * lib/quotearg.c: Assume <wchar.h>.
39007         * m4/quotearg.m4: Likewise.
39008         * modules/regex (Depends-on): Depend on wchar.
39009         * lib/regex_internal.h: Assume <wchar.h>.
39010         * m4/regex.m4: Likewise.
39011         * modules/stdint (Depends-on): Depend on wchar.
39012         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39013         * m4/stdint.m4: Likewise.
39014         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39015         * modules/strftime (Depends-on): Depend on wchar.
39016         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39017         * modules/strtol (Depends-on): Depend on wchar.
39018         * lib/strtol.c: Assume <wchar.h>.
39019         * modules/wcwidth (Depends-on): Depend on wchar.
39020         * lib/wcwidth.h: Assume <wchar.h>.
39021         * m4/wcwidth.m4: Likewise.
39022
39023 2007-01-16  Bruno Haible  <bruno@clisp.org>
39024
39025         * modules/csharpexec-script: New, created from...
39026         * modules/csharpexec: ... this.
39027
39028 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39029
39030         * modules/javaexec-script: New, created from...
39031         * modules/javaexec: ... this.
39032
39033 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39034
39035         * modules/poll (Dependencies): Add sys_select.
39036
39037 2007-01-15  Jim Meyering  <jim@meyering.net>
39038
39039         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39040         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39041         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39042         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39043
39044 2007-01-15  Bruno Haible  <bruno@clisp.org>
39045
39046         * modules/striconveh: New file.
39047         * lib/striconveh.h: New file.
39048         * lib/striconveh.c: New file.
39049         * MODULES.html.sh (Internationalization functions): Add striconveh.
39050
39051         * modules/striconveh-tests: New file.
39052         * tests/test-striconveh.c: New file.
39053
39054 2007-01-15  Bruno Haible  <bruno@clisp.org>
39055
39056         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39057         not from GNU libiconv or GNU libc.
39058
39059 2007-01-15  Bruno Haible  <bruno@clisp.org>
39060
39061         * doc/gnulib-intro.texi (Copyright): Explain the different license
39062         terms for module descriptions, autoconf macros, tests, documentation.
39063
39064 2007-01-14  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/striconv-tests: New file.
39067         * tests/test-striconv.c: New file.
39068
39069 2007-01-14  Bruno Haible  <bruno@clisp.org>
39070
39071         * modules/iconv-tests: New file.
39072         * tests/test-iconv.c: New file.
39073
39074 2007-01-14  Bruno Haible  <bruno@clisp.org>
39075
39076         * gnulib-tool (func_get_license): For test modules, use the license of
39077         the main module.
39078
39079 2007-01-14  Bruno Haible  <bruno@clisp.org>
39080
39081         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39082         if iconv is found to exist.
39083
39084 2007-01-14  Bruno Haible  <bruno@clisp.org>
39085
39086         * modules/c-ctype-tests: New file.
39087         * tests/test-c-ctype.c: New file.
39088
39089 2007-01-14  Bruno Haible  <bruno@clisp.org>
39090
39091         * modules/binary-io-tests: New file.
39092         * tests/test-binary-io.sh: New file.
39093         * tests/test-binary-io.c: New file.
39094
39095 2007-01-14  Bruno Haible  <bruno@clisp.org>
39096
39097         * modules/array-oset-tests: New file.
39098         * tests/test-array_oset.c: New file.
39099
39100 2007-01-14  Bruno Haible  <bruno@clisp.org>
39101
39102         * modules/array-list-tests: New file.
39103         * tests/test-array_list.c: New file.
39104
39105 2007-01-14  Bruno Haible  <bruno@clisp.org>
39106
39107         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39108         and make.
39109         Reported by Simon Josefsson in
39110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39111
39112 2007-01-14  Bruno Haible  <bruno@clisp.org>
39113
39114         * modules/allocsa-tests: New file.
39115         * tests/test-allocsa.c: New file.
39116
39117 2007-01-14  Bruno Haible  <bruno@clisp.org>
39118
39119         * modules/fchdir (Depends-on): Add absolute-header.
39120         * modules/unistd (Depends-on): Likewise.
39121
39122 2006-12-30  Bruno Haible  <bruno@clisp.org>
39123
39124         * modules/fchdir: New file.
39125         * modules/unistd (Files): Add lib/unistd_.h.
39126         (Makefile.am): Generate unistd.h from unistd_.h.
39127         * lib/fchdir.c: New file.
39128         * lib/dirent_.h: New file.
39129         * lib/unistd_.h: New file.
39130         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39131         * m4/fchdir.m4: New file.
39132         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39133         (gl_HEADER_UNISTD): Invoke it.
39134         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39135         function.
39136         * lib/backupfile.c (opendir, closedir): Undefine.
39137         * lib/chown.c (open, close): Undefine.
39138         * lib/clean-temp.c (open, close): Undefine.
39139         * lib/copy-file.c (open, close): Undefine.
39140         * lib/execute.c (open, close): Undefine.
39141         * lib/fsusage.c (open, close): Undefine.
39142         * lib/gc-gnulib.c (open, close): Undefine.
39143         * lib/getcwd.c (opendir, closedir): Undefine.
39144         * lib/glob.c (opendir, closedir): Undefine.
39145         * lib/javacomp.c (open, close): Undefine.
39146         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39147         * lib/openat-proc.c (open, close): Undefine.
39148         * lib/pagealign_alloc.c (open, close): Undefine.
39149         * lib/pipe.c (open, close): Undefine.
39150         * lib/progreloc.c (open, close): Undefine.
39151         * lib/savedir.c (opendir, closedir): Undefine.
39152         * lib/utime.c (open, close): Undefine.
39153         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39154
39155 2007-01-10  Bruno Haible  <bruno@clisp.org>
39156
39157         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39158
39159 2007-01-12  Eric Blake  <ebb9@byu.net>
39160
39161         Provide a robust <wchar.h>.  Further simplifications are now
39162         possible in other modules, but not included here.
39163         * modules/wchar: New module.
39164         * m4/wchar.m4: New file.
39165         * lib/wchar_.h: Likewise.
39166         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39167         of the new module.
39168         * MODULES.html.sh (Extended multibyte and wide character utilities):
39169         New section.
39170
39171 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39172
39173         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39174         to a reasonable default for memory allocation.
39175         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39176         file system that reports garbage st_size values for symlinks.
39177         Problem reported by Liyang Hu.
39178
39179 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39180
39181         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39182         Emacs .#* auto-save files).
39183
39184 2007-01-11  Bruno Haible  <bruno@clisp.org>
39185
39186         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39187         directory.
39188
39189 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39190
39191         Use @...@ consistently in lib/wctype_.h.
39192         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39193         on it being set to 1 or 0.
39194         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39195         go back to AC_SUBSTing it.
39196         * modules/wctype (Makefile.am): Undo previous change.
39197
39198 2007-01-10  Eric Blake  <ebb9@byu.net>
39199
39200         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39201         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39202         * modules/wctype (Makefile.am): Likewise.
39203         Reported by Chris McGuire.
39204
39205 2007-01-10  Jim Meyering  <jim@meyering.net>
39206
39207         fts.c: a small readability/maintainability improvement
39208         * lib/fts.c (fts_read): Make this code slightly more readable and
39209         maintainable by hoisting the "sp->fts_cur = p" assignments to
39210         immediately follow the statements that set P.  Derived from
39211         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39212
39213 2007-01-10  Eric Blake  <ebb9@byu.net>
39214
39215         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39216         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39218         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39219         Reported by Chris McGuire.
39220
39221 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39222
39223         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39224         in sed script.
39225
39226 2007-01-09  Bruno Haible  <bruno@clisp.org>
39227
39228         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39229         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39230         variables.
39231         (func_module): Use them.
39232
39233 2007-01-09  Bruno Haible  <bruno@clisp.org>
39234
39235         * modules/unistr/base: New file.
39236         * lib/unistr.h: New file.
39237
39238         * modules/unistr/u8-to-u16: New file.
39239         * lib/unistr/u8-to-u16.c: New file.
39240
39241         * modules/unistr/u8-to-u32: New file.
39242         * lib/unistr/u8-to-u32.c: New file.
39243
39244         * modules/unistr/u16-to-u8: New file.
39245         * lib/unistr/u16-to-u8.c: New file.
39246
39247         * modules/unistr/u16-to-u32: New file.
39248         * lib/unistr/u16-to-u32.c: New file.
39249
39250         * modules/unistr/u32-to-u8: New file.
39251         * lib/unistr/u32-to-u8.c: New file.
39252
39253         * modules/unistr/u32-to-u16: New file.
39254         * lib/unistr/u32-to-u16.c: New file.
39255
39256         * modules/unistr/u8-check: New file.
39257         * modules/unistr/u16-check: New file.
39258         * modules/unistr/u32-check: New file.
39259         * lib/unistr/u8-check.c: New file.
39260         * lib/unistr/u16-check.c: New file.
39261         * lib/unistr/u32-check.c: New file.
39262
39263         * modules/unistr/u8-chr: New file.
39264         * modules/unistr/u16-chr: New file.
39265         * modules/unistr/u32-chr: New file.
39266         * lib/unistr/u8-chr.c: New file.
39267         * lib/unistr/u16-chr.c: New file.
39268         * lib/unistr/u32-chr.c: New file.
39269
39270         * modules/unistr/u8-cmp: New file.
39271         * modules/unistr/u16-cmp: New file.
39272         * modules/unistr/u32-cmp: New file.
39273         * lib/unistr/u8-cmp.c: New file.
39274         * lib/unistr/u16-cmp.c: New file.
39275         * lib/unistr/u32-cmp.c: New file.
39276
39277         * modules/unistr/u8-cpy: New file.
39278         * modules/unistr/u16-cpy: New file.
39279         * modules/unistr/u32-cpy: New file.
39280         * lib/unistr/u8-cpy.c: New file.
39281         * lib/unistr/u16-cpy.c: New file.
39282         * lib/unistr/u32-cpy.c: New file.
39283         * lib/unistr/u-cpy.h: New file.
39284
39285         * modules/unistr/u8-cpy-alloc: New file.
39286         * modules/unistr/u16-cpy-alloc: New file.
39287         * modules/unistr/u32-cpy-alloc: New file.
39288         * lib/unistr/u8-cpy-alloc.c: New file.
39289         * lib/unistr/u16-cpy-alloc.c: New file.
39290         * lib/unistr/u32-cpy-alloc.c: New file.
39291         * lib/unistr/u-cpy-alloc.h: New file.
39292
39293         * modules/unistr/u8-endswith: New file.
39294         * modules/unistr/u16-endswith: New file.
39295         * modules/unistr/u32-endswith: New file.
39296         * lib/unistr/u8-endswith.c: New file.
39297         * lib/unistr/u16-endswith.c: New file.
39298         * lib/unistr/u32-endswith.c: New file.
39299         * lib/unistr/u-endswith.h: New file.
39300
39301         * modules/unistr/u8-mblen: New file.
39302         * modules/unistr/u16-mblen: New file.
39303         * modules/unistr/u32-mblen: New file.
39304         * lib/unistr/u8-mblen.c: New file.
39305         * lib/unistr/u16-mblen.c: New file.
39306         * lib/unistr/u32-mblen.c: New file.
39307
39308         * modules/unistr/u8-mbtouc: New file.
39309         * modules/unistr/u16-mbtouc: New file.
39310         * modules/unistr/u32-mbtouc: New file.
39311         * lib/unistr/u8-mbtouc.c: New file.
39312         * lib/unistr/u16-mbtouc.c: New file.
39313         * lib/unistr/u32-mbtouc.c: New file.
39314
39315         * modules/unistr/u8-mbtouc-safe: New file.
39316         * modules/unistr/u16-mbtouc-safe: New file.
39317         * modules/unistr/u32-mbtouc-safe: New file.
39318         * lib/unistr/u8-mbtouc-safe.c: New file.
39319         * lib/unistr/u16-mbtouc-safe.c: New file.
39320         * lib/unistr/u32-mbtouc-safe.c: New file.
39321
39322         * modules/unistr/u8-move: New file.
39323         * modules/unistr/u16-move: New file.
39324         * modules/unistr/u32-move: New file.
39325         * lib/unistr/u8-move.c: New file.
39326         * lib/unistr/u16-move.c: New file.
39327         * lib/unistr/u32-move.c: New file.
39328         * lib/unistr/u-move.h: New file.
39329
39330         * modules/unistr/u8-next: New file.
39331         * modules/unistr/u16-next: New file.
39332         * modules/unistr/u32-next: New file.
39333         * lib/unistr/u8-next.c: New file.
39334         * lib/unistr/u16-next.c: New file.
39335         * lib/unistr/u32-next.c: New file.
39336
39337         * modules/unistr/u8-prev: New file.
39338         * modules/unistr/u16-prev: New file.
39339         * modules/unistr/u32-prev: New file.
39340         * lib/unistr/u8-prev.c: New file.
39341         * lib/unistr/u16-prev.c: New file.
39342         * lib/unistr/u32-prev.c: New file.
39343
39344         * modules/unistr/u8-set: New file.
39345         * modules/unistr/u16-set: New file.
39346         * modules/unistr/u32-set: New file.
39347         * lib/unistr/u8-set.c: New file.
39348         * lib/unistr/u16-set.c: New file.
39349         * lib/unistr/u32-set.c: New file.
39350         * lib/unistr/u-set.h: New file.
39351
39352         * modules/unistr/u8-startswith: New file.
39353         * modules/unistr/u16-startswith: New file.
39354         * modules/unistr/u32-startswith: New file.
39355         * lib/unistr/u8-startswith.c: New file.
39356         * lib/unistr/u16-startswith.c: New file.
39357         * lib/unistr/u32-startswith.c: New file.
39358         * lib/unistr/u-startswith.h: New file.
39359
39360         * modules/unistr/u8-stpcpy: New file.
39361         * modules/unistr/u16-stpcpy: New file.
39362         * modules/unistr/u32-stpcpy: New file.
39363         * lib/unistr/u8-stpcpy.c: New file.
39364         * lib/unistr/u16-stpcpy.c: New file.
39365         * lib/unistr/u32-stpcpy.c: New file.
39366         * lib/unistr/u-stpcpy.h: New file.
39367
39368         * modules/unistr/u8-stpncpy: New file.
39369         * modules/unistr/u16-stpncpy: New file.
39370         * modules/unistr/u32-stpncpy: New file.
39371         * lib/unistr/u8-stpncpy.c: New file.
39372         * lib/unistr/u16-stpncpy.c: New file.
39373         * lib/unistr/u32-stpncpy.c: New file.
39374         * lib/unistr/u-stpncpy.h: New file.
39375
39376         * modules/unistr/u8-strcat: New file.
39377         * modules/unistr/u16-strcat: New file.
39378         * modules/unistr/u32-strcat: New file.
39379         * lib/unistr/u8-strcat.c: New file.
39380         * lib/unistr/u16-strcat.c: New file.
39381         * lib/unistr/u32-strcat.c: New file.
39382         * lib/unistr/u-strcat.h: New file.
39383
39384         * modules/unistr/u8-strchr: New file.
39385         * modules/unistr/u16-strchr: New file.
39386         * modules/unistr/u32-strchr: New file.
39387         * lib/unistr/u8-strchr.c: New file.
39388         * lib/unistr/u16-strchr.c: New file.
39389         * lib/unistr/u32-strchr.c: New file.
39390
39391         * modules/unistr/u8-strcmp: New file.
39392         * modules/unistr/u16-strcmp: New file.
39393         * modules/unistr/u32-strcmp: New file.
39394         * lib/unistr/u8-strcmp.c: New file.
39395         * lib/unistr/u16-strcmp.c: New file.
39396         * lib/unistr/u32-strcmp.c: New file.
39397
39398         * modules/unistr/u8-strcpy: New file.
39399         * modules/unistr/u16-strcpy: New file.
39400         * modules/unistr/u32-strcpy: New file.
39401         * lib/unistr/u8-strcpy.c: New file.
39402         * lib/unistr/u16-strcpy.c: New file.
39403         * lib/unistr/u32-strcpy.c: New file.
39404         * lib/unistr/u-strcpy.h: New file.
39405
39406         * modules/unistr/u8-strcspn: New file.
39407         * modules/unistr/u16-strcspn: New file.
39408         * modules/unistr/u32-strcspn: New file.
39409         * lib/unistr/u8-strcspn.c: New file.
39410         * lib/unistr/u16-strcspn.c: New file.
39411         * lib/unistr/u32-strcspn.c: New file.
39412         * lib/unistr/u-strcspn.h: New file.
39413
39414         * modules/unistr/u8-strdup: New file.
39415         * modules/unistr/u16-strdup: New file.
39416         * modules/unistr/u32-strdup: New file.
39417         * lib/unistr/u8-strdup.c: New file.
39418         * lib/unistr/u16-strdup.c: New file.
39419         * lib/unistr/u32-strdup.c: New file.
39420         * lib/unistr/u-strdup.h: New file.
39421
39422         * modules/unistr/u8-strlen: New file.
39423         * modules/unistr/u16-strlen: New file.
39424         * modules/unistr/u32-strlen: New file.
39425         * lib/unistr/u8-strlen.c: New file.
39426         * lib/unistr/u16-strlen.c: New file.
39427         * lib/unistr/u32-strlen.c: New file.
39428         * lib/unistr/u-strlen.h: New file.
39429
39430         * modules/unistr/u8-strmblen: New file.
39431         * modules/unistr/u16-strmblen: New file.
39432         * modules/unistr/u32-strmblen: New file.
39433         * lib/unistr/u8-strmblen.c: New file.
39434         * lib/unistr/u16-strmblen.c: New file.
39435         * lib/unistr/u32-strmblen.c: New file.
39436
39437         * modules/unistr/u8-strmbtouc: New file.
39438         * modules/unistr/u16-strmbtouc: New file.
39439         * modules/unistr/u32-strmbtouc: New file.
39440         * lib/unistr/u8-strmbtouc.c: New file.
39441         * lib/unistr/u16-strmbtouc.c: New file.
39442         * lib/unistr/u32-strmbtouc.c: New file.
39443
39444         * modules/unistr/u8-strncat: New file.
39445         * modules/unistr/u16-strncat: New file.
39446         * modules/unistr/u32-strncat: New file.
39447         * lib/unistr/u8-strncat.c: New file.
39448         * lib/unistr/u16-strncat.c: New file.
39449         * lib/unistr/u32-strncat.c: New file.
39450         * lib/unistr/u-strncat.h: New file.
39451
39452         * modules/unistr/u8-strncmp: New file.
39453         * modules/unistr/u16-strncmp: New file.
39454         * modules/unistr/u32-strncmp: New file.
39455         * lib/unistr/u8-strncmp.c: New file.
39456         * lib/unistr/u16-strncmp.c: New file.
39457         * lib/unistr/u32-strncmp.c: New file.
39458
39459         * modules/unistr/u8-strncpy: New file.
39460         * modules/unistr/u16-strncpy: New file.
39461         * modules/unistr/u32-strncpy: New file.
39462         * lib/unistr/u8-strncpy.c: New file.
39463         * lib/unistr/u16-strncpy.c: New file.
39464         * lib/unistr/u32-strncpy.c: New file.
39465         * lib/unistr/u-strncpy.h: New file.
39466
39467         * modules/unistr/u8-strnlen: New file.
39468         * modules/unistr/u16-strnlen: New file.
39469         * modules/unistr/u32-strnlen: New file.
39470         * lib/unistr/u8-strnlen.c: New file.
39471         * lib/unistr/u16-strnlen.c: New file.
39472         * lib/unistr/u32-strnlen.c: New file.
39473         * lib/unistr/u-strnlen.h: New file.
39474
39475         * modules/unistr/u8-strpbrk: New file.
39476         * modules/unistr/u16-strpbrk: New file.
39477         * modules/unistr/u32-strpbrk: New file.
39478         * lib/unistr/u8-strpbrk.c: New file.
39479         * lib/unistr/u16-strpbrk.c: New file.
39480         * lib/unistr/u32-strpbrk.c: New file.
39481         * lib/unistr/u-strpbrk.h: New file.
39482
39483         * modules/unistr/u8-strrchr: New file.
39484         * modules/unistr/u16-strrchr: New file.
39485         * modules/unistr/u32-strrchr: New file.
39486         * lib/unistr/u8-strrchr.c: New file.
39487         * lib/unistr/u16-strrchr.c: New file.
39488         * lib/unistr/u32-strrchr.c: New file.
39489
39490         * modules/unistr/u8-strspn: New file.
39491         * modules/unistr/u16-strspn: New file.
39492         * modules/unistr/u32-strspn: New file.
39493         * lib/unistr/u8-strspn.c: New file.
39494         * lib/unistr/u16-strspn.c: New file.
39495         * lib/unistr/u32-strspn.c: New file.
39496         * lib/unistr/u-strspn.h: New file.
39497
39498         * modules/unistr/u8-strstr: New file.
39499         * modules/unistr/u16-strstr: New file.
39500         * modules/unistr/u32-strstr: New file.
39501         * lib/unistr/u8-strstr.c: New file.
39502         * lib/unistr/u16-strstr.c: New file.
39503         * lib/unistr/u32-strstr.c: New file.
39504         * lib/unistr/u-strstr.h: New file.
39505
39506         * modules/unistr/u8-strtok: New file.
39507         * modules/unistr/u16-strtok: New file.
39508         * modules/unistr/u32-strtok: New file.
39509         * lib/unistr/u8-strtok.c: New file.
39510         * lib/unistr/u16-strtok.c: New file.
39511         * lib/unistr/u32-strtok.c: New file.
39512         * lib/unistr/u-strtok.h: New file.
39513
39514         * modules/unistr/u8-uctomb: New file.
39515         * modules/unistr/u16-uctomb: New file.
39516         * modules/unistr/u32-uctomb: New file.
39517         * lib/unistr/u8-uctomb.c: New file.
39518         * lib/unistr/u16-uctomb.c: New file.
39519         * lib/unistr/u32-uctomb.c: New file.
39520
39521         * MODULES.html.sh (Unicode string functions): Add the new modules.
39522
39523 2007-01-08  Bruno Haible  <bruno@clisp.org>
39524
39525         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39526         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39527         subdirectories.
39528
39529 2007-01-08  Karl Berry  <karl@gnu.org>
39530
39531         * doc/error.texi: mention that main() fns must set program_name
39532         when progname is used.
39533
39534 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39535
39536         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39537         WCTYPE_H is empty, for the benefit of builds from non-distclean
39538         directories.  Problem reported by Eric Blake in
39539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39540
39541 2007-01-08  Bruno Haible  <bruno@clisp.org>
39542
39543         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39544         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39545         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39546         PROVIDE_CANONICALIZE_FILENAME_MODE.
39547         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39548
39549 2007-01-08  Bruno Haible  <bruno@clisp.org>
39550
39551         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39552         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39553         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39554         * lib/fts.c: Likewise.
39555         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39556
39557 2006-12-25  Bruno Haible  <bruno@clisp.org>
39558
39559         * modules/utf8-ucs4-safe: New file.
39560         * lib/utf8-ucs4-safe.h: New file.
39561         * lib/unistr/utf8-ucs4-safe.c: New file.
39562
39563         * modules/utf16-ucs4-safe: New file.
39564         * lib/utf16-ucs4-safe.h: New file.
39565         * lib/unistr/utf16-ucs4-safe.c: New file.
39566
39567         * MODULES.html.sh (Unicode string functions): Add the new modules.
39568
39569 2007-01-08  Bruno Haible  <bruno@clisp.org>
39570
39571         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39572         (Depends-on): Add unitypes.
39573         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39574         (u8_mbtouc_aux): Move out to separate file.
39575         (u8_mbtouc): Use ucs4_t, uint8_t types.
39576         * lib/unistr/utf8-ucs4.c: New file.
39577
39578         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39579         (Depends-on): Add unitypes.
39580         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39581         (u16_mbtouc_aux): Move out to separate file.
39582         (u16_mbtouc): Use ucs4_t, uint16_t types.
39583         * lib/unistr/utf16-ucs4.c: New file.
39584
39585         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39586         (Depends-on): Add unitypes.
39587         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39588         (u8_uctomb_aux): Move out to separate file.
39589         (u8_uctomb): Use ucs4_t, uint8_t types.
39590         * lib/unistr/ucs4-utf8.c: New file.
39591
39592         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39593         (Depends-on): Add unitypes.
39594         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39595         (u16_uctomb_aux): Move out to separate file.
39596         (u16_uctomb): Use ucs4_t, uint16_t types.
39597         * lib/unistr/ucs4-utf16.c: New file.
39598
39599 2006-12-25  Bruno Haible  <bruno@clisp.org>
39600
39601         * modules/unitypes: New file.
39602         * lib/unitypes.h: New file.
39603         * MODULES.html.sh (func_all_modules): New section "Unicode string
39604         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39605         this section. Add unitypes.
39606
39607 2007-01-08  Bruno Haible  <bruno@clisp.org>
39608
39609         Avoid variable names that conflict with those from libtool.
39610         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39611         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39612         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39613         library_names_spec to acl_library_names_spec, hardcode_* to
39614         acl_hardcode_*.
39615         Reported by Ralf Wildenhues.
39616
39617 2007-01-08  Bruno Haible  <bruno@clisp.org>
39618
39619         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39620         definition.
39621         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39622         definition.
39623         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39624         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39625         definition.
39626         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39627         definition.
39628         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39629         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39630         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39631         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39632         definition.
39633         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39634         definition.
39635         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39636         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39637         GC_USE_<algorithm>.
39638         * lib/gc-libgcrypt.c: Likewise.
39639         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39640         * modules/gc-arctwo (configure.ac): Likewise.
39641         * modules/gc-des (configure.ac): Likewise.
39642         * modules/gc-hmac-md5 (configure.ac): Likewise.
39643         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39644         * modules/gc-md2 (configure.ac): Likewise.
39645         * modules/gc-md4 (configure.ac): Likewise.
39646         * modules/gc-md5 (configure.ac): Likewise.
39647         * modules/gc-random (configure.ac): Likewise.
39648         * modules/gc-rijndael (configure.ac): Likewise.
39649         * modules/gc-sha1 (configure.ac): Likewise.
39650
39651 2007-01-08  Bruno Haible  <bruno@clisp.org>
39652
39653         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39654         macro definition.
39655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39656         definition.
39657         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39658         definition.
39659         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39660         * modules/fcntl-safer (configure.ac): Likewise.
39661         * modules/fopen-safer (configure.ac): Likewise.
39662         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39663         GNULIB_FWRITEERROR macro definition.
39664
39665 2007-01-08  Bruno Haible  <bruno@clisp.org>
39666
39667         * m4/gnulib-common.m4: New file.
39668         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39669         (func_get_filelist): Add m4/gnulib-common.m4.
39670
39671 2007-01-08  Bruno Haible  <bruno@clisp.org>
39672
39673         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39674         command.
39675
39676 2007-01-08  Jim Meyering  <jim@meyering.net>
39677
39678         Use a more robust test for a "can't happen" condition.
39679         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39680         narrowed the st_size value.  Presuming the "can't happen" condition
39681         is true, that narrowing could conceivably convert an invalid st_size
39682         value into a valid one.  Instead, use a change based on Matthew
39683         Woehlke's original patch.
39684
39685         Slight readability improvement: use an assert-like macro
39686         in place of literal "abort ()" uses.
39687         * lib/fts.c (fts_assert): Define.
39688         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39689         Use this macro instead of a bare 'abort'.
39690
39691 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39692
39693         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39694         simply work around them.
39695         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39696         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39697         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39698         declaring.
39699         Don't bother to define as macros, since the standard doesn't require it.
39700         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39701         longer worry about IRIX 5.3.
39702         (HAVE_WCTYPE_CTMP_BUG): Remove.
39703
39704 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39705
39706         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39707         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39708         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39709         Problems reported by Georg Schwarz for IRIX 5.3.
39710
39711         * gnulib-tool (autoconf_minversion): Take the maximum version number
39712         found, not the minimum.  Problem reported by James Youngman.
39713
39714 2007-01-03  Karl Berry  <karl@gnu.org>
39715
39716         * doc/error.texi: new file, explaining interaction with progname.
39717         * doc/gnulib.texi: include it.  Update copyright.
39718
39719 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39720
39721         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39722         AC_CANONICAL_HOST, to improve autobuild outputs.
39723
39724 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39725             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39726
39727         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39728         sockets, server sockets, and other file descriptors.  Count errors
39729         to compute the return value.  Reorder the code a bit to be easier
39730         to follow.  Don't set event bits that were not requested (except
39731         POLLERR and POLLHUP).
39732
39733 2007-01-01  Bruno Haible  <bruno@clisp.org>
39734
39735         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39736
39737 2007-01-03  Jim Meyering  <jim@meyering.net>
39738
39739         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39740
39741 2007-01-02  Bruno Haible  <bruno@clisp.org>
39742
39743         * modules/settime (Include): Require timespec.h.
39744         * modules/nanosleep (Include): Likewise.
39745
39746 2007-01-01  Bruno Haible  <bruno@clisp.org>
39747
39748         * gnulib-tool (func_emit_copyright_notice): Bump year.
39749         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39750
39751 2007-01-01  Bruno Haible  <bruno@clisp.org>
39752
39753         Improve support for OpenBSD.
39754         * build-aux/config.rpath (libname_spec): Export.
39755         (library_names_spec): New variable. Export.
39756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39757         library_names_spec from the config.rpath output. Locate shared library
39758         through the name pattern in library_names_spec.
39759
39760 2007-01-01  Eric Blake  <ebb9@byu.net>
39761
39762         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39763
39764 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39765
39766         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39767         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39768         assume the C locale, and avoid an "eval" that could cause trouble.
39769         Problem with SORT reported by Bob Proulx.
39770
39771         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39772         Define.  Trivial patch from Henning Nielsen Lund, originally
39773         sent to bug-grep@gnu.org today.
39774
39775 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39776
39777         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39778         struct stat.  Problem reported by Henning Nielsen Lund.
39779         * lib/acl.c: Include acl.h first, to check interface.  Don't
39780         bother to include sys/types.h and sys/stat.h again.
39781
39782 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         Import the following change from libc; problem reported by
39785         Sven Verdoolaege.
39786
39787         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39788
39789         [BZ #1373]
39790         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39791
39792 2006-12-28  Jim Meyering  <jim@meyering.net>
39793
39794         * build-aux/announce-gen: Do not assume that the package
39795         builds any of tar.gz, tar.bz2, and .xdelta files.
39796         Suggestion from Simon Josefsson.
39797
39798 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39799
39800         * modules/announce-gen: New file.
39801
39802 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39803
39804         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39805         handles its gotchas now.
39806         * lib/mbswidth.c: Likewise.
39807         * lib/wcwidth.h: Likewise.
39808         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39809         and iswcntrl; the wctype module does this stuff now.
39810         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39812         * modules/mbchar (Depends-on): Add wctype.
39813         * modules/mbswidth (Depends-on): Likewise.
39814         * modules/wcwidth (Depends-on): Likewise.
39815
39816 2006-12-27  Eric Blake  <ebb9@byu.net>
39817
39818         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39819         module uses more than what <wctype.h> is required to provide.
39820
39821 2006-12-26  Eric Blake  <ebb9@byu.net>
39822
39823         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39824
39825 2006-12-26  Eric Blake  <ebb9@byu.net>
39826
39827         * modules/absolute-header: New module.
39828         * modules/fcntl (Depends-on): Depend on it.
39829         * modules/inttypes (Depends-on): Likewise.
39830         * modules/stdint (Depends-on): Likewise.
39831         * modules/sys_stat (Depends-on): Likewise.
39832         * modules/wctype (Depends-on): Likewise.
39833         * MODULES.html.sh (Support for building libraries and
39834         executables): Document it.
39835
39836 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39837
39838         * gnulib-tool (SED): Remove, undoing previous change.
39839         The problem was that it broke coreutils on Solaris, because
39840         "sed --posix" leaked into a makefile.
39841         (sed): New alias, if 'alias' and GNU sed.
39842
39843 2006-12-24  Jim Meyering  <jim@meyering.net>
39844
39845         Work around an fchownat bug in glibc-2.4:
39846         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39847         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39848         in spite of the -P option.
39849         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39850         New macros.
39851         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39852         * modules/openat (Files): Add lib/fchownat.c.
39853         * lib/openat.c (fchownat): Don't define here.  Move to...
39854         * lib/fchownat.c: ...this new file.
39855
39856 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39857
39858         Fix bug reported by Bruno Haible in
39859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39860         where quotearg.c didn't compile on Mac OS X 10.2 because it
39861         lacks <wchar.h> and wint_t.
39862         * lib/wctype_.h (__wctype_wint_t): New type.
39863         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39864         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39865         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39866         Arg is now of type __wctype_wint_t, not wint_t.
39867         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39868         substitute HAVE_WINT_T.
39869         * modules/wctype (Files): Add m4/wint_t.m4.
39870         (wctype.h): Substitute HAVE_WINT_T.
39871
39872 2006-12-23  Bruno Haible  <bruno@clisp.org>
39873
39874         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39875
39876 2006-12-23  Bruno Haible  <bruno@clisp.org>
39877
39878         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39879         S_ISLNK.
39880         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39881         mingw.
39882
39883 2006-12-22  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/copy-file.c: Include acl.h.
39886         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39887         Close the file descriptors only after being done with copy_acl.
39888         * modules/copy-file (Depends-on): Add acl.
39889
39890 2006-12-22  Bruno Haible  <bruno@clisp.org>
39891
39892         * gnulib-tool (SED): New variable.
39893         Use $SED instead of sed everywhere.
39894
39895 2006-12-22  Bruno Haible  <bruno@clisp.org>
39896
39897         * modules/no-c++: New file.
39898         * m4/no-c++.m4: New file.
39899         * MODULES.html.sh (Support for building libraries and executables):
39900         Add no-c++.
39901
39902 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39903
39904         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39905         Include <limits.h>, and use its INT_MAX to rewrite the
39906         j loop so that it does not overflow 'int'.  Problem reported by
39907         Ralf Wildenhues in
39908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39909         Play it safe by shifting left by 1 rather than multiplying by 2,
39910         as GCC is less likely to optimize this away when the value
39911         is signed (when it assumes overflow leads to undefined behavior).
39912         Also, don't assume time_t uses two's complement.
39913
39914 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         * MODULES.html.sh: New module wctype.
39917         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39918         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39919         <wctype.h>, since the new wctype module should fix this.
39920         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39921         the wctype module should arrange for it.
39922         * lib/regex_internal.h: Likewise.
39923         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39924         since the wctype module should handle this now.
39925         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39926         * modules/fnmatch (Depends-on): Add wctype.
39927         * modules/quotearg (Depends-on): Likewise.
39928         * modules/regex (Depends-on): Likewise.
39929
39930 2006-12-19  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39933         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39934
39935 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39936
39937         * modules/savewd (Depends-on): Fix dependency on fcntl.
39938
39939 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39940
39941         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39942         conforms to C99, rather than relying on the user's environment
39943         setting of STDINT_H.
39944
39945 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39946         and Eric Blake  <ebb9@byu.net>
39947
39948         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39949         This is more consistent with the other defines here.
39950         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39951         Port to z/OS.  Problem reported by Paul Gilmartin.
39952         Change local vars to use gl_ prefix rather than ac_.
39953         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39954         with other defines.
39955         * modules/double-slash-root: New module.
39956         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39957         (Depends-on): Add double-slash-root.
39958         * MODULES.html.sh (File system functions): Mention new module.
39959
39960 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39961
39962         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39963         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39964         This is for the benefit of gzip, which doesn't do i18n.
39965
39966 2006-12-12  Jim Meyering  <jim@meyering.net>
39967
39968         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39969         Reported by Andreas Schwab <schwab@suse.de>.
39970
39971 2006-12-12  Bruno Haible  <bruno@clisp.org>
39972
39973         Merge these changes.
39974         2006-09-05  Bruno Haible  <bruno@clisp.org>
39975         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39976         iconv_alloc succeeded.
39977         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39978         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39979         test for " && dest " at the end - dest is always != NULL there. Call
39980         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39981         with 2xNULL arguments, also to flush the state storage. Handle the
39982         IRIX iconv behaviour. Realloc the final result, to throw away unused
39983         memory.
39984
39985 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39986
39987         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39988         and fchmodat unconditionally, since glibc 2.4 has them.
39989         Problem reported by Arkadiusz Miskiewicz.
39990
39991 2006-12-10  Bruno Haible  <bruno@clisp.org>
39992
39993         * gnulib-tool (func_import): Show the include files only for those
39994         modules that are copied and specified.
39995         Reported by Karl Berry.
39996
39997 2006-12-08  Jim Meyering  <jim@meyering.net>
39998
39999         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40000         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40001
40002         * build-aux/announce-gen: Add two new options, both optional:
40003         --bootstrap-tools=TOOL_LIST
40004               a comma-separated list of tools, e.g.,
40005               autoconf,automake,bison,gnulib
40006         --gnulib-snapshot-date=DATE
40007               if gnulib is in the bootstrap tool list,
40008               then report this as the snapshot date.
40009               If not specified, use the current date/time.
40010               If you specify a date here, be sure it's UTC.
40011
40012 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40013
40014         * tests/test-argp-2.sh: Fix test to match actual output.
40015         (func_compare): Fix sed script to be portable.
40016
40017 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40018
40019         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40020         workaround for this case.  It is not autoconfigured now; offhand
40021         it's hard to see how to autoconfigure it.
40022
40023 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40024
40025         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40026         a directory that is about to be chowned.  Such a directory's
40027         initial file permissions should permit the owner only and this
40028         should not be changed until after the chown, since the group and
40029         other bits would be incorrect if they granted permission before
40030         the chown.
40031
40032         Fix porting problem for iswctype reported by Georg Schwarz in:
40033         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40034         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40035         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40036         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40037         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40038
40039 2006-12-03  Jim Meyering  <jim@meyering.net>
40040
40041         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40042         p->fts_statp may not yet be defined.
40043         (fts_read): Instead, set it in the caller, once p->fts_statp is
40044         sure to be defined, and corresponds to a top-level directory.
40045         This bug made du -x fail.  Here's the coreutils test case:
40046         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40047         Reported by Mike Frysinger.
40048
40049 2006-12-01  Jim Meyering  <jim@meyering.net>
40050
40051         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40052         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40053         Reported by Simon Josefsson.
40054
40055 2006-11-30  Jim Meyering  <jim@meyering.net>
40056
40057         * m4/warning.m4: Use the all-permissive copyright notice
40058         recommended by RMS (rather than LGPL).
40059         * m4/vararrays.m4: Likewise.
40060         * m4/flexmember.m4: Likewise.
40061
40062 2006-11-29  Bruno Haible  <bruno@clisp.org>
40063
40064         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40065         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40066         using +=.
40067         Reported by Simon Josefsson <simon@josefsson.org>.
40068
40069 2006-11-28  James Youngman <jay@gnu.org>
40070
40071         * README: Advise users that they might find the bug-gnulib@gnu.org
40072         and autotools-announce@gnu.org mailing lists useful.
40073
40074 2006-11-28  Bruno Haible  <bruno@clisp.org>
40075
40076         * m4/ptrdiff_max.m4: Remove file.
40077
40078 2006-11-21  Bruno Haible  <bruno@clisp.org>
40079
40080         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40081         _AC_COMPUTE_INT.
40082         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40083         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40084         _AC_COMPUTE_INT.
40085         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40086         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40087         _AC_COMPUTE_INT.
40088         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40089
40090 2006-11-28  Jim Meyering  <jim@meyering.net>
40091
40092         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40093         warning from "gcc -Wshadow" about shadowing the builtin.
40094
40095 2006-11-27  Bruno Haible  <bruno@clisp.org>
40096
40097         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40098         _AC_COMPUTE_INT.
40099         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40100
40101 2006-11-27  Bruno Haible  <bruno@clisp.org>
40102             Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40105
40106 2006-11-26  Bruno Haible  <bruno@clisp.org>
40107
40108         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40109         noinst_LTLIBRARIES.
40110
40111 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40112             Bruno Haible  <bruno@clisp.org>
40113
40114         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40115         if compiling with "gcc -ansi".
40116
40117 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40118
40119         Fix some incompatibilities with gcc -ansi -pedantic.
40120         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40121         if compiling pedantically with GCC, unless it's C99 or later.
40122         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40123         it mishandles gcc -ansi -pedantic as well.
40124         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40125         if gcc -pedantic.
40126         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40127         initializers for struct if -pedantic, unless it's C99 or later.
40128
40129 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40130
40131         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40132         Don't close an fd more than once. Identical atimes indicate
40133         success, not failure.
40134
40135 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40136
40137         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40138
40139 2006-11-23  Jim Meyering  <jim@meyering.net>
40140
40141         * build-aux/announce-gen: New file.  From coreutils.
40142
40143 2006-11-22  Jim Meyering  <jim@meyering.net>
40144
40145         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40146         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40147         (fts_read): Use a temporary to narrow the overused st_size member
40148         before using it in a switch statement.  Reported by Matthew Woehlke.
40149
40150         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40151         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40152
40153 2006-11-20  Bruno Haible  <bruno@clisp.org>
40154
40155         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40156         changequote instead of pairs of brackets.
40157         Reported by Andreas Schwab <schwab@suse.de>.
40158
40159 2006-11-21  Jim Meyering  <jim@meyering.net>
40160
40161         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40162         so as to remain compatible with older compilers.
40163         Patch from Michael Deutschmann.
40164
40165 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40166
40167         * MODULES.html.sh (File system functions): Add openat.
40168
40169         * lib/openat.h (rpl_fstatat): New macro, if
40170         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40171         (fstatat): Define to rpl_fstatat under the same conditions,
40172         unless COMPILING_FSTATAT.
40173         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40174         seems to have the bug.
40175         * lib/fstatat.c: New file.
40176         * modules/openat (Files): Add it.
40177
40178 2006-11-20  Bruno Haible  <bruno@clisp.org>
40179
40180         * Makefile: New file.
40181
40182 2006-11-20  Jim Meyering  <jim@meyering.net>
40183
40184         The beginnings of syntax-related checks for gnulib.
40185         * lib/Makefile: New file.
40186         * lib/t-idcache: New script.  Ensure that the two halves of
40187         idcache.c stay in sync.
40188
40189         * lib/idcache.c: Adjust comments in user- and group- portions to
40190         be more accurate, and to be consistent with one another.
40191
40192 2006-11-20  Jim Meyering  <jim@meyering.net>
40193
40194         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40195         continue using the flexible array member (thus, this module performs
40196         half as many malloc calls), with the addition that...
40197         (getgroup, getuser): Consistently record a non-match via an empty
40198         "name" string, and map an empty string match to a NULL return value.
40199         * modules/idcache (Depends-on): Re-add flexmember.
40200
40201         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40202         (getuidbyname, getgroup, getgidbyname): Likewise.
40203
40204         Use cleaner syntax: NULL rather than 0.
40205         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40206
40207 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40208
40209         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40210         It mishandled the case where the group was missing.
40211         Problem reported by Greg Schafer.
40212         * modules/idcache: Likewise.
40213
40214 2006-11-18  Jim Meyering  <jim@meyering.net>
40215
40216         * check-module (%exempt_header): Add exception for some
40217         conditionally-included headers.
40218
40219         * modules/i-ring (Depends-on): Add verify.
40220         (License): Change to LGPL.
40221
40222 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40223
40224         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40225         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40226         and inttostr.h.  Use snprintf rather than uinttostr, so that
40227         LGPLed code doesn't depend on GPLed.
40228
40229 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40230
40231         * modules/inline (License): Change from GPL to LGPL.
40232
40233 2006-11-17  Jim Meyering  <jim@meyering.net>
40234
40235         * modules/d-type (License): Switch to LGPL.
40236
40237 2006-11-15  Bruno Haible  <bruno@clisp.org>
40238
40239         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40240
40241 2006-11-15  Eric Blake  <ebb9@byu.net>
40242
40243         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40244         the module dependency.
40245
40246 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40247             Bruno Haible  <bruno@clisp.org>
40248
40249         * gnulib-tool (func_create_testdir): Add license consistency check.
40250
40251 2006-11-15  Eric Blake  <ebb9@byu.net>
40252
40253         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40254         random "(cached)" in configure output.
40255
40256 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40257
40258         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40259         test for conforming inttypes.h is both announced and cached.
40260
40261         * MODULES.html.sh (seen_modules, seen_files): New variables.
40262         (func_module): Rewrite to use a few less gnulib-tool and sed
40263         invocations.  Avoid a couple of quadratic algorithms for ...
40264         (missed_modules, missed_files): ... these, with ...
40265         (func_append, func_tmpdir): ... these new functions, from
40266         gnulib-tool.  Analogously, install traps for cleanup.
40267
40268         * tests/test-gc.c (main): Remove unused variables.
40269         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40270
40271 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40272
40273         * modules/inttostr (License): Change to LGPL.
40274
40275 2006-11-14  Eric Blake  <ebb9@byu.net>
40276
40277         * modules/tempname (License): Change to LGPL.
40278
40279 2006-11-14  Eric Blake  <ebb9@byu.net>
40280
40281         * doc/functions.texi (Function Portability): *printf functions on
40282         Cygwin now understand all POSIX size specifiers.
40283
40284 2006-11-14  Bruno Haible  <bruno@clisp.org>
40285
40286         * modules/c-ctype (License): Change to LGPL.
40287
40288 2006-11-12  Bruno Haible  <bruno@clisp.org>
40289
40290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40291         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40292         for GNOME libraries, for which the include files are installed in
40293         subdirectories of $prefix/include.
40294
40295 2006-11-12  Bruno Haible  <bruno@clisp.org>
40296
40297         * m4/lib-link.m4: Require at least autoconf-2.54.
40298         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40299         name to underscores for the --with option.
40300
40301 2006-11-13  Bruno Haible  <bruno@clisp.org>
40302
40303         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40304         the tests directory.
40305         Reported by Ralf Wildenhues.
40306
40307 2006-11-13  Bruno Haible  <bruno@clisp.org>
40308
40309         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40310         (func_emit_initmacro_end): Undo the override here.
40311         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40312         Works around the famous automake error in coreutils.
40313
40314 2006-11-13  Eric Blake  <ebb9@byu.net>
40315
40316         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40317         element, not its node.
40318
40319 2006-11-12  Bruno Haible  <bruno@clisp.org>
40320
40321         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40322         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40323
40324 2006-11-12  Bruno Haible  <bruno@clisp.org>
40325
40326         * gnulib-tool: New option --local-symlink.
40327         (func_usage): Document it.
40328         (lsymbolic): New variable.
40329         (func_import, func_create_testdir): If --symlink was not specified,
40330         test whether --local-symlink was specified and the file comes from
40331         the local_gnulib_dir.
40332
40333 2006-11-12  Bruno Haible  <bruno@clisp.org>
40334
40335         * gnulib-tool (func_ln): New function.
40336         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40337
40338 2006-11-12  Bruno Haible  <bruno@clisp.org>
40339
40340         Finish support for source files in subdirectories.
40341         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40342         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40343         AUTOMAKE_OPTIONS.
40344         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40345
40346 2006-11-12  Bruno Haible  <bruno@clisp.org>
40347
40348         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40349         EXTRA_lib_SOURCES augmentation.
40350         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40351
40352 2006-11-12  Jim Meyering  <jim@meyering.net>
40353
40354         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40355         file descriptors.  This also averts a failure on systems with
40356         native openat support when a traversed directory lacks "x" access.
40357         * lib/fts_.h: Include "i-ring.h"
40358         (struct FTS) [fts_fd_ring]: New member.
40359         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40360         (FCHDIR): Add parentheses.
40361         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40362         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40363         When descending, rather than simply closing the previous
40364         fts_cwd_fd value, push that file descriptor onto the ring.
40365         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40366         (fts_open): Initialize the new fd_ring member.
40367         (fts_close): Clear the ring.
40368         (fts_safe_changedir): When possible, use our new fd_ring to skip
40369         the diropen and fstat and dev/ino comparison that would normally
40370         accompany a virtual `chdir ("..")'.
40371
40372         * modules/fts (Depends-on): Add i-ring.
40373         * modules/i-ring: New module.
40374         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40375         * m4/i-ring.m4: New file.
40376
40377 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40378
40379         * gnulib-tool (func_create_testdir): Fix replacement of
40380         `build-aux' in configure.ac.  Run autotools in gltests
40381         subdirectory.
40382         (func_create_testdir, func_create_megatestdir, test): There is
40383         no need for '--force' in most autotool invocations in a new
40384         tree.  Actually fail the whole test if any of the tools, or the
40385         configure or make stages fail.
40386
40387         Sync from Automake.
40388         * build-aux/gnupload: Revert last change.  Add pointer to upload
40389         instructions of the GNU Maintenance Instructions.
40390         Suggestion by Karl Berry.
40391
40392 2006-11-10  Jim Meyering  <jim@meyering.net>
40393
40394         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40395
40396 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40397
40398         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40399         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40400         (bind_textdomain_codeset) [! ENABLE_NLS]:
40401         Evaluate all the arguments.  That way, callers get compatible behavior
40402         if the arguments have side effects.  Also, it avoids some GCC
40403         diagnostics in some cases; Joel E. Denny reported problems when Bison
40404         was configured with --enable-gcc-warnigs.
40405
40406 2006-11-10  Jim Meyering  <jim@meyering.net>
40407
40408         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40409         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40410         account.
40411
40412 2006-11-10  Jim Meyering  <jim@meyering.net>
40413
40414         * modules/inline: New file/module.
40415         * modules/xalloc (Files): Remove m4/inline.m4.
40416         (Depends-on): Add inline, instead.
40417         * modules/oset: Likewise.
40418         * modules/list: Likewise.
40419
40420 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40423         Problem reported by Matthew Woehlke.
40424
40425 2006-11-09  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/tempname.c (gen_tempname): Remove variant that invokes
40428         __gen_tempname.
40429         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40430         __gen_tempname.
40431
40432 2006-11-08  Bruno Haible  <bruno@clisp.org>
40433
40434         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40435         to 'yes' instead of 'cross-compiling'.
40436
40437 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         * lib/quotearg.h (quotearg_free): New decl.
40440         * lib/quotearg.c (quotearg_free): New function.
40441         (slot0, nslots, slotvec0, slotvec):
40442         Now file-scope so that quotearg_free can get at them.
40443
40444 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40445
40446         Sync from Automake.
40447         * build-aux/gnupload: Add missing 'gnu' to example URL.
40448         Report by Karl Berry.
40449
40450 2006-11-08  Bruno Haible  <bruno@clisp.org>
40451
40452         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40453         Suggested by Paul Eggert.
40454
40455 2006-11-08  Jim Meyering  <jim@meyering.net>
40456
40457         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40458         It's already included if !_LIBC.
40459         (fts_safe_changedir): Add a comment.
40460
40461 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40462
40463         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40464         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40465         Matthew Woehlke.
40466
40467         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40468         definitions up, to avoid colliding with change below.
40469         (static_inline) [HAVE_INLINE]: New macro.
40470         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40471         Provide extern decls when !HAVE_INLINE.  Do not define unless
40472         static_inline is defined, either by us or by xmalloc.c.  Use
40473         static_inline rather than static inline.
40474         (XCALLOC): Optimize sizeof(T) = 1 case.
40475         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40476
40477 2006-11-07  Bruno Haible  <bruno@clisp.org>
40478
40479         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40480         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40481         AC_C_INLINE.
40482         * modules/xalloc (Files): Add m4/inline.m4.
40483
40484 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40485
40486         * README: Fix typo.
40487         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40488         (Miscellanous Notes): ...from this.
40489
40490 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40491
40492         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40493         Mention that offsetof should be used instead of sizeof.
40494         From Bruno Haible.
40495
40496 2006-11-07  Bruno Haible  <bruno@clisp.org>
40497
40498         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40499
40500 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40501
40502         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40503         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40504         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40505         (gl_tree_add_before, gl_tree_add_after):
40506         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40507         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40508         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40509         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40510         (gl_linked_add_after, gl_linked_add_at): Likewise.
40511         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40512         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40513         (gl_tree_add_before, gl_tree_add_after): Likewise.
40514         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40515         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40516         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40517
40518 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40519
40520         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40521
40522 2006-11-06  Bruno Haible  <bruno@clisp.org>
40523
40524         * m4/inline.m4: New file.
40525         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40526         * modules/list (Files): Add m4/inline.m4.
40527         * modules/oset (Files): Likewise.
40528
40529 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40530
40531         * lib/idcache.c: Include <stddef.h>, for offsetof.
40532         (struct userid.name): Change from char * to a flexible array member.
40533         All uses changed.
40534         * modules/idcache (Depends-on): Add flexmember.
40535
40536         * MODULES.html.sh (Core language properties): New module flexmember.
40537         * modules/flexmember, m4/flexmember.m4: New files.
40538
40539         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40540         inline functions that are identical with the old xnmalloc_inline,
40541         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40542         that we can avoid some unnecessary integer multiplications and
40543         divisions in the common case where the element size is known at
40544         compile time.
40545         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40546         needed.
40547         (xnboundedmalloc): Remove.
40548         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40549         arguments, for consistency with rest of this header.
40550         (xcharalloc): Rewrite using XNMALLOC.
40551         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40552         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40553         versions have been moved to lib/xalloc.h and renamed to be the
40554         non-*_inline versions.
40555         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40556         and xnrealloc functions, since those functions are now inline and
40557         now call us.
40558         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40559         renaming described above.
40560         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40561         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40562         captures the dependency in AC_C_INLINE.
40563
40564         New module canonicalize-lgpl, proposed by Charles Wilson in
40565         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40566         with a few small changes afterwards.
40567         * MODULES.html.sh (File system functions): New module
40568         canonicalize-lgpl.
40569         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40570         and canonicalize_file_name.
40571         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40572         * modules/canonicalize-lgpl: New files.
40573
40574 2006-11-05  Bruno Haible  <bruno@clisp.org>
40575
40576         * gnulib-tool (func_import, func_create_testdir): Create directories
40577         also for files in subdirectories of lib/.
40578
40579 2006-11-05  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40582         ANSI C compliant.
40583
40584 2006-11-03  Bruno Haible  <bruno@clisp.org>
40585
40586         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40587         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40588         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40589         (xnboundedmalloc): New inline function.
40590         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40591         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40592         xmalloc.
40593         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40594         xmalloc.
40595         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40596         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40597         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40598         xmalloc.
40599         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40600         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40601         xmalloc.
40602         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40603         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40604         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40605         xmalloc.
40606         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40607         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40608         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40609         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40610         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40611         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40612         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40613
40614 2006-11-03  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/c-ctype.h [C++]: Define functions without name mangling.
40617         * lib/fwriteerror.h [C++]: Likewise.
40618         * lib/gcd.h [C++]: Likewise.
40619         * lib/linebreak.h [C++]: Likewise.
40620
40621 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40622
40623         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40624         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40625         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40627         Check for functions and headers just once.
40628         Check for declaration of canonicalize_file_name.
40629         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40630
40631 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40632
40633         * gnulib-tool (func_import): Fix typo in actioncmd.
40634
40635 2006-11-02  Bruno Haible  <bruno@clisp.org>
40636
40637         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40638         newline sequence in the Makefile.am snippet as a space, like "make"
40639         does.
40640         Reported by Roger Persson <perrog@gmail.com>.
40641
40642 2006-11-01  Bruno Haible  <bruno@clisp.org>
40643
40644         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40645         already declared in <string.h>.
40646         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40647
40648 2006-11-01  Bruno Haible  <bruno@clisp.org>
40649
40650         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40651         * lib/strcase.h: Include <string.h>.
40652         (strcasecmp): Define to rpl_strcasecmp here.
40653
40654 2006-11-01  Bruno Haible  <bruno@clisp.org>
40655
40656         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40657
40658 2006-11-01  Eric Blake  <ebb9@byu.net>
40659
40660         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40661
40662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40663
40664 2006-10-29  Bruno Haible  <bruno@clisp.org>
40665
40666         Make it compile in C++ mode.
40667         * lib/full-write.c (full_rw): Add a cast.
40668
40669 2006-11-01  Bruno Haible  <bruno@clisp.org>
40670
40671         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40672         be POSIX compliant.
40673         Reported by Roger Persson <perrog@gmail.com>.
40674
40675 2006-11-01  Eric Blake  <ebb9@byu.net>
40676
40677         * lib/getopt_.h: Fix comments.
40678
40679 2006-10-31  Eric Blake  <ebb9@byu.net>
40680
40681         * modules/tmpdir (Depends-on): Add sys_stat.
40682         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40683         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40684         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40685         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40686         tempname.
40687
40688 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40689
40690         Avoid some C++ diagnostics reported by Bruno Haible.
40691         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40692         xmalloc.
40693         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40694         (struct slotvec): Move to top level.
40695         (quotearg_n_options): Rewrite to avoid xmalloc.
40696         * lib/xalloc.h (xcharalloc): New function.
40697         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40698         [defined __cplusplus]: Add function template that provides result
40699         type propagation.  This part of the change is from Bruno Haible.
40700
40701 2006-10-29  Bruno Haible  <bruno@clisp.org>
40702
40703         Make it compile in C++ mode.
40704         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40705         * lib/strnlen1.c (strnlen1): Cast memchr result.
40706         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40707         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40708         (create_temp_dir): Rename local variable 'template'.
40709         (compile_csharp_using_sscli): Add cast.
40710         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40711         * lib/findprog.c (find_in_path): Likewise.
40712         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40713         * lib/wait-process.c (register_slave_subprocess): Likewise.
40714
40715 2006-10-22  Bruno Haible  <bruno@clisp.org>
40716
40717         * modules/tsearch: New file.
40718         * lib/tsearch.h: New file.
40719         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40720         * m4/tsearch.m4: New file.
40721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40722
40723 2006-10-29  Eric Blake  <ebb9@byu.net>
40724
40725         * lib/arcfour.c: Assume config.h.
40726         * lib/arctwo.c: Likewise.
40727         * lib/base64.c: Likewise.
40728         * lib/check-version.c: Likewise.
40729         * lib/crc.c: Likewise.
40730         * lib/des.c: Likewise.
40731         * lib/gc-gnulib.c: Likewise.
40732         * lib/gc-libgcrypt.c: Likewise.
40733         * lib/gc-pbkdf2-sha1.c: Likewise.
40734         * lib/getaddrinfo.c: Likewise.
40735         * lib/getdelim.c: Likewise.
40736         * lib/getline.c: Likewise.
40737         * lib/hmac-md5.c: Likewise.
40738         * lib/hmac-sha1.c: Likewise.
40739         * lib/iconvme.c: Likewise.
40740         * lib/md2.c: Likewise.
40741         * lib/md4.c: Likewise.
40742         * lib/memxor.c: Likewise.
40743         * lib/read-file.c: Likewise.
40744         * lib/readline.c: Likewise.
40745         * lib/rijndael-alg-fst.c: Likewise.
40746         * lib/rijndael-api-fst.c: Likewise.
40747         * lib/xgetdomainname.c: Likewise.
40748
40749 2006-10-28  Eric Blake  <ebb9@byu.net>
40750
40751         * lib/xstrndup.c: Assume config.h.
40752
40753 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40754
40755         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40756         stat-macros.h is now for our own macros, whereas stat_h is for
40757         macros in the <sys/stat.h> name space.
40758         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40759         (STAT_MACROS_H): Remove.
40760         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40761         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40762         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40763         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40764         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40765         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40766         Move these macros to ...
40767         * lib/stat_.h: here.  Don't include stat-macros.h.
40768         * lib/canonicalize.c: Don't include stat-macros.h.
40769         * lib/chown.c: Likewise.
40770         * lib/euidaccess.c: Likewise.
40771         * lib/file-type.c: Likewise.
40772         * lib/filemode.c: Likewise.
40773         * lib/glob.c: Likewise.
40774         * lib/isapipe.c: Likewise.
40775         * lib/lchown.c: Likewise.
40776         * lib/lstat.c: Likewise.
40777         * lib/mkdir-p.c: Likewise.
40778         * lib/rmdir.c: Likewise.
40779         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40781         unless mkdir isn't declared, to speed up 'configure'.
40782         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40783         would define all the S_* symbols.
40784         * modules/canonicalize (Depends-on):
40785         Depend on sys_stat, not stat-macros.
40786         * modules/chown: Likewise.
40787         * modules/euidaccess: Likewise.
40788         * modules/filemode: Likewise.
40789         * modules/file-type: Likewise.
40790         * modules/glob: Likewise.
40791         * modules/isapipe: Likewise.
40792         * modules/lchown: Likewise.
40793         * modules/lstat: Likewise.
40794         * modules/mkancesdirs: Likewise.
40795         * modules/rmdir: Likewise.
40796         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40797         * modules/modechange: Likewise.
40798         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40799         (configure.ac): Remove gl_STAT_MACROS.
40800         * modules/sys_stat (Depends-on): Remove stat-macros.
40801
40802 2006-10-27  Bruno Haible  <bruno@clisp.org>
40803
40804         * m4/signed.m4: Remove file.
40805         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40806         invocation.
40807         * modules/vasnprintf (Files): Remove m4/signed.m4.
40808
40809 2006-10-27  Bruno Haible  <bruno@clisp.org>
40810
40811         Update to GNU gettext 0.16.
40812         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40813         m4/inttypes-h.m4, m4/signed.m4.
40814         * m4/gettext.m4: Update to GNU gettext 0.16.
40815         * m4/intl.m4: New file, from GNU gettext.
40816         * m4/intldir.m4: New file, from GNU gettext.
40817         * config/srclist.txt: Update
40818
40819 2006-10-27  Eric Blake  <ebb9@byu.net>
40820
40821         * MODULES.html.sh: Document tempname.
40822         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40823         dependencies.
40824         (Files): Move lib/tempname.c...
40825         * modules/tempname: ...to this new module.
40826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40827         (gl_PREREQ_TEMPNAME): Move...
40828         * m4/tempname.m4: ...to this new file.
40829         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40830         * modules/sys_stat (Depends-on): Add stat-macros.
40831         * lib/stat_.h (includes): Pick up stat macros.
40832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40833         if stat macros are broken.
40834         * lib/tempname.c (includes): No need to include "stat-macros.h".
40835         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40836         (direxists, __path_search) [!_LIBC]: Don't compile these in
40837         gnulib; the tmpdir module covers that.
40838         * lib/tempname.h: New file.
40839
40840 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40841
40842         * COPYING: Explain how gnulib-tool converts licence headers.
40843         Almost all wording by Eric Blake.
40844
40845 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40846
40847         * lib/mbchar.h (is_basic_table): Make read-only.
40848         * lib/mbchar.c (is_basic_table): Likewise.
40849         Reported by John Darrington.
40850
40851 2006-10-25  Bruno Haible  <bruno@clisp.org>
40852
40853         * lib/progname.h (set_program_name): Undefine before defining.
40854
40855 2006-10-25  Bruno Haible  <bruno@clisp.org>
40856
40857         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40858         false for non-gcc C++ compilers.
40859         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40860
40861 2006-10-24  Bruno Haible  <bruno@clisp.org>
40862
40863         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40864         iconv implementations like Irix iconv.
40865
40866 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40867
40868         * modules/vararrays: New file.
40869         * m4/vararrays.m4: New file, taken from diffutils.
40870         * MODULES.html.sh: New module vararrays.
40871
40872 2006-10-24  Karl Berry  <karl@gnu.org>
40873
40874         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40875         Don't call GNU Unix.
40876
40877 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40878
40879         * users.txt: Add Libtool.
40880
40881         Sync from Libtool:
40882
40883         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40884
40885         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40886         to gnulib's policy of including config.h unconditionally.
40887
40888 2006-10-24  Bruno Haible  <bruno@clisp.org>
40889
40890         * modules/wcwidth (Files): Add m4/wint_t.m4.
40891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40892         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40893
40894 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40895
40896         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40897         to pacify GCC with some -W flags enabled.  Problem reported by
40898         Bruno Haible.
40899
40900 2006-10-24  Jim Meyering  <jim@meyering.net>
40901
40902         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40903         Reported by Karl Berry.
40904
40905 2006-10-23  Bruno Haible  <bruno@clisp.org>
40906
40907         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40908
40909 2006-10-24  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/gl_list.h: Use C comment style, not C++ comment style.
40912
40913 2006-10-23  Eric Blake  <ebb9@byu.net>
40914
40915         * lib/getaddrinfo.c (includes): Add missing include.
40916
40917 2006-10-23  Bruno Haible  <bruno@clisp.org>
40918             Paul Eggert  <eggert@cs.ucla.edu>
40919
40920         Ability to rename obstack_free.
40921         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40922         obstack_free.
40923         (obstack_free): Invoke the __obstack_free macro.
40924         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40925
40926 2006-10-23  Bruno Haible  <bruno@clisp.org>
40927             Paul Eggert  <eggert@cs.ucla.edu>
40928
40929         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40930         __argc, __argv from the declaration. (They are defined as macros on
40931         mingw.)
40932
40933 2006-10-22  Bruno Haible  <bruno@clisp.org>
40934
40935         * doc/gnulib-intro.texi: New file.
40936         * doc/gnulib.texi: Include it.
40937
40938 2006-10-21  Bruno Haible  <bruno@clisp.org>
40939
40940         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40941         "Introduction", "Miscellanous Notes", "Particular Modules".
40942
40943 2006-10-21  Bruno Haible  <bruno@clisp.org>
40944
40945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40946         Change mostlyclean-local rule to avoid sh syntax error from bash
40947         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40948
40949 2006-10-23  Jim Meyering  <jim@meyering.net>
40950
40951         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40952         in place of snprintf.
40953
40954         * modules/inttostr (Files): Add lib/uinttostr.c.
40955         * lib/uinttostr.c (inttostr): New file/function.
40956         * lib/inttostr.h (uinttostr): Declare.
40957         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40958         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40959         Add uinttostr.
40960         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40961
40962 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40963
40964         * lib/canonicalize.c (ELOOP): Define if not already defined.
40965         Problem reported by Bruno Haible in
40966         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40967
40968 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40969
40970         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40971         Problem reported by Perry Smith and Ville Laurikari.
40972
40973         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40974         uses.
40975
40976 2006-10-19  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40979         for mingw.
40980
40981 2006-10-19  Bruno Haible  <bruno@clisp.org>
40982
40983         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40984         Needed for mingw.
40985
40986 2006-10-19  Bruno Haible  <bruno@clisp.org>
40987
40988         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40989
40990 2006-10-19  Bruno Haible  <bruno@clisp.org>
40991
40992         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40993         it.
40994
40995 2006-10-19  Bruno Haible  <bruno@clisp.org>
40996
40997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40998         invocation.
40999
41000 2006-10-19  Bruno Haible  <bruno@clisp.org>
41001
41002         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41003         mountlist by default.
41004
41005 2006-10-16  Bruno Haible  <bruno@clisp.org>
41006
41007         * lib/c-strstr.c: Include c-strstr.h.
41008
41009 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41010
41011         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41012         in a slash.
41013
41014 2006-10-18  Bruno Haible  <bruno@clisp.org>
41015
41016         * lib/lock.h [C++]: Wrap definitions in extern "C".
41017
41018 2006-10-18  Bruno Haible  <bruno@clisp.org>
41019
41020         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41021         gl_LIBOBJS list.
41022
41023 2006-10-18  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41026
41027 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41028
41029         * lib/xstrtol.h: Include gettext.h.
41030         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41031         Problem reported by Eric Blake.
41032         * modules/xstrtol (Depends-on): Add gettext-h.
41033
41034 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41035
41036         * lib/strftime.c (advance): New macro.
41037         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41038         incomplete type, so you can't add 0 to it.  Problem and patch
41039         reported by Eelco Dolstra for dietlibc.
41040
41041 2006-10-18  Jim Meyering  <jim@meyering.net>
41042
41043         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41044         type for a local, and rename it: s/up/user_proc/.
41045
41046 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41047
41048         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41049         READ_UTMP_USER_PROCESS.
41050         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41051
41052 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41053
41054         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41055         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41056
41057 2006-10-17  Eric Blake  <ebb9@byu.net>
41058
41059         * lib/sigprocmask.c (sigprocmask): Fix typo.
41060
41061         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41062
41063         * modules/clean-temp (Makefile.am): Don't add to make output...
41064         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41065         config.h.
41066
41067 2006-10-17  Bruno Haible  <bruno@clisp.org>
41068
41069         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41070         differently if DEFAULT_TEXT_DOMAIN is set.
41071
41072 2006-10-16  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/clean-temp.c: Include fwriteerror.h.
41075
41076 2006-10-16  Bruno Haible  <bruno@clisp.org>
41077
41078         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41079
41080 2006-10-16  Bruno Haible  <bruno@clisp.org>
41081
41082         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41083         * lib/sigprocmask.h: Include <sys/types.h>.
41084         (sigset_t): Use the system's definition if present.
41085
41086 2006-10-17  Eric Blake  <ebb9@byu.net>
41087
41088         * lib/xvasprintf.c (includes): Assume config.h.
41089         * lib/xasprintf.c (includes): Likewise.
41090
41091 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41092
41093         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41094         at least as wide as intmax_t.
41095
41096 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41097
41098         (Imported from Automake.)
41099         * build-aux/gnupload: Update to version 1.1 of directive file.
41100
41101 2006-10-16  Eric Blake  <ebb9@byu.net>
41102
41103         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41104         match Automake 1.10a.
41105
41106 2006-10-14  Bruno Haible  <bruno@clisp.org>
41107
41108         * modules/sigprocmask: New file.
41109         * lib/sigprocmask.h: New file.
41110         * lib/sigprocmask.c: New file.
41111         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41112         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41113         request sigprocmask.o.
41114         (gl_PREREQ_SIGPROCMASK): New macro.
41115         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41116         (Depends-on): Add sigprocmask.
41117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41118         gt_SIGNALBLOCKING. Test for 'raise' only once.
41119         * lib/fatal-signal.c: Include sigprocmask.h.
41120         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41121         unblock_fatal_signals): Define always.
41122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41123         sigprocmask.
41124
41125 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41126
41127         Sync from Automake.
41128         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41129         which incorrectly sets the mode of an existing destination
41130         directory.  In some cases the unpatched install-sh could do the
41131         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41132         system.  We hope this is rare in practice, but it's clearly worth
41133         fixing.  Problem reported by Alex Unleashed in
41134         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41135         Also, don't bother to check for -m bugs unless we're using -m;
41136         suggested by Stepan Kasal.
41137
41138 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41139
41140         Sync from Automake.
41141         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41142         `-c' flag, so they appear at the same position as in %FASTDEP%
41143         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41144         which ignores unknown options only after the first non-option.
41145         Bug report against M4 by Nelson H. F. Beebe.
41146
41147 2006-10-13  Jim Meyering  <jim@meyering.net>
41148
41149         Fix a bug in yesterday's change.
41150         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41151         p->fts_statp->st_dev would be used uninitialized.
41152         Ensures that we always call fts_stat on the very first entry.
41153         Miklos Szeredi reported that find -xdev stopped working.
41154
41155 2006-10-12  Bruno Haible  <bruno@clisp.org>
41156
41157         * gnulib-tool (func_get_automake_snippet): Append an automatically
41158         computed EXTRA_DIST augmentation.
41159         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41160         * modules/alloca-opt (Makefile.am): Likewise.
41161         * modules/allocsa (Makefile.am): Likewise.
41162         * modules/arcfour (Makefile.am): Likewise.
41163         * modules/arctwo (Makefile.am): Likewise.
41164         * modules/argmatch (Makefile.am): Likewise.
41165         * modules/argz (Makefile.am): Likewise.
41166         * modules/atexit (Makefile.am): Likewise.
41167         * modules/backupfile (Makefile.am): Likewise.
41168         * modules/byteswap (Makefile.am): Likewise.
41169         * modules/c-strtod (Makefile.am): Likewise.
41170         * modules/c-strtold (Makefile.am): Likewise.
41171         * modules/calloc (Makefile.am): Likewise.
41172         * modules/canon-host (Makefile.am): Likewise.
41173         * modules/canonicalize (Makefile.am): Likewise.
41174         * modules/chdir-long (Makefile.am): Likewise.
41175         * modules/chdir-safer (Makefile.am): Likewise.
41176         * modules/check-version (Makefile.am): Likewise.
41177         * modules/chown (Makefile.am): Likewise.
41178         * modules/cloexec (Makefile.am): Likewise.
41179         * modules/close-stream (Makefile.am): Likewise.
41180         * modules/closeout (Makefile.am): Likewise.
41181         * modules/crc (Makefile.am): Likewise.
41182         * modules/csharpexec (Makefile.am): Likewise.
41183         * modules/cycle-check (Makefile.am): Likewise.
41184         * modules/des (Makefile.am): Likewise.
41185         * modules/dev-ino (Makefile.am): Likewise.
41186         * modules/dirfd (Makefile.am): Likewise.
41187         * modules/dirname (Makefile.am): Likewise.
41188         * modules/dup2 (Makefile.am): Likewise.
41189         * modules/eealloc (Makefile.am): Likewise.
41190         * modules/error (Makefile.am): Likewise.
41191         * modules/euidaccess (Makefile.am): Likewise.
41192         * modules/exclude (Makefile.am): Likewise.
41193         * modules/exitfail (Makefile.am): Likewise.
41194         * modules/fcntl-safer (Makefile.am): Likewise.
41195         * modules/fcntl (Makefile.am): Likewise.
41196         * modules/file-type (Makefile.am): Likewise.
41197         * modules/fileblocks (Makefile.am): Likewise.
41198         * modules/filemode (Makefile.am): Likewise.
41199         * modules/filenamecat (Makefile.am): Likewise.
41200         * modules/fnmatch (Makefile.am): Likewise.
41201         * modules/fopen-safer (Makefile.am): Likewise.
41202         * modules/fpending (Makefile.am): Likewise.
41203         * modules/fprintftime (Makefile.am): Likewise.
41204         * modules/free (Makefile.am): Likewise.
41205         * modules/fsusage (Makefile.am): Likewise.
41206         * modules/ftruncate (Makefile.am): Likewise.
41207         * modules/fts (Makefile.am): Likewise.
41208         * modules/gc-arcfour (Makefile.am): Likewise.
41209         * modules/gc-des (Makefile.am): Likewise.
41210         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41211         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41212         * modules/gc-md4 (Makefile.am): Likewise.
41213         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41214         * modules/gc-sha1 (Makefile.am): Likewise.
41215         * modules/gc (Makefile.am): Likewise.
41216         * modules/getaddrinfo (Makefile.am): Likewise.
41217         * modules/getcwd (Makefile.am): Likewise.
41218         * modules/getdelim (Makefile.am): Likewise.
41219         * modules/getdomainname (Makefile.am): Likewise.
41220         * modules/getgroups (Makefile.am): Likewise.
41221         * modules/gethostname (Makefile.am): Likewise.
41222         * modules/gethrxtime (Makefile.am): Likewise.
41223         * modules/getline (Makefile.am): Likewise.
41224         * modules/getloadavg (Makefile.am): Likewise.
41225         * modules/getlogin_r (Makefile.am): Likewise.
41226         * modules/getndelim2 (Makefile.am): Likewise.
41227         * modules/getopt (Makefile.am): Likewise.
41228         * modules/getpagesize (Makefile.am): Likewise.
41229         * modules/getpass-gnu (Makefile.am): Likewise.
41230         * modules/getpass (Makefile.am): Likewise.
41231         * modules/getsubopt (Makefile.am): Likewise.
41232         * modules/gettime (Makefile.am): Likewise.
41233         * modules/gettimeofday (Makefile.am): Likewise.
41234         * modules/getugroups (Makefile.am): Likewise.
41235         * modules/getusershell (Makefile.am): Likewise.
41236         * modules/glob (Makefile.am): Likewise.
41237         * modules/group-member (Makefile.am): Likewise.
41238         * modules/hard-locale (Makefile.am): Likewise.
41239         * modules/hash (Makefile.am): Likewise.
41240         * modules/hmac-md5 (Makefile.am): Likewise.
41241         * modules/hmac-sha1 (Makefile.am): Likewise.
41242         * modules/human (Makefile.am): Likewise.
41243         * modules/idcache (Makefile.am): Likewise.
41244         * modules/imaxabs (Makefile.am): Likewise.
41245         * modules/imaxdiv (Makefile.am): Likewise.
41246         * modules/inet_ntop (Makefile.am): Likewise.
41247         * modules/inet_pton (Makefile.am): Likewise.
41248         * modules/intprops (Makefile.am): Likewise.
41249         * modules/inttostr (Makefile.am): Likewise.
41250         * modules/inttypes (Makefile.am): Likewise.
41251         * modules/isapipe (Makefile.am): Likewise.
41252         * modules/javaversion (Makefile.am): Likewise.
41253         * modules/lchmod (Makefile.am): Likewise.
41254         * modules/lchown (Makefile.am): Likewise.
41255         * modules/localcharset (Makefile.am): Likewise.
41256         * modules/long-options (Makefile.am): Likewise.
41257         * modules/lstat (Makefile.am): Likewise.
41258         * modules/malloc (Makefile.am): Likewise.
41259         * modules/mathl (Makefile.am): Likewise.
41260         * modules/mbchar (Makefile.am): Likewise.
41261         * modules/md2 (Makefile.am): Likewise.
41262         * modules/md4 (Makefile.am): Likewise.
41263         * modules/md5 (Makefile.am): Likewise.
41264         * modules/memcasecmp (Makefile.am): Likewise.
41265         * modules/memchr (Makefile.am): Likewise.
41266         * modules/memcmp (Makefile.am): Likewise.
41267         * modules/memcoll (Makefile.am): Likewise.
41268         * modules/memcpy (Makefile.am): Likewise.
41269         * modules/memmem (Makefile.am): Likewise.
41270         * modules/memmove (Makefile.am): Likewise.
41271         * modules/mempcpy (Makefile.am): Likewise.
41272         * modules/memrchr (Makefile.am): Likewise.
41273         * modules/memset (Makefile.am): Likewise.
41274         * modules/memxor (Makefile.am): Likewise.
41275         * modules/mkancesdirs (Makefile.am): Likewise.
41276         * modules/mkdir-p (Makefile.am): Likewise.
41277         * modules/mkdir (Makefile.am): Likewise.
41278         * modules/mkdtemp (Makefile.am): Likewise.
41279         * modules/mkstemp (Makefile.am): Likewise.
41280         * modules/mktime (Makefile.am): Likewise.
41281         * modules/modechange (Makefile.am): Likewise.
41282         * modules/mountlist (Makefile.am): Likewise.
41283         * modules/nanosleep (Makefile.am): Likewise.
41284         * modules/obstack (Makefile.am): Likewise.
41285         * modules/openat (Makefile.am): Likewise.
41286         * modules/pagealign_alloc (Makefile.am): Likewise.
41287         * modules/pathmax (Makefile.am): Likewise.
41288         * modules/physmem (Makefile.am): Likewise.
41289         * modules/poll (Makefile.am): Likewise.
41290         * modules/posixtm (Makefile.am): Likewise.
41291         * modules/posixver (Makefile.am): Likewise.
41292         * modules/putenv (Makefile.am): Likewise.
41293         * modules/quote (Makefile.am): Likewise.
41294         * modules/quotearg (Makefile.am): Likewise.
41295         * modules/raise (Makefile.am): Likewise.
41296         * modules/read-file (Makefile.am): Likewise.
41297         * modules/readline (Makefile.am): Likewise.
41298         * modules/readlink (Makefile.am): Likewise.
41299         * modules/readtokens (Makefile.am): Likewise.
41300         * modules/readutmp (Makefile.am): Likewise.
41301         * modules/realloc (Makefile.am): Likewise.
41302         * modules/regex (Makefile.am): Likewise.
41303         * modules/rename-dest-slash (Makefile.am): Likewise.
41304         * modules/rename (Makefile.am): Likewise.
41305         * modules/rijndael (Makefile.am): Likewise.
41306         * modules/rmdir (Makefile.am): Likewise.
41307         * modules/rpmatch (Makefile.am): Likewise.
41308         * modules/safe-read (Makefile.am): Likewise.
41309         * modules/safe-write (Makefile.am): Likewise.
41310         * modules/same-inode (Makefile.am): Likewise.
41311         * modules/same (Makefile.am): Likewise.
41312         * modules/save-cwd (Makefile.am): Likewise.
41313         * modules/savedir (Makefile.am): Likewise.
41314         * modules/setenv (Makefile.am): Likewise.
41315         * modules/settime (Makefile.am): Likewise.
41316         * modules/sha1 (Makefile.am): Likewise.
41317         * modules/sig2str (Makefile.am): Likewise.
41318         * modules/snprintf (Makefile.am): Likewise.
41319         * modules/stat-macros (Makefile.am): Likewise.
41320         * modules/stat-time (Makefile.am): Likewise.
41321         * modules/stdbool (Makefile.am): Likewise.
41322         * modules/stdint (Makefile.am): Likewise.
41323         * modules/stdlib-safer (Makefile.am): Likewise.
41324         * modules/stpcpy (Makefile.am): Likewise.
41325         * modules/stpncpy (Makefile.am): Likewise.
41326         * modules/strcase (Makefile.am): Likewise.
41327         * modules/strcasestr (Makefile.am): Likewise.
41328         * modules/strchrnul (Makefile.am): Likewise.
41329         * modules/strcspn (Makefile.am): Likewise.
41330         * modules/strdup (Makefile.am): Likewise.
41331         * modules/strerror (Makefile.am): Likewise.
41332         * modules/strftime (Makefile.am): Likewise.
41333         * modules/strndup (Makefile.am): Likewise.
41334         * modules/strnlen (Makefile.am): Likewise.
41335         * modules/strpbrk (Makefile.am): Likewise.
41336         * modules/strsep (Makefile.am): Likewise.
41337         * modules/strstr (Makefile.am): Likewise.
41338         * modules/strtod (Makefile.am): Likewise.
41339         * modules/strtoimax (Makefile.am): Likewise.
41340         * modules/strtok_r (Makefile.am): Likewise.
41341         * modules/strtol (Makefile.am): Likewise.
41342         * modules/strtoll (Makefile.am): Likewise.
41343         * modules/strtoul (Makefile.am): Likewise.
41344         * modules/strtoull (Makefile.am): Likewise.
41345         * modules/strtoumax (Makefile.am): Likewise.
41346         * modules/strverscmp (Makefile.am): Likewise.
41347         * modules/sys_socket (Makefile.am): Likewise.
41348         * modules/sys_stat (Makefile.am): Likewise.
41349         * modules/sysexits (Makefile.am): Likewise.
41350         * modules/time_r (Makefile.am): Likewise.
41351         * modules/timegm (Makefile.am): Likewise.
41352         * modules/timespec (Makefile.am): Likewise.
41353         * modules/tmpfile-safer (Makefile.am): Likewise.
41354         * modules/trim (Makefile.am): Likewise.
41355         * modules/unistd-safer (Makefile.am): Likewise.
41356         * modules/unlinkdir (Makefile.am): Likewise.
41357         * modules/unlocked-io (Makefile.am): Likewise.
41358         * modules/userspec (Makefile.am): Likewise.
41359         * modules/utime (Makefile.am): Likewise.
41360         * modules/utimecmp (Makefile.am): Likewise.
41361         * modules/utimens (Makefile.am): Likewise.
41362         * modules/vasnprintf (Makefile.am): Likewise.
41363         * modules/vasprintf (Makefile.am): Likewise.
41364         * modules/vsnprintf (Makefile.am): Likewise.
41365         * modules/xalloc (Makefile.am): Likewise.
41366         * modules/xgetcwd (Makefile.am): Likewise.
41367         * modules/xnanosleep (Makefile.am): Likewise.
41368         * modules/xreadlink (Makefile.am): Likewise.
41369         * modules/xstrtod (Makefile.am): Likewise.
41370         * modules/xstrtol (Makefile.am): Likewise.
41371         * modules/xstrtold (Makefile.am): Likewise.
41372         * modules/yesno (Makefile.am): Likewise.
41373         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41374
41375 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41376
41377         * modules/error (Makefile.am): Distribute files through
41378         EXTRA_DIST, not lib_SOURCES.
41379
41380 2006-10-12  Eric Blake  <ebb9@byu.net>
41381
41382         * modules/error (Makefile.am): Distribute files in /lib.
41383         * modules/obstack (Makefile.am): Likewise.
41384
41385 2006-10-12  Bruno Haible  <bruno@clisp.org>
41386
41387         * modules/acl (Makefile.am): Distribute all files in lib/ through
41388         EXTRA_DIST.
41389         * modules/arcfour (Makefile.am): Likewise.
41390         * modules/arctwo (Makefile.am): Likewise.
41391         * modules/argmatch (Makefile.am): Likewise.
41392         * modules/argz (Makefile.am): Likewise.
41393         * modules/atexit (Makefile.am): Likewise.
41394         * modules/backupfile (Makefile.am): Likewise.
41395         * modules/c-strtod (Makefile.am): Likewise.
41396         * modules/c-strtold (Makefile.am): Likewise.
41397         * modules/calloc (Makefile.am): Likewise.
41398         * modules/canon-host (Makefile.am): Likewise.
41399         * modules/canonicalize (Makefile.am): Likewise.
41400         * modules/chdir-long (Makefile.am): Likewise.
41401         * modules/chdir-safer (Makefile.am): Likewise.
41402         * modules/check-version (Makefile.am): Likewise.
41403         * modules/chown (Makefile.am): Likewise.
41404         * modules/cloexec (Makefile.am): Likewise.
41405         * modules/close-stream (Makefile.am): Likewise.
41406         * modules/closeout (Makefile.am): Likewise.
41407         * modules/crc (Makefile.am): Likewise.
41408         * modules/cycle-check (Makefile.am): Likewise.
41409         * modules/des (Makefile.am): Likewise.
41410         * modules/dirfd (Makefile.am): Likewise.
41411         * modules/dirname (Makefile.am): Likewise.
41412         * modules/dup2 (Makefile.am): Likewise.
41413         * modules/euidaccess (Makefile.am): Likewise.
41414         * modules/exclude (Makefile.am): Likewise.
41415         * modules/exitfail (Makefile.am): Likewise.
41416         * modules/fcntl-safer (Makefile.am): Likewise.
41417         * modules/file-type (Makefile.am): Likewise.
41418         * modules/fileblocks (Makefile.am): Likewise.
41419         * modules/filemode (Makefile.am): Likewise.
41420         * modules/filenamecat (Makefile.am): Likewise.
41421         * modules/fnmatch (Makefile.am): Likewise.
41422         * modules/fopen-safer (Makefile.am): Likewise.
41423         * modules/fpending (Makefile.am): Likewise.
41424         * modules/fprintftime (Makefile.am): Likewise.
41425         * modules/free (Makefile.am): Likewise.
41426         * modules/fsusage (Makefile.am): Likewise.
41427         * modules/ftruncate (Makefile.am): Likewise.
41428         * modules/fts (Makefile.am): Likewise.
41429         * modules/gc (Makefile.am): Likewise.
41430         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41431         * modules/getaddrinfo (Makefile.am): Likewise.
41432         * modules/getcwd (Makefile.am): Likewise.
41433         * modules/getdelim (Makefile.am): Likewise.
41434         * modules/getdomainname (Makefile.am): Likewise.
41435         * modules/getgroups (Makefile.am): Likewise.
41436         * modules/gethostname (Makefile.am): Likewise.
41437         * modules/gethrxtime (Makefile.am): Likewise.
41438         * modules/getline (Makefile.am): Likewise.
41439         * modules/getloadavg (Makefile.am): Likewise.
41440         * modules/getlogin_r (Makefile.am): Likewise.
41441         * modules/getopt (Makefile.am): Likewise.
41442         * modules/getpass (Makefile.am): Likewise.
41443         * modules/getpass-gnu (Makefile.am): Likewise.
41444         * modules/getsubopt (Makefile.am): Likewise.
41445         * modules/gettime (Makefile.am): Likewise.
41446         * modules/gettimeofday (Makefile.am): Likewise.
41447         * modules/getugroups (Makefile.am): Likewise.
41448         * modules/getusershell (Makefile.am): Likewise.
41449         * modules/glob (Makefile.am): Likewise.
41450         * modules/group-member (Makefile.am): Likewise.
41451         * modules/hard-locale (Makefile.am): Likewise.
41452         * modules/hash (Makefile.am): Likewise.
41453         * modules/hmac-md5 (Makefile.am): Likewise.
41454         * modules/hmac-sha1 (Makefile.am): Likewise.
41455         * modules/human (Makefile.am): Likewise.
41456         * modules/idcache (Makefile.am): Likewise.
41457         * modules/imaxabs (Makefile.am): Likewise.
41458         * modules/imaxdiv (Makefile.am): Likewise.
41459         * modules/inet_ntop (Makefile.am): Likewise.
41460         * modules/inet_pton (Makefile.am): Likewise.
41461         * modules/inttostr (Makefile.am): Likewise.
41462         * modules/isapipe (Makefile.am): Likewise.
41463         * modules/lchown (Makefile.am): Likewise.
41464         * modules/long-options (Makefile.am): Likewise.
41465         * modules/lstat (Makefile.am): Likewise.
41466         * modules/malloc (Makefile.am): Likewise.
41467         * modules/mathl (Makefile.am): Likewise.
41468         * modules/mbchar (Makefile.am): Likewise.
41469         * modules/md2 (Makefile.am): Likewise.
41470         * modules/md4 (Makefile.am): Likewise.
41471         * modules/md5 (Makefile.am): Likewise.
41472         * modules/memcasecmp (Makefile.am): Likewise.
41473         * modules/memchr (Makefile.am): Likewise.
41474         * modules/memcmp (Makefile.am): Likewise.
41475         * modules/memcoll (Makefile.am): Likewise.
41476         * modules/memcpy (Makefile.am): Likewise.
41477         * modules/memmem (Makefile.am): Likewise.
41478         * modules/memmove (Makefile.am): Likewise.
41479         * modules/mempcpy (Makefile.am): Likewise.
41480         * modules/memrchr (Makefile.am): Likewise.
41481         * modules/memset (Makefile.am): Likewise.
41482         * modules/memxor (Makefile.am): Likewise.
41483         * modules/mkancesdirs (Makefile.am): Likewise.
41484         * modules/mkdir (Makefile.am): Likewise.
41485         * modules/mkdir-p (Makefile.am): Likewise.
41486         * modules/mkdtemp (Makefile.am): Likewise.
41487         * modules/mkstemp (Makefile.am): Likewise.
41488         * modules/mktime (Makefile.am): Likewise.
41489         * modules/modechange (Makefile.am): Likewise.
41490         * modules/mountlist (Makefile.am): Likewise.
41491         * modules/nanosleep (Makefile.am): Likewise.
41492         * modules/openat (Makefile.am): Likewise.
41493         * modules/pagealign_alloc (Makefile.am): Likewise.
41494         * modules/physmem (Makefile.am): Likewise.
41495         * modules/poll (Makefile.am): Likewise.
41496         * modules/posixtm (Makefile.am): Likewise.
41497         * modules/posixver (Makefile.am): Likewise.
41498         * modules/putenv (Makefile.am): Likewise.
41499         * modules/quote (Makefile.am): Likewise.
41500         * modules/quotearg (Makefile.am): Likewise.
41501         * modules/raise (Makefile.am): Likewise.
41502         * modules/read-file (Makefile.am): Likewise.
41503         * modules/readline (Makefile.am): Likewise.
41504         * modules/readlink (Makefile.am): Likewise.
41505         * modules/readtokens (Makefile.am): Likewise.
41506         * modules/readutmp (Makefile.am): Likewise.
41507         * modules/realloc (Makefile.am): Likewise.
41508         * modules/regex (Makefile.am): Likewise.
41509         * modules/rename (Makefile.am): Likewise.
41510         * modules/rename-dest-slash (Makefile.am): Likewise.
41511         * modules/rijndael (Makefile.am): Likewise.
41512         * modules/rmdir (Makefile.am): Likewise.
41513         * modules/rpmatch (Makefile.am): Likewise.
41514         * modules/safe-read (Makefile.am): Likewise.
41515         * modules/safe-write (Makefile.am): Likewise.
41516         * modules/same (Makefile.am): Likewise.
41517         * modules/save-cwd (Makefile.am): Likewise.
41518         * modules/savedir (Makefile.am): Likewise.
41519         * modules/setenv (Makefile.am): Likewise.
41520         * modules/settime (Makefile.am): Likewise.
41521         * modules/sha1 (Makefile.am): Likewise.
41522         * modules/sig2str (Makefile.am): Likewise.
41523         * modules/snprintf (Makefile.am): Likewise.
41524         * modules/stdlib-safer (Makefile.am): Likewise.
41525         * modules/stpcpy (Makefile.am): Likewise.
41526         * modules/stpncpy (Makefile.am): Likewise.
41527         * modules/strcase (Makefile.am): Likewise.
41528         * modules/strcasestr (Makefile.am): Likewise.
41529         * modules/strchrnul (Makefile.am): Likewise.
41530         * modules/strcspn (Makefile.am): Likewise.
41531         * modules/strdup (Makefile.am): Likewise.
41532         * modules/strerror (Makefile.am): Likewise.
41533         * modules/strftime (Makefile.am): Likewise.
41534         * modules/strndup (Makefile.am): Likewise.
41535         * modules/strnlen (Makefile.am): Likewise.
41536         * modules/strpbrk (Makefile.am): Likewise.
41537         * modules/strsep (Makefile.am): Likewise.
41538         * modules/strstr (Makefile.am): Likewise.
41539         * modules/strtod (Makefile.am): Likewise.
41540         * modules/strtoimax (Makefile.am): Likewise.
41541         * modules/strtok_r (Makefile.am): Likewise.
41542         * modules/strtol (Makefile.am): Likewise.
41543         * modules/strtoll (Makefile.am): Likewise.
41544         * modules/strtoul (Makefile.am): Likewise.
41545         * modules/strtoull (Makefile.am): Likewise.
41546         * modules/strtoumax (Makefile.am): Likewise.
41547         * modules/strverscmp (Makefile.am): Likewise.
41548         * modules/time_r (Makefile.am): Likewise.
41549         * modules/timegm (Makefile.am): Likewise.
41550         * modules/tmpfile-safer (Makefile.am): Likewise.
41551         * modules/unistd-safer (Makefile.am): Likewise.
41552         * modules/unlinkdir (Makefile.am): Likewise.
41553         * modules/userspec (Makefile.am): Likewise.
41554         * modules/utime (Makefile.am): Likewise.
41555         * modules/utimecmp (Makefile.am): Likewise.
41556         * modules/utimens (Makefile.am): Likewise.
41557         * modules/vasnprintf (Makefile.am): Likewise.
41558         * modules/vasprintf (Makefile.am): Likewise.
41559         * modules/vsnprintf (Makefile.am): Likewise.
41560         * modules/xalloc (Makefile.am): Likewise.
41561         * modules/xgetcwd (Makefile.am): Likewise.
41562         * modules/xnanosleep (Makefile.am): Likewise.
41563         * modules/xreadlink (Makefile.am): Likewise.
41564         * modules/xstrtod (Makefile.am): Likewise.
41565         * modules/xstrtol (Makefile.am): Likewise.
41566         * modules/xstrtold (Makefile.am): Likewise.
41567         * modules/yesno (Makefile.am): Likewise.
41568
41569 2006-10-12  Jim Meyering  <jim@meyering.net>
41570
41571         * m4/getloadavg.m4: Revert the change below.
41572
41573         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41574         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41575         fail with a symlink, which is what coreutils' ./bootstrap now
41576         creates by default.
41577
41578 2006-10-12  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41581         mingw.
41582         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41583         MSVC and mingw explicitly.
41584
41585 2006-10-11  Simon Josefsson  <jas@extundo.com>
41586             Bruno Haible  <bruno@clisp.org>
41587
41588         Add support for multiple gnulib-tool invocations in the scope of a
41589         single configure.ac file.
41590         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41591         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41592         with the same contents as the _LIBADD variable.
41593         (func_emit_initmacro_start, func_emit_initmacro_end,
41594         func_emit_initmacro_done): New functions.
41595         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41596         gl_LIBOBJS and gl_LTLIBOBJS.
41597
41598 2006-10-11  Bruno Haible  <bruno@clisp.org>
41599
41600         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41601         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41602         autoreconf. Instead, invoke autopoint explicitly but move back the
41603         *.m4 files from gnulib.
41604
41605 2006-10-11  Bruno Haible  <bruno@clisp.org>
41606
41607         * gnulib-tool (func_usage): Make module names after --create-testdir
41608         optional.
41609         (func_create_testdir): If no module was specified, use nearly all
41610         modules.
41611
41612 2006-10-12  Jim Meyering  <jim@meyering.net>
41613
41614         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41615         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41616         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41617         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41618         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41619         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41620         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41621         (fts_set_stat_required): New function.
41622         (fts_open): Defer the calls to fts_stat, if possible or requested.
41623         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41624         into fts_stat itself.
41625         (fts_read): Perform any required (deferred) fts_stat call.
41626         (fts_build): Likewise, for the directory we're about to open and read.
41627         In the readdir loop, carefully decide whether each entry will require
41628         an eventual call to fts_stat, using dirent.d_type info if available.
41629         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41630         a command line argument into this function.  Update all callers.
41631         Map a return value of FTS_DOT to FTS_D for a command line argument.
41632         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41633         Thanks to Miklos Szeredi for his tenacity and for the initial
41634         bug report about "find" failing on a FUSE-based file system.
41635
41636         * lib/fts.c (fts_open): Use consistent indentation.
41637
41638 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41639
41640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41641         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41642         reported by Jim Meyering.  All uses of cache variables renamed
41643         to match Autoconf's.
41644         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41645         the other one.
41646
41647         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41648         Fix misspelling in diagnostic.
41649
41650 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41651
41652         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41653         defined.  Problem reported by Matthew Woehlke.
41654
41655         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41656         Add support for Tandem NonStop R series.
41657         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41658         Use new macro.
41659
41660         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41661         (has_trailing_slash): Omit size arg; all callers changed.
41662         Omit 'inline', since it doesn't help performance and we'd
41663         need to configure it.
41664         Don't count //, ///, etc. as having a trailing slash.
41665         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41666         (rpl_rename_dest_slash): On failure, use rename's errno rather
41667         than (in some cases) an incorrect or junk errno.
41668         Simplify code by removing need to compute length; this does
41669         cause it to make two passes instead of one over the file name,
41670         but it's worth it.
41671
41672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41673         change, since Autoconf's version may no longer be appropriate now
41674         that we are using CVS Autoconf's version.  Add support for Tandem.
41675
41676 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41677             Bruno Haible  <bruno@clisp.org>
41678
41679         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41680         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41681         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41682         gl_AC_TYPE_LONG_LONG.
41683
41684         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41685         instead of HAVE_LONG_LONG.
41686         * lib/printf-args.c (printf_fetchargs): Likewise.
41687         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41688         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41689         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41690         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41691         gl_AC_TYPE_LONG_LONG.
41692
41693 2006-10-11  Bruno Haible  <bruno@clisp.org>
41694
41695         * m4/longlong.m4: Add comments.
41696         * m4/ulonglong.m4: Likewise.
41697
41698 2006-10-10  Bruno Haible  <bruno@clisp.org>
41699
41700         Make it possible to #define stpcpy, strdup to aliases.
41701         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41702         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41703
41704 2006-10-10  Bruno Haible  <bruno@clisp.org>
41705
41706         Make it possible to #define gcd to an alias.
41707         * lib/gcd.c: Include config.h.
41708
41709 2006-10-10  Bruno Haible  <bruno@clisp.org>
41710
41711         Make it possible to #define c_isascii to an alias.
41712         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41713         defined. Undefine the macros before defining them, to avoid gcc
41714         warnings.
41715         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41716         define NO_C_CTYPE_MACROS early.
41717
41718 2006-10-10  Bruno Haible  <bruno@clisp.org>
41719
41720         Make it possible to #define set_program_name to an alias.
41721         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41722         ENABLE_RELOCATABLE early.
41723
41724 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41725
41726         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41727         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41728         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41729         More generally, don't assume that 64-bit signed int is available
41730         if unsigned int is, and vice versa.
41731         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41732         unsigned symbols, not on their signed counterparts.
41733         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41734         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41735         (UINT64_C, UINTMAX_C):
41736         Likewise.
41737         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41738         unsigned counterparts.
41739         (Have_long_long, Unsigned): New macros.
41740         (Int): Renamed from INT.
41741         (strtoimax): Use the new macros.
41742         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41743         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41744         * modules/inttypes (inttypes.h): Substitute
41745         HAVE_UNSIGNED_LONG_LONG_INT.
41746         * modules/stdint (stdint.h): Likewise.
41747         (Files): Add m4/ulonglong.m4.
41748
41749 2006-10-10  Bruno Haible  <bruno@clisp.org>
41750
41751         Fix a gcc -Wshadow warning.
41752         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41753         to 'bucket'.
41754         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41755         gl_linked_indexof_from_to): Likewise.
41756         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41757         Likewise.
41758         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41759         Likewise.
41760         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41761         Reported by Eric Blake.
41762
41763 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41764
41765         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41766         for NetBSD.  Problem reported by Bruno Haible.
41767
41768 2006-10-09  Jim Meyering  <jim@meyering.net>
41769
41770         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41771         Patch from Bruno Haible.
41772
41773 2006-10-09  Jim Meyering  <jim@meyering.net>
41774
41775         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41776         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41777         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41778
41779 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41780
41781         Don't include <config.h> twice; this doesn't work in some cases,
41782         e.g., when config.h has "#define intmax_t long long int" and
41783         we include <config.h>, <inttypes.h>, <config.h> in that order.
41784         Problem reported by Matthew Woehlke in:
41785         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41786         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41787         * lib/fts-cycle.c: Don't include config.h.
41788         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41789         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41790         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41791         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41792         inttypes.h.
41793         * lib/xstrtoumax.c: Likewise.
41794         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41795         __strtol and the like, so that this module is more like its siblings.
41796         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41797         Remove; no longer needed now that we assume gnulib inttypes.h.
41798
41799 2006-10-08  Bruno Haible  <bruno@clisp.org>
41800
41801         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41802         option.
41803
41804 2006-10-07  Jim Meyering  <jim@meyering.net>
41805
41806         * modules/inttypes (inttypes.h): Revert what seems to have been
41807         an inadvertent part of today's change: use "|", not "/" in the
41808         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41809
41810 2006-10-07  Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/sublist: New file.
41813
41814 2006-10-07  Bruno Haible  <bruno@clisp.org>
41815
41816         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41817         * modules/argz (argz.h): Likewise.
41818         * modules/arpa_inet (arpa/inet.h): Likewise.
41819         * modules/byteswap (byteswap.h): Likewise.
41820         * modules/configmake (configmake.h): Likewise.
41821         * modules/fcntl (fcntl.h): Likewise.
41822         * modules/fnmatch (fnmatch.h): Likewise.
41823         * modules/getopt (getopt.h): Likewise.
41824         * modules/glob (glob.h): Likewise.
41825         * modules/inttypes (inttypes.h): Likewise.
41826         * modules/netinet_in (netinet/in.h): Likewise.
41827         * modules/poll (poll.h): Likewise.
41828         * modules/stdbool (stdbool.h): Likewise.
41829         * modules/stdint (stdint.h): Likewise.
41830         * modules/sys_select (sys/select.h): Likewise.
41831         * modules/sys_socket (sys/socket.h): Likewise.
41832         * modules/sys_stat (sys/stat.h): Likewise.
41833         * modules/sysexits (sysexits.h): Likewise.
41834         * modules/unistd (unistd.h): Likewise.
41835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41836         Add a "DO NOT EDIT" comment to the generated file.
41837         (func_import): Likewise for gnulib-comp.m4.
41838
41839 2006-10-07  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/gl_sublist.h: New file.
41842         * lib/gl_sublist.c: New file.
41843
41844 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41845
41846         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41847         name (relative to the original working directory) and the file
41848         name component (relative to the temporary working directory).  All
41849         callers changed.
41850         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41851         * lib/mkdir-p.c (make_dir_parents): Likewise.
41852         * lib/mkdir-p.h (make_dir_parents): Likewise.
41853
41854 2006-10-06  Eric Blake  <ebb9@byu.net>
41855
41856         Define several macros for use by the clean-temp module.
41857         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41858         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41859         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41860
41861         * lib/clean-temp.h (close_stream_temp): New declaration.
41862         * lib/clean-temp.c (includes): Pull in headers according to what
41863         other modules are in use.
41864         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41865
41866 2006-10-06  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41869         instead of fopen, fwriteerror.
41870
41871 2006-10-06  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41874         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41875         int.
41876         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41877         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41878         Return an error indicator.
41879         Suggested by Eric Blake.
41880
41881 2006-10-06  Bruno Haible  <bruno@clisp.org>
41882
41883         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41884         Reported by Eric Blake.
41885
41886 2006-10-06  Bruno Haible  <bruno@clisp.org>
41887
41888         * modules/closeout (Description): Mention stderr too.
41889
41890 2006-10-06  Bruno Haible  <bruno@clisp.org>
41891         and Paul Eggert  <eggert@cs.ucla.edu>
41892
41893         * lib/closeout.c (close_stdout): Also close stderr.
41894         * lib/closeout.h: Update comment.
41895
41896 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41897
41898         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41899         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41900         * lib/dirchownmod.c: Include lchown.h.
41901         * lib/lchown.c: Don't include files that lchown.h now includes.
41902         Don't declare chown, since lchown.h now does that.
41903         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41904         (lchown): Define to rpl_chown if lchown is declared but
41905         does not exist.  Declare using a prototype if lchown is not
41906         declared.  Add a copyright notice.
41907         * lib/mkstemp.h: Include <unistd.h>.
41908         * lib/openat.c: Include lchown.h.
41909
41910         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41911         we now test for that separately.
41912         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41913         rather than O_NOFOLLOW, when testing whether it's possible to
41914         avoid a race condition reliably.
41915         * lib/savewd.c (savewd_chdir): Likewise.
41916
41917         Remove macros that are no longer needed now that stdint.h is
41918         reliable.
41919         * lib/fsusage.c (UINTMAX_MAX): Remove.
41920         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41921         * lib/utimecmp.c (SIZE_MAX): Remove.
41922
41923         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41924
41925         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41926         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41927         O_NOATIME works.
41928
41929 2006-10-05  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/gl_list.h (gl_sortedlist_search_from_to,
41932         gl_sortedlist_indexof_from_to): New declarations.
41933         (gl_list_implementation): New fields sortedlist_search_from_to,
41934         sortedlist_indexof_from_to.
41935         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41936         inline functions.
41937         * lib/gl_list.c (gl_sortedlist_search_from_to,
41938         gl_sortedlist_indexof_from_to): New functions.
41939         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41940         function.
41941         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41942         (gl_array_sortedlist_search_from_to): New function.
41943         (gl_array_list_implementation): Update.
41944         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41945         function.
41946         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41947         (gl_carray_sortedlist_search_from_to): New function.
41948         (gl_carray_list_implementation): Update.
41949         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41950         gl_linked_sortedlist_indexof_from_to): New functions.
41951         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41952         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41953         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41954         gl_tree_sortedlist_indexof_from_to): New functions.
41955         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41956         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41957         Update.
41958         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41959         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41960         Update.
41961
41962 2006-10-05  Bruno Haible  <bruno@clisp.org>
41963
41964         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41965         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41966         (struct gl_list_implementation): Add fields search_from_to,
41967         indexof_from_to. Remove fields search, indexof.
41968         (gl_list_search): Use the search_from_to method.
41969         (gl_list_search_from, gl_list_search_from_to): New functions.
41970         (gl_list_indexof): Use the indexof_from_to method.
41971         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41972         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41973         (gl_list_search_from, gl_list_search_from_to): New functions.
41974         (gl_list_indexof): Use the indexof_from_to method.
41975         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41976         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41977         gl_array_indexof. Add start_index, end_index arguments.
41978         (gl_array_search_from_to): Renamed from gl_array_search. Add
41979         start_index, end_index arguments.
41980         (gl_array_remove, gl_array_list_implementation): Update.
41981         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41982         gl_carray_indexof. Add start_index, end_index arguments.
41983         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41984         start_index, end_index arguments.
41985         (gl_carray_remove, gl_carray_list_implementation): Update.
41986         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41987         gl_linked_search. Add start_index, end_index arguments.
41988         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41989         start_index, end_index arguments.
41990         (gl_linked_remove): Update.
41991         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41992         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41993         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41994         field to 'size_t'.
41995         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41996         gl_tree_search. Add start_index, end_index arguments.
41997         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41998         start_index, end_index arguments.
41999         (gl_tree_remove): Update.
42000         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42001         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42002         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42003         function.
42004         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42005         gl_tree_search. Add start_index, end_index arguments.
42006         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42007         start_index, end_index arguments.
42008         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42009         Update.
42010         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42011
42012 2006-10-05  Bruno Haible  <bruno@clisp.org>
42013
42014         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42015
42016         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42017         fwriteerror_temp): New declarations.
42018         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42019         (descriptors): New variable.
42020         (cleanup): First, close the descriptors.
42021         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42022         fclose_temp, fwriteerror_temp): New functions.
42023
42024 2006-10-04  Jim Meyering  <jim@meyering.net>
42025
42026         * lib/fts.c (fts_open): Tiny comment change.
42027
42028 2006-10-04  Bruno Haible  <bruno@clisp.org>
42029
42030         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42031         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42032         gl_LOCK_BODY.
42033         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42034         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42035         gl_LOCK_EARLY_BODY.
42036         (gl_LOCK): Require gl_LOCK_BODY.
42037
42038 2006-10-04  Bruno Haible  <bruno@clisp.org>
42039
42040         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42041         (gl_oset_search_atleast): New declaration.
42042         (struct gl_oset_implementation): Add field 'search_atleast'.
42043         (gl_oset_search_atleast): New inline function.
42044         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42045         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42046         (gl_array_oset_implementation): Update.
42047         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42048         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42049         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42050
42051 2006-10-04  Bruno Haible  <bruno@clisp.org>
42052
42053         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42054
42055 2006-10-03  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42058         from gl_avltreehash_list_implementation.
42059
42060 2006-10-03  Bruno Haible  <bruno@clisp.org>
42061
42062         * lib/gl_oset.c (gl_oset_add): Fix return type.
42063
42064 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42065
42066         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42067
42068 2006-10-02  Eric Blake  <ebb9@byu.net>
42069
42070         * modules/strnlen (Depends-on): Add extensions.
42071
42072 2006-10-02  Eric Blake  <ebb9@byu.net>
42073
42074         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42075         definition in 2.60+.
42076
42077 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42078
42079         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42080         checks.
42081
42082 2006-10-02  Bruno Haible  <bruno@clisp.org>
42083
42084         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42085         to the AUTOMAKE_OPTIONS.
42086         Reported by Jim Meyering.
42087
42088 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42089
42090         Work around bug in Solaris 10 /proc file system:
42091         /proc/self/fd/NNN/.. isn't the parent directory of
42092         the directory whose file descriptor is NNN.  This needs to
42093         be worked around at run time, not compile time, since a
42094         program might be built on Solaris 8, where things work, and
42095         run on Solaris 10.
42096         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42097         to use the following interface instead:
42098         (OPENAT_BUFFER_SIZE): New macro.
42099         (openat_proc_name): New function.
42100         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42101         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42102         Likewise.
42103         * lib/openat-proc.c: New file.
42104         * modules/openat (Files): Add lib/openat-proc.c.
42105         (Depends-on): Add same-inode, stdbool.
42106         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42107
42108 2006-09-29  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42111         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42112         argument. Set stdout_closed before testing for ferror, not after.
42113         (fwriteerror, fwriteerror_no_ebadf): New functions.
42114
42115 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42116
42117         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42118
42119 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42120
42121         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42122         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42123
42124 2006-09-28  Jim Meyering  <jim@meyering.net>
42125
42126         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42127         Include <unistd.h>.
42128
42129 2006-09-28  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42132         * modules/linkedhash-list (Depends-on): Likewise.
42133         * modules/rbtreehash-list (Depends-on): Likewise.
42134
42135 2006-09-28  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/strndup.h: Simplify the redefinition of strndup.
42138         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42140
42141 2006-09-28  Bruno Haible  <bruno@clisp.org>
42142
42143         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42144         * lib/gl_linkedhash_list.c: Likewise.
42145         * lib/gl_rbtreehash_list.c: Likewise.
42146
42147 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42148
42149         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42150         getaddrinfo.
42151
42152         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42153         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42154         it causes <stdio_ext.h> to cause a compile-time error.
42155         Problem reported by Nelson H. F. Beebe.
42156         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42157         of HAVE_DECL___PENDING.
42158
42159         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42160         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42161         declaration.
42162
42163 2006-09-27  Jim Meyering  <jim@meyering.net>
42164
42165         This file could end up with a definition for a function
42166         named __strndup, rather than rpl_strndup on a system with
42167         incomplete weak_alias support.
42168         * lib/strndup.c (strndup): Rename from __strndup.
42169         Remove #defines that used to map __strndup to strndup.
42170         Don't use K&R prototypes.
42171         Remove LIBC-related code, since this file is not sync'd with glibc.
42172         * lib/strndup.h: Revamp, accordingly.
42173         * m4/strndup.m4: Modernize.
42174
42175 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42176
42177         * modules/savewd (Depends-on): Add 'raise'.
42178         * lib/savewd.c: Include <signal.h>, for 'raise'.
42179
42180 2006-09-26  Jim Meyering  <jim@meyering.net>
42181
42182         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42183         when we detect Darwin 8.7.0's acl_get_file bug.
42184         Rearrange to perform the new (below) run-test while $LIBS
42185         contains any acl-related library.  Set USE_ACL at the end.
42186         (gl_ACL_GET_FILE): New function.
42187
42188 2006-09-26  Eric Blake  <ebb9@byu.net>
42189
42190         * lib/verror.c: Include <config.h> unconditionally.
42191
42192 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42193
42194         * modules/clock-time (Maintainer): Add self.
42195         * modules/getlogin_r (Depends-on): Add extensions.
42196
42197 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42198
42199         * modules/clock-time: New module.
42200         * modules/nanosleep (Depends-on): Add clock-time.
42201         * modules/gethrxtime (Depends-on): Likewise.
42202         * modules/gettime (Depends-on): Likewise.
42203         * modules/settime (Depends-on): Likewise.
42204
42205         * modules/fts-lgpl: Depend on openat.
42206         * modules/mkancesdirs: Depend on savewd.
42207         * modules/mkdir-p: Likewise.
42208
42209 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42210
42211         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42212
42213         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42214         `gl_have_arbitrary_file_name_length_limit' to
42215         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42216         actually works between configure runs.
42217
42218 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42219             Bruno Haible  <bruno@clisp.org>
42220
42221         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42222
42223 2006-09-25  Jim Meyering  <jim@meyering.net>
42224
42225         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42226         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42227
42228 2006-09-25  Eric Blake  <ebb9@byu.net>
42229
42230         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42231         exec's in 2006-09-18 patch when shuffling fds.
42232
42233 2006-09-25  Bruno Haible  <bruno@clisp.org>
42234
42235         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42236         Reported by Jim Meyering.
42237
42238 2006-09-24  Jim Meyering  <jim@meyering.net>
42239
42240         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42241         compare a pointer against a literal "0".  That caused failures with
42242         at least HP-UX's hpcc.
42243
42244 2006-09-22  Simon Josefsson  <jas@extundo.com>
42245
42246         * modules/gc-sha1:
42247         * modules/gc-md4:
42248         * modules/gc-hmac-sha1:
42249         * modules/gc-hmac-md5:
42250         * modules/gc-des:
42251         * modules/gc-arcfour: Distribute more files.
42252
42253 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42254
42255         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42256         (gl_linked_iterator_from_to): Initialize struct completely.
42257         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42258         (gl_tree_iterator_from_to): Likewise
42259         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42260         * lib/gl_array_list.c [lint] (gl_array_iterator)
42261         (gl_array_iterator_from_to): Likewise.
42262         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42263         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42264         (gl_carray_iterator_from_to): Likewise.
42265
42266         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42267         * lib/md4.c (md4_process_block): Remove unused variable.
42268         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42269         parentheses for clarity.
42270
42271 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42272
42273         * modules/bison-i18n (Depends-on): Add gettext.
42274
42275 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42276
42277         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42278         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42279         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42280         also add missing comma that caused broken test.
42281         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42282         stdlib.h, for `abort'.
42283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42284         variables.
42285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42286         include unistd.h if present, for `rmdir'.
42287         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42288         variables.
42289         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42290         in the process include standard headers for prototypes.
42291         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42292         gets declared on GNU/Linux.
42293         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42294         unistd.h, for `rmdir'.
42295         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42296
42297         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42298         always true.
42299         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42300
42301         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42302
42303 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42304
42305         * gnulib-tool (func_version): Create output all at once.  This
42306         may help avoid triggering unnecessary SIGPIPEs, and at any
42307         rate it doesn't hurt.
42308
42309 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42310             Bruno Haible  <bruno@clisp.org>
42311
42312         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42313         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42314         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42315
42316         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42317         (gl_FUNC_VASPRINTF): Invoke it.
42318
42319 2006-09-22  Bruno Haible  <bruno@clisp.org>
42320
42321         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42322         getloadavg.c as first argument.
42323
42324 2006-09-22  Bruno Haible  <bruno@clisp.org>
42325
42326         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42327         at the beginning of the gl_INIT macro.
42328         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42329         gl_GETLOADAVG.
42330
42331 2006-09-22  Bruno Haible  <bruno@clisp.org>
42332
42333         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42334         module.
42335         Suggested by Ralf Wildenhues.
42336
42337 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42338
42339         Import this patch from libc:
42340
42341         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42342
42343         * lib/regex_internal.c (re_string_reconstruct): Handle
42344         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42345         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42346         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42347         re_string_context_at.
42348
42349         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42350         now requires it.
42351         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42352         gl_REGEX now does it for us.
42353         (gl_REGEX): Add test taken from
42354         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42355
42356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42357         Check that large offsets work.  Modernize Autoconf usages.
42358         Prefer "yes" to mean a good thing rather than a bad.
42359         Don't put "#define mkstemp" in config.h, as this might interfere
42360         with standard system headers that "#define mkstemp mkstemp64".
42361
42362         * modules/mkstemp (Depends-on): Add extensions, so that
42363         mkstemp is visible on some platforms.
42364         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42365         (Include): Change to "mkstemp.h" from <stdlib.h>.
42366         (Files): Add mkstemp.h.
42367
42368         * lib/mkstemp.h: New file, since some standard headers
42369         #define mkstemp.
42370         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42371         Include "mkstemp.h".
42372         Make the _LIBC code resemble glibc original more,
42373         e.g., use K&R style.
42374         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42375         (mkstemp): Remove, since mkstemp.h does this for us.
42376         * lib/stdlib--.h: Include mkstemp.h.
42377
42378         Import this patch from libc:
42379
42380         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42381
42382         * lib/tempname.c (__gen_tempname): Change attempts_min
42383         into a macro.  Use preprocessor to decide how to initialize
42384         attempts [Coverity CID 67].
42385
42386 2006-09-20  Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/mkdtemp.c: Import from libc.
42389         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42390                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42391                 attempts_min into a macro.  Use preprocessor to decide how to
42392                 initialize attempts [Coverity CID 67].
42393         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42394                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42395                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42396
42397 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42398
42399         * gnulib-tool (func_exit): New function, to allow to pass the
42400         exit status portably through the trap.  Use everywhere.
42401         (--help, --version): Signal a write error.
42402         (trap): catch SIGPIPE, for write errors.
42403         Exit at the end of the trap, with the correct exit status.
42404
42405 2006-09-19  Karl Berry  <karl@gnu.org>
42406
42407         * doc/gnulib.texi: note about the license texinfo files.
42408
42409 2006-09-19  Eric Blake  <ebb9@byu.net>
42410
42411         * gnulib-tool: Avoid space-tab.
42412
42413 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42414
42415         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42416         that prevented coreutils 6.1 from building.  Problem reported
42417         by Petter Reinholdtsen.
42418
42419 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42420
42421         * gnulib-tool (avoidlist): Fix typo that broke options like
42422         --avoid=lock that are used by coreutils bootstrap.
42423
42424 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42425
42426         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42427         more systematically.
42428
42429 2006-09-18  Jim Meyering  <jim@meyering.net>
42430
42431         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42432
42433 2006-09-18  Bruno Haible  <bruno@clisp.org>
42434
42435         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42436
42437 2006-09-18  Bruno Haible  <bruno@clisp.org>
42438
42439         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42440         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42441         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42442         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42443         * m4/gettext.m4: Require autoconf >= 2.52.
42444         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42445         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42446         of gl_cv_header_inttypes_h.
42447
42448 2006-09-18  Bruno Haible  <bruno@clisp.org>
42449
42450         * lib/javaversion.c: Include configmake.h.
42451
42452 2006-09-18  Bruno Haible  <bruno@clisp.org>
42453
42454         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42455         avoid that the while loops be executed in a subshell.
42456
42457 2006-09-18  Bruno Haible  <bruno@clisp.org>
42458
42459         * MODULES.html.sh (func_module): Break long lines.
42460         Suggested by Bruce Korb <bkorb@gnu.org>.
42461
42462 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42463
42464         Speed up by a factor of 1.12.
42465         * gnulib-tool (nl): New variable.
42466         (func_import): Rewrite include directive extraction to only read each
42467         directive once.
42468
42469 2006-09-17  Bruno Haible  <bruno@clisp.org>
42470
42471         * modules/javaversion (Makefile.am): Remove DEFS setting.
42472         (Depends-on): Add configmake, for PKGDATADIR definition.
42473
42474 2006-09-17  Bruno Haible  <bruno@clisp.org>
42475
42476         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42477
42478 2006-09-17  Bruno Haible  <bruno@clisp.org>
42479
42480         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42481         (func_modules_transitive_closure, func_modules_add_dummy,
42482         func_modules_to_filelist, func_import, func_create_testdir,
42483         func_create_megatestdir, ...): Use it wherever possible.
42484         Suggested by Ralf Wildenhues.
42485
42486 2006-09-16  Karl Berry  <karl@gnu.org>
42487
42488         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42489         to avoid sectioning errors.
42490         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42491         [ifinfo]: blank line after @center-ed titles.
42492         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42493         Spell FSF address consistently with others.
42494         (These changes approved by rms.)
42495
42496 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42497
42498         Speed up by a factor of 1.61.
42499         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42500         already checked module names again.
42501
42502 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42503
42504         Speed up by a factor of 1.13.
42505         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42506         for new_files, and the input to func_add_or_update.
42507
42508 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42509
42510         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42511         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42512
42513 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42514
42515         * modules/mkancesdirs (Depends-on): Add fcntl.
42516         * modules/savewd: New file.
42517         * MODULES.html.sh (File system functions): Add savewd.
42518
42519         * modules/configmake (Makefile.am): Add support for the
42520         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42521
42522 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42523
42524         * m4/savewd.m4: New file.
42525
42526 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42527
42528         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42529         (dirchownmod): New arg FD.  All callers changed.
42530         Use FD rather than opening the directory ourself, as opening is
42531         now the caller's responsibility.
42532         * lib/dirchownmod.h: Likewise.
42533         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42534         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42535         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42536         (test_dir): Remove.
42537         (mkancesdirs): Return length of prefix of FILE that has already
42538         been made, or -2 if there is a child doing the work.  Redo
42539         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42540         ".", and treat ".." specially since it might stray back into
42541         already-created areas.  Use a subprocess if necessary.  New arg
42542         WD; all users changed.  MAKE_DIR function should now return 1
42543         if it creates a directory that is not readable.  Return -2 if
42544         a child process is spun off.
42545         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42546         Adjust signature to match code.
42547         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42548         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42549         all users changed.
42550         * lib/savewd.c, lib/savewd.h: New files.
42551
42552 2006-09-15  Jim Meyering  <jim@meyering.net>
42553
42554         * modules/rename-dest-slash: New module.
42555         * MODULES.html.sh (posix_compat): Add it here.
42556
42557         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42558
42559 2006-09-15  Jim Meyering  <jim@meyering.net>
42560
42561         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42562         file.
42563
42564         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42565
42566 2006-09-15  Jim Meyering  <jim@meyering.net>
42567
42568         * lib/rename-dest-slash.c (has_trailing_slash): Use
42569         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42570         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42571         test before testing whether SRC is a directory.
42572         Suggestions from Bruno Haible.
42573
42574         Avoid a warning about an unused variable.
42575         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42576         into the #ifdef block where it's used.
42577
42578         * lib/rename-dest-slash.c: New file.
42579
42580 2006-09-14  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/allocsa.c: Include <config.h> unconditionally.
42583         * lib/asnprintf.c: Likewise.
42584         * lib/asprintf.c: Likewise.
42585         * lib/c-strcasecmp.c: Likewise.
42586         * lib/c-strcasestr.c: Likewise.
42587         * lib/c-strncasecmp.c: Likewise.
42588         * lib/c-strstr.c: Likewise.
42589         * lib/classpath.c: Likewise.
42590         * lib/clean-temp.c: Likewise.
42591         * lib/concatpath.c: Likewise.
42592         * lib/copy-file.c: Likewise.
42593         * lib/csharpcomp.c: Likewise.
42594         * lib/csharpexec.c: Likewise.
42595         * lib/execute.c: Likewise.
42596         * lib/fatal-signal.c: Likewise.
42597         * lib/findprog.c: Likewise.
42598         * lib/fwriteerror.c: Likewise.
42599         * lib/gl_array_list.c: Likewise.
42600         * lib/gl_array_oset.c: Likewise.
42601         * lib/gl_avltree_list.c: Likewise.
42602         * lib/gl_avltree_oset.c: Likewise.
42603         * lib/gl_avltreehash_list.c: Likewise.
42604         * lib/gl_carray_list.c: Likewise.
42605         * lib/gl_linked_list.c: Likewise.
42606         * lib/gl_linkedhash_list.c: Likewise.
42607         * lib/gl_list.c: Likewise.
42608         * lib/gl_oset.c: Likewise.
42609         * lib/gl_rbtree_list.c: Likewise.
42610         * lib/gl_rbtree_oset.c: Likewise.
42611         * lib/gl_rbtreehash_list.c: Likewise.
42612         * lib/imaxabs.c: Likewise.
42613         * lib/imaxdiv.c: Likewise.
42614         * lib/javacomp.c: Likewise.
42615         * lib/javaexec.c: Likewise.
42616         * lib/javaversion.c: Likewise.
42617         * lib/linebreak.c: Likewise.
42618         * lib/localcharset.c: Likewise.
42619         * lib/lock.c: Likewise.
42620         * lib/mbchar.c: Likewise.
42621         * lib/mbswidth.c: Likewise.
42622         * lib/mkdtemp.c: Likewise.
42623         * lib/pipe.c: Likewise.
42624         * lib/printf-args.c: Likewise.
42625         * lib/printf-parse.c: Likewise.
42626         * lib/progname.c: Likewise.
42627         * lib/progreloc.c: Likewise.
42628         * lib/readlink.c: Likewise.
42629         * lib/sh-quote.c: Likewise.
42630         * lib/stpcpy.c: Likewise.
42631         * lib/stpncpy.c: Likewise.
42632         * lib/strcasecmp.c: Likewise.
42633         * lib/strcasestr.c: Likewise.
42634         * lib/strcspn.c: Likewise.
42635         * lib/striconv.c: Likewise.
42636         * lib/strncasecmp.c: Likewise.
42637         * lib/strnlen1.c: Likewise.
42638         * lib/strstr.c: Likewise.
42639         * lib/strtok_r.c: Likewise.
42640         * lib/tls.c: Likewise.
42641         * lib/tmpdir.c: Likewise.
42642         * lib/unicodeio.c: Likewise.
42643         * lib/unsetenv.c: Likewise.
42644         * lib/vasnprintf.c: Likewise.
42645         * lib/vasprintf.c: Likewise.
42646         * lib/wait-process.c: Likewise.
42647         * lib/xallocsa.c: Likewise.
42648         * lib/xsetenv.c: Likewise.
42649         * lib/xstriconv.c: Likewise.
42650
42651 2006-09-13  Simon Josefsson  <jas@extundo.com>
42652
42653         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42654         that internally, suggested by Ralf Wildenhues
42655         <Ralf.Wildenhues@gmx.de>.
42656
42657 2006-09-13  Simon Josefsson  <jas@extundo.com>
42658
42659         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42660         @LIBOBJS@.
42661         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42662
42663 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42664
42665         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42666         longer worry about uses that don't define HAVE_CONFIG_H.
42667         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42668         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42669         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42670         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42671         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42672         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42673         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42674         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42675         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42676         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42677         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42678         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42679         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42680         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42681         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42682         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42683         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42684         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42685         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42686         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42687         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42688         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42689         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42690         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42691         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42692         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42693         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42694         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42695         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42696         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42697         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42698         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42699         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42700         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42701         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42702         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42703         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42704         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42705         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42706         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42707         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42708         Likewise.
42709
42710 2006-09-13  Eric Blake  <ebb9@byu.net>
42711
42712         * lib/getopt.c: Fix typo in last commit.
42713
42714 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42715
42716         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42717         dgettext.
42718
42719 2006-09-12  Jim Meyering  <jim@meyering.net>
42720
42721         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42722         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42723         Reported by Nelson H. F. Beebe.
42724
42725 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42726
42727         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42728         program_invocation_name and program_invocation_short_name are
42729         initialized.
42730         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42731         and program_invocation_short_name to argp.h, so they are visible
42732         to user programs.
42733         * lib/argp.h: Likewise
42734
42735 2006-09-10  Bruno Haible  <bruno@clisp.org>
42736
42737         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42738         m4/inttypes_h.m4, m4/uintmax_t.m4.
42739
42740 2006-09-10  Bruno Haible  <bruno@clisp.org>
42741
42742         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42743         gl_AC_TYPE_UINTMAX_T.
42744
42745 2006-09-10  Bruno Haible  <bruno@clisp.org>
42746
42747         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42748
42749 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42750
42751         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42752         convention.  Text proposed by Bruno Haible.
42753         (struct argp_option): Document the use of N_() wrappers.
42754
42755         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42756         '\v', and translate the two parts separately, instead of feeding
42757         the whole string to gettext.  This allows to exclude
42758         '\v' from the strings visible to the translator by writing doc
42759         strings as N_("..") "\v" N_("..").
42760
42761 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42762
42763         * config/srclist.txt: Undo latest change; the bug was fixed.
42764
42765 2006-09-09  Bruno Haible  <bruno@clisp.org>
42766
42767         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42768         assignments if building a library without libtool.
42769         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42770         in func_emit_lib_Makefile_am.
42771         (func_import): When building a static library libfoo.a, arrange to
42772         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42773         (func_create_testdir): Likewise.
42774         * modules/gc (configure.ac, Makefile.am): If building statically,
42775         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42776         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42777         * modules/striconv (configure.ac, Makefile.am): Likewise.
42778         Based on a suggestion by Ralf Wildenhues.
42779
42780 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42781
42782         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42783         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42784         Also:
42785
42786         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42787         Add year_2050_test to catch glibc bug 2821
42788         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42789
42790         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42791         Prefer #ifdef to #if.
42792
42793         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42794         Return from 'main' instead of calling 'exit'.
42795
42796 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42797
42798         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42799         returned the maximum time_t value rather than (time_t) -1.
42800         Problem originally reported by William Bardwell
42801         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42802
42803         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42804         Moved to here ...
42805         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42806         ... from here.
42807
42808 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42809
42810         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42811         2821 is fixed.
42812
42813 2006-09-08  Jim Meyering  <jim@meyering.net>
42814
42815         Don't make generated files read-only.  That would bother too many
42816         people.  However, do retain the ability to work when targets are
42817         read-only: remove the destination and temporary files before writing
42818         them (when generated via sed or echo), or by using the -f option for
42819         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42820         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42821         * modules/byteswap, modules/configmake, modules/fcntl:
42822         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42823         * modules/localcharset, modules/netinet_in, modules/poll:
42824         * modules/stdbool, modules/stdint, modules/sys_select:
42825         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42826
42827 2006-09-08  Jim Meyering  <jim@meyering.net>
42828
42829         Avoid new build failure on FreeBSD 6.0.
42830         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42831         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42832         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42833
42834 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42835
42836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42837
42838 2006-09-07  Jim Meyering  <jim@meyering.net>
42839
42840         Fix global typo in last change: use chmod u-w, not chmod u-x.
42841         Spotted by Paul Eggert and Bruce Korb.
42842         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42843         * modules/byteswap, modules/configmake, modules/fcntl:
42844         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42845         * modules/localcharset, modules/netinet_in, modules/poll:
42846         * modules/stdbool, modules/stdint, modules/sys_select:
42847         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42848
42849 2006-09-06  Jim Meyering  <jim@meyering.net>
42850
42851         Make generated files be read-only.
42852         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42853         Ensure that each generated file is now read-only.
42854         * modules/argz: Likewise.
42855         * modules/arpa_inet: Likewise.
42856         * modules/byteswap: Likewise.
42857         * modules/configmake: Likewise.
42858         * modules/fcntl: Likewise.
42859         * modules/fnmatch: Likewise.
42860         * modules/getopt: Likewise.
42861         * modules/glob: Likewise.
42862         * modules/inttypes: Likewise.
42863         * modules/netinet_in: Likewise.
42864         * modules/poll: Likewise.
42865         * modules/stdbool: Likewise.
42866         * modules/stdint: Likewise.
42867         * modules/sys_select: Likewise.
42868         * modules/sys_socket: Likewise.
42869         * modules/sys_stat: Likewise.
42870         * modules/sysexits: Likewise.
42871         * modules/localcharset: Same as above, but continue using temporary
42872         file named "t-$@" (why different?) rather than the "$@-t" used
42873         everywhere else.
42874
42875         * modules/sysexits (Makefile.am): Replace literal occurrences
42876         of "sysexit.h" more readable, and more consistent, "$@".
42877
42878 2006-09-06  Bruno Haible  <bruno@clisp.org>
42879
42880         * modules/striconv: New file.
42881         * modules/xstriconv: New file.
42882         * MODULES.html.sh (Internationalization functions): Add striconv,
42883         xstriconv.
42884
42885 2006-09-06  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42888         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42889         not using libtool correctly.
42890
42891 2006-09-06  Bruno Haible  <bruno@clisp.org>
42892
42893         * lib/striconv.h: New file.
42894         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42895         iconvstring.c.
42896         * lib/xstriconv.h: New file.
42897         * lib/xstriconv.c: New file.
42898
42899 2006-09-06  Bruno Haible  <bruno@clisp.org>
42900
42901         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42902         lib_..._LDFLAGS.
42903
42904 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42905
42906         * lib/argz_.h: Sync from Libtool.
42907
42908         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42909                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42910
42911         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42912
42913 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42914
42915         * modules/trim: New file.
42916
42917 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42918
42919         * lib/trim.h: New file.
42920         * lib/trim.c: New file.
42921
42922 2006-09-05  Bruno Haible  <bruno@clisp.org>
42923
42924         * MODULES.html.sh (String handling): Add trim.
42925
42926 2006-09-04  Karl Berry  <karl@gnu.org>
42927
42928         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42929         until next release.
42930
42931 2006-09-03  Bruno Haible  <bruno@clisp.org>
42932
42933         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42934         correctly.
42935
42936 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42937
42938         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42939         not gl_GETLOADAVG.  Omit unneeded semicolons.
42940         Problems reported by Ralf Wildenhues in
42941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42942         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42943         at the end, which is the usual gnulib style.
42944
42945         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42946         of doing all the work ourselves.
42947         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42948         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42949
42950 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42951
42952         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42953         Problem reported by Ralf Wildenhues in
42954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42955
42956         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42957         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42958
42959 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42960
42961         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42962         yesterday's patch by changing test -n to test -z.
42963
42964 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42965
42966         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42967         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42968         the former is now obsolescent.
42969
42970         * modules/chdir-long (Depends-on): Add fcntl.
42971
42972 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42973
42974         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42975         obsolescent, and programs should use gnulib instead.
42976         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42977         but with prefixes changed.
42978
42979 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42980
42981         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42982         or stdbool.h, because they might not exist while configuring.
42983
42984         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42985         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42986         does that for us.
42987         (O_DIRECTORY): Remove.
42988
42989 2006-08-31  Eric Blake  <ebb9@byu.net>
42990
42991         * gnulib-tool: Don't let emacs change spaces to TAB.
42992
42993 2006-08-31  Bruno Haible  <bruno@clisp.org>
42994
42995         * gnulib-tool: When calling func_import more than once, do it in a
42996         subshell.
42997         Reported by Eric Blake <ebb9@byu.net>.
42998
42999 2006-08-31  Bruno Haible  <bruno@clisp.org>
43000
43001         * gnulib-tool (nl): Remove variable.
43002         (sed_transform_lib_file): Use more robust test for config-h module.
43003         (func_import): Fix typo in 2006-08-25 patch.
43004
43005 2006-08-31  Bruno Haible  <bruno@clisp.org>
43006
43007         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43008         specified, augment Makefile.am variables instead of assigning them.
43009
43010 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43011
43012         Work around a bug in both the Linux and SunOS 64-bit kernels:
43013         nanosleep mishandles sleeps for longer than 2**31 seconds.
43014         Problem reported by Frank v Waveren in
43015         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43017         Check for nanosleep bug.
43018         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43019
43020 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43021
43022         Work around a bug in both the Linux and SunOS 64-bit kernels:
43023         nanosleep mishandles sleeps for longer than 2**31 seconds.
43024         Problem reported by Frank v Waveren in
43025         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43026         * lib/nanosleep.c (BILLION): New constant.
43027         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43028         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43029         implementation.
43030
43031 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43032
43033         * modules/nanosleep (Depends-on): Add gettime.
43034
43035 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43036         and Simon Josefsson  <jas@extundo.com>
43037         and Oskar Liljeblad  <oskar@osk.mine.nu>
43038
43039         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43040         * gnulib-tool (func_import): New license type 'unmodifiable license
43041         text'.
43042         * modules/fdl: Use it.  Longer description.
43043         * module/gpl, module/lgpl: New files.
43044
43045 2006-08-30  Jim Meyering  <jim@meyering.net>
43046
43047         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43048         shadowing the parameter.
43049
43050 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43051
43052         Sync from Libtool:
43053
43054         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43055
43056         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43057         sharing with gnulib.  Report by Eric Blake.
43058
43059 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43060
43061         * modules/isapipe: New file.
43062         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43063
43064 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43065
43066         * modules/configmake (Makefile.am): Add a comment, and omit
43067         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43068         by Bruno Haible.
43069
43070 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43071
43072         * m4/isapipe.m4: New file.
43073
43074 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43075
43076         * lib/isapipe.c, lib/isapipe.h: New files.
43077
43078 2006-08-29  Jim Meyering  <jim@meyering.net>
43079
43080         * modules/configmake (Makefile.am): Make configmake.h depend on
43081         Makefile.  Otherwise, a stale configmake.h could hang around.
43082
43083 2006-08-29  Eric Blake  <ebb9@byu.net>
43084
43085         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43086         resolution of upstream bug 3044.
43087
43088 2006-08-29  Bruno Haible  <bruno@clisp.org>
43089
43090         * modules/localcharset (Depends-on): Add configmake.
43091         (Makefile.am): Remove setting of LIBDIR through DEFS.
43092
43093 2006-08-29  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43096         defined.
43097
43098 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43099
43100         * modules/fcntl: New file.
43101         * modules/chdir-safer (Depends-on): Add fcntl.
43102         * modules/fts: Likewise.
43103         * modules/mkdir-p: Likewise.
43104
43105         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43106         This undoes the most recent change, since we're now addressing the
43107         problem in a different way.
43108
43109         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43110         into output, since the output might be called Makefile.am even
43111         if $makefile_name is something different.
43112         (func_import): Use $makefile_am rather than
43113         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43114         empty.
43115
43116         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43117
43118 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43119
43120         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43121         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43122         recent change to stdint.m4, since we're now addressing the problem in a
43123         different way.
43124
43125 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43126
43127         * m4/fcntl_h.m4: New file.
43128
43129 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43130
43131         * lib/fcntl_.h: New file.
43132         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43133         the fcntl module.
43134         * lib/dirchownmod.c: Likewise.
43135         * lib/fts.c: Likewise.
43136
43137         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43138         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43139         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43140         just before including <inttypes.h>, to avoid circular inclusion.
43141
43142 2006-08-28  Jim Meyering  <jim@meyering.net>
43143
43144         * doc/visibility.texi: Actually read and correct the grammar of the
43145         sentence affected by yesterday's change.
43146
43147 2006-08-28  Eric Blake  <ebb9@byu.net>
43148
43149         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43150         needs wrapper.
43151
43152 2006-08-28  Eric Blake  <ebb9@byu.net>
43153
43154         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43155
43156 2006-08-28  Eric Blake  <ebb9@byu.net>
43157
43158         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43159
43160 2006-08-28  Bruno Haible  <bruno@clisp.org>
43161
43162         * modules/c-strstr: New file, from GNU gettext.
43163         * MODULES.html.sh (String handling): Add c-strstr.
43164
43165 2006-08-28  Bruno Haible  <bruno@clisp.org>
43166
43167         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43168         macros.
43169         Reported by Eric Blake.
43170
43171 2006-08-28  Bruno Haible  <bruno@clisp.org>
43172
43173         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43174         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43175         * lib/vasprintf.c: Include errno.h, limits.h.
43176         (EOVERFLOW): New fallback definition.
43177         (vasprintf): Test here whether the string length is > INT_MAX.
43178         * lib/vsnprintf.c: Include errno.h, limits.h.
43179         (EOVERFLOW): New fallback definition.
43180         (vsnprintf): Fix bug when generated string was too long for the buffer.
43181         Test here whether the string length is > INT_MAX.
43182
43183 2006-08-28  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/inttypes_.h (SCNX*): Remove definitions.
43186         Reported by Eric Blake.
43187
43188 2006-08-28  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/c-strstr.h: New file, from GNU gettext.
43191         * lib/c-strstr.c: New file, from GNU gettext.
43192
43193 2006-08-28  Bruno Haible  <bruno@clisp.org>
43194
43195         * gnulib-tool: Reorder some statements.
43196
43197 2006-08-28  Bruno Haible  <bruno@clisp.org>
43198
43199         * gnulib-tool: New option --makefile-name.
43200         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43201         $makefile_name.
43202         (func_import): Write $makefile_name to the cache file, and read it from
43203         there unless explicitly specified. Use $makefile_name as file name
43204         instead of Makefile.am. Adjust the recommendations accordingly.
43205
43206 2006-08-28  Bruno Haible  <bruno@clisp.org>
43207
43208         * gnulib-tool (func_verify_module): Check against misapplying patch.
43209
43210 2006-08-28  Bruno Haible  <bruno@clisp.org>
43211
43212         * gnulib-tool (func_relativize, func_relconcat): New functions.
43213         Give an error if --local-dir is given with --update.
43214         Remove trailing slashes from $local_gnulib_dir.
43215         (func_import): Store the relativized $local_gnulib_dir in
43216         gnulib-cache.m4, and read it from there if not specified explicitly.
43217
43218 2006-08-28  Bruno Haible  <bruno@clisp.org>
43219
43220         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43221         is the current directory. Respect also $local_gnulib_dir.
43222
43223 2006-08-28  Bruno Haible  <bruno@clisp.org>
43224             Simon Josefsson  <jas@extundo.com>
43225
43226         BeOS portability.
43227         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43228
43229 2006-08-27  Jim Meyering  <jim@meyering.net>
43230
43231         * doc/visibility.texi: Remove duplicate word: "pointer".
43232
43233 2006-08-26  Bruno Haible  <bruno@clisp.org>
43234
43235         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43236         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43237         (Makefile.am): Create inttypes.h from inttypes_.h.
43238         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43239
43240         * modules/imaxabs: New file.
43241
43242         * modules/imaxdiv: New file.
43243
43244 2006-08-26  Bruno Haible  <bruno@clisp.org>
43245
43246         * m4/inttypes.m4: New file.
43247         * m4/_inttypes_h.m4: Remove file.
43248         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43249         PRI_MACROS_BROKEN.
43250         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43251
43252         * m4/imaxabs.m4: New file.
43253
43254         * m4/imaxdiv.m4: New file.
43255
43256 2006-08-26  Bruno Haible  <bruno@clisp.org>
43257
43258         * lib/inttypes_.h: New file.
43259         * lib/inttypes.h: Remove file.
43260         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43261
43262         * lib/imaxabs.c: New file.
43263
43264         * lib/imaxdiv.c: New file.
43265
43266 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43267
43268         New config-h module, so that "make" output needn't be cluttered
43269         by -DHAVE_CONFIG_H.
43270         * MODULES.html.sh (Support for building libraries and executables):
43271         Add config-h.
43272         * modules/config-h: New file.
43273         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43274         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43275         the config-h module is used.
43276
43277         New configmake module, so that "make" output needn't be cluttered
43278         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43279         * MODULES.html.sh (Support for building libraries and executables):
43280         Add configmake.
43281         * modules/configmake: New file.
43282
43283 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43284
43285         * m4/config-h.m4: New file.
43286
43287 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43288
43289         * config/srclist.txt: Add elisp-comp.
43290
43291 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43292
43293         * MODULES.html.sh (Support for building libraries and executables):
43294         Add elisp-comp.
43295         * build-aux/elisp-comp: New file.
43296         * modules/elisp-comp: New file.
43297
43298 2006-08-24  Bruno Haible  <bruno@clisp.org>
43299
43300         * gnulib-tool (func_create_testdir): Use non-default values of
43301         sourcebase and m4base.
43302
43303 2006-08-24  Bruno Haible  <bruno@clisp.org>
43304
43305         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43306         HTML structure.
43307
43308 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43309
43310         * modules/openat (Depends-on): Add lchown.
43311
43312 2006-08-23  Bruno Haible  <bruno@clisp.org>
43313
43314         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43315         of gl_LOCK_EARLY instead of gl_LOCK.
43316
43317 2006-08-23  Bruno Haible  <bruno@clisp.org>
43318
43319         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43320         on OSF/1 to no.
43321         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43322
43323 2006-08-23  Bruno Haible  <bruno@clisp.org>
43324
43325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43326         as unusable.
43327
43328         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43329         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43330         (gl_LOCK): New macro.
43331
43332 2006-08-22  Simon Josefsson  <jas@extundo.com>
43333
43334         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43335         to md5 module.
43336
43337 2006-08-22  Simon Josefsson  <jas@extundo.com>
43338
43339         * MODULES.html.sh: Add "Support for maintaining and release
43340         projects".
43341
43342         * build-aux/gnupload: New file, from coreutils.
43343
43344 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43345
43346         Avoid the need for AC_LIBSOURCES in m4 macros.
43347         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43348         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43349         * modules/check-version (EXTRA_DIST): Add check-version.h.
43350         * modules/crc (EXTRA_DIST): Add crc.h.
43351         * modules/des (EXTRA_DIST): Add des.h.
43352         * modules/gc (EXTRA_DIST): Add gc.h.
43353         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43354         * modules/getline (EXTRA_DIST): Add getline.h.
43355         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43356         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43357         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43358         * modules/md2 (EXTRA_DIST): Add md2.h.
43359         * modules/md4 (EXTRA_DIST): Add md4.h.
43360         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43361         * modules/read-file (EXTRA_DIST): Add read-file.h.
43362         * modules/readline (EXTRA_DIST): Add readline.h.
43363         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43364         rijndael-api-fst.h.
43365
43366 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43367
43368         * m4/rijndael.m4 (gl_ARCFOUR):
43369         * m4/arctwo.m4 (gl_ARCTWO):
43370         * m4/check-version.m4 (gl_CHECK_VERSION):
43371         * m4/crc.m4 (gl_CRC):
43372         * m4/des.m4 (gl_DES):
43373         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43374         * m4/gc.m4 (gl_GC):
43375         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43376         * m4/getline.m4 (gl_FUNC_GETLINE):
43377         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43378         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43379         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43380         * m4/md2.m4 (gl_MD2):
43381         * m4/md4.m4 (gl_MD4):
43382         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43383         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43384         * m4/readline.m4 (gl_FUNC_READLINE):
43385         * m4/rijndael.m4 (gl_RIJNDAEL):
43386         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43387         to get the necessary .h files and whatnot.
43388
43389 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43390
43391         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43392         gnulib rather than the other way around.
43393         * config/srclistvars.sh (COREUTILS): Remove.
43394
43395 2006-08-22  Jim Meyering  <jim@meyering.net>
43396
43397         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43398
43399         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43400
43401 2006-08-22  Eric Blake  <ebb9@byu.net>
43402
43403         * modules/regexprops-generic: New file.
43404         * MODULES.html.sh (Support for building documentation): List it.
43405
43406 2006-08-22  Eric Blake  <ebb9@byu.net>
43407
43408         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43409         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43410         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43411         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43412
43413 2006-08-22  Bruno Haible  <bruno@clisp.org>
43414
43415         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43416         and lib_LTLIBRARIES like the other lib_* variables.
43417
43418 2006-08-22  Bruno Haible  <bruno@clisp.org>
43419
43420         * build-aux/x-to-1.in: New file, from GNU gettext.
43421
43422 2006-08-22  Bruno Haible  <bruno@clisp.org>
43423
43424         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43425         <utmpx.h> exists.
43426
43427 2006-08-22  Bruno Haible  <bruno@clisp.org>
43428
43429         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43430         <utmpx.h> exists.
43431
43432 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43433
43434         BeOS portability.
43435         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43436         exist.
43437         Problem reported by Bruno Haible.
43438
43439 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43440
43441         Avoid the need for AC_LIBSOURCES in m4 macros.
43442         * modules/acl (EXTRA_DIST): Add acl.h.
43443         * modules/argmatch (Files): Add m4/argmatch.m4.
43444         (configure.ac): Add gl_ARGMATCH.
43445         (EXTRA_DIST): Renamed from lib_SOURCES, for
43446         consistency with the other modules.  Remove argmatch.c.
43447         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43448         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43449         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43450         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43451         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43452         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43453         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43454         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43455         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43456         * modules/closeout (EXTRA_DIST): Add closeout.h.
43457         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43458         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43459         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43460         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43461         dirname.h; remove basename.c and stripslash.c.
43462         * modules/exclude (EXTRA_DIST): Add exclude.h.
43463         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43464         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43465         * modules/file-type (EXTRA_DIST): Add file-type.h.
43466         * modules/filemode (EXTRA_DIST): Add filemode.h.
43467         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43468         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43469         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43470         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43471         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43472         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43473         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43474         * modules/getdate (EXTRA_DIST): Add getdate.c.
43475         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43476         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43477         * modules/getpass (EXTRA_DIST): Add getpass.h.
43478         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43479         * modules/group-member (EXTRA_DIST): Add group-member.h.
43480         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43481         * modules/hash (EXTRA_DIST): Add hash.h.
43482         * modules/human (EXTRA_DIST): Add human.h.
43483         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43484         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43485         * modules/lchown (EXTRA_DIST): Add lchown.h.
43486         * modules/long-options (EXTRA_DIST): Add long-options.h.
43487         * modules/lstat (EXTRA_DIST): Add lstat.h.
43488         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43489         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43490         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43491         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43492         * modules/memxor (EXTRA_DIST): Add memxor.h.
43493         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43494         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43495         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43496         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43497         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43498         * modules/physmem (EXTRA_DIST): Add physmem.h.
43499         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43500         * modules/posixver (EXTRA_DIST): Add posixver.h.
43501         * modules/quote (EXTRA_DIST): Add quote.h.
43502         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43503         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43504         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43505         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43506         regex_internal.h regexec.c.
43507         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43508         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43509         * modules/same (EXTRA_DIST): Add same.h.
43510         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43511         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43512         * modules/savedir (EXTRA_DIST): Add savedir.h.
43513         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43514         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43515         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43516         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43517         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43518         * modules/strdup (EXTRA_DIST): Add strdup.h.
43519         * modules/strftime (EXTRA_DIST): Add strftime.h.
43520         * modules/strndup (EXTRA_DIST): Add strndup.h.
43521         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43522         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43523         * modules/time_r (EXTRA_DIST): Add time_r.h.
43524         * modules/timespec (EXTRA_DIST): Add timespec.h.
43525         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43526         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43527         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43528         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43529         * modules/userspec (EXTRA_DIST): Add userspec.h.
43530         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43531         * modules/utimens (EXTRA_DIST): Add utimens.h.
43532         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43533         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43534         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43535         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43536         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43537         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43538         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43539         * modules/yesno (EXTRA_DIST): Add yesno.h.
43540
43541 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43542
43543         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43544
43545         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43546         * m4/dev-ino.m4, same-inode.m4: Remove.
43547
43548         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43549         * m4/acl.m4 (AC_FUNC_ACL):
43550         * m4/backupfile.m4 (gl_BACKUPFILE):
43551         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43552         * m4/canon-host.m4 (gl_CANON_HOST):
43553         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43554         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43555         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43556         * m4/cloexec.m4 (gl_CLOEXEC):
43557         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43558         * m4/closeout.m4 (gl_CLOSEOUT):
43559         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43560         * m4/dirname.m4 (gl_DIRNAME):
43561         * m4/exclude.m4 (gl_EXCLUDE):
43562         * m4/exitfail.m4 (gl_EXITFAIL):
43563         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43564         * m4/file-type.m4 (gl_FILE_TYPE):
43565         * m4/filemode.m4 (gl_FILEMODE):
43566         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43567         * m4/fpending.m4 (gl_FUNC_FPENDING):
43568         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43569         * m4/fts.m4 (gl_FUNC_FTS):
43570         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43571         * m4/getdate.m4 (gl_GETDATE):
43572         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43573         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43574         * m4/getpass.m4 (gl_FUNC_GETPASS):
43575         * m4/gettime.m4 (gl_GETTIME):
43576         * m4/getugroups.m4 (gl_GETUGROUPS):
43577         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43578         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43579         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43580         * m4/hash.m4 (gl_HASH):
43581         * m4/idcache.m4 (gl_IDCACHE):
43582         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43583         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43584         * m4/long-options.m4 (gl_LONG_OPTIONS):
43585         * m4/lstat.m4 (gl_FUNC_LSTAT):
43586         * m4/md5.m4 (gl_MD5):
43587         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43588         * m4/memcoll.m4 (gl_MEMCOLL):
43589         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43590         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43591         * m4/memxor.m4 (gl_MEMXOR):
43592         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43593         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43594         * m4/modechange.m4 (gl_MODECHANGE):
43595         * m4/mountlist.m4 (gl_MOUNTLIST):
43596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43597         * m4/openat.m4 (gl_FUNC_OPENAT):
43598         * m4/pathmax.m4 (gl_PATHMAX):
43599         * m4/physmem.m4 (gl_PHYSMEM):
43600         * m4/posixtm.m4 (gl_POSIXTM):
43601         * m4/posixver.m4 (gl_POSIXVER):
43602         * m4/quote.m4 (gl_QUOTE):
43603         * m4/quotearg.m4 (gl_QUOTEARG):
43604         * m4/readtokens.m4 (gl_READTOKENS):
43605         * m4/readutmp.m4 (gl_READUTMP):
43606         * m4/regex.m4 (gl_REGEX):
43607         * m4/safe-read.m4 (gl_SAFE_READ):
43608         * m4/safe-write.m4 (gl_SAFE_WRITE):
43609         * m4/same.m4 (gl_SAME):
43610         * m4/save-cwd.m4 (gl_SAVE_CWD):
43611         * m4/savedir.m4 (gl_SAVEDIR):
43612         * m4/settime.m4 (gl_SETTIME):
43613         * m4/sha1.m4 (gl_SHA1):
43614         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43615         * m4/stat-macros.m4 (gl_STAT_MACROS):
43616         * m4/stat-time.m4 (gl_STAT_TIME):
43617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43618         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43619         * m4/strdup.m4 (gl_FUNC_STRDUP):
43620         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43621         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43622         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43623         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43624         * m4/time_r.m4 (gl_TIME_R):
43625         * m4/timespec.m4 (gl_TIMESPEC):
43626         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43627         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43628         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43629         * m4/userspec.m4 (gl_USERSPEC):
43630         * m4/utimecmp.m4 (gl_UTIMECMP):
43631         * m4/utimens.m4 (gl_UTIMENS):
43632         * m4/xalloc.m4 (gl_XALLOC):
43633         * m4/xgetcwd.m4 (gl_XGETCWD):
43634         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43635         * m4/xreadlink.m4 (gl_XREADLINK):
43636         * m4/xstrtod.m4 (gl_XSTRTOD):
43637         * m4/yesno.m4 (gl_YESNO):
43638         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43639         to get the necessary .h files and whatnot.
43640
43641 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43642             Bruno Haible  <bruno@clisp.org>
43643
43644         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43645         /bin/sh understanding of '!' conditional negation.
43646
43647 2006-08-21  Jim Meyering  <jim@meyering.net>
43648
43649         * modules/openat (Depends-on): Really alphabetize.
43650
43651         * modules/acl (Depends-on): Add error and quote.
43652
43653         * check-module (find_included_lib_files): Add at-func.c to the
43654         ok-to-include-more-than-once white list.
43655
43656         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43657
43658 2006-08-21  Bruno Haible  <bruno@clisp.org>
43659
43660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43661         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43662         Reported by Martin Lambers <marlam@marlam.de>.
43663
43664 2006-08-21  Bruno Haible  <bruno@clisp.org>
43665
43666         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43667         specify an installation location, don't emit a noinst_LIBRARIES or
43668         noinst_LTLIBRARIES assignment.
43669
43670 2006-08-21  Bruno Haible  <bruno@clisp.org>
43671
43672         BeOS portability.
43673         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43674         BeOS has mbrtowc() but no <wctype.h>.
43675
43676 2006-08-21  Bruno Haible  <bruno@clisp.org>
43677
43678         BeOS portability.
43679         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43680         exist.
43681
43682 2006-08-21  Bruno Haible  <bruno@clisp.org>
43683
43684         BeOS portability.
43685         * lib/mbchar.h: Include <wctype.h> only if it exists.
43686
43687 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43688
43689         Remove files that are no longer needed by their respective modules.
43690         * m4/obstack.m4: Remove.
43691         * m4/strerror_r.m4: Remove.
43692         * m4/uint32_t.m4: Remove.
43693         * m4/uintptr_t.m4: Remove.
43694         * m4/ullong_max.m4: Remove.
43695         * m4/xstrtoimax.m4: Remove.
43696         * m4/xstrtoumax.m4: Remove.
43697
43698         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43699         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43700         dependencies now capture this.
43701
43702         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43703         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43704         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43705         * m4/human.m4 (gl_HUMAN): Likewise.
43706         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43707         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43708
43709         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43710
43711         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43712         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43713         stdint.
43714         * m4/human.m4 (gl_HUMAN): Likewise.
43715         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43716         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43717         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43718         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43719         * m4/xstrtol (gl_XSTRTOL): Likewise.
43720
43721         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43722         AC_TYPE_LONG_LONG_INT.
43723         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43724         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43725         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43726         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43727
43728         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43729         on stdbool.
43730
43731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43732         (gl_PREREQ_XSTRTOUL): Remove.
43733
43734         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43735
43736         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43737         mode.
43738
43739 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43740
43741         Add and change modules to make it easier for coreutils to use
43742         gnulib-tool.
43743         * modules/backupfile (Files): Remove m4/d-ino.m4.
43744         (Depends-on): Add d-ino.
43745         * modules/cycle-check (Depends-on): Add stdint.
43746         (lib_SOURCES): Add cycle-check.h.
43747         * modules/d-ino: New module.
43748         * modules/d-type: New module.
43749         * modules/error (Files): Remove m4/strerror_r.m4.
43750         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43751         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43752         m4/inttypes_h.m4, m4/uintmax_t.m4.
43753         (Depends-on): Add stdint.
43754         (lib_SOURCES): Add fsusage.h.
43755         * modules/getcwd (Files): Remove d-ino.m4.
43756         (Depends-on): Add d-ino.
43757         * modules/getndelim2 (Depends-on): Add stdint.
43758         * modules/glob (Files): Remove m4/d-type.m4.
43759         (Depends-on): Add d-type.
43760         * modules/host-os: New module.
43761         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43762         m4/inttypes_h.m4, m4/uintmax_t.m4.
43763         * Depends-on: Add stdint.
43764         (lib_SOURCES): Add human.h.
43765         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43766         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43767         m4/uintmax_t.m4, m4/ulonglong.m4.
43768         (Depends-on): Add stdint.
43769         (EXTRA_DIST): Add inttostr.h.
43770         * modules/lchmod: New module.
43771         * modules/link-follow: New module.
43772         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43773         (Depends-on): Add lchmod.
43774         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43775         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43776         (Depends-on): Add stdint.
43777         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43778         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43779         (Depends-on): Add stdint.
43780         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43781         * modules/perl: New module.
43782         * modules/regex (Depends-on): Add stdint.
43783         * modules/rmdir-errno: New module.
43784         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43785         m4/intmax_t.m4.
43786         (Depends-on): Add stdint.
43787         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43788         m4/uintmax_t.m4.
43789         (Depends-on): Add stdint.
43790         * modules/unlink-busy: New module.
43791         * modules/utimecmp (Depends-on): Add stdint.
43792         * modules/uptime: New module.
43793         * modules/winsz-ioctl: New module.
43794         * modules/winsz-termios: New module.
43795         * modules/xnanosleep (Depends-on): Add nanosleep.
43796         * modules/ullong_max: Remove.
43797         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43798         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43799         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43800         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43801         (Depends-on): Add inttypes.
43802         (lib_SOURCES): Add xstrtol.h.
43803         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43804         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43805         * MODULES.html.sh: Move 'assert' into the assert section.
43806         Move 'dummy' into the linking section.
43807         Remove ullong_max.
43808         Add section for compatibility checks for POSIX:2001 functions,
43809         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43810         winsz-ioctl, and winsz-termios into it.
43811         Add lchmod.
43812         Add top-level Misc section and put host-os, perl, and uptime
43813         into it.
43814
43815 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43816
43817         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43818         now assume the stdint module.  Do not include inttypes.h.
43819         * lib/fsusage.h: Likewise.
43820         * lib/getndelim2.c: Likewise.
43821         * lib/human.h: Likewise.
43822         * lib/inttostr.h: Likewise.
43823         * lib/obstack.c: Likewise.
43824         * lib/regex_internal.h: Likewise.
43825         * lib/tempname.c: Likewise.
43826         * lib/utimecmp.c: Likewise.
43827         * lib/xstrtol.h: Likewise.
43828
43829         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43830
43831         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43832         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43833         * lib/xtime.h: Likewise.
43834
43835 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43836
43837         * modules/openat (Files): Add lib/fchmodat.c.
43838         Fixes problem reported by Jay Youngman.
43839
43840 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43841
43842         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43843         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43844
43845 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43846             Bruno Haible  <bruno@clisp.org>
43847
43848         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43849         and is a script that invokes bison. Tighten the code. Add comments.
43850
43851 2006-08-18  Jim Meyering  <jim@meyering.net>
43852
43853         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43854         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43855         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43856         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43857
43858 2006-08-18  Bruno Haible  <bruno@clisp.org>
43859
43860         * modules/bison-i18n: New file.
43861         * MODULES.html.sh (Internationalization functions): Add it.
43862
43863 2006-08-18  Bruno Haible  <bruno@clisp.org>
43864
43865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43866         sys/statvfs.h. When getmntinfo was found, check its declaration and
43867         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43868
43869 2006-08-18  Bruno Haible  <bruno@clisp.org>
43870
43871         * m4/bison-i18n.m4: New file, from bison.
43872
43873 2006-08-18  Bruno Haible  <bruno@clisp.org>
43874
43875         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43876         (ME_DUMMY): Treat "kernfs" as a dummy.
43877         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43878
43879 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43880
43881         Update from coreutils.
43882
43883         2006-08-15  Jim Meyering  <jim@meyering.net>
43884
43885         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43886
43887         2006-01-17  Jim Meyering  <jim@meyering.net>
43888
43889         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43890
43891         2006-01-11  Jim Meyering  <jim@meyering.net>
43892
43893         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43894         Check for the lchmod function.
43895
43896 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43897
43898         Update from coreutils.
43899
43900         * lib/__fpending.h: Add copyright notice.
43901         * lib/fprintftime.h: Likewise.
43902         * lib/savedir.c: Use (C) in copyright notice.
43903         * lib/savedir.h: Likewise.
43904
43905         2006-08-15  Jim Meyering  <jim@meyering.net>
43906
43907         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43908         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43909         in support of the EXPECTED_ERRNO macro.
43910         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43911         definitions.  Instead, define the appropriate symbols and include
43912         "at-func.c".
43913         * lib/mkdirat.c (mkdirat): Likewise.
43914         * lib/fchmodat.c (fchmodat): Likewise.
43915         (ENOSYS): Remove definition.
43916         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43917         it.  Don't include "unistd--.h" -- it wasn't ever used.
43918
43919         2006-01-17  Jim Meyering  <jim@meyering.net>
43920
43921         Rewrite fts.c not to change the current working directory,
43922         by using openat, fstatat, fdopendir, etc..
43923
43924         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43925         (HAVE_OPENAT_SUPPORT): Define.
43926         [_LIBC] (fchdir): Don't undef or define; no longer used.
43927         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43928         Now, this `function' always succeeds, and consumes its file descriptor
43929         parameter -- so callers must not close such FDs.  Update callers.
43930         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43931         (diropen): Add parameter, SP.  Adjust all callers.
43932         Implement using diropen_fd, rather than open.
43933         (fts_open): Initialize new member, fts_cwd_fd.
43934         Remove fts_rft-setting code.
43935         (fts_close): Close fts_cwd_fd, if necessary.
43936         (__opendir2): Define in terms of opendir or opendirat,
43937         depending on whether the FST_NOCHDIR flag is set.
43938         (fts_build): Since fts_safe_changedir consumes its FD, and since
43939         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43940         and close the dup'd file descriptor upon failure.
43941         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43942         (fts_safe_changedir): Tweak semantics to reflect that this function
43943         now calls cwd_advance_fd and hence consumes its FD argument.
43944         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43945         [struct FTS] (fts_rft): Remove now-unused member.
43946         [struct FTS] (fts_cycle.state): Improve comment.
43947
43948         * lib/openat.c (openat_needs_fchdir): New function.
43949         * lib/openat.h (openat_needs_fchdir): Declare it.
43950
43951 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43952
43953         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43954         Problem and fix reported by Pádraig Brady in
43955         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43956
43957 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43958
43959         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43960
43961 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43962
43963         * lib/memcoll.c (memcoll): Optimize for the common case where the
43964         arguments are bytewise equal.
43965
43966 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43967
43968         * doc/regexprops-generic.texi: Add a copyright notice.
43969
43970 2006-08-15  Bruno Haible  <bruno@clisp.org>
43971
43972         * modules/tmpdir (License): Change to LGPL.
43973
43974 2006-08-15  Bruno Haible  <bruno@clisp.org>
43975
43976         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43977         module.
43978
43979 2006-08-14  Simon Josefsson  <jas@extundo.com>
43980
43981         * config/srclist.txt: Add gnupload.
43982
43983 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43984
43985         Change copyright notice from LGPL 2 to GPL 2, since that's the
43986         standard form used in the gnulib repository.
43987         * tests/test-lock.c: Likewise.
43988         * tests/test-stdint.c: Likewise.
43989         * tests/test-tls.c: Likewise.
43990
43991         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43992         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43993         Add copyright notice.
43994
43995         * check-module: Add copyright notice.  Output a copyright
43996         notice if "--version" is specified.
43997         * modules/COPYING: New file.
43998         * tests/test-getaddrinfo.c: Add copyright notice.
43999         * tests/test-verify.c: Likewise.
44000
44001 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         Change copyright notice from LGPL 2 to GPL 2, since that's the
44004         standard form used in the gnulib repository.
44005         * lib/lock.c: LGPL -> GPL.
44006         * lib/lock.h: Likewise.
44007         * lib/strnlen1.c: Likewise.
44008         * lib/strnlen1.h: Likewise.
44009         * lib/tls.c: Likewise.
44010         * lib/tls.h: Likewise.
44011         * lib/tmpdir.c: Likewise.
44012
44013         * lib/TODO: Remove; this belongs only in coreutils.
44014
44015 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44016
44017         Add copyright notices to long-enough files that lack them, since
44018         otherwise the files aren't clearly free.  Use the same notice that
44019         getdate.texi already uses.
44020         * doc/alloca-opt.texi: Add copyright notice.
44021         * doc/alloca.texi: Likewise.
44022         * doc/ctime.texi: Likewise.
44023         * doc/functions.texi: Likewise.
44024         * doc/gcd.texi: Likewise.
44025         * doc/gnulib-tool.texi: Likewise.
44026         * doc/inet_ntoa.texi: Likewise.
44027         * doc/visibility.texi: Likewise.
44028
44029         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44030         * doc/quote.texi: Add copyright notice.
44031
44032         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44033         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44034         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44035         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44036         is now obsolete, and give a pointer to the Sun list.
44037         Add copyright notice.
44038
44039 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         * config/srclistvars.sh: Add copyright notice.
44042
44043 2006-08-14  Eric Blake  <ebb9@byu.net>
44044
44045         Import the following change from libc:
44046
44047         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44048
44049         Upstream bug 2997.
44050         * lib/misc/error.c: Add space between program name and message if file
44051         name is missing.
44052
44053 2006-08-12  Karl Berry  <karl@gnu.org>
44054
44055         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44056         remove, these originate in gnulib now.
44057
44058 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44059
44060         * doc/Makefile (standards.info standards.html standards.dvi):
44061         Also depend on make-stds.texi.
44062
44063 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44064
44065         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44066         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44067
44068         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44069         in wchar_t.  Problem reported by Eric Blake.
44070
44071         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44072         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44073         Also, help the compiler to keep LEN in a register.
44074
44075 2006-08-11  Eric Blake  <ebb9@byu.net>
44076
44077         * users.txt: Sort.  Add tar.
44078
44079 2006-08-11  Bruno Haible  <bruno@clisp.org>
44080
44081         * users.txt: New file.
44082
44083 2006-08-11  Bruno Haible  <bruno@clisp.org>
44084
44085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44086         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44087
44088 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44089
44090         * modules/snprintf (Depends-on): Remove minmax.
44091         (Maintainer): Add self and Bruno.
44092
44093 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44094
44095         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44096         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44097         (EOVERFLOW): Define if the system does not.
44098         Do not include "minmax.h"; it wasn't used.
44099         (snprintf): Don't assume size_t promotes to an unsigned type.
44100         Fix bug when generated string was too long for the buffer: the
44101         buffer's contents are supposed to be the initial prefix of the
44102         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44103         exceeds INT_MAX; do the check ourselves.
44104
44105         Import the following changes from libc:
44106
44107         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44108
44109         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44110         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44111         set wc to the byte which couldn't be converted.
44112         (re_string_reconstruct): Don't clear valid_raw_len before calling
44113         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44114         tip_context using re_string_context_at.
44115
44116         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44117
44118         * lib/posix/regex.h: g++ still cannot handled [restrict].
44119
44120         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44121
44122         * lib/posix/regex.h: Remove special handling for VMS.
44123
44124 2006-08-10  Jim Meyering  <jim@meyering.net>
44125
44126         * modules/same-inode: New module.
44127         * modules/dev-ino: New module.
44128         * modules/cycle-check: Depend on these modules, rather than simply
44129         including their .h files.
44130         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44131         required via m4/cycle-check.m4.
44132         * modules/same: Depend on new same-inode module, rather than
44133         including same-inode.h.
44134         * modules/chdir-safer: New file.
44135
44136         * modules/chown (Depends-on): Add stat-macros.
44137
44138 2006-08-10  Jim Meyering  <jim@meyering.net>
44139
44140         * m4/cycle-check.m4: New file.
44141         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44142         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44143
44144 2006-08-10  Eric Blake  <ebb9@byu.net>
44145
44146         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44147         in from original proposal.
44148
44149 2006-08-10  Eric Blake  <ebb9@byu.net>
44150         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44151
44152         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44153         namespace.
44154
44155 2006-08-10  Bruno Haible  <bruno@clisp.org>
44156
44157         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44158         as well.
44159
44160 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44161
44162         Sync from coreutils.
44163
44164         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44165
44166         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44167         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44168
44169 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         * modules/restrict: Remove; no longer needed now that we assume
44172         Autoconf 2.59 or later.
44173         * MODULES.html.sh: Remove 'restrict'.
44174         * modules/argp (Depends-on): Remove 'restrict'.
44175         * modules/base64 (Depends-on): Likewise.
44176         * modules/gc (Depends-on): Likewise.
44177         * modules/getaddrinfo (Depends-on): Likewise.
44178         * modules/glob (Depends-on): Likewise.
44179         * modules/inet_ntop (Depends-on): Likewise.
44180         * modules/inet_pton (Depends-on): Likewise.
44181         * modules/memxor (Depends-on): Likewise.
44182         * modules/regex (Depends-on): Likewise.
44183         * modules/strtok_r (Depends-on): Likewise.
44184         * modules/time_r (Depends-on): Likewise.
44185
44186 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44187
44188         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44189         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44190         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44191         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44192         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44193         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44194         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44195         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44196
44197         Merge from coreutils.
44198         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44199         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44200         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44201         * m4/time_r.m4 (gl_TIME_R): Likewise.
44202
44203 2006-08-09  Karl Berry  <karl@gnu.org>
44204
44205         * config/srclist.txt: no more gettext-tools, per Bruno.
44206
44207 2006-08-08  Eric Blake  <ebb9@byu.net>
44208
44209         * modules/verror: New module.
44210         * MODULES.html.sh: Document it.
44211
44212 2006-08-08  Eric Blake  <ebb9@byu.net>
44213
44214         * lib/verror.h, lib/verror.c: New files.
44215
44216 2006-08-08  Eric Blake  <ebb9@byu.net>
44217
44218         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44219         verror_at_line output complies with GNU Coding Standards even when
44220         file is NULL.
44221
44222 2006-08-07  Bruno Haible  <bruno@clisp.org>
44223
44224         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44225         versions of AIX.
44226         Reported by Ralf Wildenhues.
44227
44228 2006-08-07  Bruno Haible  <bruno@clisp.org>
44229
44230         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44231         in an AC_DEFUN. Needed so that the autoconf snippets can use
44232         AC_REQUIRE.
44233
44234 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44235
44236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44237         Initialize pkgdata_DATA.
44238         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44239         overriding it.
44240
44241 2006-08-06  Eric Blake  <ebb9@byu.net>
44242
44243         * lib/error.h: Fold in some upstream changes from glibc.
44244         * lib/error.c: Likewise.
44245
44246 2006-08-04  Bruno Haible  <bruno@clisp.org>
44247
44248         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44249         Make the mostlyclean-local rule depend on mostlyclean-generic.
44250         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44251
44252 2006-07-31  Bruno Haible  <bruno@clisp.org>
44253
44254         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44255         <stdlib.h>, <string.h>.
44256
44257 2006-07-30  Bruno Haible  <bruno@clisp.org>
44258
44259         * modules/readlink (License): Change to LGPL.
44260
44261 2006-07-30  Bruno Haible  <bruno@clisp.org>
44262
44263         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44264         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44265         set PKGDATADIR to point to it.
44266
44267 2006-07-30  Bruno Haible  <bruno@clisp.org>
44268
44269         * modules/csharpexec (configure.ac): Comment out macro invocation.
44270         * modules/javaexec (configure.ac): Likewise.
44271         * modules/javacomp-script (configure.ac): Likewise.
44272
44273         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44274
44275 2006-07-30  Bruno Haible  <bruno@clisp.org>
44276
44277         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44278         linked-list.
44279
44280 2006-07-30  Bruno Haible  <bruno@clisp.org>
44281
44282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44283
44284 2006-07-30  Bruno Haible  <bruno@clisp.org>
44285
44286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44287         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44288         get removed.
44289
44290 2006-07-29  Bruno Haible  <bruno@clisp.org>
44291
44292         Make it possible for gnulib-tool to work with locally modified or
44293         augmented gnulib repositories.
44294         * gnulib-tool (func_usage): Document --local-dir option.
44295         (local_gnulib_dir): New variable.
44296         Handle --local-dir option.
44297         (func_lookup_file): New function.
44298         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44299         (func_get_description, func_get_filelist, func_get_description,
44300         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44301         func_get_automake_snippet, func_get_include_directive,
44302         func_get_license, func_get_maintainer): Use func_lookup_file.
44303         (func_import, func_create_testdir): Use func_lookup_file.
44304
44305 2006-07-29  Bruno Haible  <bruno@clisp.org>
44306
44307         * modules/setenv (Depends-on): Add unistd.
44308
44309 2006-07-29  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44312
44313 2006-07-29  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44316
44317 2006-07-29  Bruno Haible  <bruno@clisp.org>
44318
44319         * gnulib-tool (import, update): If there is no Makefile.am, look at
44320         aclocal.m4, instead of bailing out.
44321
44322 2006-07-29  Bruno Haible  <bruno@clisp.org>
44323
44324         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44325         Categorize the options by when they are useful.
44326
44327 2006-07-29  Bruno Haible  <bruno@clisp.org>
44328
44329         * gnulib-tool (func_usage): Document option --no-libtool.
44330         Handle option --no-libtool.
44331         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44332         for changed semantics of $libtool variable.
44333         (func_import): Likewise. If libtool is not used, show this through
44334         an option --no-libtool.
44335         (func_create_testdir): Update.
44336
44337 2006-07-29  Bruno Haible  <bruno@clisp.org>
44338
44339         * gnulib-tool (func_import): Extend error message about missing
44340         --doc-base.
44341
44342 2006-07-29  Bruno Haible  <bruno@clisp.org>
44343
44344         * gnulib-tool (func_import): Don't create the $docbase directory if
44345         there is no file to store there.
44346
44347 2006-07-29  Bruno Haible  <bruno@clisp.org>
44348
44349         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44350         relevant, look for configure.ac there, not in the current directory.
44351         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44352
44353 2006-07-29  Bruno Haible  <bruno@clisp.org>
44354
44355         * gnulib-tool (SORT): New variable.
44356         (func_usage): Undocument --assume-autoconf option.
44357         Remove --assume-autoconf option handling.
44358         (autoconf_minversion): Determine from the contents of configure.ac.
44359         (func_import): Remove autoconf_minversion handling.
44360         Suggested by Eric Blake.
44361
44362 2006-07-29  Bruno Haible  <bruno@clisp.org>
44363
44364         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44365
44366 2006-07-29  Bruno Haible  <bruno@clisp.org>
44367
44368         * config/srclist.txt (*setenv.[ch]): Remove rules.
44369
44370 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44371
44372         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44373
44374 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44375
44376         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44377         arpa/inet.h.
44378
44379 2006-07-28  Simon Josefsson  <jas@extundo.com>
44380
44381         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44382         * modules/inet_pton (Depends-on): Likewise.
44383
44384 2006-07-28  Simon Josefsson  <jas@extundo.com>
44385
44386         * m4/netinet_in_h.m4: New file.
44387
44388 2006-07-28  Simon Josefsson  <jas@extundo.com>
44389
44390         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44391         #include's.
44392
44393 2006-07-28  Simon Josefsson  <jas@extundo.com>
44394
44395         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44396         #include's.
44397
44398 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44399
44400         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44401         setgid on directories only if they set these bits.
44402         * lib/modechange.h: Remove obsolete comment about masks.
44403
44404 2006-07-28  Eric Blake  <ebb9@byu.net>
44405
44406         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44407         macro expansion.
44408
44409 2006-07-28  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44412
44413 2006-07-28  Bruno Haible  <bruno@clisp.org>
44414
44415         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44416
44417 2006-07-28  Bruno Haible  <bruno@clisp.org>
44418
44419         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44420         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44421         Define fallbacks.
44422         Avoids link error on FreeBSD 4.x.
44423         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44424
44425         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44426         encoding.
44427         * lib/mbswidth.c (iswcntrl): Likewise.
44428
44429 2006-07-27  Bruno Haible  <bruno@clisp.org>
44430
44431         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44432         test.
44433
44434 2006-07-27  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44437         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44438         defined.
44439
44440 2006-07-26  Eric Blake  <ebb9@byu.net>
44441
44442         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44443
44444 2006-07-26  Eric Blake  <ebb9@byu.net>
44445
44446         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44447         like mingw that lack mkstemp.
44448         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44449         avoid compilation warning on mingw.
44450
44451 2006-07-26  Bruno Haible  <bruno@clisp.org>
44452
44453         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44454         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44455         INT_FAST*_MIN, INTPTR_MIN.
44456
44457 2006-07-25  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/version-etc (Depends-on): Add stdarg.
44460
44461 2006-07-25  Bruno Haible  <bruno@clisp.org>
44462
44463         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44464         complex commands.
44465
44466 2006-07-25  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44469         defined in <stdarg.h> or config.h.
44470
44471 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44472
44473         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44474         (gl_STDIO_SAFER): Remove.
44475
44476 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         * MODULES.html.sh (File stream based Input/Output):
44479         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44480         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44481         * modules/fopen-safer, modules/tmpfile-safer: New files.
44482         * modules/stdio-safer: Remove.
44483
44484 2006-07-24  Bruno Haible  <bruno@clisp.org>
44485
44486         * modules/tmpdir: New file.
44487         * MODULES.html.sh (File system functions): Add it.
44488
44489 2006-07-24  Bruno Haible  <bruno@clisp.org>
44490
44491         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44492         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44493
44494 2006-07-24  Bruno Haible  <bruno@clisp.org>
44495
44496         * modules/clean-temp: New file.
44497
44498 2006-07-24  Bruno Haible  <bruno@clisp.org>
44499
44500         * m4/tmpdir.m4: New file, from GNU gettext.
44501
44502 2006-07-24  Bruno Haible  <bruno@clisp.org>
44503
44504         * lib/tmpdir.h: New file, from GNU gettext.
44505         * lib/tmpdir.c: New file, from GNU gettext.
44506
44507 2006-07-24  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/clean-temp.h: New file, from GNU gettext.
44510         * lib/clean-temp.c: New file, from GNU gettext.
44511
44512 2006-07-23  Eric Blake  <ebb9@byu.net>
44513
44514         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44515         (Depends-on): Add binary-io.
44516
44517 2006-07-23  Eric Blake  <ebb9@byu.net>
44518
44519         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44520
44521 2006-07-23  Eric Blake  <ebb9@byu.net>
44522
44523         * lib/tmpfile-safer.c: New file.
44524         * lib/stdio-safer.h (fopen_safer): Add prototype.
44525         * lib/stdio--.h (tmpfile): Make safer.
44526
44527 2006-07-23  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44530         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44531         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44532         gl_linked_remove_at): Use it.
44533
44534 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44535         and Simon Josefsson <jas@extundo.com>
44536
44537         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44538
44539         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44540
44541 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44542
44543         * modules/close-stream: New file.
44544         * modules/closeout (Description): Make it clear that it exits
44545         with a diagnostic on error.
44546         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44547         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44548
44549 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44550
44551         * m4/close-stream.m4: New file.
44552
44553 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44554
44555         * lib/close-stream.c, lib/close-stream.h: New files.
44556
44557 2006-07-22  Bruno Haible  <bruno@clisp.org>
44558
44559         Merge from GNU gettext 0.15.
44560
44561         2006-05-01  Bruno Haible  <bruno@clisp.org>
44562
44563                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44564
44565         2006-07-22  Bruno Haible  <bruno@clisp.org>
44566
44567                 * modules/javaversion: New file.
44568                 * MODULES.html.sh (Java): Add javaversion.
44569
44570         2006-03-12  Bruno Haible  <bruno@clisp.org>
44571
44572                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44573
44574         2005-12-04  Bruno Haible  <bruno@clisp.org>
44575
44576                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44577                 (untested).
44578
44579         2006-06-21  Bruno Haible  <bruno@clisp.org>
44580
44581                 Avoid warnings from recent versions of mcs.
44582                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44583                 -o, -L, -r any more. Use options documented since mcs-1.0
44584                 instead. Similarly for -g.
44585
44586         2005-12-04  Bruno Haible  <bruno@clisp.org>
44587
44588                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44589                 .resources, not .resource.
44590
44591         2005-07-09  Bruno Haible  <bruno@clisp.org>
44592
44593                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44594                 add a .dll suffix.
44595                 Reported by Mark Junker <mjscod@gmx.de>.
44596
44597         2006-07-22  Bruno Haible  <bruno@clisp.org>
44598
44599                 * modules/gettext: Upgrade to gettext-0.15.
44600                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44601                 m4/visibility.m4.
44602                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44603
44604 2006-07-22  Bruno Haible  <bruno@clisp.org>
44605
44606         Merge from GNU gettext 0.15.
44607
44608         2006-03-25  Bruno Haible  <bruno@clisp.org>
44609
44610                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44611
44612         2006-07-21  Bruno Haible  <bruno@clisp.org>
44613
44614                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44615                 "1.1".
44616
44617         2006-05-09  Bruno Haible  <bruno@clisp.org>
44618
44619                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44620                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44621                 for the conftestver execution.
44622
44623         2006-05-01  Bruno Haible  <bruno@clisp.org>
44624
44625                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44626                 optional target-version argument. Verify that the compiler
44627                 groks source of the specified source-version, or add -source
44628                 option as necessary. Verify that the compiler produces
44629                 bytecode in the specified target-version, or add -target and
44630                 -source options as necessary. Make the result of the test
44631                 available as variable CONF_JAVAC. Also log error output in
44632                 config.log.
44633
44634         2006-03-11  Bruno Haible  <bruno@clisp.org>
44635
44636                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44637
44638         2006-05-09  Bruno Haible  <bruno@clisp.org>
44639
44640                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44641                 CLASSPATH_SEPARATOR to a semicolon.
44642
44643         2006-03-12  Bruno Haible  <bruno@clisp.org>
44644
44645                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44646                 available as variable CONF_JAVA, for subsequent autoconf
44647                 tests. Also log error output in config.log.
44648
44649         2006-07-19  Bruno Haible  <bruno@clisp.org>
44650
44651                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44652                 that getline works on glibc2 systems. Needed to avoid trouble
44653                 in relocatable.c.
44654                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44655
44656         2005-12-04  Bruno Haible  <bruno@clisp.org>
44657
44658                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44659                 launcher (untested).
44660
44661         2005-12-04  Bruno Haible  <bruno@clisp.org>
44662
44663                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44664
44665         2006-07-22  Bruno Haible  <bruno@clisp.org>
44666
44667                 * gettext.m4: Update from GNU gettext-0.15.
44668                 * nls.m4: Likewise.
44669                 * po.m4: Likewise.
44670                 * inttypes-pri.m4: Likewise.
44671                 * inttypes-h.m4: Renamed from inttypes.m4.
44672                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44673
44674 2006-07-22  Bruno Haible  <bruno@clisp.org>
44675
44676         Merge from GNU gettext 0.15.
44677
44678         2005-07-05  Bruno Haible  <bruno@clisp.org>
44679
44680                 * printf-args.c (printf_fetchargs): Work around broken
44681                 definition of wint_t on mingw.
44682
44683         2005-02-12  Bruno Haible  <bruno@clisp.org>
44684
44685                 * xallocsa.h: Add extern "C" for C++.
44686
44687         2006-05-17  Bruno Haible  <bruno@clisp.org>
44688
44689                 Cygwin portability.
44690                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44691
44692         2006-04-30  Bruno Haible  <bruno@clisp.org>
44693
44694                 * progreloc.c: Include <mach-o/dyld.h> if available.
44695                 (find_executable): Use _NSGetExecutablePath when possible.
44696
44697         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44698
44699                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44700                 function.
44701
44702         2005-12-29  Bruno Haible  <bruno@clisp.org>
44703
44704                 * progreloc.c (set_program_name_and_installdir): Fix
44705                 compilation error.
44706
44707         2005-12-04  Bruno Haible  <bruno@clisp.org>
44708
44709                 Cygwin portability.
44710                 * progreloc.c: Include <windows.h> also on Cygwin.
44711                 (find_executable): Add support for Cygwin.
44712                 (set_program_name_and_installdir): Handle also platforms with
44713                 nonempty EXEEXT.
44714
44715         2006-07-11  Bruno Haible  <bruno@clisp.org>
44716
44717                 * javacomp.c: Fix a comment.
44718                 Reported by Jim Meyering.
44719
44720         2006-04-30  Bruno Haible  <bruno@clisp.org>
44721
44722                 * javacomp.h (compile_java_class): Add source_version,
44723                 target_version arguments.
44724                 * javacomp.c: Rewritten to choose only a compiler that
44725                 respects the specified source_version and target_version.
44726
44727         2006-06-27  Bruno Haible  <bruno@clisp.org>
44728
44729                 Assume correct S_ISDIR macro.
44730                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44731
44732         2006-07-22  Bruno Haible  <bruno@clisp.org>
44733
44734                 * javaversion.h: New file, from GNU gettext.
44735                 * javaversion.c: New file, from GNU gettext.
44736                 * javaversion.java: New file, from GNU gettext.
44737                 * javaversion.class: New file, from GNU gettext.
44738
44739         2006-05-17  Bruno Haible  <bruno@clisp.org>
44740
44741                 Cygwin portability.
44742                 * javaexec.c (execute_java_class): Test for jview program
44743                 also on Cygwin.
44744
44745         2006-04-09  Bruno Haible  <bruno@clisp.org>
44746
44747                 * fatal-signal.c: Don't include string.h.
44748                 (at_fatal_signal): Use a copying loop instead of memcpy.
44749
44750         2005-12-04  Bruno Haible  <bruno@clisp.org>
44751
44752                 * csharpexec.c: Add support for 'clix' launcher (untested).
44753                 (execute_csharp_using_sscli): New function.
44754                 (execute_csharp_program): Call it.
44755
44756         2006-06-21  Bruno Haible  <bruno@clisp.org>
44757
44758                 Avoid warnings from recent versions of mcs.
44759                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44760                 -o, -L, -r any more. Use options documented since mcs-1.0
44761                 instead. Similarly for -g.
44762
44763         2005-07-09  Bruno Haible  <bruno@clisp.org>
44764
44765                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44766                 add a .dll suffix.
44767                 Reported by Mark Junker <mjscod@gmx.de>.
44768
44769         2006-06-17  Bruno Haible  <bruno@clisp.org>
44770
44771                 * config.charset: Update for NetBSD 3.0.
44772
44773         2006-05-17  Bruno Haible  <bruno@clisp.org>
44774
44775                 Cygwin portability.
44776                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44777
44778         2006-05-16  Bruno Haible  <bruno@clisp.org>
44779
44780                 * localcharset.c [CYGWIN]: Include <windows.h>.
44781                 (get_charset_aliases): For Cygwin, return the same CPxxx
44782                 aliases list as under WIN32.
44783                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44784                 the environment variables. Fall back to GetACP().
44785
44786         2006-04-05  Bruno Haible  <bruno@clisp.org>
44787
44788                 * config.charset: Update Juan Manuel Guerrero's address.
44789
44790         2005-02-12  Bruno Haible  <bruno@clisp.org>
44791
44792                 * allocsa.h: Add extern "C" for C++.
44793
44794         2005-02-10  Bruno Haible  <bruno@clisp.org>
44795
44796                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44797                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44798
44799         2006-07-22  Bruno Haible  <bruno@clisp.org>
44800
44801                 * gettext.h: Update to GNU gettext-0.15.
44802
44803 2006-07-22  Bruno Haible  <bruno@clisp.org>
44804
44805         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44806         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44807         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44808
44809 2006-07-21  Eric Blake  <ebb9@byu.net>
44810
44811         * modules/stdlib-safer: New file.
44812         * MODULES.html.sh (File stream based Input/Output): Add
44813         stdlib-safer.
44814
44815 2006-07-21  Eric Blake  <ebb9@byu.net>
44816
44817         * lib/stdlib-safer.h: New file from coreutils, required by
44818         stdlib--.h.
44819
44820 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44821
44822         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44823
44824 2006-07-20  Bruno Haible  <bruno@clisp.org>
44825
44826         * gnulib-tool: Recognize new option --assume-autoconf.
44827         (autoconf_minversion): New variable.
44828         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44829
44830 2006-07-20  Bruno Haible  <bruno@clisp.org>
44831
44832         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44833
44834 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44835
44836         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44837         Reindent and repaginate.
44838
44839 2006-07-19  Derek Price  <derek@ximbiot.com>
44840
44841         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44842         Correct grammar.
44843
44844 2006-07-17  Bruno Haible  <bruno@clisp.org>
44845
44846         * modules/list: New file.
44847         * modules/array-list: New file.
44848         * modules/carray-list, modules/carray-list-tests: New files.
44849         * modules/linked-list, modules/linked-list-tests: New files.
44850         * modules/avltree-list, modules/avltree-list-tests: New files.
44851         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44852         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44853         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44854         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44855         * modules/oset: New file.
44856         * modules/array-oset: New file.
44857         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44858         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44859         * tests/test-carray_list.c: New file.
44860         * tests/test-linked_list.c: New file.
44861         * tests/test-avltree_list.c: New file.
44862         * tests/test-rbtree_list.c: New file.
44863         * tests/test-linkedhash_list.c: New file.
44864         * tests/test-avltreehash_list.c: New file.
44865         * tests/test-rbtreehash_list.c: New file.
44866         * tests/test-avltree_oset.c: New file.
44867         * tests/test-rbtree_oset.c: New file.
44868         * MODULES.html.sh (Container data structures): New section.
44869
44870 2006-07-17  Bruno Haible  <bruno@clisp.org>
44871
44872         * m4/gl_list.m4: New file.
44873
44874 2006-07-17  Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/gl_list.h: New file.
44877         * lib/gl_list.c: New file.
44878         * lib/gl_array_list.h: New file.
44879         * lib/gl_array_list.c: New file.
44880         * lib/gl_carray_list.h: New file.
44881         * lib/gl_carray_list.c: New file.
44882         * lib/gl_linked_list.h: New file.
44883         * lib/gl_linked_list.c: New file.
44884         * lib/gl_anylinked_list1.h: New file.
44885         * lib/gl_anylinked_list2.h: New file.
44886         * lib/gl_avltree_list.h: New file.
44887         * lib/gl_avltree_list.c: New file.
44888         * lib/gl_anyavltree_list1.h: New file.
44889         * lib/gl_anyavltree_list2.h: New file.
44890         * lib/gl_rbtree_list.h: New file.
44891         * lib/gl_rbtree_list.c: New file.
44892         * lib/gl_anyrbtree_list1.h: New file.
44893         * lib/gl_anyrbtree_list2.h: New file.
44894         * lib/gl_anytree_list1.h: New file.
44895         * lib/gl_anytree_list2.h: New file.
44896         * lib/gl_linkedhash_list.h: New file.
44897         * lib/gl_linkedhash_list.c: New file.
44898         * lib/gl_anyhash_list1.h: New file.
44899         * lib/gl_anyhash_list2.h: New file.
44900         * lib/gl_avltreehash_list.h: New file.
44901         * lib/gl_avltreehash_list.c: New file.
44902         * lib/gl_rbtreehash_list.h: New file.
44903         * lib/gl_rbtreehash_list.c: New file.
44904         * lib/gl_anytreehash_list1.h: New file.
44905         * lib/gl_anytreehash_list2.h: New file.
44906
44907         * lib/gl_oset.h: New file.
44908         * lib/gl_oset.c: New file.
44909         * lib/gl_array_oset.h: New file.
44910         * lib/gl_array_oset.c: New file.
44911         * lib/gl_avltree_oset.h: New file.
44912         * lib/gl_avltree_oset.c: New file.
44913         * lib/gl_rbtree_oset.h: New file.
44914         * lib/gl_rbtree_oset.c: New file.
44915         * lib/gl_anytree_oset.h: New file.
44916
44917 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44918
44919         * m4/mkancesdirs.m4: New file.
44920         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44921         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44922         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44923         it.
44924
44925 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44926
44927         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44928         * lib/mkancesdirs.h: New files.
44929         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44930         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44931         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44932         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44933         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44934         callers changed.  Revamp internals significantly, by not
44935         attempting to create directories that are temporarily more
44936         permissive than the final results.  Do not attempt to use
44937         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44938         This removes some race conditions, fixes some bugs, and simplifies
44939         things.  Use new dirchownmod function to do owner and mode changes.
44940         * lib/mkdir-p.h: Likewise.
44941         * lib/modechange.c (octal_to_mode): New function.
44942         (struct mode_change): New member mentioned.
44943         (make_node_op_equals): New arg mentioned.  All callers changed.
44944         (mode_compile): Keep track of which mode bits the user has explicitly
44945         mentioned.
44946         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44947         New arg PMODE_BITS, to keep track of which mode bits the user
44948         mentioned; it treats S_ISUID and S_ISGID speciall.
44949         All callers changed.
44950         * lib/modechange.h: Likewise.
44951
44952 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44953
44954         * MODULES.html.sh: Add mkancestors.
44955         * modules/mkancesdirs: New module.
44956         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44957         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44958         The chdir-safer and afs files are now orphans; I'll remove them
44959         unless someone speaks up.
44960         Add lib/dirchownmod.c, lib/dirchownmod.h.
44961         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44962         Add lchown, mkancesdirs.
44963         (Maintainer): Add self.
44964
44965 2006-07-15  Karl Berry  <karl@gnu.org>
44966
44967         * gnulib-tool: help message wording/arrangement.
44968
44969 2006-07-14  Simon Josefsson  <jas@extundo.com>
44970
44971         * doc/gnulib.texi (Libtool and Windows): New section.
44972
44973 2006-07-12  Simon Josefsson  <jas@extundo.com>
44974
44975         * modules/gendocs (License): Fix license, approved by Karl.
44976
44977 2006-07-12  Eric Blake  <ebb9@byu.net>
44978
44979         * MODULES.html.sh: Add gendocs.
44980
44981 2006-07-11  Eric Blake  <ebb9@byu.net>
44982
44983         * modules/fdl: New module, to install doc/fdl.texi.
44984         * MODULES.html.sh: Add new section for documentation modules.
44985         * gnulib-tool: Avoid space-tab.
44986         (--doc-base): New option, to manage files from doc.
44987
44988 2006-07-11  Eric Blake  <ebb9@byu.net>
44989
44990         * m4/absolute-header.m4: Fix comments to match recent change.
44991
44992 2006-07-11  Eric Blake  <ebb9@byu.net>
44993
44994         * gnulib-tool: List --doc-base before --tests-base.
44995
44996 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44997
44998         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44999
45000 2006-07-11  Bruno Haible  <bruno@clisp.org>
45001
45002         * README: Mention where to put documentation.
45003
45004 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45005
45006         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45007
45008 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45009
45010         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45011         to stdint.m4.
45012
45013 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45014
45015         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45016         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45017         "no/such/file/stdint.h" when there is no such file, so that
45018         the resulting C code can be parsed by dodgy compilers.
45019         Problems reported by Bob Proulx.
45020
45021 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45022
45023         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45024         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45025         macros into the GNU _D_EXACT_NAMLEN.
45026         * lib/savedir.c:  Likewise.
45027         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45028
45029 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45030         and Paul Eggert  <eggert@cs.ucla.edu>
45031
45032         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45033         * m4/savedir.m4:
45034         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45035         macros into the GNU _D_EXACT_NAMLEN.
45036
45037 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45038
45039         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45040         around the absolute name, to work around a problem with the HP-UX
45041         11.23 native C compiler, reported by Bob Proulx.
45042
45043 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45044
45045         * doc/maintain.texi, make-stds.texi: Sync from
45046         <http://savannah.gnu.org/projects/gnustandards>.
45047
45048 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45049
45050         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45051
45052 2006-07-09  Jim Meyering  <jim@meyering.net>
45053
45054         * m4/glob.m4: Remove a doubled word in a comment.
45055
45056 2006-07-09  Jim Meyering  <jim@meyering.net>
45057
45058         * lib/argp-pv.c: Remove a doubled word in a comment.
45059         * lib/check-version.c (check_version): Likewise.
45060         * lib/javacomp.c (compile_java_class): Likewise.
45061
45062 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45063
45064         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45065         for the benefit of people using Autoconf 2.60.  If you want to
45066         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45067         (or m4/onceonly.m4, if pre-2.57) manually.
45068
45069 2006-07-08  Jim Meyering  <jim@meyering.net>
45070
45071         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45072         comment.
45073         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45074         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45075         comment.
45076
45077 2006-07-08  Jim Meyering  <jim@meyering.net>
45078
45079         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45080
45081 2006-07-07  Simon Josefsson  <jas@extundo.com>
45082
45083         * tests/test-crc.c: Change expected crc value, the test vector
45084         were probably computed using the old broken crc.c?
45085
45086 2006-07-06  Simon Josefsson  <jas@extundo.com>
45087
45088         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45089         now the canonical place for the M4 file).
45090
45091         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45092         from the sys_socket dependency now.
45093
45094         * modules/inet_pton (Files): Ditto.
45095
45096         * modules/inet_ntop (Files): Ditto.
45097
45098 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45099
45100         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45101         not gl_PREREQ_GETUSERSHELL.
45102
45103 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45104
45105         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45106         with only one argument, for Autoconf 2.60.
45107         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45108         expand to nothing, so add a shell command to avoid syntax error.
45109         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45110
45111 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45112
45113         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45114
45115 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45118         no longer needed.  Check for isblank decl.
45119         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45120         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45121         of existence.
45122
45123 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45124
45125         * lib/getloadavg.c: Use __VMS, not VMS.
45126         * lib/getopt.c: Likewise.
45127         * lib/getpagesize.h: Likewise.
45128         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45129         and probably does not work.
45130
45131 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45132
45133         * lib/.cppi-disable: Add wcwidth.
45134         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45135         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45136         (ISGRAPH): Remove.  All uses changed to isgraph.
45137         (FOLD) [!defined _LIBC]: Remove special case.
45138         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45139         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45140         HAVE_ISBLANK.
45141         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45142         case.
45143
45144 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45145
45146         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45147         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45148         brackets.  Other minor changes to suppress some compiler
45149         warnings.
45150
45151 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45152         and Paul Eggert  <eggert@cs.ucla.edu>
45153
45154         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45155         of invoking obsolescent AC_HEADER_DIRENT macro.
45156         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45157         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45158         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45159         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45160         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45161         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45162         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45163         * m4/readdir.m4: Remove; no longer needed.
45164
45165 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45166         and Paul Eggert  <eggert@cs.ucla.edu>
45167
45168         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45169         Don't worry about this obsolete case any more.
45170         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45171         directories.
45172         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45173         worry about this obsolete case any more.
45174         * lib/fts.c: Likewise.
45175         * lib/getcwd.c: Likewise.
45176         * lib/glob.h: Likewise.
45177         * lib/savedir.c: Likewise.
45178
45179 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45180
45181         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45182         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45183         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45184         needed.
45185         All uses removed.
45186         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45187         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45188         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45189         needed.
45190         * m4/getdate.m4 (gl_GETDATE): Likewise.
45191         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45192         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45193         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45194         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45195         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45197         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45198         needed.
45199
45200 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45201
45202         * lib/memcasecmp.c: Include <limits.h>.
45203         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45204         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45205         Don't assume isdigit succeeds only on '0' through '9'.
45206
45207 2006-07-05  Eric Blake  <ebb9@byu.net>
45208
45209         * modules/getaddrinfo (Depends-on): Add snprintf.
45210
45211 2006-07-05  Eric Blake  <ebb9@byu.net>
45212
45213         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45214         to avoid 'header present but could not be compiled' on cygwin.
45215
45216 2006-07-05  Eric Blake  <ebb9@byu.net>
45217
45218         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45219         missing from netdb.h.
45220         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45221
45222 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45223
45224         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45225         no longer needed.
45226         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45227         * m4/getdate.m4 (gl_GETDATE): Likewise.
45228         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45229         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45230         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45231         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45232         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45233
45234 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45235
45236         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45237         All uses of is_space replaced by isspace.
45238         * lib/exit.h: Don't talk about STDC_HEADERS.
45239         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45240         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45241         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45242         replaced by isprint etc.
45243         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45244         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45245         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45246         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45247         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45248         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45249
45250 2006-07-05  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45253         the function exists, before testing against AIX.
45254         Reported by Martin Lambers <marlam@marlam.de>.
45255
45256 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45257
45258         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45259         From Mark D. Baushke.
45260
45261 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45262
45263         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45264         to the absolute name, not just one, to bypass Sun C 5.8's
45265         "warning: #include of /usr/include/... may be non-portable".
45266
45267 2006-07-04  Eric Blake  <ebb9@byu.net>
45268
45269         * modules/dirname-tests: New test module.
45270         * tests/test-dirname.c: New file, replacing dirname.c
45271         TEST_DIRNAME section that was recently deleted.
45272
45273 2006-07-04  Bruno Haible  <bruno@clisp.org>
45274
45275         Assume ANSI C header files and <ctype.h> functions.
45276         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45277         (mbsnwidth): Use isprint, iscntrl instead.
45278
45279 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45280
45281         Merge from coreutils.
45282         * MODULES.html.sh: Add xstrtold.
45283         * modules/xstrtold: New file.
45284         * modules/cycle-check (Files): Add lib/same-inode.h.
45285         * modules/dirname (Files): Add m4/double-slash-root.m4.
45286         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45287         * modules/mkdir-p (Files): Add lib/same-inode.h.
45288         * modules/same (Files): Add lib/same-inode.h.
45289
45290 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45291
45292         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45293         This is to keep the terminology clean; POSIX talks about
45294         "absolute pathnames", not "full pathnames", but the GNU
45295         Coding Standards say to use "path" for something else;
45296         so use "absolute" to keep both sides happy.
45297         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45298         Set gl_absolute_header, not gl_full_header_path.
45299         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45300         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45301         All uses changed.
45302
45303         Merge from coreutils.
45304
45305         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45306
45307         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45308         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45309         want to require the building of c-strtod.o.
45310         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45311         needs -lm directly.
45312         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45313
45314         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45315
45316         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45317         --as-needed option if available.  Problem reported by Albert Chin in
45318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45319         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45320         cc merely issues a bunch of annoying warnings for --as-needed
45321         (this problem was reported by Bob Proulx).  Also, try linking with
45322         -lm to detect a bug in binutils 2.16 (this problem was reported
45323         by Ralf Wildenhues).
45324
45325         2006-06-18  Jim Meyering  <jim@meyering.net>
45326
45327         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45328         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45329         macro.
45330         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45331         also check for glibc-2.4's abort-inducing bug.
45332
45333         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45334         Low-probability clean-up should be to use rmdir to get rid of
45335         the just-created directory, not unlink.
45336
45337         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45338         configure fail, and request a bug report to inform us about it.
45339         Add a comment that, barring reports to the contrary, in 2007 we'll
45340         assume ftruncate is universally available.
45341
45342         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45343
45344         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45345
45346         2006-03-12  Jim Meyering  <jim@meyering.net>
45347
45348         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45349         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45350         * m4/same.m4 (gl_SAME): Likewise.
45351         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45352
45353         2006-03-11  Eric Blake  <ebb9@byu.net>
45354
45355         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45356         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45357         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45358         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45359
45360 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45361
45362         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45363         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45364         reported by Mark D. Baushke, one in
45365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45366
45367         Merge from coreutils.
45368
45369         * lib/.cppi-disable: Add stdint_.h.
45370         * lib/.cvsignore: Add stdint.h.
45371
45372         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45373
45374         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45375         both double and long double versions.
45376         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45377         * lib/xstrtold.c: New file.
45378         * lib/xstrtod.h (xstrtold): New decl.
45379
45380         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45381
45382         * lib/filemode.c (setst): Remove.
45383         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45384         (arguably) clearer, and the generated code is a bit smaller on my
45385         Debian GNU/Linux stable x86 host.
45386
45387         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45388
45389         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45390         Assume that filemode.h includes sys/types.h and sys/stat.h.
45391         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45392         (ftypelet): Reorder to put common cases first, for efficiency.
45393         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45394         to do 'M'.
45395         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45396         of 10, for compatibility with FreeBSD.  All callers changed.
45397         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45398         types that can't be deduced solely from st_mode.  First arg is now a
45399         const pointer.
45400         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45401         (strmode): Renamed from mode_string.
45402         (filemodestring): New decl.
45403         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45404         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45405         needed.
45406         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45407
45408         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45409
45410         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45411         fsusage.h now does that.  Include fsusage.h first, to test interface.
45412         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45413         at most one method (the old code could have generated decls that
45414         didn't conform to C89, not that this was ever exercised).
45415         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45416
45417         2006-03-19  Jim Meyering  <jim@meyering.net>
45418
45419         Work even in a chroot where d_ino values for entries in "/"
45420         don't match the stat.st_ino values for the same names.
45421         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45422         number, iterate through all entries again, using lstat instead.
45423         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45424         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45425
45426         * lib/getcwd.c (__getcwd): Clarify a comment.
45427         Use memcpy in place of a call to strcpy.
45428
45429         2006-03-12  Jim Meyering  <jim@meyering.net>
45430
45431         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45432         matches that of the current directory (which we're about to chdir ".."
45433         out of), then save the dev-ino of the parent, instead.
45434
45435         * lib/same-inode.h (SAME_INODE): New file/macro.
45436         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45437         Include "same-inode.h", instead.
45438         * lib/same.c: Likewise.
45439         * lib/cycle-check.h: Include "same-inode.h".
45440         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45441         * lib/cycle-check.c (SAME_INODE): Remove definition.
45442         * lib/root-dev-ino.h: Include "same-inode.h".
45443
45444         2006-03-11  Eric Blake  <ebb9@byu.net>
45445
45446         * lib/same.c (same_name): s/base_name/last_component/
45447         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45448         * lib/filenamecat.c (file_name_concat): Likewise.
45449
45450         2006-03-11  Eric Blake  <ebb9@byu.net>,
45451                     Paul Eggert  <eggert@cs.ucla.edu>
45452
45453         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45454         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45455         drive prefix.
45456         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45457         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45458         (last_component): New method.
45459         * lib/dirname.c (dir_len): Determine when drive letters need a
45460         subsequent slash.  Preserve // when it is special.
45461         (dir_name): Don't append dot when drive letter is absolute.
45462         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45463         * lib/basename.c (base_name): New semantics - malloc the result.
45464         Preserve // when it is special.  Preserve relative files that look
45465         like drive letters.
45466         (base_len): Preserve // when it is special.
45467         (last_component): New method, similar to old base_name semantics.
45468         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45469         base_name.  Strip redundant slashes from ///.
45470
45471 2006-07-03  Jim Meyering  <jim@meyering.net>
45472
45473         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45474         macro is used before the first cycle_check call.
45475
45476 2006-07-03  Eric Blake  <ebb9@byu.net>
45477
45478         * modules/dirname (Depends-on): Add xstrndup.
45479
45480 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45481
45482         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45483         test cases, so that config.log is a bit easier to follow.
45484
45485 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45486
45487         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45488         both are 64 bits, since this seems to be the tradition, and this
45489         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45490         we ever run into a host that prefers long long to long in this
45491         case, we'll need another configure-time test.  Problem reported by
45492         Jim Meyering.
45493
45494 2006-07-02  Eric Blake  <ebb9@byu.net>
45495
45496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45497
45498 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         * modules/inttypes (Depends-on): No longer depends on stdint.
45501         * modules/stdint (Description): Say more about assumptions.
45502         Say that the fast types might differ.  Say macros are used.
45503         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45504         (Makefile.am): Revise list of substituted symbols to match
45505         new stdint.m4.
45506         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45507         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45508         * tests/test-stdint.c (verify_same_types)
45509         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45510         the code conforms to C99/C89.
45511         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45512         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45513
45514 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45515
45516         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45517         but fix a bug, by requiring at least 64 bits.
45518         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45519         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45520         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45521         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45522
45523         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45524         changes.  Make 2.59 a prerequisite.  Check and substitute for
45525         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45526         inttypes.h.  Do not use special include files; just use the
45527         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45528         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45529         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45530         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45531         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45532         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45533         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45534         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45535         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45536         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45537         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45538         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45539         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45540         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45541         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45542         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45543         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45544         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45545         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45546         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45547         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45548         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45549         not check for things that C99 does not require, e.g., int8_t.  If
45550         a test isn't needed unless <stdint.h> isn't working, and is
45551         unlikely to be needed for any other reason, then don't do it
45552         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45553         size_t, since we assume C89 freestanding at least.  Do not check
45554         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45555         the right thing even if the types are not defined.  Instead use:
45556         (gl_STDINT_TYPE_PROPERTIES): New macro.
45557         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45558         testing whether <sys/types.h> clashes, as Autoconf does this for
45559         us now.  All uses removed.
45560         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45561         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45562         (gl_CHECK_TYPE_SAME):
45563         Remove; no longer needed.
45564         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45565         exists, since we'll return 0 anyway in that case.
45566         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45567
45568 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45569
45570         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45571         possible collision with system files.
45572         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45573         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45574         WCHAR_MIN and WCHAR_MAX in this case.
45575         (<stddef.h>): Do not include; no longer needed.
45576         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45577         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45578         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45579         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45580         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45581         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45582         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45583         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45584         !defined(__c99))]: Include in this case too, since it's harmless
45585         now.
45586         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45587         dangerous to do so.
45588         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45589         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45590         (_STDINT_MIN, _STDINT_MAX): New macros.
45591         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45592         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45593         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45594         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45595         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45596         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45597         macros, not typedefs; this simplifies things quite a bit.
45598         Use long int for all types narrower than int64_t.
45599         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45600         Define in terms of long long int or int64_t or long int,
45601         not int64_t or int32_t.  This saves some compile-time testing.
45602         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45603         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45604         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45605         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45606         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45607         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45608         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45609         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45610         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45611         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45612         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45613         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45614         undef any previous version and define our own version, for
45615         simplicity and consistency with the new macros for types.
45616         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45617         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45618         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45619         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45620         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45621         @WINT_T_SUFFIX@ to keep things simple here.
45622         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45623         Simplify by assuming typical 8/16/32/64 host, since we're
45624         already doing that elsewhere anyway.
45625         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45626         and assume long long int is 64 bits if available.  This
45627         speeds up 'configure'.
45628
45629 2006-07-01  Eric Blake  <ebb9@byu.net>
45630
45631         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45632         Reported by Andreas Buening.
45633
45634 2006-07-01  Eric Blake  <ebb9@byu.net>
45635
45636         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45637
45638 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45639
45640         * lib/getaddrinfo.c: fixed typo
45641
45642 2006-06-29  Jim Meyering  <jim@meyering.net>
45643
45644         * modules/strftime (Maintainer): Add my name, since with the
45645         FPRINTFTIME changes strftime.c has forked from glibc.
45646
45647 2006-06-29  Eric Blake  <ebb9@byu.net>
45648
45649         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45650
45651 2006-06-29  Eric Blake  <ebb9@byu.net>
45652
45653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45654
45655 2006-06-29  Eric Blake  <ebb9@byu.net>
45656
45657         * lib/stat_.h: New file.
45658
45659 2006-06-29  Eric Blake  <ebb9@byu.net>
45660
45661         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45662         unused static function.
45663
45664 2006-06-29  Eric Blake  <ebb9@byu.net>
45665
45666         * doc/functions.texi (Function Portability): Document missing lstat
45667         on mingw.
45668
45669 2006-06-29  Eric Blake  <ebb9@byu.net>
45670
45671         * MODULES.html.sh: Add sys_stat.
45672         * modules/sys_stat: New module.
45673         * modules/mkstemp (Depends-on): Add sys_stat.
45674
45675 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45676
45677         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45678
45679 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45680
45681         * m4/c-bs-a.m4: Removed.
45682
45683 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45684
45685         * lib/strftime.c: Assume strftime() exists.
45686
45687 2006-06-29  Derek Price  <derek@ximbiot.com>
45688
45689         * modules/c-bs-a: Removed - \a is C89.
45690         * MODULES.html.sh: Remove c-bs-a.
45691
45692 2006-06-29  Bruno Haible  <bruno@clisp.org>
45693
45694         * modules/wcwidth (License): Change to LGPL.
45695
45696 2006-06-28  Simon Josefsson  <jas@extundo.com>
45697
45698         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45699         on _WIN32.
45700
45701         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45702         getnameinfo.
45703
45704 2006-06-28  Simon Josefsson  <jas@extundo.com>
45705
45706         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45707
45708 2006-06-28  Simon Josefsson  <jas@extundo.com>
45709
45710         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45711         functions there.  It will succeed on Windows XP, but on Windows
45712         2000 and (presumably) earlier, it will fail, and use the internal
45713         re-implementation.
45714         (use_win32_p): New function.
45715         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45716         Support AI_NUMERICSERV to disable getservbyname.
45717         (getnameinfo): New function, only supports
45718         NI_NUMERICHOST|NI_NUMERICSERV for now.
45719
45720         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45721         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45722         getnameinfo.
45723
45724 2006-06-28  Eric Blake  <ebb9@byu.net>
45725
45726         * modules/wcwidth: New file.
45727         * modules/mbchar (Depends-on): Add wcwidth.
45728         * modules/mbswidth (Depends-on): Add wcwidth.
45729         * MODULES.html.sh: Add wcwidth.
45730
45731 2006-06-28  Eric Blake  <ebb9@byu.net>
45732
45733         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45735
45736 2006-06-28  Eric Blake  <ebb9@byu.net>
45737
45738         * lib/xvasprintf.h: Fix comments.
45739
45740 2006-06-28  Eric Blake  <ebb9@byu.net>
45741
45742         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45743         * lib/mbswidth.c (wcwidth): Move from here...
45744         * lib/wcwidth.h: ...to this new file.
45745
45746 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45747
45748         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45749
45750         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45751         it's obsolete.
45752         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45753
45754 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45755
45756         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45757         Autoconf 2.60 says this stuff was obsolete.
45758
45759 2006-06-28  Bruno Haible  <bruno@clisp.org>
45760
45761         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45762
45763 2006-06-28  Bruno Haible  <bruno@clisp.org>
45764
45765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45766         gt_TYPE_WCHAR_T.
45767
45768 2006-06-28  Bruno Haible  <bruno@clisp.org>
45769
45770         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45771         declaration for wcwidth.
45772         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45773
45774 2006-06-28  Bruno Haible  <bruno@clisp.org>
45775
45776         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45777         (mkdir): Define using _mkdir.
45778
45779 2006-06-28  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/getaddrinfo.h: Fix POSIX URL.
45782         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45783         _WIN32.
45784         (use_win32_p): Make static.
45785         (getaddrinfo): Reject service name if it is empty or does not consist
45786         solely of decimal digits, or if its value is > 65535.
45787         (getnameinfo): Remove useless casts.
45788
45789 2006-06-27  Simon Josefsson  <jas@extundo.com>
45790
45791         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45792         Eggert and Martin Lambers.
45793
45794 2006-06-27  Simon Josefsson  <jas@extundo.com>
45795
45796         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45797         Eggert and Martin Lambers.
45798
45799 2006-06-27  Bruno Haible  <bruno@clisp.org>
45800
45801         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45802         result to 0, not to empty.
45803         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45804
45805 2006-06-27  Bruno Haible  <bruno@clisp.org>
45806
45807         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45808
45809 2006-06-26  Simon Josefsson  <jas@extundo.com>
45810
45811         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45812         present.
45813
45814 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45815
45816         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45817         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45819
45820 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45821
45822         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45823
45824 2006-06-26  Bruno Haible  <bruno@clisp.org>
45825
45826         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45827
45828 2006-06-26  Bruno Haible  <bruno@clisp.org>
45829
45830         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45831
45832 2006-06-26  Bruno Haible  <bruno@clisp.org>
45833
45834         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45835         SGI C compiler in pre-C99 mode.
45836         Suggested by Mark D. Baushke and Larry Jones.
45837
45838 2006-06-26  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45841         WCHAR_MAX.
45842         Reported by Mark D. Baushke and Larry Jones.
45843
45844 2006-06-26  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45847         in pre-C99 mode.
45848         Suggested by Mark D. Baushke and Larry Jones.
45849
45850 2006-06-23  Simon Josefsson  <jas@extundo.com>
45851             Bruno Haible  <bruno@clisp.org>
45852
45853         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45854         Emit mostlyclean-local rule.
45855         (func_emit_tests_Makefile_am): Likewise.
45856         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45857
45858 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45859
45860         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45861
45862 2006-06-23  Bruno Haible  <bruno@clisp.org>
45863
45864         * tests/test-stdint.c: Update to match ISO C 99 Technical
45865         Corrigendum 1.
45866
45867 2006-06-23  Bruno Haible  <bruno@clisp.org>
45868
45869         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45870
45871 2006-06-23  Bruno Haible  <bruno@clisp.org>
45872
45873         * lib/stdint_.h: Treat IRIX like OpenBSD.
45874
45875 2006-06-23  Bruno Haible  <bruno@clisp.org>
45876
45877         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45878         ISO C 99 Technical Corrigendum 1.
45879
45880 2006-06-22  Simon Josefsson  <jas@extundo.com>
45881
45882         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45883         MinGW.
45884
45885 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45886
45887         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45888         needed.  Some compiler complained about some of them.  Problem reported
45889         by Larry Jones in
45890         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45891
45892 2006-06-21  Simon Josefsson  <jas@extundo.com>
45893
45894         * tests/test-getaddrinfo.c: New file.
45895
45896         * modules/getaddrinfo-tests: New file.
45897
45898         * MODULES.html.sh: Add inet_pton.
45899
45900         * modules/inet_pton: New file.
45901
45902 2006-06-21  Simon Josefsson  <jas@extundo.com>
45903
45904         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45905         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45906         of using the (limited) gnulib implementation on Windows XP.
45907
45908         * m4/inet_pton.m4: New file.
45909
45910 2006-06-21  Simon Josefsson  <jas@extundo.com>
45911
45912         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45913         variable.
45914
45915         * lib/socket_.h: Don't define WINVER.
45916
45917         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45918         slightly modified to work in gnulib.
45919
45920 2006-06-21  Simon Josefsson  <jas@extundo.com>
45921
45922         * doc/gnulib.texi (Windows sockets): Add.
45923
45924 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         * lib/read-file.c (fread_file): Start with buffer allocation of
45927         0 bytes rather than 1 byte; this simplifies the code.
45928         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45929         code to free buffer and save/restore errno.
45930         (internal_read_file): Remove unused local.
45931
45932 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45933
45934         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45935         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45936         Problem reported by Denis Excoffier in
45937         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45938
45939 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45940
45941         * modules/sys_socket, modules/socklen: Include sys/types since
45942         FreeBSD 4.x's sys/socket.h needs it.
45943
45944 2006-06-19  Simon Josefsson  <jas@extundo.com>
45945
45946         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45947
45948 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45951
45952 2006-06-19  Bruno Haible  <bruno@clisp.org>
45953
45954         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45955         and FULL_PATH_INTTYPES_H in angle brackets.
45956         Reported by Mark D. Baushke <mdb@gnu.org>.
45957
45958 2006-06-17  Eric Blake  <ebb9@byu.net>
45959
45960         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45961         errno.
45962
45963 2006-06-17  Bruno Haible  <bruno@clisp.org>
45964
45965         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45966         <sys/inttypes.h>.
45967
45968 2006-06-17  Bruno Haible  <bruno@clisp.org>
45969
45970         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45971         whether errno is declared. Assume <errno.h> declares errno.
45972
45973 2006-06-17  Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45976
45977 2006-06-17  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45980         problem on Solaris 2.5.1.
45981
45982 2006-06-16  Eric Blake  <ebb9@byu.net>
45983
45984         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45985         * lib/unicodeio.c [!defined errno]: Likewise.
45986         * lib/strtol.c [!defined errno]: Likewise.
45987         * lib/strtod.c [!defined errno]: Likewise.
45988
45989 2006-06-15  Eric Blake  <ebb9@byu.net>
45990
45991         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45992
45993 2006-06-15  Eric Blake  <ebb9@byu.net>
45994
45995         * config/srclist.txt (ssize_t.m4): Lose sync.
45996
45997 2006-06-15  Bruno Haible  <bruno@clisp.org>
45998
45999         * modules/stdint (Files): Include m4/full-header-path.m4,
46000         m4/size_max.m4, m4/wchar_t.m4.
46001         (Makefile.am): Many more substitutions.
46002         * modules/stdint-tests: New file.
46003         * tests/test-stdint.c: New file.
46004
46005 2006-06-15  Bruno Haible  <bruno@clisp.org>
46006
46007         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46008         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46009         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46010         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46011         gl_CHECK_TYPE_SAME): New macros.
46012
46013 2006-06-15  Bruno Haible  <bruno@clisp.org>
46014
46015         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46016
46017 2006-06-15  Bruno Haible  <bruno@clisp.org>
46018
46019         * lib/stdint_.h: Rewritten to be fully auto-configured.
46020         Fixes bug on HP-UX/IA64.
46021
46022 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46023
46024         * lib/getdate.y (__attribute__): Don't define if already defined.
46025         Problem reported by Larry Jones.
46026         * lib/utimens.c (__attribute__): Likewise.
46027
46028 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46031         reported by Andreas Schwab.
46032
46033 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46034             Bruno Haible  <bruno@clisp.org>
46035
46036         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46037         check for the declaration of strnlen and a run test that exposes the
46038         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46039         rpl_strndup.
46040
46041 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46042             Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46045
46046 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46047
46048         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46049         compile test, for Tru64 4.0D.
46050
46051 2006-05-28  Karl Berry  <karl@gnu.org>
46052
46053         * config/srclist.txt (printf-args.c): lose sync.
46054
46055 2006-05-26  Martin Lambers  <marlam@marlam.de>
46056
46057         * lib/getpass.c: Updates the test for the native W32 API, and adds
46058         missing includes, thus fixing compilation warnings.
46059
46060 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46061
46062         * lib/exclude.c (exclude_fnmatch): New function.
46063         (excluded_file_name): Call exclude_fnmatch.
46064         * lib/exclude.h (excluded_file_name): New prototype
46065
46066 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46067
46068         * lib/tempname.c (small_open, large_open): New macros.
46069         (__open, __open64) [!_LIBC]: Remove.
46070         (__gen_tempname): Use small_open and large_open instead of __open
46071         and __open64.  This fixes a portability bug on HP-UX 11.11i
46072         reported by Simon Wing-Tang in
46073         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46074
46075 2006-05-24  Bruno Haible  <bruno@clisp.org>
46076
46077         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46078         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46079         Reported by Thorsten Maerz <torte@netztorte.de> via
46080         Aaron Stone <aaron@serendipity.cx>.
46081
46082 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46083
46084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46085         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46086         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46087         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46088         not really conditional on the cache.
46089         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46090
46091 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46092
46093         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46094         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46095         (my_usleep): Don't mishandle maximum value.
46096
46097 2006-05-19  Jim Meyering  <jim@meyering.net>
46098
46099         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46100
46101 2006-05-17  Bruno Haible  <bruno@clisp.org>
46102
46103         Cygwin portability.
46104         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46105
46106 2006-05-17  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/stdint_.h: Fix recognition of Cygwin.
46109
46110 2006-05-15  Bruno Haible  <bruno@clisp.org>
46111
46112         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46113         on libtool patch by Ralf Wildenhues.
46114
46115 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46116
46117         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46118         test for C99 conformance; (bool) 0.5 is an integer constant
46119         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46120         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46121
46122 2006-05-11  Simon Josefsson  <jas@extundo.com>
46123
46124         * m4/xvasprintf.m4: Fix obvious typo.
46125
46126 2006-05-11  Jim Meyering  <jim@meyering.net>
46127
46128         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46129         James Lemley.
46130
46131 2006-05-10  Simon Josefsson  <jas@extundo.com>
46132
46133         * lib/md4.c: Typo fix, update copyright years.
46134         (K1, K2): Don't use L because it turn computations into 64-bit on
46135         64-bit platforms.
46136
46137 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46138
46139         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46140         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46141         unwanted sign propagation, e.g., on hosts with 64-bit int.
46142         There still are some problems with reeelly weird theoretical hosts
46143         (e.g., 33-bit int) but it's not worth worrying about now.
46144         * lib/sha1.c (rol): Likewise.
46145         (K1, K2, K3, K4): Remove unnecessary L suffix.
46146
46147 2006-05-10  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/des.c: Cast to avoid warnings.
46150
46151 2006-05-09  Bruno Haible  <bruno@clisp.org>
46152
46153         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46154         (Depends-on): Depend also on xsize, stdarg.
46155         (configure.ac): Add gl_XVASPRINTF.
46156
46157 2006-05-09  Bruno Haible  <bruno@clisp.org>
46158
46159         * m4/xvasprintf.m4: New file.
46160
46161 2006-05-09  Bruno Haible  <bruno@clisp.org>
46162
46163         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46164         (EOVERFLOW): Define fallback value.
46165         (xstrcat): New function.
46166         (xvasprintf): Recognize the special case of a string concatenation.
46167
46168 2006-05-08  Eric Blake  <ebb9@byu.net>
46169
46170         * gnulib-tool (func_version): Base copyright year on CVS date.
46171         (func_emit_copyright_notice): New function.
46172         (func_emit_lib_Makefile_am): Use it.
46173         (func_emit_tests_Makefile_am): Likewise.
46174         (func_import): Likewise.
46175
46176 2006-05-08  Bruno Haible  <bruno@clisp.org>
46177
46178         * modules/stdarg: New file.
46179         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46180
46181 2006-05-08  Bruno Haible  <bruno@clisp.org>
46182
46183         * m4/stdarg.m4: New file, from GNU gettext.
46184
46185 2006-05-08  Bruno Haible  <bruno@clisp.org>
46186
46187         * config/srclist.txt (build-aux/config.rpath): different from latest
46188         release.
46189
46190 2006-05-08  Bruno Haible  <bruno@clisp.org>
46191
46192         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46193
46194 2006-05-05  Jim Meyering  <jim@meyering.net>
46195
46196         * m4/warning.m4: New file, derived from bison's file by the same name.
46197
46198 2006-05-03  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/stdint_.h: Shorter URL.
46201         * lib/inttypes.h: Likewise.
46202
46203 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46204
46205         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46206
46207 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46208
46209         * lib/verify.h: Document the internals better.  Most of this change
46210         was written by Bruno Haible.
46211
46212 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46213
46214         * doc/verify.texi: New file, partly based on a proposal by
46215         Bruno Haible.
46216
46217 2006-05-02  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46220         test from here...
46221         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46222
46223 2006-04-29  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46226         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46227
46228 2006-04-29  Bruno Haible  <bruno@clisp.org>
46229
46230         * gnulib-tool: Make --update option actually work.
46231
46232 2006-04-29  Bruno Haible  <bruno@clisp.org>
46233
46234         * doc/gcd.texi: New file.
46235         * doc/gnulib.texi: Include it.
46236
46237 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46238
46239         * lib/getdate.y (get_date): When adding relative date, start with the
46240         initial time, not with the result of the first mktime call.
46241
46242 2006-04-25  Bruno Haible  <bruno@clisp.org>
46243
46244         * gnulib-tool (func_import): Output the include directives in three
46245         blocks, sorted separately.
46246         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46247
46248 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46249
46250         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46251         to define main with arguments, for C++.  Reported by Eric Blake.
46252         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46253         Prefer 'int main ()' to 'int main (void)', for C++.
46254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46256         for 'main', for C99 and C++.
46257
46258 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46259
46260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46261         Don't assume that exit status -1 is valid.
46262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46263         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46264         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46265         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46266         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46267         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46268         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46269         functions can be used without declaring them, or that you can
46270         exit with status -1.
46271         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46272
46273 2006-04-24  Karl Berry  <karl@gnu.org>
46274
46275         * config/srclist.txt (longdouble.m4): sync lost.
46276
46277 2006-04-24  Eric Blake  <ebb9@byu.net>
46278
46279         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46280
46281 2006-04-24  Bruno Haible  <bruno@clisp.org>
46282
46283         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46284         poll() implementation in AIX.
46285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46286
46287 2006-04-24  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46290         assigned exactly once.
46291
46292 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46293             Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46296         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46297         for AM_CPPFLAGS.
46298
46299 2006-04-23  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/copy-file: Depend on unistd.
46302         * modules/execute: Likewise.
46303         * modules/fatal-signal: Likewise.
46304         * modules/findprog: Likewise.
46305         * modules/mkdtemp : Likewise.
46306         * modules/pipe: Likewise.
46307         * modules/wait-process: Likewise.
46308
46309 2006-04-23  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46312         condition was already detected.
46313         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46314
46315 2006-04-23  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/copy-file.c: Include <unistd.h> unconditionally.
46318         * lib/execute.c: Likewise.
46319         * lib/fatal-signal.c: Likewise.
46320         * lib/findprog.c: Likewise.
46321         * lib/mkdtemp.c: Likewise.
46322         * lib/pipe.h: Likewise.
46323         * lib/pipe.c: Likewise.
46324         * lib/wait-process.h: Likewise.
46325
46326 2006-04-23  Bruno Haible  <bruno@clisp.org>
46327
46328         * gnulib-tool (func_usage): Fix --import description. Document
46329         --update.
46330         (func_import): Create temporary file in a temporary directory, if
46331         --dry-run is specified. Silence errors from 'grep' when there are no
46332         m4 files in $m4dir.
46333         (func_create_testdir): Silence errors from 'grep' when there are no
46334         m4 files in $m4dir.
46335         Reported by Karl Berry <karl@freefriends.org>.
46336
46337 2006-04-20  Bruno Haible  <bruno@clisp.org>
46338
46339         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46340         one argument, so that the code will be portable to Autoconf 2.60.
46341         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46342         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46343         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46344
46345 2006-04-19  Derek Price  <derek@ximbiot.com>
46346             Eric Blake  <ebb9@byu.net>
46347
46348         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46349         rather than "/full/path.h".  Update comment to match.  Shorten &
46350         generalize m4_translit call via AS_TR_CPP.
46351
46352 2006-04-19  Derek Price  <derek@ximbiot.com>
46353             Eric Blake  <ebb9@byu.net>
46354
46355         * lib/inttypes.h: Correct grammar in comment.
46356
46357 2006-04-18  Derek Price  <derek@ximbiot.com>
46358             Paul Eggert  <eggert@cs.ucla.edu>
46359
46360         * modules/inttypes: New file.
46361         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46362
46363 2006-04-18  Derek Price  <derek@ximbiot.com>
46364             Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46367         New files.
46368
46369 2006-04-18  Derek Price  <derek@ximbiot.com>
46370             Paul Eggert  <eggert@cs.ucla.edu>
46371
46372         * lib/inttypes.h: New file.
46373         * lib/strtoimax.c: Assume <inttypes.h>.
46374
46375 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46376
46377         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46378         isn't mounted.  Problem reported by Kir Kolyshkin.
46379
46380 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46383         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46384         Derek R. Price.
46385         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46386         implementation.
46387
46388 2006-04-12  Eric Blake  <ebb9@byu.net>
46389
46390         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46391         is now done automatically by the corresponding Autoconf macro.
46392
46393 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46396         time_r.h.
46397
46398 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         Merge regex changes from libc, removing some of our
46401         POSIX-conformance changes that were rejected and redoing them in a
46402         less-intrusive way.
46403
46404         * lib/regcomp.c (re_compile_internal, init_dfa):
46405         Length arg is now size_t, not Idx.  All uses changed.
46406         (peek_token): Forward decl now says internal_function.
46407         (__re_error_msgid, __re_error_msgid_idx):
46408         Now static rather than extern with attribute_hidden.
46409         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46410         For some reason libc prefers K&R style defns for external functions.
46411         (regerror) [!defined _LIBC]: Likewise.
46412         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46413         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46414         (build_range_exp, build_collating_symbol):
46415         Use K&R-style defn.
46416         (re_compile_fastmap): Use '\0' to memset, not 0.
46417         (utf8_sb_map): Make the calculations more obvious.
46418         (init_dfa, parse_bracket_exp, build_charclass_op):
46419         Call calloc and cast result, as glibc does.
46420         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46421         (build_range_exp, build_collating_symbol):
46422         Now internal functions.
46423
46424         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46425
46426         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46427         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46428         Don't depend on VMS; depend on __VMS instead, for POSIX
46429         namespace cleanness.
46430         (regoff_t): Define to ssize_t, not long int.
46431
46432         Remove the REG_ macros named below.  Instead, make the old names
46433         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46434         __USE_GNU_REGEX.
46435         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46436         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46437         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46438         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46439         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46440         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46441         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46442         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46443         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46444         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46445         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46446         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46447         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46448         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46449         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46450         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46451         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46452         (REG_NREGS):
46453         Remove.  All uses replaced by the old RE_* names.
46454         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46455         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46456         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46457         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46458         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46459         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46460         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46461         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46462         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46463         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46464         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46465         Don't bother having these macros be independent of each others'
46466         values, since they no longer exist in the POSIX name space.
46467
46468         Rename the following member names back to their old names,
46469         unless !__USE_GNU_REGEX.  All uses changed back.
46470         (buffer): Renamed from re_buffer.
46471         (allocated): Renamed from re_allocated.
46472         (used): Renamed from re_used.
46473         (syntax): Renamed from re_syntax.
46474         (fastmap): Renamed from re_fastmap.
46475         (translate): Renamed from re_translate.
46476         (can_be_null): Renamed from re_can_be_null.
46477         (regs_allocated): Renamed from re_regs_allocated.
46478         (fastmap_accurate): Renamed from re_fastmap_accurate.
46479         (no_sub): Renamed from re_no_sub.
46480         (not_bol): Renamed from re_not_bol.
46481         (not_eol): Renamed from re_not_eol.
46482         (newline_anchor): Renamed from re_newline_anchor.
46483         (num_regs): Renamed from rm_num_regs.
46484         (start): Renamed from rm_start.
46485         (end): Renamed from rm_end.
46486
46487         (free_state): Move up a bit.
46488
46489         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46490         #define to be empty.
46491         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46492         when that is what is intended.
46493         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46494         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46495         (MAX): New macro.
46496         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46497         All uses changed back to re_malloc, etc.  It's now the caller's
46498         responsibility to check for overflow; all callers changed.
46499         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46500         (re_x2nrealloc): Remove.
46501         (free_state): Remove decl.
46502
46503         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46504         (re_set_registers, re_exec):
46505         Use K&R-style defn.
46506
46507         2006-01-31  Roland McGrath  <roland@redhat.com>
46508
46509         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46510         Reported by Mike Frysinger <vapier@gentoo.org>.
46511
46512         2006-01-15  Andreas Jaeger  <aj@suse.de>
46513
46514         [BZ #1950]
46515         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46516         build_wcs_upper_buffer change.
46517         (build_wcs_upper_buffer): Change return type.
46518
46519         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46520
46521         * lib/regex_internal.h: Include <stdint.h> if available.
46522
46523         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46524
46525         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46526
46527         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46528
46529         * lib/regcomp.c: Adjust for changed secondary hash function.
46530
46531         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46532
46533         * lib/regex.h: Pretty printing.
46534         Clean up namespace a bit.
46535
46536         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46537
46538         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46539         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46540
46541         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46542                     Ulrich Drepper  <drepper@redhat.com>
46543
46544         [BZ #1302]
46545         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46546         changed.
46547         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46548
46549         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46550
46551         [BZ #281]
46552         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46553         * lib/regcomp.c: Remove unnecessary uses of
46554         unsigned RE_TRANSLATE_TYPE.
46555         * lib/regex_internal.h: Likewise.
46556         * lib/regex_internal.c: Likewise.
46557         * lib/regexec.c: Likewise.
46558         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46559
46560         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46561
46562         * lib/regexec.c (find_recover_state): Remove unnecessary
46563         initialization.
46564         (transit_state_bkref): Make DFA a const pointer.
46565         (get_subexp): Likewise.
46566         (check_arrival): Likewise.
46567         (update_cur_sifted_state): Likewise.
46568         (re_search_internal): Likewise.
46569         (prune_impossible_nodes): Likewise.
46570         (acquire_init_state_context): Likewise.
46571         (proceed_next_node): Likewise.
46572         (set_regs): Likewise.
46573         (free_fail_stack_return): Likewise.
46574         (check_arrival_expand_ecl): Mark DFA parameter as const.
46575         (check_arrival_expand_ecl_sub): Likewise.
46576         (check_subexp_limits): Likewise.
46577         (sub_epsilon_src_nodes):  Likewise.
46578         (add_epsilon_src_nodes):  Likewise.
46579         (merge_state_array): Likewise.
46580         (update_regs): Likewise.
46581         (build_trtable): Likewise.
46582         (sift_states_backward): Mark MCTX parameter as const.
46583         (build_sifted_states): Likewise.
46584         (update_cur_sifted_state): Likewise.
46585         (sift_states_mkref): Likewise.
46586         (check_arrival_expand_ecl): Mark eclosure as const.
46587         (check_dst_limits_calc_pos_1): Likewise.
46588         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46589         pointer.
46590
46591         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46592
46593         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46594         (transit_state_sb): Likewise.
46595         (transit_state_mb): Likewise.
46596         (sift_states_iter_mb): Likewise.
46597         (check_arrival_add_next_nodes): Likewise.
46598         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46599         [_LIBC] (re_search_2_stub): Use mempcpy.
46600
46601         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46602         mbrtowc for very simple UTF-8 case.
46603
46604         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46605         a pointer-to-const.
46606         (re_acquire_state_context): Likewise.
46607         * lib/regex_internal.h: Adjust prototypes.
46608
46609         * lib/regex.c: Prevent using C++ compilers.
46610
46611         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46612         (re_acquire_state_context): Likewise.
46613
46614 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46615
46616         * modules/regex (Depends-on): Add ssize_t.
46617
46618 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46619
46620         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46621         translation table.
46622
46623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46624
46625         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46626
46627 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46628             Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46631         <sys/types.h> and <inttypes.h>.
46632
46633 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46634
46635         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46636         `__error_t_defined', so argp.h will not typedef the former.
46637
46638 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46641         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46642         glibc names.  Even if glibc is changed to conform to POSIX, the
46643         traditional names will be available anyway, since regex depends on
46644         the extensions module.  Also, fix a longstanding typo in the
46645         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46646         reported by Emanuele Giaquinta.  Also, change sense of cached
46647         variable, so that the message makes sense.
46648
46649 2006-03-24  Simon Josefsson  <jas@extundo.com>
46650
46651         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46652         including some doc fixes.
46653         (base64_encode_alloc): Fix +1 bug on allocation failures.
46654
46655 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46656
46657         * lib/base64.c (base64_encode): Do not read past end of array with
46658         unsanitized input on systems with CHAR_BIT > 8.
46659
46660 2006-03-24  Eric Blake  <ebb9@byu.net>
46661
46662         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46663
46664 2006-03-22  Karl Berry  <karl@gnu.org>
46665
46666         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46667         * config/srclistvars.sh (COREUTILS): new var.
46668
46669 2006-03-17  Jim Meyering  <jim@meyering.net>
46670
46671         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46672         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46673
46674 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46675
46676         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46677         no longer needs it.  Instead, check that regoff_t is as least
46678         as wide as ptrdiff_t.
46679
46680         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46681         so that our regex.h stays compatible with the installed regex.
46682         This is helpful for installers who configure --without-included-regex.
46683         Problem reported by Emanuele Giaquinta.
46684
46685 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46686
46687         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46688         Typedef to long int, not to off_, as POSIX will likely change
46689         in that direction.
46690
46691 2006-03-15  Eric Blake  <ebb9@byu.net>
46692
46693         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46694
46695 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46696
46697         * lib/argp-help.c (validate_uparams): Fix typo
46698         * lib/argp-parse.c (argp_default_options): Consistently begin help
46699         messages with a lowercase letter.
46700
46701 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46702
46703         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46704         overrun buffers and shouldn't be used (much as gets shouldn't be
46705         used).
46706         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46707
46708 2006-03-08  Simon Josefsson  <jas@extundo.com>
46709
46710         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46711         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46712
46713 2006-03-08  Simon Josefsson  <jas@extundo.com>
46714
46715         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46716         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46717
46718 2006-03-08  Simon Josefsson  <jas@extundo.com>
46719
46720         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46721         signal that configure disabled the device.
46722
46723 2006-03-08  Simon Josefsson  <jas@extundo.com>
46724
46725         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46726         languages.
46727
46728 2006-03-07  Simon Josefsson  <jas@extundo.com>
46729
46730         * modules/getopt (Depends-on): Add unistd.
46731
46732         * modules/unistd: New file.
46733
46734 2006-03-07  Simon Josefsson  <jas@extundo.com>
46735
46736         * modules/gc-random: New file.
46737
46738 2006-03-07  Simon Josefsson  <jas@extundo.com>
46739
46740         * m4/unistd_h.m4: New file.
46741
46742 2006-03-07  Simon Josefsson  <jas@extundo.com>
46743
46744         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46745         test to be side-effect free by storing the result in the cache
46746         variable gl_cv_lib_readline, and moving the assignment of
46747         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46748         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46749
46750 2006-03-07  Simon Josefsson  <jas@extundo.com>
46751
46752         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46753         error on missing devices (the functions will return an error).
46754
46755         * m4/gc.m4: Move random stuff to gc-random.m4
46756
46757 2006-03-07  Simon Josefsson  <jas@extundo.com>
46758
46759         * lib/unistd_.h: New file.
46760
46761 2006-03-07  Simon Josefsson  <jas@extundo.com>
46762
46763         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46764
46765 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46768         Problem reported by Juan Manuel Guerrero.
46769
46770 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46771
46772         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46773         the unistd module.
46774         * lib/getlogin_r.c: Likewise.
46775         * lib/getlogin_r.h: Likewise.
46776         * lib/glob.c: Likewise.
46777         * lib/pagealign_alloc.c: Likewise.
46778         * lib/unistd_.h: Remove; no longer needed.
46779
46780 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46781
46782         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46783         Add unistd.
46784         * modules/c-stack (Depends-on): Add unistd.
46785         * modules/getlogin_r: Likewise.
46786         * modules/glob: Likewise.
46787         * modules/pagealign_alloc: Likewise.
46788         * modules/unistd (Files): Remove lib/unistd_.h.
46789         (EXTRA_DIST): Remove.
46790         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46791         need unistd_.h.
46792         (MOSTLYCLEANFILES): Remove unistd.h-t.
46793
46794 2006-03-03  Simon Josefsson  <jas@extundo.com>
46795
46796         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46797
46798 2006-03-03  Simon Josefsson  <jas@extundo.com>
46799
46800         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46801         libidn and bison.
46802
46803 2006-03-03  Simon Josefsson  <jas@extundo.com>
46804
46805         * build-aux/maint.mk: Add indent target.
46806
46807 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46808
46809         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46810         our replacement poll.h in any case, to avoid a differing
46811         declaration from a system header.  Seen on AIX.
46812
46813 2006-03-01  Simon Josefsson  <jas@extundo.com>
46814
46815         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46816         <kasal@ucw.cz>.
46817
46818 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46819
46820         * modules/gettime (Depends-on): Add extensions module.
46821         * modules/nanosleep (Depends-on): Likewise.
46822         * modules/settime (Depends-on): Likewise.
46823
46824 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46825
46826         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46827         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46828         pedantically.
46829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46830         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46831
46832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46833         not "==".  Reported by Ralf Wildenhues.
46834
46835 2006-03-01  Karl Berry  <karl@gnu.org>
46836
46837         * doc/Copyright/request-*: new files, synced from gnuorg.
46838
46839 2006-03-01  Karl Berry  <karl@gnu.org>
46840
46841         * config/srclist.txt (Copyright/*): new entries.
46842
46843 2006-02-28  Simon Josefsson  <jas@extundo.com>
46844
46845         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46846
46847 2006-02-27  Simon Josefsson  <jas@extundo.com>
46848
46849         * lib/base64.h: Indent #define's.  From Jim Meyering
46850         <jim@meyering.net>.
46851
46852 2006-02-27  Jim Meyering  <jim@meyering.net>
46853
46854         Revert the change of 2006-02-24, so these files can continue
46855         to be sync'd from gettext.
46856         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46857         of `config.h'.
46858
46859 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46860
46861         * modules/intprops: New file.
46862         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46863         Add intprops.
46864         * modules/getloadavg (Files): Remove lib/intprops.h.
46865         (Depends-on): Add intprops.
46866         * modules/human: Likewise.
46867         * modules/inttostr: Likewise.
46868         * modules/openat: Likewise.
46869         * modules/sig2str: Likewise.
46870         * modules/userspec: Likewise.
46871         * modules/utimecmp: Likewise.
46872         * modules/xnanosleep: Likewise.
46873         * modules/xstrtol: Likewise.
46874
46875 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46876
46877         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46878         * modules/lock-tests (TESTS): Use $(EXEEXT).
46879         * modules/tls-tests: Likewise.
46880         * modules/argp-tests: Likewise.
46881         (check_PROGRAMS): New var, replacing...
46882         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46883
46884 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46885
46886         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46887         `config.h'.
46888
46889 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46892
46893 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46894
46895         Sync from coreutils.
46896         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46897         gl_CHDIR_SAFER.
46898
46899 2006-02-22  Jim Meyering  <jim@meyering.net>
46900
46901         Sync from coreutils.
46902         * m4/chdir-safer.m4: New file.
46903
46904 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46905
46906         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46907         AT_FDCWD exceeds INT_MAX.
46908         * lib/openat.h (AT_FDCWD): Likewise.
46909
46910 2006-02-17  Eric Blake  <address@hidden>
46911
46912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46913
46914 2006-02-16  Simon Josefsson  <jas@extundo.com>
46915
46916         * modules/getaddrinfo (Depends-on): Add sys_socket.
46917
46918 2006-02-15  Simon Josefsson  <jas@extundo.com>
46919
46920         * build-aux/maint.mk: Add dsyntax-check rule.
46921
46922 2006-02-15  Eric Blake  <ebb9@byu.net>
46923
46924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46925         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46926         'present but cannot compile' warnings on cygwin.
46927         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46928         use ws2tcpip.h if sys/socket.h works.
46929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46930         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46931
46932 2006-02-14  Simon Josefsson  <jas@extundo.com>
46933
46934         * modules/maintainer-makefile (Files): Rename.
46935
46936         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46937         and (the local) Makefile.cfg to maint-cfg.mk.
46938
46939         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46940         to the latter.
46941
46942         * modules/maintainer-makefile: New module.
46943
46944         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46945         severaly stripped to make it possible to build it up from scratch
46946         with reliable tests.
46947
46948         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46949         fixes to permit overriding the default actions when configure and
46950         makefile are not available.
46951
46952 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46953
46954         Sync from coreutils.
46955         * modules/lstat (Depends-on): Don't depend on xalloc.
46956         (License): Change from GPL to LGPL, since this is now simply a
46957         replacement for a libc function.
46958
46959 2006-02-14  Jim Meyering  <jim@meyering.net>
46960
46961         Sync from coreutils.
46962
46963         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46964         failure on deficient systems, and simplify gnulib lgpl dependencies.
46965         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46966         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46967
46968         * lib/xalloc-die.c: Remove unused definition of N_.
46969
46970 2006-02-14  Jim Meyering  <jim@meyering.net>
46971
46972         Sync from coreutils.
46973         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46974         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46975         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46976         double-quote uses of that variable, to accommodate the rare case in
46977         which getmntent is available in none of the libraries checked.  This
46978         happens at least on FreeBSD 5.0.
46979
46980 2006-02-13  Simon Josefsson  <jas@extundo.com>
46981
46982         * gnulib-tool (Usage): Fix --import, from
46983         karl@freefriends.org (Karl Berry).
46984
46985 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46986
46987         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46988
46989 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46990
46991         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46992         "autoupdate" on 2005-12-12.
46993
46994 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46995
46996         * modules/closeout (Depends-on): Remove atexit.
46997
46998 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46999
47000         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47001         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47002
47003 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47004
47005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47006         __EXTENSIONS__ if this causes compilation to fail.  Problem
47007         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47008         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47009
47010 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47011
47012         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47013         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47014         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47015         All uses changed.
47016
47017 2006-01-26  Simon Josefsson  <jas@extundo.com>
47018
47019         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47020         prototype is visible on mingw32.
47021
47022         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47023         for mingw32.
47024
47025         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47026         mingw32).
47027
47028 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47029
47030         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47031         attempt to open for write; this always fails, at least on POSIX
47032         hosts.  This reinstates the 2006-01-09 change, which was
47033         inadvertently removed.
47034
47035 2006-01-26  Bruno Haible  <bruno@clisp.org>
47036
47037         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47038         Reported by Paul Eggert.
47039
47040 2006-01-26  Bruno Haible  <bruno@clisp.org>
47041             Paul Eggert  <eggert@cs.ucla.edu>
47042
47043         * lib/stdbool_.h (_Bool)
47044         [(! (defined __cplusplus || defined __BEOS__)
47045           && !defined __GNUC__
47046           && !(defined __HP_cc || defined __xlc__
47047                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47048                || defined __sgi))]:
47049         #define to signed char in these cases too; this simplifies
47050         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47051         etc., separately) and makes it more conservative.
47052
47053 2006-01-25  Simon Josefsson  <jas@extundo.com>
47054
47055         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47056         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47057         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47058
47059 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47060
47061         * lib/argp-namefrob.h: Bugfix. Remove stray #
47062
47063 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47066         so that we test the test.
47067         Check for yet another HP-UX cc bug involving *bool |= bool.
47068
47069 2006-01-25  Karl Berry  <karl@gnu.org>
47070
47071         * config/srclist.txt (vasnprintf.c): sync lost.
47072
47073 2006-01-25  Jim Meyering  <jim@meyering.net>
47074
47075         Sync from the stable (b5) branch of coreutils:
47076
47077         * lib/fts.c (fts_children): Don't let close() clobber errno from
47078         failed fchdir().
47079
47080         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47081         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47082         a dangling symlink.  That can also happen at least for ELOOP.
47083         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47084         FYI, this bug predates the inclusion of fts.c in coreutils.
47085
47086         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47087         in their own block, so pre-c99 compilers don't object.
47088
47089         Avoid the double-free (first in fts_read, second in fts_close) that
47090         would occur when an `active' directory is made inaccessible (e.g.,
47091         via chmod a-x) during a traversal.
47092         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47093         before returning.  Reproduce this failure by
47094         mkdir -p a/b; cd a; chmod a-x . b
47095         Reported by Stavros Passas.
47096
47097 2006-01-25  Jim Meyering  <jim@meyering.net>
47098
47099         * lib/fileblocks.c: Remove more useless parentheses.
47100         * lib/readutmp.h: Likewise.
47101
47102 2006-01-25  Bruno Haible  <bruno@clisp.org>
47103
47104         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47105         warnings.
47106         Reported by Paul Eggert.
47107
47108 2006-01-25  Bruno Haible  <bruno@clisp.org>
47109
47110         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47111         rid of a trap command. For Solaris sh.
47112         Reported by Mark D. Baushke <mdb@gnu.org>.
47113
47114 2006-01-24  Simon Josefsson  <jas@extundo.com>
47115
47116         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47117         Bruno.
47118
47119 2006-01-24  Karl Berry  <karl@gnu.org>
47120
47121         * config/srclist.txt (argp-namefrob.h): sync lost.
47122
47123 2006-01-24  Jim Meyering  <jim@meyering.net>
47124
47125         * modules/openat (Files): Add lib/intprops.h.
47126         From Mark D. Baushke.
47127
47128 2006-01-24  Jim Meyering  <jim@meyering.net>
47129
47130         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47131         Reported by Mark D. Baushke.
47132
47133 2006-01-24  Jim Meyering  <jim@meyering.net>
47134
47135         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47136
47137 2006-01-24  Bruno Haible  <bruno@clisp.org>
47138
47139         * modules/strnlen (Maintainer): Change from glibc to all.
47140
47141 2006-01-24  Bruno Haible  <bruno@clisp.org>
47142
47143         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47144         Patch by Paul Eggert.
47145
47146 2006-01-24  Bruno Haible  <bruno@clisp.org>
47147
47148         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47149         already has it.
47150         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47151         2005-11-26.
47152
47153         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47154         'signed char' to avoid problems with the built-in _Bool type.
47155         Reported by Paul Eggert on 2005-11-26.
47156
47157 2006-01-24  Bruno Haible  <bruno@clisp.org>
47158
47159         * gnulib-tool (func_import): Avoid constructing complicated sed
47160         expressions inside backquote.
47161         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47162
47163 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47164
47165         These changes imported from libc.
47166         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47167         test and two separate function calls.
47168         * lib/strndup.c (__strndup): Add libc_hidden_def.
47169
47170 2006-01-23  Simon Josefsson  <jas@extundo.com>
47171
47172         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47173         Remove the test_*_SOURCES variable: automake infers it by default.
47174         * modules/tls-tests: Likewise.
47175
47176 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47177
47178         Work around porting bugs reported by Dieter in
47179         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47180         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47181         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47182         Include "getopt.h" first, to check interface.
47183         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47184         !HAVE_DECL_GETENV.
47185         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47186         (__strndup): Revert to K&R-style function dfns, the glibc style.
47187         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47188         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47189         Include strnlen.h first, to get prototype properly.
47190         (strnlen): Renamed from __strnlen.
47191         Remove weak alias.
47192
47193 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47194
47195         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47196
47197 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47198
47199         * config/srclist.txt: Adjust to reflect glibc reorganization.
47200         This affects only comments.
47201
47202 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47203
47204          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47205          Reported by Bruce Korb <bkorb@gnu.org>.
47206
47207 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47210         to pacify gcc -Wswitch-default.
47211
47212 2006-01-22  Bruno Haible  <bruno@clisp.org>
47213
47214         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47215         temporary buffer for sprintf, take into account the precision also
47216         for 'd', 'i', 'u', 'o', 'x', 'X'.
47217
47218 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47219
47220         * modules/argp-tests: New module
47221         * tests/test-argp.c: New file
47222         * tests/test-argp-2.sh: New file
47223
47224 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47225
47226         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47227         (__argp_base_name): Removed
47228         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47229         typo.
47230         (__argp_base_name): Provide macro definition or extern declaration
47231         depending on the configuration
47232
47233 2006-01-20  Simon Josefsson  <jas@extundo.com>
47234
47235         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47236
47237 2006-01-20  Simon Josefsson  <jas@extundo.com>
47238
47239         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47240
47241 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47242
47243         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47244         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47245         Suggested by Bruno Haible.
47246
47247 2006-01-20  Karl Berry  <karl@gnu.org>
47248
47249         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47250         until changes propagate, I guess.
47251
47252 2006-01-19  Simon Josefsson  <jas@extundo.com>
47253
47254         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47255
47256 2006-01-19  Simon Josefsson  <jas@extundo.com>
47257
47258         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47259
47260 2006-01-19  Simon Josefsson  <jas@extundo.com>
47261
47262         * gnulib-tool: Set check_PROGRAMS.
47263
47264         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47265         modules/des-tests, modules/gc-arcfour-tests,
47266         modules/gc-arctwo-tests, modules/gc-des-tests,
47267         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47268         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47269         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47270         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47271         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47272         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47273         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47274         test_*_SOURCES.
47275
47276 2006-01-18  Simon Josefsson  <jas@extundo.com>
47277
47278         * modules/socklen (Depends-on): Depend on sys_socket.
47279
47280 2006-01-18  Simon Josefsson  <jas@extundo.com>
47281
47282         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47283         modules/des-tests, modules/gc-arcfour-tests,
47284         modules/gc-arctwo-tests, modules/gc-des-tests,
47285         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47286         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47287         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47288         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47289         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47290         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47291         $(EXEEXT) to automake TESTS variable, for mingw32.
47292
47293 2006-01-17  Simon Josefsson  <jas@extundo.com>
47294
47295         * modules/socklen (Include): Need sys/socket.h.
47296
47297 2006-01-17  Bruno Haible  <bruno@clisp.org>
47298
47299         * modules/ssize_t (Include): Add <sys/types.h>.
47300
47301 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47302
47303         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47304         it's not portable and it doesn't work with cross-compiles.
47305         Problem reported by Bruno Haible.  Fix missing-$ typo in
47306         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47307         -zignore from being used with Sun's C compiler.
47308
47309 2006-01-12  Simon Josefsson  <jas@extundo.com>
47310
47311         * lib/base64.c: Fix warning, reported by Bruno Haible
47312         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47313
47314 2006-01-12  Bruno Haible  <bruno@clisp.org>
47315
47316         * modules/ldd: New file.
47317         * build-aux/ldd.sh.in: New file.
47318         * MODULES.html.sh (Support for building libraries and executables): Add
47319         ldd.
47320
47321 2006-01-12  Bruno Haible  <bruno@clisp.org>
47322
47323         * m4/ldd.m4: New file.
47324
47325 2006-01-12  Bruno Haible  <bruno@clisp.org>
47326
47327         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47328         endless loop while replacing $auxdir with build-aux.
47329
47330 2006-01-11  Simon Josefsson  <jas@extundo.com>
47331
47332         * lib/stdint_.h (SIZE_MAX): Add missing (.
47333
47334 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47335
47336         Sync from coreutils.
47337         * lib/md5.c: Fix commentary typos.
47338         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47339         * lib/md5.h (__attribute__): Remove; unused.
47340         * lib/sha1.c: Fix commentary to match md5 better.
47341         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47342         so that we don't need to worry about alignment.  All uses changed.
47343         This merges the 2005-10-28 md5 change into sha1.
47344
47345 2006-01-11  Jim Meyering  <jim@meyering.net>
47346
47347         Sync from coreutils.
47348         * lib/md5.c (OP): Fix spacing.
47349
47350 2006-01-11  Bruno Haible  <bruno@clisp.org>
47351
47352         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47353         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47354         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47355
47356 2006-01-11  Bruno Haible  <bruno@clisp.org>
47357
47358         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47359         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47360         the "early" section as well.
47361
47362 2006-01-11  Bruno Haible  <bruno@clisp.org>
47363
47364         Avoid "ar: no archive members specified" error on MacOS X.
47365         * gnulib-tool (func_modules_add_dummy): New function.
47366         (func_import, func_create_testdir): Invoke it.
47367
47368 2006-01-11  Bruno Haible  <bruno@clisp.org>
47369
47370         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47371         with $auxdir in AC_CONFIG_FILES statements.
47372
47373 2006-01-11  Bruno Haible  <bruno@clisp.org>
47374
47375         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47376         Initialize also noinst_HEADERS to empty.
47377
47378 2006-01-11  Bruno Haible  <bruno@clisp.org>
47379
47380         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47381         variables.
47382         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47383         autoreconf.
47384
47385 2006-01-11  Bruno Haible  <bruno@clisp.org>
47386
47387         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47388         overridable by the user.
47389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47390
47391 2006-01-10  Simon Josefsson  <jas@extundo.com>
47392
47393         * modules/sys_socket: New file.
47394
47395 2006-01-10  Simon Josefsson  <jas@extundo.com>
47396
47397         * m4/sys_socket_h.m4: New file.
47398
47399 2006-01-10  Simon Josefsson  <jas@extundo.com>
47400
47401         * lib/socket_.h: New file.
47402
47403 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47404
47405         * modules/readutmp (Maintainer): Add myself.
47406
47407 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47408
47409         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47410         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47411         People who are still concerned with buggy memcmp implementations
47412         can invoke gl_FUNC_MEMCMP themselves.
47413
47414 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47415
47416         * lib/regex_internal.h (BITSET_WORD_BITS):
47417         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47418         preprocessor mishandles large unsigned values as if they were signed.
47419         Problem reported by Claudio Fontana in
47420         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47421
47422 2006-01-10  Jim Meyering  <jim@meyering.net>
47423
47424         Avoid the double-free (first in fts_read, second in fts_close) that
47425         would occur when an `active' directory is made inaccessible (e.g.,
47426         via chmod a-x) during a traversal.
47427         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47428         before returning.  Reproduce this failure by
47429         mkdir -p a/b; cd a; chmod a-x . b
47430         Reported by Stavros Passas.
47431
47432         Sync from coreutils.
47433         * lib/sha1.c: Tweak grammar in a comment.
47434
47435 2006-01-10  Jim Meyering  <jim@meyering.net>
47436
47437         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47438         Patch by Joerg Sonnenberger.
47439
47440 2006-01-10  Bruno Haible  <bruno@clisp.org>
47441
47442         * modules/readutmp: Depend on module free.
47443         * modules/strtok_r: Depend on module restrict.
47444
47445 2006-01-10  Bruno Haible  <bruno@clisp.org>
47446
47447         * modules/gettext (configure.ac): Add an invocation of
47448         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47449
47450 2006-01-10  Bruno Haible  <bruno@clisp.org>
47451
47452         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47453         Reported by Werner Lemberg <wl@gnu.org>.
47454
47455 2006-01-10  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/localcharset.c: Update from GNU gettext.
47458
47459 2006-01-10  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/argp.h (__const): Remove macro. Use const instead.
47462         * lib/argp-fmtstream.h (__const): Likewise.
47463         * lib/glob_.h (__const): Remove macro.
47464         * lib/glob-libc.h: Use const instead of __const.
47465
47466 2006-01-10  Bruno Haible  <bruno@clisp.org>
47467
47468         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47469         variable.
47470         Needed to avoid an automake error regarding the 'gettext' module.
47471
47472 2006-01-09  Simon Josefsson  <jas@extundo.com>
47473
47474         * modules/inet_ntop (Depends-on): Add restrict.
47475
47476 2006-01-09  Simon Josefsson  <jas@extundo.com>
47477
47478         * modules/gc-rijndael-tests (License): Put under LGPL.
47479
47480         * modules/gc-des-tests (License): Likewise.
47481
47482         * modules/gc-arcfour-tests (License): Likewise.
47483
47484         * modules/gc-arctwo-tests (License): Likewise.
47485
47486         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47487
47488         * modules/gc-hmac-sha1-tests (Files): Likewise.
47489
47490         * modules/gc-hmac-md5-tests (License): Likewise.
47491
47492         * modules/gc-sha1-tests (License): Likewise.
47493
47494         * modules/gc-md5-tests (License): Likewise.
47495
47496         * modules/gc-md4-tests (License): Likewise.
47497
47498         * modules/gc-md2-tests (License): Likewise.
47499
47500         * modules/gc-tests (License): Likewise.
47501
47502         * modules/des-tests (License): Likewise.
47503
47504         * modules/md4-tests (License): Likewise.
47505
47506         * modules/md2-tests (License): Likewise.
47507
47508 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         Sync from coreutils:
47511
47512         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47513         * modules/lib-ignore: New file.
47514         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47515         chdir-safer.m4, lchmod.m4.
47516         * modules/openat: Add mkdirat.c, openat-priv.h.
47517
47518 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47519
47520         Sync from coreutils.
47521         * m4/lib-ignore.m4: New file.
47522         * m4/lchmod.m4: New file.
47523
47524 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47525
47526         Sync from coreutils.
47527         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47528         for write access: POSIX says that must fail.
47529         * lib/fts.c (diropen): Likewise.
47530         * lib/save-cwd.c (save_cwd): Likewise.
47531         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47532         well, for minor improvements on hosts that lack O_DIRECTORY.
47533         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47534         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47535         Fall back on chown if open failed with EACCES.
47536
47537         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47538         Report an error at compile-time if only a 1-second nominal clock
47539         resolution is found.
47540
47541         * lib/lchmod.h: New file.
47542         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47543         (make_dir_parents): Use lchown rather than chown, and
47544         lchmod rather than chmod.
47545
47546         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47547         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47548         "proc" reported by n0dalus.
47549
47550         * lib/mountlist.c: Include <limits.h>.
47551         (dev_from_mount_options)
47552         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47553         New function.  It no longer assumes "dev=" has the System V meaning
47554         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47555         (read_file_system_list)
47556         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47557         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47558         dev= in that case.
47559
47560         * lib/posixtm.h (PDS_PRE_2000): New macro.
47561         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47562         allow_century.  All usages changed.  Reject dates outside the range
47563         1969-1999 if PDS_PRE_2000 is used.
47564
47565 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47566
47567         Sync from coreutils.
47568         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47569         (Time of day items): Mention the possibility of leap seconds.
47570         Problem reported by Dr. David Alan Gilbert.
47571
47572 2006-01-09  Jim Meyering  <jim@meyering.net>
47573
47574         Sync from coreutils.
47575
47576         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47577
47578         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47579
47580         * lib/modechange.c (mode_compile): Reject an invalid mode string
47581         that starts with an octal digit.  From Andreas Gruenbacher.
47582
47583         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47584         and dup to open_safer and dup_safer, respectively.
47585         (openat_permissive): Fix typo in comment.
47586
47587         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47588         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47589         (_): Remove; no longer needed.
47590         (openat): Renamed from rpl_openat; no need for rpl_openat
47591         since openat.h renames openat for us.
47592         Replace most of the body with a call to openat_permissive,
47593         to avoid duplicate code.
47594         Port to (probably hypothetical) environments were mode_t is
47595         wider than int.
47596         (openat_permissive): Require mode arg, so that we can check
47597         types better.  Put it just after flags.  Change cwd failure
47598         indicator from pointer-to-bool to pointer-to-errno-value.
47599         All callers changed.
47600         Invoke openat_save_fail and/or openat_restore_fail if
47601         cwd_errno is null, so that openat can call us.
47602         (openat_permissive, fdopendir, fstatat, unlinkat):
47603         Simplify errno handling to avoid some duplicate code,
47604         as it's OK to set errno on success.
47605         * lib/openat.h: Revamp code so that function macros depend on
47606         __OPENAT_PREFIX only, not also on AT_FDCWD.
47607         (openat_ro): Remove.  Caller changed to use openat_permissive.
47608         (openat_permissive): Now a macro, if not a function.
47609         (openat_restore_fail, openat_save_fail): Now always functions,
47610         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47611
47612         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47613         and openat.c.
47614         * lib/mkdirat.c: Include openat-priv.h.
47615         Remove definitions of macros defined therein.
47616         * lib/openat.c: Likewise.
47617
47618         * lib/mkdirat.c (mkdirat): New file and function.
47619         * lib/openat.h (mkdirat): Declare.
47620
47621         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47622
47623         * lib/openat.h (openat_permissive): Declare.
47624         (openat_ro): Define.
47625
47626         * lib/openat.c (EXPECTED_ERRNO): New macro.
47627         (openat_permissive): New function -- used in remove.c rewrite.
47628         (all functions): Set errno just before returning, only if there
47629         was an actual failure.
47630         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47631
47632         Emulate openat-family functions using Linux's procfs, if possible.
47633         Idea and some code based on Ulrich Drepper's glibc changes.
47634
47635         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47636         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47637         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47638         before falling back on save_cwd and restore_cwd.
47639         (fdopendir, fstatat, unlinkat): Likewise.
47640
47641         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47642         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47643
47644         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47645         as second argument to va_arg.  Otherwise, some versions of gcc
47646         warn that `if this code is reached, the program will abort'.
47647
47648 2006-01-09  Jim Meyering  <jim@meyering.net>
47649
47650         Sync from coreutils.
47651         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47652         Require openat-priv.h.
47653
47654 2006-01-09  Bruno Haible  <bruno@clisp.org>
47655
47656         * modules/strnlen (Include): Use strnlen.h.
47657
47658 2006-01-09  Bruno Haible  <bruno@clisp.org>
47659
47660         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47661
47662 2006-01-09  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/sysexit_.h (EX_OK): New macro.
47665         Suggested by Martin Lambers <marlam@marlam.de>.
47666
47667 2006-01-09  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47670         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47671
47672 2006-01-09  Bruno Haible  <bruno@clisp.org>
47673
47674         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47675         numbers.
47676
47677 2006-01-09  Bruno Haible  <bruno@clisp.org>
47678
47679         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47680         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47681         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47682         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47683
47684 2006-01-09  Bruno Haible  <bruno@clisp.org>
47685
47686         * build-aux/javacomp.sh.in: New file, moved from lib/.
47687         * modules/javacomp-script (Files): Update.
47688         (configure.ac): Add AC_CONFIG_FILES invocation.
47689         (EXTRA_DIST): Remove variable.
47690
47691         * build-aux/javaexec.sh.in: New file, moved from lib/.
47692         * modules/javaexec (Files): Update.
47693         (configure.ac): Add AC_CONFIG_FILES invocation.
47694         (EXTRA_DIST): Remove javaexec.sh.in.
47695
47696         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47697         * modules/csharpcomp-script (Files): Update.
47698         (configure.ac): Add AC_CONFIG_FILES invocation.
47699         (EXTRA_DIST): Remove variable.
47700
47701         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47702         * modules/csharpexec (Files): Update.
47703         (configure.ac): Add AC_CONFIG_FILES invocation.
47704         (EXTRA_DIST): Remove csharpexec.sh.in.
47705
47706 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47707
47708         Sync from coreutils.
47709
47710         Add POSIX ACL support
47711         * lib/acl.h (copy_acl, set_acl): Add declarations.
47712         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47713         systems other than Linux.
47714         (chmod_or_fchmod): New function: use fchmod when possible,
47715         and chmod otherwise.
47716         (file_has_acl): Add a POSIX ACL implementation, with a
47717         Linux-specific subcase.
47718         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47719         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47720         acls are unsupported.
47721         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47722         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47723         are unsupported.
47724
47725 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47726
47727         Sync from coreutils.
47728         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47729
47730 2006-01-07  Bruno Haible  <bruno@clisp.org>
47731
47732         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47733         gl_EARLY.
47734
47735 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47736
47737         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47738         Problem reported for Mingw by Mark Junker.
47739
47740 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47741
47742         * README: Gnulib normally doesn't generate a tarball.
47743
47744 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47747         long int, not int, for nanosecond counts, so that people who are
47748         used to POSIX struct timespec won't be surprised.  Reported by Jim
47749         Meyering.
47750
47751 2005-12-28  Bruno Haible  <bruno@clisp.org>
47752
47753         * build-aux/config.rpath: Update from GNU gettext.
47754
47755 2005-12-16  Jim Meyering  <jim@meyering.net>
47756
47757         * modules/fprintftime: New module.
47758         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47759
47760 2005-12-16  Jim Meyering  <jim@meyering.net>
47761
47762         * m4/fprintftime.m4: New file.
47763
47764 2005-12-16  Jim Meyering  <jim@meyering.net>
47765
47766         * lib/fprintftime.c, lib/fprintftime.h: New files.
47767
47768 2005-12-15  Simon Josefsson  <jas@extundo.com>
47769
47770         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47771         new m4/socklen.m4.
47772
47773 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47774
47775         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47776         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47777
47778 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47779
47780         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47781         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47782         struct uparams is valid. Fall back to the default values if it is
47783         not.
47784
47785 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47786
47787         * modules/argp (Files): Add argp-pin.c
47788         (Depends-on): dirname
47789         (lib_SOURCES): Add argp-pin.c
47790
47791 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47792
47793         * m4/argp.m4:  Check if program_invocation_name and
47794         program_invocation_short_name are declared and define appropriate
47795         macros if they are not.
47796
47797 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47798
47799         * lib/argp-help.c (__argp_base_name): New function
47800         (__argp_short_program_name): Rewrite using __argp_base_name
47801         * lib/argp-namefrob.h: Define program_invocation_name and
47802         program_invocation_short_name if requested
47803         (__argp_base_name): Add prototype
47804         * lib/argp-parse.c (argp_def): Use gettext wrappers
47805         (argp_default_parser): Use __argp_base_name
47806         * lib/argp-pin.c: New file. Defines program_invocation_name and
47807         program_invocation_short_name on systems that lack them.
47808
47809 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47812         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47813         porting problem reported by Georg Schwarz in
47814         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47815
47816 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47817
47818         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): 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-05  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47826         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47827         Reported by Mark Junker <mjscod@gmx.de>.
47828
47829 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47830
47831         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47832         Use implementation from Albert Chin, with some
47833         comments/corrections by Stepan Kasal and myself.
47834
47835 2005-12-02  Bruno Haible  <bruno@clisp.org>
47836
47837         * gnulib-tool (func_import): Accept GPLed build tool modules when
47838         --lgpl is given.
47839         * modules/csharpcomp-script: New file.
47840         * modules/csharpcomp: Depend on it.
47841         * modules/javacomp-script: New file.
47842         * modules/javacomp: Depend on it.
47843         Suggested by Simon Josefsson.
47844
47845 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47846
47847         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47848         statement, to work around an HP-UX 10.20 compiler bug reported by
47849         Peter O'Gorman.
47850
47851 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47852
47853         * modules/savedir (Depends-on): Add openat.
47854
47855 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47856
47857         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47858         (uintmax_t) [defined uintmax_t]: Do not declare.
47859         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47860         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47861         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47862         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47863         sake of portability to weird hosts that C allows (though we don't
47864         know of any practical examples).
47865
47866         * lib/savedir.h (fdsavedir): New decl.
47867         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47868         contains most of the former guts of savedir.
47869         (savedir): Use savedirstream.
47870         Include "openat.h".
47871
47872 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47873
47874         * modules/obstack (Files): Add m4/ulonglong.m4.
47875         Problem reported by Davide Angelocola.
47876
47877 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47878
47879         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47880         coreutils no longer futzes with rounding modes.
47881
47882 2005-11-14  Jim Meyering  <jim@meyering.net>
47883
47884         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47885         replacement of mkstemp.
47886
47887 2005-11-10  Simon Josefsson  <jas@extundo.com>
47888
47889         * lib/readline.c: Remove EOL.
47890
47891 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47892
47893         * modules/gethrxtime (Depends-on): Add gettime.
47894
47895 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47896
47897         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47898         or gettimeofday; no longer needed.
47899
47900 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47901
47902         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47903         time business.
47904         (gethrxtime) [! (HAVE_NANOUPTIME
47905         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47906         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47907         our own approximation.
47908
47909 2005-11-08  Eric Blake  <ebb9@byu.net>
47910
47911         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47912
47913 2005-11-08  Eric Blake  <ebb9@byu.net>
47914
47915         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47916
47917 2005-11-04  Bruno Haible  <bruno@clisp.org>
47918
47919         * gnulib-tool: Implement --update mode.
47920
47921 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47922
47923         Fix porting problem reported by Theodoros V. Kalamatianos.
47924         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47925         Don't assume that futimes failing means we must fail.
47926
47927 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47928
47929         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47930         variables to suggest the intended function of the PATH_MAX check.
47931
47932 2005-10-30  Kean Johnston  <jkj@sco.com>
47933
47934         Trivial changes to support SCO systems.
47935         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47936         as PATH_MAX.
47937         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47938         where __ptr is null when no I/O is pending.
47939
47940 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47941
47942         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47943         leave errno alone.  Problem reported by Dmitry V. Levin.
47944
47945 2005-10-28  Simon Josefsson  <jas@extundo.com>
47946
47947         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47948         Test more.
47949
47950         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47951
47952         * modules/md2, modules/md2-tests: New files.
47953
47954 2005-10-28  Simon Josefsson  <jas@extundo.com>
47955
47956         * m4/inet_ntop.m4: More tests.
47957
47958         * m4/gc-md2.m4, md2.m4: New file.
47959
47960 2005-10-28  Simon Josefsson  <jas@extundo.com>
47961
47962         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47963         "restrict" keywords, as per POSIX.  Protect the function
47964         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47965         Don't use K&R prototypes.  Check the sprintf return values.
47966         Re-define EAFNOSUPPORT if not present.  Indent.
47967
47968         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47969         suggested by Bruno Haible <bruno@clisp.org>.
47970
47971         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47972
47973         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47974
47975         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47976         libgcrypt).
47977
47978         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47979
47980         * lib/md2.h, lib/md2.c: New files.
47981
47982 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47983
47984         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47985         errno alone.  Problem reported by Frederic Jolliton.
47986
47987 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47988
47989         * modules/verify (License): Change from GPL to LGPL.  This is a
47990         tiny module and there are apparently near-equivalents that are
47991         under the BSD license.
47992
47993 2005-10-24  Simon Josefsson  <jas@extundo.com>
47994
47995         * modules/sha1: Relicense to LGPL.
47996
47997 2005-10-24  Simon Josefsson  <jas@extundo.com>
47998
47999         * lib/md4.h: Shrink buffer size, now that we changed the type.
48000
48001 2005-10-23  Simon Josefsson  <jas@extundo.com>
48002
48003         * gnulib-tool (func_import): Fix --tests-base.
48004
48005 2005-10-22  Simon Josefsson  <jas@extundo.com>
48006
48007         * modules/arcfour (Depends-on): Need stdint.
48008
48009 2005-10-22  Simon Josefsson  <jas@extundo.com>
48010
48011         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48012         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48013
48014 2005-10-22  Simon Josefsson  <jas@extundo.com>
48015
48016         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48017         suggested by Bruno Haible <bruno@clisp.org>.
48018
48019 2005-10-22  Simon Josefsson  <jas@extundo.com>
48020
48021         * lib/crc.h: Include stddef.h, for size_t.
48022
48023 2005-10-22  Simon Josefsson  <jas@extundo.com>
48024
48025         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48026         arcfour_context struct (simplify test vector testing in GNU
48027         Shishi).
48028
48029 2005-10-21  Simon Josefsson  <jas@extundo.com>
48030
48031         * modules/des, modules/des-tests: New files.
48032
48033         * modules/gc-des, modules/gc-des-tests: New files.
48034
48035         * tests/test-des.c, tests/test-gc-des.c: New file.
48036
48037 2005-10-21  Simon Josefsson  <jas@extundo.com>
48038
48039         * modules/arctwo, modules/arctwo-tests: New files.
48040
48041         * tests/test-arctwo.c: New file.
48042
48043         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48044
48045         * tests/test-gc-arctwo.c: New file.
48046
48047 2005-10-21  Simon Josefsson  <jas@extundo.com>
48048
48049         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48050         Bruno Haible <bruno@clisp.org>.
48051
48052         * m4/gc-des.m4: New file.
48053
48054 2005-10-21  Simon Josefsson  <jas@extundo.com>
48055
48056         * m4/arctwo.m4: New file.
48057
48058         * m4/gc-arctwo.m4: New file.
48059
48060 2005-10-21  Simon Josefsson  <jas@extundo.com>
48061
48062         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48063         block.
48064
48065 2005-10-21  Simon Josefsson  <jas@extundo.com>
48066
48067         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48068         <bruno@clisp.org>.
48069
48070         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48071
48072         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48073         Bruno Haible <bruno@clisp.org>.
48074
48075         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48076         <bruno@clisp.org>.
48077
48078 2005-10-21  Simon Josefsson  <jas@extundo.com>
48079
48080         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48081
48082 2005-10-21  Simon Josefsson  <jas@extundo.com>
48083
48084         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48085
48086 2005-10-21  Simon Josefsson  <jas@extundo.com>
48087
48088         * lib/des.h, lib/des.c: New files.
48089
48090         * lib/gc-gnulib.c: Support DES.c
48091
48092 2005-10-21  Simon Josefsson  <jas@extundo.com>
48093
48094         * lib/arctwo.h, lib/arctwo.c: New files.
48095
48096         * lib/gc-gnulib.c: Support ARCTWO.
48097
48098 2005-10-21  Simon Josefsson  <jas@extundo.com>
48099
48100         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48101         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48102
48103 2005-10-21  Simon Josefsson  <jas@extundo.com>
48104
48105         * gnulib-tool (func_import, func_create_testdir): Define automake
48106         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48107         Makefile.am snippet),
48108         suggested by Bruno Haible <bruno@clisp.org>.
48109
48110         * modules/gc (Makefile.am): Use it.
48111
48112 2005-10-21  Bruno Haible  <bruno@clisp.org>
48113
48114         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48115         patch.
48116
48117 2005-10-19  Simon Josefsson  <jas@extundo.com>
48118
48119         * tests/test-gc-rijndael.c: New file.
48120
48121         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48122
48123 2005-10-19  Simon Josefsson  <jas@extundo.com>
48124
48125         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48126         interface too.
48127
48128 2005-10-19  Simon Josefsson  <jas@extundo.com>
48129
48130         * tests/test-gc-arcfour.c: New file.
48131
48132         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48133
48134 2005-10-19  Simon Josefsson  <jas@extundo.com>
48135
48136         * modules/gc-md4, modules/gc-md4-tests: New file.
48137
48138         * tests/test-gc-md4.c: New file.
48139
48140 2005-10-19  Simon Josefsson  <jas@extundo.com>
48141
48142         * m4/gc-md4.m4: New file.
48143
48144 2005-10-19  Simon Josefsson  <jas@extundo.com>
48145
48146         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48147         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48148         <kasal@ucw.cz>.
48149
48150 2005-10-19  Simon Josefsson  <jas@extundo.com>
48151
48152         * m4/gc-arcfour.m4: New file.
48153
48154         * m4/gc-rijndael.m4: New file.
48155
48156 2005-10-19  Simon Josefsson  <jas@extundo.com>
48157
48158         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48159
48160 2005-10-19  Simon Josefsson  <jas@extundo.com>
48161
48162         * lib/gc-gnulib.c: Support ARCFOUR.
48163
48164 2005-10-19  Simon Josefsson  <jas@extundo.com>
48165
48166         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48167         support.
48168
48169         * lib/gc.h: Add ECB enum type.
48170
48171         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48172
48173 2005-10-18  Simon Josefsson  <jas@extundo.com>
48174
48175         * tests/test-md5.c: New file.
48176
48177         * modules/md5-tests: New file.
48178
48179 2005-10-18  Simon Josefsson  <jas@extundo.com>
48180
48181         * tests/test-md4.c: New file.
48182
48183         * modules/md4, modules/md4-tests: New files.
48184
48185 2005-10-18  Simon Josefsson  <jas@extundo.com>
48186
48187         * m4/md4.m4: New file.
48188
48189 2005-10-18  Simon Josefsson  <jas@extundo.com>
48190
48191         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48192
48193 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48194
48195         * gnulib-tool (func_create_testdir): Omit the second check whether
48196         BUILT_SOURCES in nonempty.
48197
48198 2005-10-17  Simon Josefsson  <jas@extundo.com>
48199
48200         * tests/test-rijndael.c: New file.
48201
48202 2005-10-17  Simon Josefsson  <jas@extundo.com>
48203
48204         * modules/sha1: Depend on stdint instead of md5.
48205
48206         * modules/md5: Depend on stdint, remove uint32_t.
48207
48208 2005-10-17  Simon Josefsson  <jas@extundo.com>
48209
48210         * modules/gc-sha1-tests: New file.
48211
48212         * tests/test-gc-sha1.c: New file.
48213
48214 2005-10-17  Simon Josefsson  <jas@extundo.com>
48215
48216         * m4/md5.m4: Remove call to uint32_t.m4.
48217
48218 2005-10-17  Simon Josefsson  <jas@extundo.com>
48219
48220         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48221
48222         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48223         md5.h.
48224
48225         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48226
48227         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48228
48229 2005-10-17  Simon Josefsson  <jas@extundo.com>
48230
48231         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48232
48233 2005-10-17  Simon Josefsson  <jas@extundo.com>
48234
48235         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48236
48237 2005-10-17  Simon Josefsson  <jas@extundo.com>
48238
48239         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48240
48241         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48242
48243 2005-10-17  Bruno Haible  <bruno@clisp.org>
48244
48245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48246         that it can also be used in a test.
48247
48248 2005-10-16  Bruno Haible  <bruno@clisp.org>
48249
48250         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48251         TESTS_ENVIRONMENT, so that individual tests can augment it.
48252
48253         * gnulib-tool (func_create_testdir): Use an intermediate target for
48254         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48255         macros, like $(ALLOCA_H), which cannot be passed through the command
48256         line.
48257
48258 2005-10-15  Simon Josefsson  <jas@extundo.com>
48259
48260         * modules/rijndael-tests: New file.
48261
48262         * modules/rijndael: New file.
48263
48264 2005-10-15  Simon Josefsson  <jas@extundo.com>
48265
48266         * m4/rijndael.m4: New file.
48267
48268 2005-10-15  Simon Josefsson  <jas@extundo.com>
48269
48270         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48271
48272         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48273
48274 2005-10-14  Simon Josefsson  <jas@extundo.com>
48275
48276         * tests/test-arcfour.c: New file.
48277
48278         * modules/arcfour, modules/arcfour-tests: New files.
48279
48280 2005-10-14  Simon Josefsson  <jas@extundo.com>
48281
48282         * m4/arcfour.m4: New file.
48283
48284 2005-10-14  Simon Josefsson  <jas@extundo.com>
48285
48286         * lib/arcfour.h, lib/arcfour.c: New files.
48287
48288 2005-10-14  Roland McGrath  <roland@redhat.com>
48289
48290         Import from libc.  [BZ #1331]
48291         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48292         macro argument.
48293         Reported by Matej Vela <vela@debian.org>.
48294
48295 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48296
48297         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48298         include <wchar.h>; no longer needed.
48299
48300 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48301
48302         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48303
48304 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48305         and  Ulrich Drepper  <drepper@redhat.com>
48306
48307         Import from libc.
48308         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48309         instead of inline stream orientation test and two separate
48310         function calls.  Pay no attention to USE_IN_LIBIO.
48311
48312 2005-10-13  Simon Josefsson  <jas@extundo.com>
48313
48314         * modules/gc-hmac-md5-tests: New file.
48315
48316         * tests/test-gc-hmac-sha1.c: New file.
48317
48318         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48319
48320         * modules/gc-hmac-md5-tests: New file.
48321
48322         * tests/test-gc-md5.c: New file.
48323
48324         * modules/gc-md5-tests: New file.
48325
48326 2005-10-13  Simon Josefsson  <jas@extundo.com>
48327
48328         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48329         Move memory allocation outside of loop.
48330
48331 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48332
48333         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48334         intermediate directory is in a read-only file system.  Problem
48335         reported by Eric Blake.
48336
48337 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48338
48339         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48340
48341 2005-10-12  Simon Josefsson  <jas@extundo.com>
48342
48343         * tests/test-hmac-sha1.c: New file.
48344
48345         * modules/hmac-sha1-tests: New file.
48346
48347         * modules/hmac-sha1: New file.
48348
48349 2005-10-12  Simon Josefsson  <jas@extundo.com>
48350
48351         * modules/gc-sha1: New file.
48352
48353 2005-10-12  Simon Josefsson  <jas@extundo.com>
48354
48355         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48356
48357         * tests/test-gc-pbkdf2-sha1.c: New file.
48358
48359 2005-10-12  Simon Josefsson  <jas@extundo.com>
48360
48361         * modules/gc-md5, modules/gc-hmac-md5: New files.
48362
48363         * modules/gc (Files): Remove md5, memxor and hmac files.
48364
48365 2005-10-12  Simon Josefsson  <jas@extundo.com>
48366
48367         * m4/gc-pbkdf2-sha1.m4: New file.
48368
48369         * m4/gc-hmac-sha1.m4: New file.
48370
48371         * m4/gc-sha1: New file.
48372
48373         * m4/hmac-sha1.m4: New file.
48374
48375 2005-10-12  Simon Josefsson  <jas@extundo.com>
48376
48377         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48378
48379         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48380
48381 2005-10-12  Simon Josefsson  <jas@extundo.com>
48382
48383         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48384         suggested by Bruno Haible <bruno@clisp.org>.
48385
48386 2005-10-12  Simon Josefsson  <jas@extundo.com>
48387
48388         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48389
48390 2005-10-12  Simon Josefsson  <jas@extundo.com>
48391
48392         * lib/gc-pbkdf2-sha1.c: New file.
48393
48394         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48395
48396 2005-10-12  Simon Josefsson  <jas@extundo.com>
48397
48398         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48399
48400         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48401
48402 2005-10-12  Simon Josefsson  <jas@extundo.com>
48403
48404         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48405         GC_USE_HMAC_MD5, respectively.
48406
48407         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48408         (gc_md5): Fix typo.
48409
48410         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48411
48412         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48413
48414         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48415
48416 2005-10-12  Bruno Haible  <bruno@clisp.org>
48417
48418         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48419         Reported by Stepan Kasal <kasal@ucw.cz>.
48420
48421 2005-10-11  Simon Josefsson  <jas@extundo.com>
48422
48423         * tests/test-crc.c: New file.
48424
48425         * modules/crc, modules/crc-tests: New files.
48426
48427 2005-10-11  Simon Josefsson  <jas@extundo.com>
48428
48429         * m4/crc.m4: New file.
48430
48431 2005-10-11  Simon Josefsson  <jas@extundo.com>
48432
48433         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48434
48435         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48436
48437         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48438
48439 2005-10-11  Simon Josefsson  <jas@extundo.com>
48440
48441         * lib/crc.h, lib/crc.c: New files.
48442
48443         * lib/gc.h (gc_hash_buffer): Add doc.
48444
48445 2005-10-11  Bruno Haible  <bruno@clisp.org>
48446
48447         * modules/c-strcasestr: New file.
48448         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48449
48450 2005-10-11  Bruno Haible  <bruno@clisp.org>
48451
48452         * modules/c-strcase: New file.
48453         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48454
48455 2005-10-11  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/strcasecmp.c: Include limits.h.
48458         (strcasecmp): Avoid integer overflow on exotic platforms.
48459         * lib/strncasecmp.c: Include limits.h.
48460         (strncasecmp): Avoid integer overflow on exotic platforms.
48461         Reported by Paul Eggert.
48462
48463 2005-10-11  Bruno Haible  <bruno@clisp.org>
48464
48465         * lib/c-strcasestr.h: New file, from GNU gettext.
48466         * lib/c-strcasestr.c: New file, from GNU gettext.
48467
48468 2005-10-11  Bruno Haible  <bruno@clisp.org>
48469
48470         * lib/c-strcase.h: New file, from GNU gettext.
48471         * lib/c-strcasecmp.c: New file, from GNU gettext.
48472         * lib/c-strncasecmp.c: New file, from GNU gettext.
48473
48474 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         * modules/mempcpy (License): GPL -> LGPL.
48477         * modules/strchrnul (License): Likewise.
48478         * modules/sysexits (License): Likewise.
48479
48480 2005-10-08  Simon Josefsson  <jas@extundo.com>
48481
48482         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48483
48484 2005-10-07  Simon Josefsson  <jas@extundo.com>
48485
48486         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48487
48488 2005-10-06  Simon Josefsson  <jas@extundo.com>
48489
48490         * tests/test-hmac-md5.c: New file.
48491
48492         * modules/hmac-md5-tests: New file.
48493
48494         * modules/hmac-md5: New file.
48495
48496 2005-10-06  Simon Josefsson  <jas@extundo.com>
48497
48498         * m4/hmac-md5.m4: New file.
48499
48500         * m4/memxor.m4: Require gl_C_RESTRICT.
48501
48502 2005-10-06  Simon Josefsson  <jas@extundo.com>
48503
48504         * lib/memxor.c (memxor): Avoid casts and warnings.
48505
48506 2005-10-06  Simon Josefsson  <jas@extundo.com>
48507
48508         * lib/hmac-md5.c: New file.
48509
48510         * lib/hmac.h: New file.
48511
48512 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48515         promotes to int, not unsigned int, to catch the AIX 5.3
48516         compiler bug.
48517
48518 2005-10-05  Simon Josefsson  <jas@extundo.com>
48519
48520         * modules/memxor: New file.
48521
48522         * modules/iconv (Files): Move config.rpath to havelib, it is used
48523         there.
48524
48525         * modules/havelib (Files): Add config.rpath.
48526
48527 2005-10-05  Simon Josefsson  <jas@extundo.com>
48528
48529         * m4/memxor.m4: New file.
48530
48531 2005-10-05  Simon Josefsson  <jas@extundo.com>
48532
48533         * lib/memxor.c (memxor): Fix compiler error.
48534
48535         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48536         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48537
48538         * lib/memxor.h, lib/memxor.c: New files.
48539
48540         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48541         we assume all systems have it, suggested by Jim Meyering
48542         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48543         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48544         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48545         same reasons.
48546
48547 2005-10-05  Simon Josefsson  <jas@extundo.com>
48548
48549         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48550
48551 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48552
48553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48554         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48555         needed, since the source code now assumes these .h files.
48556
48557 2005-10-05  Derek Price  <derek@ximbiot.com>
48558
48559         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48560
48561 2005-10-05  Bruno Haible  <bruno@clisp.org>
48562
48563         * modules/stdint (License): Change to LGPL.
48564
48565 2005-10-04  Simon Josefsson  <jas@extundo.com>
48566
48567         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48568         D. Baushke" <mdb@gnu.org>.
48569
48570 2005-10-04  Bruno Haible  <bruno@clisp.org>
48571
48572         * lib/verify.h (verify_true): Provide alternative definition for C++.
48573
48574 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48575
48576         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48577         (SSIZE_MAX): New macro, if not already defined.
48578         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48579         than 2 GiB.
48580
48581 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         Sync from coreutils.
48584         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48585         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48586         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48587         ULLONG_MAX doesn't work with 2.7.2.1.
48588
48589 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48590
48591         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48592         From Ben Pfaff.
48593
48594         * modules/exclude (Depends-on): Depend on verify.
48595         * modules/strtoimax (Depends-on): Likewise.
48596         * modules/utimecmp (Depends-on): Likewise.
48597
48598 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48599
48600         * lib/exclude.c: Include verify.h.
48601         (verify): Remove.  All callers changed to use verify.h's version.
48602         * lib/strtoimax.c: Likewise.
48603         * lib/utimecmp.c: Likewis.e
48604
48605         Sync from coreutils.
48606         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48607         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48608         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48609         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48610         bother returning ENOSYS if settimeofday or stime fails; just let
48611         them return whatever errno they want to return.
48612         * lib/utimens.c: Include unistd.h, for dup2.
48613         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48614         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48615
48616 2005-10-02  Jim Meyering  <jim@meyering.net>
48617
48618         Sync from coreutils.
48619         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48620         from glibc-2.2.5 that fails for read-only files.
48621
48622 2005-10-02  Jim Meyering  <jim@meyering.net>
48623
48624         Sync from coreutils.
48625         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48626         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48627         `#if HAVE_CONFIG_H'.
48628         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48629         Remove AT_FDCWD test.
48630         Do not consume the fd unless successful.
48631         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48632         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48633         block, so that we don't even try to compile it if settimeofday is
48634         available.  This works around a compilation failure on OSF1 V5.1,
48635         due to stime requiring a `long int*' while tv_sec is `int'.
48636
48637 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48638
48639         Sync from coreutils.
48640         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48641         against `yes', rather than just testing for nonempty.
48642
48643 2005-10-01  Simon Josefsson  <jas@extundo.com>
48644
48645         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48646         and Darwin.
48647
48648         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48649         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48650         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48651         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48652         Check if struct addrinfo is declared.
48653
48654 2005-10-01  Simon Josefsson  <jas@extundo.com>
48655
48656         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48657         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48658         AI_* and EAI_* definitions.  Protect function declarations.
48659
48660 2005-10-01  Jim Meyering  <jim@meyering.net>
48661
48662         Sync from coreutils.
48663
48664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48665         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48666         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48668         in the inet and nsl libraries.  Required on Solaris 5.7.
48669
48670 2005-10-01  Jim Meyering  <jim@meyering.net>
48671
48672         Sync from coreutils.
48673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48674         in the inet and nsl libraries.  Required on Solaris 5.7.
48675
48676 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48677
48678         * lib/getdelim.c (getdelim): Remove unused variables.
48679
48680 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48681
48682         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48683         so that the code works even with ancient cpp.  Portability problem
48684         with GCC 2.7.2.1 reported by Thomas M.Ott.
48685
48686 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48687
48688         * modules/regex (Depends-on): Add strcase.
48689
48690         * modules/gethostname (Licence): Change from GPL to LGPL, since
48691         gethostname.c is a trivial implementation of a standard library
48692         function.
48693         * modules/poll (License): Change from GPL to LGPL, since it's
48694         derived from LGPL code.
48695
48696 2005-09-27  Jim Meyering  <jim@meyering.net>
48697
48698         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48699         HAVE_CONFIG_H.
48700
48701         * lib/intprops.h (signed_type_or_expr__): Define.
48702         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48703         for unsigned types.
48704
48705 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         * lib/verify.h (verify_expr): Remove, replacing with:
48708         (verify_true): New macro that returns true instead of void.
48709         (verify_type__): Remove.
48710         (verify): Use verify_true rather than verify_type__.
48711
48712 2005-09-26  Bruno Haible  <bruno@clisp.org>
48713
48714         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48715         is necessary.
48716         (lib_SOURCES): Remove mbchar.c.
48717         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48718         (Files): Add m4/mbrtowc.m4.
48719         * modules/mbiter: Likewise.
48720         * modules/mbuiter: Likewise.
48721
48722 2005-09-26  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48725         compile mbchar.c if they are not both present.
48726         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48727         * m4/mbiter.m4 (gl_MBITER): Likewise.
48728         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48729         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48730         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48731
48732 2005-09-25  Jim Meyering  <jim@meyering.net>
48733
48734         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48735         also uses socklen_t.
48736
48737 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48738
48739         * lib/utimens.c (ENOSYS): Define if not already defined.
48740         (futimens): Support having a null PATH if the file descriptor
48741         is nonnegative.
48742
48743         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48744         Remove.
48745         (__attribute): Define to empty unless GCC 3.1 or later.
48746         This works around a core dump on OpenBSD 3.4, which has GCC
48747         2.95.3, which dumps core when given __attribute__(()).  It also
48748         simplifies other tests, since we really don't want to bother with
48749         worrying about which ancient version of GCC supported what.
48750         Original problem reported by Yoann Vandoorselaere, with part of
48751         the fix suggested by Derek Price.
48752
48753 2005-09-24  Jim Meyering  <jim@meyering.net>
48754
48755         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48756         so we can once again use a positive bitfield width of 1 -- now we
48757         don't have to explain why we were using a bitfield width of 2.
48758
48759 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48760
48761         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48762         and similarly for the other external symbols.  Problem reported
48763         by James Gallager.
48764
48765         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48766         bug reported by Jim Meyering.
48767
48768         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48770         not needed, since socklen is a prerequisite module.
48771
48772 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48773
48774         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48775         Problem reported by Eric Blake.
48776         (getaddrinfo): Initialize se so that it's not garbage.
48777         Redo internal storage allocation so that it doesn't make unportable
48778         assumptions about alignment.
48779         Fix a memory leak.
48780
48781         * lib/utimens.c (futimens): Use futimesat if available.
48782         Prefer it to futimes since it doesn't have the futimes bug.
48783
48784         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48785         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48786         Instead, declare a function that returns a pointer to an array,
48787         and use verify_type__ to declare the size of the array.
48788         Problem and germ of a solution reported by Bruno Haible.
48789         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48790         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48791
48792 2005-09-23  Jim Meyering  <jim@meyering.net>
48793
48794         Sync from coreutils.
48795         Correct build failure (socklen_t not defined) on at least
48796         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48798
48799 2005-09-23  Jim Meyering  <jim@meyering.net>
48800
48801         * modules/getaddrinfo (Depends-on): Add socklen.
48802
48803 2005-09-23  Bruno Haible  <bruno@clisp.org>
48804
48805         * tests/test-verify.c: New file.
48806
48807 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48808
48809         Sync from coreutils.
48810
48811         * modules/argmatch (Depends-on): Add verify.
48812         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48813         unistd-safer.
48814         * modules/save-cwd (Depends-on): Likewise.
48815
48816         * modules/openat (Files): Add lib/openat-die.c.
48817         (Depends-on): Remove error, exitfail.
48818         Add dirname.
48819
48820         * modules/verify: New file.
48821         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48822         with "verify" module.
48823
48824 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48825
48826         Sync from coreutils.
48827
48828         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48829         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48830         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48831         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48832         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48833         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48834         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48835         Don't bother checking for string.h, stdlib.h, unistd.h.
48836         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48837         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48838         module's job.
48839         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48840         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48841
48842         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48843         (gl_GETDATE): Use it.
48844
48845         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48846
48847 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         Sync from coreutils.
48850
48851         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48852         stat-time.h.
48853         * lib/argmatch.h: Include verify.h
48854         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48855         (ARGMATCH_ASSERT): Remove; unused.
48856         * lib/canonicalize.c: Assume STDC_HEADERS.
48857         * lib/exclude.c: Include "strcase.h".
48858         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48859         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48860         and stdio-safer.h.
48861         (getusershell): Call fopen, not fopen_safer.
48862         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48863         Do not include unistd-safer.h.
48864         (save_cwd): Don't call fd_safer; no longer needed
48865         now that we include fcntl--.h.
48866
48867         * lib/getdate.y (relative_time): New type.
48868         (RELATIVE_TIME_0): New constant.
48869         (parser_control): Use relative_time instead of doing it ourselves.
48870         (%union): Add new relative_time rel member.
48871         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48872         Now typeless.
48873         (relunit, relunit_snumber): Now of type rel.
48874         (zone, rel, relunit, get_date): Adjust to above changes.
48875
48876         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48877         Do not include unistd-safer.h.
48878         (getloadavg): Don't call fd_safer; no longer needed
48879         now that we include fcntl--.h.
48880
48881         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48882         (make_dir_parents): Treat ENOSYS like EEXIST.
48883
48884         Improve quality of diagnostics on restore_cwd failure.
48885         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48886         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48887         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48888         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48889         each time through the loop.  Do not diagnose restore_cwd failure;
48890         that is the caller's job (and perhaps the caller does not care).
48891
48892         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48893         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48894         If the file already exists but is not a directory, don't bother
48895         to try to make its parents.
48896         Close potential file descriptor leak if we can't chdir("/") (!).
48897         Don't always return true if chdir($PWD) fails; return true only
48898         if the requested action was done successfully (except for the
48899         chdir($PWD)).
48900         Don't log final directory unless we actually made it.
48901         Refactor to avoid duplicate code to fix up permissions.
48902         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48903
48904         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48905         to make it a bit faster and (I hope) clearer.
48906         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48907         Fix bug in formats like %2N.
48908
48909         * lib/verify.h: New file.
48910
48911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48912
48913         Sync from coreutils.
48914         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48915
48916 2005-09-22  Jim Meyering  <jim@meyering.net>
48917
48918         Sync from coreutils.
48919
48920         * m4/lstat.m4 (gl_FUNC_LSTAT):
48921         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48922         Remove obsolete comment.
48923         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48924         * m4/xstrtod.m4: Likewise.
48925
48926         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48927
48928 2005-09-22  Jim Meyering  <jim@meyering.net>
48929
48930         Sync from coreutils.
48931
48932         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48933
48934         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48935         the .tm_year member, since otherwise gcc-4.0 would now warn about
48936         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48937
48938         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48939         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48940
48941         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48942         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48943         when run in a time zone for which daylight savings time is in effect
48944         for the starting date.
48945
48946         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48947         stop us from restricting permissions of just-created absolute-named
48948         directories.
48949         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48950         to restore initial working directory.
48951         * lib/mkdir-p.c (make_dir_parents): New parameter:
48952         different_working_dir, to tell caller if/when we change the working
48953         directory and are unable to return to the initial one.
48954         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48955         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48956         `return false'.  This fixes a bug introduced on 2004-07-30.
48957
48958         * lib/openat.c (fdopendir): Be sure to close the supplied
48959         file descriptor before returning.  This makes our replacement
48960         implementation a little closer to Solaris's, where fdopendir
48961         ties the file descriptor to the returned DIR* pointer.
48962         * lib/openat.c (unlinkat): New function.
48963         * lib/openat.h (unlinkat): Add prototype.
48964         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48965         (openat_restore_fail): Rename from openat_restore_die.
48966         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48967
48968         Provide an alternative to exiting immediately upon save_cwd or
48969         restore_cwd failure.  Now, an application can arrange e.g.,
48970         to perform a longjump in that case.
48971         * lib/openat.c: Include dirname.h.
48972         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48973         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48974         and openat_restore_die rather than calling error directly.
48975         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48976
48977         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48978         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48979         define.
48980
48981         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48982         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48983                             int utc, int nanoseconds);
48984         Background:
48985         date should not have to allocate a megabyte of virtual memory to
48986         handle a format argument like +%1048575T.  When implemented with
48987         strftime, it must allocate such a buffer, use strftime to fill it
48988         in, print it, then free it.
48989         With fprintftime, it simply prints everything and exits.
48990         With no need for memory allocation, that's one fewer way to fail.
48991         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48992         optional field width, not before, so we accept %9:z, not %:9z.
48993         (my_strftime): Be sure to use L_('x') for literals.
48994
48995         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48996         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48997         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48998         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48999         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49000         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49001         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49002         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49003         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49004         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49005         * lib/xgethostname.c, lib/xreadlink.c:
49006         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49007
49008         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49009         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49010         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49011         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49012         and don't include <sys/file.h>).
49013
49014 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49015
49016         Sync from coreutils.
49017
49018         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49019         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49020         [!LDAV_DONE]: Avoid unused variable warning.
49021
49022 2005-09-21  Bruno Haible  <bruno@clisp.org>
49023
49024         * lib/unicodeio.h (unicode_to_mb): New declaration.
49025
49026 2005-09-20  Derek Price  <derek@ximbiot.com>
49027
49028         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49029         getaddrinfo.h.
49030
49031 2005-09-20  Bruno Haible  <bruno@clisp.org>
49032
49033         * gnulib-tool: Remove trailing slashes from the values specified for
49034         --source-base, --m4-base, --tests-base, --aux-dir.
49035         Suggested by Simon Josefsson <jas@extundo.com>.
49036
49037 2005-09-20  Bruno Haible  <bruno@clisp.org>
49038
49039         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49040         func_modules_to_filelist, func_import, func_create_testdir): Make all
49041         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49042         change when gnulib-tool is invoked in a different locale.
49043
49044 2005-09-19  Simon Josefsson  <jas@extundo.com>
49045
49046         * m4/socklen.m4: Fix typo.
49047
49048 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49049
49050         Use a consistent style for including <config.h>.
49051         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49052         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49053         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49054         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49055         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49056         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49057         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49058         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49059         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49060         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49061         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49062         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49063         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49064         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49065         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49066         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49067         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49068         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49069         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49070         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49071         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49072         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49073         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49074         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49075         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49076         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49077         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49078         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49079         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49080         lib/xstrtoumax.c, lib/yesno.c:
49081         Standardize inclusion of config.h.
49082         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49083         lib/inttostr.h:  Removed inclusion of config.h from header files.
49084         * lib/inttostr.c:  Adjusted in-tree users.
49085         * lib/timespec.h: Remove superfluous warning to include config.h.
49086         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49087         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49088         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49089         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49090         config.h with HAVE_CONFIG_H.
49091
49092 2005-09-19  Jim Meyering  <jim@meyering.net>
49093
49094         * modules/pathmax (License): Change to LGPL.
49095
49096 2005-09-19  Derek Price  <derek@ximbiot.com>
49097
49098         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49099
49100 2005-09-19  Bruno Haible  <bruno@clisp.org>
49101
49102         * gnulib-tool (import): Provide default for --tests-base.
49103
49104 2005-09-19  Bruno Haible  <bruno@clisp.org>
49105
49106         * doc/quote.texi: New file, extracted from gnulib.texi.
49107         * doc/ctime.texi: New file, extracted from gnulib.texi.
49108         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49109         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49110         * doc/gnulib.texi: Include them.
49111
49112 2005-09-18  Bruno Haible  <bruno@clisp.org>
49113
49114         Portability fix.
49115         * gnulib-tool (func_readlink): New function.
49116         (func_ln_if_changed): Use it.
49117
49118 2005-09-18  Bruno Haible  <bruno@clisp.org>
49119
49120         * gnulib-tool: Support --with-tests also with --import.
49121         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49122         (func_import): Use variables $testsbase and $inctests. Emit a
49123         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49124         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49125         SUBDIRS += $testsdir.
49126         (func_create_testdir): Update.
49127
49128 2005-09-18  Bruno Haible  <bruno@clisp.org>
49129
49130         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49131         instead of $dry_run.
49132         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49133         (func_ln_if_changed): Don't handle dry-run here.
49134         (func_import): In dry-run mode, detect more precisely which actions
49135         would be performed, and don't use "...ing" verbs.
49136
49137 2005-09-18  Bruno Haible  <bruno@clisp.org>
49138
49139         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49140         (func_import): Use join on two temporary files instead of three nested
49141         loops, in order to determine which files are new or old.
49142
49143 2005-09-18  Bruno Haible  <bruno@clisp.org>
49144
49145         * gnulib-tool (func_import): Comment out code that spits out the
49146         new files with --dry-run.
49147
49148 2005-09-18  Bruno Haible  <bruno@clisp.org>
49149
49150         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49151
49152 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49153
49154         * lib/stat-time.h: New file.
49155         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49156         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49157         in a different way.
49158         (timespec_cmp): New function.
49159         * lib/utimecmp.c: Include stat-time.h.
49160         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49161         members exist, not on the obsolescent ST_MTIM_NSEC.
49162         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49163
49164 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49165
49166         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49167
49168 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49169
49170         * MODULES.html.sh (File system functions): Add stat-time.
49171         * modules/stat-time: New file.
49172         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49173         is now done in a different way, by the stat-time module.
49174         * modules/utimecmp (Depends-on): Add stat-time.
49175
49176 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49177
49178         * m4/st_mtim.m4: Remove.  Superseded by...
49179         * m4/stat-time.m4: New file.
49180         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49181         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49182
49183 2005-09-15  Derek Price  <derek@ximbiot.com>
49184
49185         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49186
49187 2005-09-15  Derek Price  <derek@ximbiot.com>
49188
49189         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49190         * lib/regex_internal.c: Ditto, using this...
49191         (__GNUC_PREREQ): ...new macro.
49192         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49193         using...
49194         (__GNUC_PREREQ): ...this new macro.
49195
49196         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49197
49198 2005-09-15  Derek Price  <derek@ximbiot.com>
49199             Paul Eggert  <eggert@cs.ucla.edu>
49200
49201         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49202         changes, consolidating in...
49203         * lib/regex_internal.h: ...this file.
49204
49205 2005-09-13  Jim Meyering  <jim@meyering.net>
49206
49207         * lib/canon-host.c: Filter through gnu indent and reword comments
49208         slightly.
49209         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49210
49211 2005-09-13  Derek Price  <derek@ximbiot.com>
49212
49213         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49214         failure.
49215         Reported by Jim Meyering  <jim@meyering.net>.
49216
49217 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49218
49219         * lib/base64.c: Typo.
49220         (base64_encode): Put b64str in initialized data section.
49221
49222 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49223
49224         Merge glibc and coreutils changes into gnulib, plus a few
49225         extra fixes.
49226         * lib/md5.c: Use #error rather than a string.
49227         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49228         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49229         (__attribute__): Define to empty for non recent-GCC.
49230         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49231         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49232         Renamed from their non-__ counterparts, with new macros replacing
49233         them if not _LIBC.  Add __THROW attribute.
49234         (rol): Remove.
49235         (struct md5_ctx): Align buffer if using GCC.
49236         * lib/sha1.h (struct sha1_ctx): Likewise.
49237         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49238         The old name was backwards.
49239         (NOTSWAP): Remove; not used.
49240         (rol): New macro, moved here from md5.h.
49241         (sha1_process_block): Remove a FIXME that doesn't make sense.
49242
49243 2005-09-12  Derek Price  <derek@ximbiot.com>
49244
49245         Return usable errors from canon-host.
49246         * lib/canon-host.h: New file.
49247         * lib/canon-host.c (canon_host): Wrap...
49248         (canon_host_r): ...this new function, which now relies exclusively on
49249         getaddrinfo.
49250         (ch_strerror): New function.
49251         (last_cherror): New global.
49252         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49253         interface.
49254         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49255         void *.
49256         (freeaddrinfo): Free ai->ai_canonname when set.
49257
49258 2005-09-12  Derek Price  <derek@ximbiot.com>
49259
49260         Make canon-host require getaddrinfo.
49261         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49262         AC_LIBSOURCE canon-host.h.  Call...
49263         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49264         gl_GETADDRINFO.
49265         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49266
49267 2005-09-12  Derek Price  <derek@ximbiot.com>
49268
49269         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49270         LGPL.
49271         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49272
49273 2005-09-12  Derek Price  <derek@ximbiot.com>
49274
49275         * lib/gai_strerror.c: Include config.h when available.  Include
49276         getaddrinfo.h before other headers to test interface.
49277         Reported by Larry Jones <lawrence.jones@ugs.com>.
49278
49279 2005-09-12  Derek Price  <derek@ximbiot.com>
49280             Paul Eggert  <eggert@cs.ucla.edu>
49281
49282         * modules/glob (Files): Add glob-libc.h.
49283
49284 2005-09-12  Derek Price  <derek@ximbiot.com>
49285             Paul Eggert  <eggert@cs.ucla.edu>
49286
49287         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49288         glob_.h, glob-libc.h.
49289         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49290
49291 2005-09-12  Derek Price  <derek@ximbiot.com>
49292             Paul Eggert  <eggert@cs.ucla.edu>
49293
49294         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49295         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49296         protecting things that should be done only in gnulib contexts.
49297         * lib/glob_.h: New file, containing only the glob things needed for
49298         gnulib.
49299         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49300         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49301         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49302         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49303         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49304         and to respect the namespace rules better.
49305
49306 2005-09-08  Simon Josefsson  <jas@extundo.com>
49307
49308         * modules/socklen: New file.
49309
49310 2005-09-08  Simon Josefsson  <jas@extundo.com>
49311
49312         * m4/socklen.m4: New file.
49313
49314 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49315
49316         * modules/utimens (Files): Add m4/utimbuf.m4, since
49317         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49318         Reported by Sergey Poznyakoff.
49319
49320 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49321
49322         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49323         definitions, since that's the preferred style in glibc.
49324         Fix a minor spacing issue, and update copyright notice to match
49325         glibc's.
49326
49327 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49328
49329         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49330
49331 2005-09-06  Simon Josefsson  <jas@extundo.com>
49332
49333         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49334         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49335
49336 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49337
49338         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49339         warning.
49340
49341 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * config/srclist.txt: Add glibc bug 1302.
49344
49345 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49346
49347         Change bitset word type from unsigned int to unsigned long int,
49348         as this has better performance on typical 64-bit hosts.
49349         Port bitset code to hosts with unusual word sizes.
49350         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49351         (build_collating_symbol):
49352         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49353         argument is a bitset.  This is merely a style issue, but it makes
49354         it clearer that an entire array is expected.
49355         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49356         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49357         Port to the case where bitset_word is not the same as unsigned int.
49358         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49359         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49360         Likewise.
49361         * lib/regexec.c (check_dst_limits_calc_pos_1,
49362         check_subexp_matching_top):
49363         (build_trtable, group_nodes_into_DFAstates):
49364         Likewise.
49365         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49366         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49367         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49368         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49369         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49370         * lib/regcomp.c (optimize_subexps, lower_subexp):
49371         Work even if bitset_word has holes in its bitwise representation.
49372         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49373         * lib/regexec.c (check_dst_limits_calc_pos_1,
49374         check_subexp_matching_top):
49375         Likewise.
49376         * lib/regex_internal.c (re_string_reconstruct):
49377         Don't assume UCHAR_MAX == 255.
49378         * lib/regex_internal.h (bitset_set_all): Likewise.
49379         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49380         All uses changed.
49381         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49382         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49383         All uses changed.
49384         (BITSET_WORD_MAX): New macro.
49385         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49386         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49387         (bitset_empty, bitset_copy):
49388         Prefer sizeof (bitset) to multiplying it out ourselves.
49389         (bitset_not_merge): Remove; unused.
49390         (bitset_contain): Return bool, not unsigned int with one bit on.
49391         All callers changed.
49392         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49393         alignment than re_node_set; do this by defining a new internal
49394         type struct dests_alloc and using it to allocate memory.
49395
49396 2005-09-05  Bruno Haible  <bruno@clisp.org>
49397
49398         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49399         links.
49400
49401 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49402
49403         * modules/size_max (Makefile.am): Add size_max.h
49404
49405 2005-09-04  Derek Price  <derek@ximbiot.com>
49406
49407         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49408
49409 2005-09-03  Simon Josefsson  <jas@extundo.com>
49410
49411         * gnulib-tool: Fix typo.
49412
49413 2005-09-03  Simon Josefsson  <jas@extundo.com>
49414
49415         * config/srclist.txt: Add glibc bug 1293.
49416
49417 2005-09-03  Derek Price  <derek@ximbiot.com>
49418
49419         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49420         From Larry Jones <lawrence.jones@ugs.com>.
49421
49422 2005-09-02  Simon Josefsson  <jas@extundo.com>
49423
49424         * modules/socklen: New file.
49425
49426 2005-09-02  Simon Josefsson  <jas@extundo.com>
49427
49428         * modules/havelib: New module.
49429
49430         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49431         Use havelib.
49432
49433 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49434
49435         Check for arithmetic overflow when calculating sizes, to prevent
49436         some buffer-overflow issues.  These patches are conservative, in the
49437         sense that when I couldn't determine whether an overflow was possible,
49438         I inserted a run-time check.
49439         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49440         macros.
49441         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49442         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49443         (re_xnrealloc, re_x2nrealloc): New inline functions.
49444         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49445         parse_bracket_exp):
49446         (build_equiv_class, build_charclass): Check for arithmetic overflow
49447         in size expression calculations.
49448         * lib/regex_internal.c (re_string_realloc_buffers):
49449         (build_wcs_upper_buffer, re_node_set_add_intersect):
49450         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49451         (re_dfa_add_node, register_state): Likewise.
49452         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49453         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49454         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49455         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49456
49457 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49458
49459         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49460         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49461
49462 2005-09-02  Bruno Haible  <bruno@clisp.org>
49463
49464         Support for lib vs. lib64 distinction on biarch platforms.
49465         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49466         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49467         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49468
49469 2005-09-02  Bruno Haible  <bruno@clisp.org>
49470
49471         * gnulib-tool (import): In the other first-use case, provide defaults
49472         as well.
49473
49474 2005-09-02  Bruno Haible  <bruno@clisp.org>
49475
49476         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49477         patches not yet found in the latest gettext release.
49478
49479 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49480
49481         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49482         to avoid a collision with bits/local_lim.h in glibc.
49483         All uses changed.  Problem reported by Dmitry V. Levin in
49484         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49485
49486         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49487         bugs in int versus size_t comparisons.
49488         (re_string_context_at): Fix bug where the code assumed that
49489         Idx is signed.
49490
49491         Use bool where appropriate.
49492         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49493         All callers changed.
49494         (calc_eclosure_iter): Likewise, for ROOT arg.
49495         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49496         (build_charclass_op): Likewise, for NON_MATCH arg.
49497         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49498         (re_string_construct_common): Likewise, for ICASE arg.
49499         * lib/regexec.c (re_search_2_stub, re_search_stub):
49500         Likewise, for RET_LEN arg.
49501         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49502         (set_regs): Likewise, for FL_BACKTRACK arg.
49503         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49504         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49505         (calc_eclosure_iter, parse_bracket_exp):
49506         Use bool for internal variables that are booleans.
49507         * lib/regexec.c (re_search_internal, check_matching,
49508         proceed_next_node):
49509         (set_regs, build_sifted_states, sift_states_bkref):
49510         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49511         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49512         (find_collation_sequence_value):
49513         Likewise.
49514         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49515         (re_node_set_compare):
49516         Return bool, not int. All callers changed.
49517         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49518         (build_trtable, check_node_accept): Likewise.
49519         * lib/regex_internal.h: Include stdbool.h.
49520
49521         Fix bugs uncovered when converting to bool.
49522         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49523         failure instead of charging ahead blindly.
49524         * lib/regex_internal.c (register_state): Likewise.
49525         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49526         for freeing internal storage.
49527         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49528         bitset pieces used as boolean, to avoid undefined behavior
49529         on hosts that do int overflow checking.
49530
49531 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49532
49533         * config/srclist.txt: Add glibc bugs 1285-1287.
49534
49535 2005-09-01  Jim Meyering  <jim@meyering.net>
49536
49537         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49538         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49539         Require gl_STAT_MACROS, too.
49540
49541 2005-09-01  Bruno Haible  <bruno@clisp.org>
49542
49543         * gnulib-tool (import): In the first-use case, provide defaults.
49544
49545 2005-09-01  Bruno Haible  <bruno@clisp.org>
49546
49547         * gnulib-tool (func_import): Remove the .tmp files.
49548
49549 2005-09-01  Bruno Haible  <bruno@clisp.org>
49550
49551         * gnulib-tool (func_import): Fix handling of symbolic links.
49552
49553 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49554
49555         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49556         old glibc regex code mishandles strings longer than 2**31 bytes.
49557         This patch fixes this when the regex code is used in gnulib
49558         (i.e., outside glibc).
49559
49560         This patch should not affect the use of the regex code inside
49561         glibc.  No doubt this problem also needs to be handled for glibc
49562         as well, but the result will be an incompatible change to the
49563         glibc ABI, and the old ABI will have to be supported too.  That
49564         can be the the subject for another patch.
49565
49566         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49567         governing whether the rest of this patch is active.  By default,
49568         the macro is disabled and the patch has no effect.
49569         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49570         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49571         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49572         (re_match_2, re_set_registers): Use the new types.
49573         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49574         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49575         New macros.
49576         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49577         (re_string_context_at, bin_tree_t, re_dfastate_t):
49578         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49579         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49580         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49581         (re_string_char_size_at, re_string_wchar_at):
49582         (re_string_elem_size_at):
49583         Use the new types and macros to port to 64-bit hosts.
49584         Use unsigned types for internal values, so that the code
49585         mostly works even for arrays larger than SSIZE_MAX.
49586         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49587         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49588         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49589         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49590         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49591         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49592         (calc_inveclosure, parse_dup_op, build_range_exp):
49593         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49594         (fetch_number, create_token_tree, mark_opt_subexp):
49595         Likewise.
49596         * lib/regex_internal.c (re_string_construct_common,
49597         create_ci_newstate):
49598         (create_cd_newstate, re_string_allocate, re_string_construct):
49599         (re_string_realloc_buffers, build_wcs_upper_buffer):
49600         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49601         (re_string_reconstruct, re_string_peek_byte_case):
49602         (re_string_fetch_byte_case, re_string_context_at):
49603         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49604         (re_node_set_init_copy, re_node_set_add_intersect):
49605         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49606         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49607         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49608         (re_acquire_state, re_acquire_state_context, register_state):
49609         Likewise.
49610         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49611         search_cur_bkref_entry):
49612         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49613         (re_search_internal, re_search_2_stub, re_search_stub)
49614         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49615         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49616         (update_cur_sifted_state, check_dst_limits):
49617         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49618         (check_subexp_limits, sift_states_bkref, merge_state_array):
49619         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49620         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49621         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49622         (expand_bkref_cache, check_node_accept_bytes):
49623         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49624         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49625         (acquire_init_state_context, check_halt_node_context):
49626         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49627         (sift_states_backward, clean_state_log_if_needed):
49628         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49629         (find_recover_state, transit_state_sb, transit_state_mb):
49630         (transit_state_bkref, build_trtable, match_ctx_clean):
49631         Likewise.
49632         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49633         to work around an assumption that REG_MISSING is negative.
49634
49635         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49636         (seek_collating_symbol_entry) [defined _LIBC]:
49637         (lookup_collation_sequence_value) [defined _LIBC]:
49638         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49639         Use prototypes rather than old-style function definitions.
49640         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49641         (transit_state_sb) [0]:
49642         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49643
49644         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49645         rm_eo.
49646
49647         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49648         (optimize_subexps, lower_subexp):
49649         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49650         since the signed shift might overflow.  Use 1u<<31 instead.
49651         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49652         Likewise.
49653         * lib/regexec.c (check_dst_limits_calc_pos_1,
49654         check_subexp_matching_top): Likewise.
49655
49656         * lib/regcomp.c (optimize_subexps, lower_subexp):
49657         Use CHAR_BIT rather than 8, for clarity.
49658         * lib/regexec.c (check_dst_limits_calc_pos_1):
49659         (check_subexp_matching_top): Likewise.
49660         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49661         have to worry about portability issues when shifting it left.
49662         Remove no-longer-needed test for table_size > 0.
49663         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49664         in a word, as the resulting behavior is undefined.
49665         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49666         in one case, a <= should have been an <, and in another case the
49667         whole test was missing.
49668         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49669         the standard name CHAR_BIT.
49670         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49671         this is not true on one's complement and signed-magnitude hosts.
49672
49673         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49674         next_last_offset.
49675         (struct re_dfa_t): Remove unused member states_alloc.
49676         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49677
49678 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49679
49680         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49681         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49682         and large-file glibc and in 32-bit large-file Solaris.
49683
49684 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49685
49686         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49687         lengths fit in regoff_t; this isn't true if regoff_t is the same
49688         width as size_t.
49689         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49690         (= START + RANGE) instead of RANGE.  This avoids overflow
49691         problems when regoff_t is the same width as size_t.
49692         All callers changed.
49693         (re_search_2_stub): Check for overflow when adding the
49694         sizes of the two strings.
49695         (re_search_stub): Check for overflow when adding START
49696         to RANGE; if it occurs, substitute the extreme value.
49697
49698 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49699
49700         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49701
49702 2005-08-31  Jim Meyering  <jim@meyering.net>
49703
49704         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49705         a pointer-to-const.
49706         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49707         (register_state): Likewise.
49708         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49709         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49710         (group_nodes_into_DFAstates): Likewise.
49711
49712 2005-08-31  Jim Meyering  <jim@meyering.net>
49713
49714         * check-module: Add a FIXME comment.
49715
49716 2005-08-31  Eric Blake  <ebb9@byu.net>
49717
49718         * modules/unistd-safer (Files): Add unistd--.h.
49719         * modules/stdio-safer (Files): Add stdio--.h.
49720
49721 2005-08-31  Derek Price  <derek@ximbiot.com>
49722
49723         * lib/getdelim.c (getdelim): Return EOF on EOF.
49724         Reported by Larry Jones <lawrence.jones@ugs.com>.
49725
49726 2005-08-31  Bruno Haible  <bruno@clisp.org>
49727
49728         Avoid unnecessary diffs in the generated lib/Makefile.am.
49729         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49730         the generated files.
49731         (func_import): Don't set cmd.
49732
49733 2005-08-31  Bruno Haible  <bruno@clisp.org>
49734
49735         * lib/strstr.c: Include <stddef.h>, for NULL.
49736         * lib/strcasestr.c: Likewise.
49737         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49738
49739 2005-08-31  Bruno Haible  <bruno@clisp.org>
49740
49741         * gnulib-tool: New option --macro-prefix.
49742         (func_import): Use macro_prefix.
49743         (import): Handle option --macro-prefix.
49744
49745 2005-08-31  Bruno Haible  <bruno@clisp.org>
49746
49747         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49748         Also use new variables cached_lgpl, cached_libtool.
49749
49750 2005-08-31  Bruno Haible  <bruno@clisp.org>
49751
49752         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49753         always instantiating them.
49754
49755 2005-08-31  Bruno Haible  <bruno@clisp.org>
49756
49757         * gnulib-tool (func_import): Read the previous cached settings
49758         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49759         earlier added by gnulib but are now dropped. Warn when a gnulib file
49760         overwrites a non-gnulib file.
49761
49762 2005-08-31  Bruno Haible  <bruno@clisp.org>
49763
49764         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49765         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49766         projects that don't keep autogenerated files in CVS. Put into
49767         actioncmd only the specified modules, not the transitive closure.
49768
49769 2005-08-31  Bruno Haible  <bruno@clisp.org>
49770
49771         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49772         Create directories that shall be filled.
49773         (import): Don't look for gl_* macros in configure.ac. Recurse across
49774         all directories containing a gnulib-cache.m4 files, if meaningful.
49775
49776 2005-08-31  Bruno Haible  <bruno@clisp.org>
49777
49778         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49779         (import): Set seen_libtool when we see gl_LIBTOOL.
49780
49781 2005-08-31  Bruno Haible  <bruno@clisp.org>
49782
49783         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49784         declaration macro definitions from generated gnulib.m4.
49785
49786 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49787
49788         * lib/iconvme.h: Add prototype for iconv_alloc.
49789
49790 2005-08-29  Simon Josefsson  <jas@extundo.com>
49791
49792         * lib/iconvme.c: Fix errno.
49793
49794 2005-08-29  Bruno Haible  <bruno@clisp.org>
49795
49796         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49797         that it works when the directory contains spaces.
49798
49799 2005-08-29  Bruno Haible  <bruno@clisp.org>
49800
49801         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49802
49803 2005-08-29  Bruno Haible  <bruno@clisp.org>
49804
49805         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49806         Emit more advice.
49807
49808 2005-08-29  Bruno Haible  <bruno@clisp.org>
49809         and Stepan Kasal  <kasal@ucw.cz>
49810
49811         * check-module: If more parameters are given, check each of them
49812         separately; add more exceptions, as noted by Jim Meyering.
49813         (check_module): New procedure.
49814         (%exempt_header): Now contains all exceptions.
49815
49816 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49817
49818         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49819
49820 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49821
49822         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49823
49824 2005-08-28  Bruno Haible  <bruno@clisp.org>
49825
49826         * m4/gnulib-tool.m4: New file.
49827
49828 2005-08-27  Jim Meyering  <jim@meyering.net>
49829
49830         * modules/unistd-safer (Files): Add pipe-safer.c.
49831         * modules/fcntl-safer (Files): Add creat-safer.c.
49832
49833 2005-08-27  Jim Meyering  <jim@meyering.net>
49834
49835         * m4/stdlib-safer.m4: New file.  From coreutils.
49836         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49837         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49838         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49839         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49840         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49841
49842 2005-08-27  Jim Meyering  <jim@meyering.net>
49843
49844         * lib/fopen-safer.c: Merge minor changes from coreutils.
49845         * lib/dup-safer.c: Likewise.
49846         * lib/fd-safer.c: Likewise.
49847
49848         Merge from coreutils.
49849         * lib/stdio--.h: New file.
49850         * lib/stdlib--.h: New file.
49851         * lib/mkstemp-safer.c: New file.
49852
49853         GNU tar needs these.
49854         * lib/pipe-safer.c: New file.
49855         * lib/creat-safer.c: New file.
49856         * lib/fcntl--.h (creat): Define to creat_safer.
49857         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49858         * lib/unistd--.h (pipe): Define to pipe_safer.
49859         * lib/unistd-safer.h: Declare pipe_safer.
49860
49861 2005-08-26  Simon Josefsson  <jas@extundo.com>
49862
49863         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49864         Haible <bruno@clisp.org>.
49865
49866 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * lib/regex_internal.h: Remove all references to
49869         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49870         or better.
49871         (bitset_not, bitset_merge, bitset_not_merge):
49872         (bitset_mask, re_string_allocate, re_string_construct):
49873         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49874         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49875         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49876         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49877         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49878         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49879         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49880         (re_acquire_state_context):
49881         Remove unnecessary forward decls.
49882         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49883         Put __attribute at function definition,
49884         now that the function decl has been removed.
49885         * lib/regex_internal.c (re_string_peek_byte_case):
49886         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49887         Likewise.
49888
49889 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49890
49891         * m4/regex.m4: Add AC_PREREQ(2.50).
49892         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49893
49894 2005-08-25  Simon Josefsson  <jas@extundo.com>
49895
49896         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49897         __fsetlocking.
49898
49899 2005-08-25  Simon Josefsson  <jas@extundo.com>
49900
49901         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49902         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49903         GLIBC specific code.
49904
49905 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49906
49907         Make regex safe for g++.  This fixes one real bug (an "err"
49908         that should have been "*err").  g++ problem reported by
49909         Sam Steingold.
49910         * lib/regex_internal.h (re_calloc): New macro, consistent with
49911         re_malloc etc.  All callers of calloc changed to use re_calloc.
49912         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49913         not int.  All callers changed.
49914         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49915         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49916         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49917         (find_recover_state): Change "err" to "*err"; this fixes what
49918         appears to be a real bug.
49919         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49920         versus int.
49921
49922 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         * modules/regex (Depends-on): Add malloc, since the code
49925         assumes that !malloc(0) means failure.
49926
49927 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49930
49931         alloca modernization/simplification for regex.
49932         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49933         needs to be at the start of the file, and can be moved into
49934         regex_internal.h and simplified.
49935         * lib/regex_internal.h: Include <alloca.h>.
49936         (__libc_use_alloca) [!defined _LIBC]: New macro.
49937         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49938         now works outside glibc.
49939
49940 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49941
49942         * config/srclist.txt: Add glibc bugs 1241, 1245.
49943
49944 2005-08-25  Jim Meyering  <jim@meyering.net>
49945
49946         * lib/open-safer.c: Include <config.h>.
49947         Otherwise, we'd lose LARGEFILE support in any file using
49948         e.g. "fcntl--.h"
49949
49950 2005-08-25  Bruno Haible  <bruno@clisp.org>
49951
49952         * m4/minmax.m4: Require autoconf 2.52.
49953         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49954         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49955         alternatives of translit over the alphabet.
49956         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49957
49958 2005-08-24  Simon Josefsson  <jas@extundo.com>
49959
49960         * tests/test-getpass.c: New file.
49961
49962 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49963
49964         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49965         for GNU regex features.
49966
49967 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49970         * lib/regex.h (regerror): Likewise.
49971
49972         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49973         requires this.  (The code never needed it.)
49974
49975         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49976         All uses of recently-renamed identifiers changed to use the new,
49977         POSIX-compliant names.  The code will build and run just fine
49978         without these changes, but it's better to eat our own dog food
49979         and use the standard-conforming names.
49980
49981         * lib/regex.h: Fix a multitude of POSIX name space violations.
49982         These changes have an effect only for programs that define
49983         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49984         do not change anything for programs compiled in the normal way.
49985         Also, there is no effect on the ABI.
49986
49987         (_REGEX_SOURCE): New macro.
49988         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49989         defined and _GNU_SOURCE is not; this fixes a name space violation.
49990
49991         Rename the following macros to obey POSIX requirements.
49992         The old names are still visible as macros if _REGEX_SOURCE is defined.
49993         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49994         RE_BACKSLASH_ESCAPE_IN_LISTS.
49995         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49996         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49997         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49998         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49999         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50000         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50001         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50002         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50003         (REG_INTERVALS): renamed from RE_INTERVALS.
50004         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50005         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50006         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50007         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50008         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50009         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50010         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50011         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50012         RE_UNMATCHED_RIGHT_PAREN_ORD.
50013         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50014         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50015         (REG_DEBUG): renamed from RE_DEBUG.
50016         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50017         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50018         unusual, since we can't clash with the POSIX REG_ICASE.
50019         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50020         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50021         (REG_NO_SUB): renamed from RE_NO_SUB.
50022         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50023         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50024         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50025         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50026         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50027         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50028         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50029         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50030         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50031         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50032         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50033         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50034         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50035         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50036         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50037         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50038         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50039         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50040         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50041         (REG_FIXED): Renamed from REGS_FIXED.
50042         (REG_NREGS): Renamed from RE_NREGS.
50043
50044         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50045         of other REG_* macros, since POSIX says the user is allowed to
50046         #undef these macros selectively.
50047
50048         (reg_errcode_t): Update comment stating what other tables need
50049         to be consistent.
50050
50051         Rename the following enum values to obey POSIX requirements.
50052         The old names are still visible as macros.
50053         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50054         is not defined, since GNU is supposed to be a superset of POSIX as
50055         much as possible, and since we want reg_errcode_t to be a signed
50056         type for implementation consistency.
50057         (_REG_NOERROR): Renamed from REG_NOERROR.
50058         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50059         (_REG_BADPAT): Renamed from REG_BADPAT.
50060         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50061         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50062         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50063         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50064         (_REG_EBRACK): Renamed from REG_EBRACK.
50065         (_REG_EPAREN): Renamed from REG_EPAREN.
50066         (_REG_EBRACE): Renamed from REG_EBRACE.
50067         (_REG_BADBR): Renamed from REG_BADBR.
50068         (_REG_ERANGE): Renamed from REG_ERANGE.
50069         (_REG_ESPACE): Renamed from REG_ESPACE.
50070         (_REG_BADRPT): Renamed from REG_BADRPT.
50071         (_REG_EEND): Renamed from REG_EEND.
50072         (_REG_ESIZE): Renamed from REG_ESIZE.
50073         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50074         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50075         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50076         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50077         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50078
50079         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50080         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50081         changed.  But support the old name if the new one is not defined
50082         and if _REGEX_SOURCE.
50083
50084         Change the following member names in struct re_pattern_buffer.
50085         The old names are still supported if !_REGEX_SOURCE.
50086         The new names are always supported, regardless of _REGEX_SOURCE.
50087         (re_buffer): Renamed from buffer.
50088         (re_allocated): Renamed from allocated.
50089         (re_used): Renamed from used.
50090         (re_syntax): Renamed from syntax.
50091         (re_fastmap): Renamed from fastmap.
50092         (re_translate): Renamed from translate.
50093         (re_can_be_null): Renamed from can_be_null.
50094         (re_regs_allocated): Renamed from regs_allocated.
50095         (re_fastmap_accurate): Renamed from fastmap_accurate.
50096         (re_no_sub): Renamed from no_sub.
50097         (re_not_bol): Renamed from not_bol.
50098         (re_not_eol): Renamed from not_eol.
50099         (re_newline_anchor): Renamed from newline_anchor.
50100
50101         Change the following member names in struct re_registers.
50102         The old names are still supported if !_REGEX_SOURCE.
50103         The new names are always supported, regardless of _REGEX_SOURCE.
50104         (rm_num_regs): Renamed from num_regs.
50105         (rm_start): Renamed from start.
50106         (rm_end): Renamed from end.
50107
50108         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50109         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50110         Prepend __ to parameter names.
50111
50112         Undo yesterday's changes.
50113
50114 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50115
50116         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50117         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50118         lib/regex.c.
50119
50120 2005-08-24  Jim Meyering  <jim@meyering.net>
50121
50122         Sync from coreutils.
50123         * m4/fcntl-safer.m4: New file.
50124
50125         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50126         and object files for this module.
50127
50128 2005-08-24  Jim Meyering  <jim@meyering.net>
50129
50130         Sync from coreutils.
50131         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50132
50133 2005-08-24  Jim Meyering  <jim@meyering.net>
50134
50135         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50136         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50137
50138 2005-08-24  Jim Meyering  <jim@meyering.net>
50139
50140         * modules/fcntl-safer: New module.
50141         * modules/fts (Depends-on): Add fcntl-safer.
50142         * MODULES.html.sh (File descriptor based Input/Output):
50143         Add fcntl-safer.
50144
50145 2005-08-24  Bruno Haible  <bruno@clisp.org>
50146
50147         Support for unit test modules.
50148         * modules/README: Mention tests modules.
50149         * modules/TEMPLATE-TESTS: New file.
50150         * gnulib-tool: New options --extract-tests-module, --with-tests and
50151         --tests-base (unused for the moment).
50152         (testsbase, inctests): New variables.
50153         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50154         (func_verify_module): Exclude TEMPLATE-TESTS.
50155         (func_verify_nontests_module, func_verify_tests_module): New functions.
50156         (func_get_dependencies): Add implicit dependency for tests modules.
50157         (func_get_tests_module): New function.
50158         (func_modules_transitive_closure): When --with-tests was specified,
50159         include the unit tests as well, unless explicitly avoided.
50160         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50161         (func_emit_tests_Makefile_am): New function.
50162         (func_create_testdir): When --with-tests was specified, emit a
50163         tests/ directory.
50164         * MODULES.html.sh (Future developments): Update.
50165
50166 2005-08-24  Bruno Haible  <bruno@clisp.org>
50167
50168         * modules/tls-tests: New file.
50169         * tests/test-tls.c: New file, from GNU gettext.
50170
50171 2005-08-24  Bruno Haible  <bruno@clisp.org>
50172
50173         * modules/lock-tests: New file.
50174         * tests/test-lock.c: New file, from GNU gettext.
50175
50176 2005-08-24  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/lock.h: Add multiple inclusion guard.
50179         * lib/tls.h: Add multiple inclusion guard.
50180
50181 2005-08-24  Bruno Haible  <bruno@clisp.org>
50182
50183         * gnulib-tool: Add support for the --aux-dir option to
50184         --create-testdir, --create-megatestdir, --test, --megatest.
50185         (func_create_testdir, func_create_megatestdir): Optionally emit a
50186         AC_CONFIG_AUX_DIR directive.
50187         (create-testdir, create-megatestdir, test, megatest): Provide a
50188         default value for $auxdir.
50189
50190 2005-08-24  Bruno Haible  <bruno@clisp.org>
50191
50192         * gnulib-tool (import): Use compound statement instead of subshell
50193         where possible.
50194
50195 2005-08-24  Bruno Haible  <bruno@clisp.org>
50196
50197         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50198
50199 2005-08-24  Bruno Haible  <bruno@clisp.org>
50200
50201         * gnulib-tool (func_version): Update.
50202
50203 2005-08-24  Bruno Haible  <bruno@clisp.org>
50204
50205         * gnulib-tool (func_import, func_create_testdir,
50206         func_create_megatestdir): Quote all autoconf macro arguments.
50207
50208 2005-08-24  Bruno Haible  <bruno@clisp.org>
50209
50210         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50211         option --force, because --force causes the aclocal.m4 of each
50212         subdirectory to be newer than the corresponding config.h.in.
50213
50214 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50215
50216         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50217         All contents moved to gl_REGEX.
50218         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50219         assume that it does.
50220
50221 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50222
50223         * lib/regex.h (REG_NOSYS)
50224         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50225         Define, since POSIX requires it as of 2001.
50226         (_REG_ENOSYS)
50227         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50228         New private symbol, used to keep the enum signed in all cases.
50229         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50230         Youngman in
50231         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50232
50233         * lib/regex_internal.c (re_string_skip_chars, register_state):
50234         (calc_state_hash):
50235         Remove forward decls; no longer needed now that we use prototypes.
50236         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50237         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50238         (clean_state_log_if_needed): Likewise.
50239
50240 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         * config/srclist.txt: Add glibc bugs 1231-1233.
50243
50244 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         Fix problems reported by Sam Steingold in
50247         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50248         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50249         assumed that reg_errcode_t is a signed type, which is not
50250         necessarily true if _XOPEN_SOURCE is not defined.
50251         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50252         since some compilers warn about it otherwise.
50253
50254 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50255
50256         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50257         (init_word_char, create_initial_state, duplicate_node_closure):
50258         (fetch_token, peek_token_bracket, build_range_exp):
50259         (build_collating_symbol): Remove forward decls; no longer needed
50260         now that we use prototypes.
50261
50262         * lib/regcomp.c:
50263         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50264         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50265         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50266         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50267         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50268         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50269         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50270         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50271         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50272         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50273         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50274         (build_charclass, build_charclass_op, fetch_number, create_tree):
50275         (create_token_tree, mark_opt_subexp, duplicate_tree):
50276         Use prototypes rather than old-style definitions.
50277
50278         * lib/regex_internal.c:
50279         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50280         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50281         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50282         (re_string_reconstruct, re_string_peek_byte_case):
50283         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50284         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50285         (re_node_set_init_copy, re_node_set_add_intersect):
50286         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50287         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50288         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50289         (re_acquire_state, re_acquire_state_context, register_state):
50290         (create_ci_newstate, create_cd_newstate, free_state):
50291         Likewise.
50292         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50293         re_search_2):
50294         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50295         (re_search_internal, prune_impossible_nodes):
50296         (acquire_init_state_context, check_matching, static):
50297         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50298         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50299         (update_regs, sift_states_backward, build_sifted_states):
50300         (clean_state_log_if_needed, merge_state_array):
50301         (update_cur_sifted_state, add_epsilon_src_nodes):
50302         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50303         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50304         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50305         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50306         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50307         (check_arrival, check_arrival_add_next_nodes):
50308         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50309         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50310         (check_node_accept_bytes, check_node_accept, extend_buffers):
50311         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50312         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50313         (sift_ctx_init):
50314         Likewise.
50315
50316         * lib/regex_internal.h:
50317         (re_string_allocate, re_string_construct, re_string_reconstruct):
50318         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50319         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50320         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50321         (re_string_context_at, re_string_peek_byte_case):
50322         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50323         is defined, since we now use prototypes always.
50324
50325         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50326         C89 or better.  All uses removed.
50327
50328 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50329
50330         * config/srclist.txt: Add glibc bugs 1220-1227.
50331
50332 2005-08-20  Jim Meyering  <jim@meyering.net>
50333
50334         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50335         of unused local, dfa.
50336
50337 2005-08-20  Bruno Haible  <bruno@clisp.org>
50338
50339         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50340
50341 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50344         (re_node_set_insert_last, re_dfa_add_node):
50345         Rename local variables to avoid GCC shadowing warnings.
50346
50347 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50348
50349         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50350         [defined lint]: Suppress bogus uninitialized-variable warnings.
50351
50352         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50353         and let the caller return REG_ESPACE if out of space.  This
50354         removes an uninitialied-variable warning with GCC 4.0.1, and also
50355         avoids taking the address of a local variable.  All callers
50356         changed.
50357
50358 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50359
50360         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50361         $LIBCSRC/posix/regexec.c.
50362         Add glibc bug 1217 for regcomp.c.
50363
50364 2005-08-19  Jim Meyering  <jim@meyering.net>
50365
50366         * lib/regexec.c (proceed_next_node): Redo local variables to
50367         avoid GCC shadowing warnings.
50368
50369 2005-08-18  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/strstr.c (strstr): Fix return value in multibyte case.
50372         * lib/strcasestr.c (strcasestr): Likewise.
50373
50374 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50375
50376         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50377
50378 2005-08-17  Jim Meyering  <jim@meyering.net>
50379
50380         Make the %s format (seconds since the epoch) work for a negative
50381         number and when used with a zero-padded field width, e.g. %015s.
50382
50383         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50384         label so that it precedes the code to set `digits'.  Otherwise,
50385         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50386         print `00-22'.  Now, it prints `-0022', as it should.
50387
50388 2005-08-17  Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/strstr (Files): Add m4/mbrtowc.m4.
50391         (Depends-on): Add mbuiter.
50392
50393 2005-08-17  Bruno Haible  <bruno@clisp.org>
50394
50395         * modules/strcasestr: New file.
50396         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50397         strcasestr.
50398
50399 2005-08-17  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50402
50403 2005-08-17  Bruno Haible  <bruno@clisp.org>
50404
50405         * modules/mbuiter: New file.
50406         * MODULES.html.sh (Extended multibyte and wide character utilities):
50407         Add mbuiter.
50408
50409 2005-08-17  Bruno Haible  <bruno@clisp.org>
50410
50411         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50412         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50413
50414 2005-08-17  Bruno Haible  <bruno@clisp.org>
50415
50416         * m4/strcasestr.m4: New file.
50417
50418 2005-08-17  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50421         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50422
50423 2005-08-17  Bruno Haible  <bruno@clisp.org>
50424
50425         * lib/strcasestr.h: New file.
50426         * lib/strcasestr.c: New file.
50427
50428 2005-08-17  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/strcasecmp.c: Use mbuiter.h.
50431
50432 2005-08-17  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/mbuiter.h: New file.
50435
50436 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50437
50438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50439         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50440         and gl_GETOPT are both invoked via different paths (as happens
50441         with GNU tar CVS because it uses both argp and getopt), the former
50442         wins.
50443
50444 2005-08-16  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/tls: New file.
50447         * MODULES.html.sh (Multithreading): Add tls.
50448
50449 2005-08-16  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/strnlen1: New file.
50452         * MODULES.html.sh (String handling): Add strnlen1.
50453
50454 2005-08-16  Bruno Haible  <bruno@clisp.org>
50455
50456         * modules/strcase (Files): Add m4/mbrtowc.m4.
50457         (Depends-on): Add strnlen1, mbchar.
50458
50459 2005-08-16  Bruno Haible  <bruno@clisp.org>
50460
50461         * modules/mbiter: New file.
50462         * MODULES.html.sh (Extended multibyte and wide character utilities):
50463         Add mbiter.
50464
50465 2005-08-16  Bruno Haible  <bruno@clisp.org>
50466
50467         * modules/mbfile: New file.
50468         * MODULES.html.sh (Extended multibyte and wide character utilities):
50469         Add mbfile.
50470
50471 2005-08-16  Bruno Haible  <bruno@clisp.org>
50472
50473         * modules/mbchar: New file.
50474         * MODULES.html.sh (Extended multibyte and wide character utilities):
50475         New section.
50476
50477 2005-08-16  Bruno Haible  <bruno@clisp.org>
50478
50479         * m4/tls.m4: New file, from GNU gettext.
50480
50481 2005-08-16  Bruno Haible  <bruno@clisp.org>
50482
50483         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50484         always.
50485         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50486
50487 2005-08-16  Bruno Haible  <bruno@clisp.org>
50488
50489         * m4/mbiter.m4: New file.
50490
50491 2005-08-16  Bruno Haible  <bruno@clisp.org>
50492
50493         * m4/mbfile.m4: New file.
50494
50495 2005-08-16  Bruno Haible  <bruno@clisp.org>
50496
50497         * m4/mbchar.m4: New file.
50498
50499 2005-08-16  Bruno Haible  <bruno@clisp.org>
50500
50501         * lib/tls.h: New file, from GNU gettext.
50502         * lib/tls.c: New file, from GNU gettext.
50503
50504 2005-08-16  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/strnlen1.h: New file.
50507         * lib/strnlen1.c: New file.
50508
50509 2005-08-16  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50512         (mbi_init): Update.
50513         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50514         NUL byte, not after it.
50515
50516 2005-08-16  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/strcase.h (strcasecmp): Add note in comments.
50519         * lib/strncasecmp.c: Use code from strcasecmp.c.
50520         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50521         (strcasecmp): Work correctly in multibyte locales.
50522
50523 2005-08-16  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/mbiter.h: New file.
50526
50527 2005-08-16  Bruno Haible  <bruno@clisp.org>
50528
50529         * lib/mbfile.h: New file.
50530
50531 2005-08-16  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/mbchar.h: New file.
50534         * lib/mbchar.c: New file.
50535
50536 2005-08-16  Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50539         the valid ones. Makes the comparison operations transitive:
50540         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50541         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50542
50543 2005-08-15  Simon Josefsson  <jas@extundo.com>
50544
50545         * modules/ssize_t (License): Change to 'unlimited'.
50546
50547         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50548
50549 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50552         Add comments for each pending glibc patch.
50553
50554 2005-08-15  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50557         __cplusplus is defined.
50558
50559 2005-08-14  Jim Meyering  <jim@meyering.net>
50560
50561         Sync from coreutils.
50562
50563         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50564         Use the hash-table-based cycle-detection code not just when
50565         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50566         Reported by James Youngman in
50567         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50568         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50569         FTS_TIGHT_CYCLE_CHECK.
50570         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50571         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50572         once again.
50573         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50574         * lib/fts.c (fd_safer): Remove decl.
50575         Include fcntl--.h rather than unistd-safer.h
50576         (fts_safe_changedir): Don't call fd_safer; no longer needed
50577         now that we include fcntl--.h.
50578
50579 2005-08-12  Simon Josefsson  <jas@extundo.com>
50580
50581         * modules/getndelim2: Use ssize_t module.
50582         * modules/getnline: Likewise.
50583         * modules/safe-read: Likewise.
50584         * modules/xreadlink: Likewise.
50585
50586         * modules/ssize_t: New file.
50587
50588 2005-08-12  Simon Josefsson  <jas@extundo.com>
50589
50590         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50591
50592 2005-08-12  Simon Josefsson  <jas@extundo.com>
50593
50594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50595         ssize_t.
50596
50597 2005-08-12  Simon Josefsson  <jas@extundo.com>
50598
50599         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50600         readline, getdelim and check_version.
50601         (Support for systems lacking ISO C 99: Sizes of integer types):
50602         Add size_max.
50603
50604 2005-08-12  Bruno Haible  <bruno@clisp.org>
50605
50606         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50607
50608 2005-08-11  Simon Josefsson  <jas@extundo.com>
50609
50610         * modules/readline: New file.
50611
50612         * modules/strnlen (Files): Add strnlen.h.
50613
50614 2005-08-11  Simon Josefsson  <jas@extundo.com>
50615
50616         * m4/readline.m4: New file.
50617
50618 2005-08-11  Simon Josefsson  <jas@extundo.com>
50619
50620         * lib/readline.h, readline.c: New file.
50621
50622 2005-08-11  Simon Josefsson  <jas@extundo.com>
50623
50624         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50625         gl_AVOID.
50626
50627 2005-08-11  Bruno Haible  <bruno@clisp.org>
50628
50629         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50630
50631 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50632
50633         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50634
50635 2005-08-10  Simon Josefsson  <jas@extundo.com>
50636
50637         * tests/test-iconvme.c: New file.
50638
50639 2005-08-10  Simon Josefsson  <jas@extundo.com>
50640
50641         * m4/strnlen.m4: New file.
50642
50643         * m4/strndup.m4: Don't check for strnlen declaration, done in
50644         strnlen.m4.
50645
50646 2005-08-10  Simon Josefsson  <jas@extundo.com>
50647
50648         * lib/strndup.c: Use strnlen.h.
50649
50650         * lib/strnlen.h: New file.
50651
50652 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50653
50654         * README: Typos.
50655
50656 2005-08-02  Simon Josefsson  <jas@extundo.com>
50657
50658         * modules/readline: New file.
50659
50660 2005-08-02  Simon Josefsson  <jas@extundo.com>
50661
50662         * modules/getdelim: New file.
50663
50664         * modules/getline: Rewrite, don't use getndelim2.
50665
50666 2005-08-02  Simon Josefsson  <jas@extundo.com>
50667
50668         * m4/getline.m4: Separate out getdelim stuff into separate module.
50669
50670         * m4/getdelim.m4: New file.
50671
50672 2005-08-02  Simon Josefsson  <jas@extundo.com>
50673
50674         * lib/getline.h, getline.c: Rewrite.
50675
50676         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50677
50678 2005-07-31  Bruno Haible  <bruno@clisp.org>
50679
50680         * lib/lock.h (gl_lock_initializer): New macro.
50681         (gl_lock_define_initialized): Use it.
50682         (gl_rwlock_initializer): New macro.
50683         (gl_rwlock_define_initialized): Use it.
50684         (gl_recursive_lock_initializer): New macro.
50685         (gl_recursive_lock_define_initialized): Use it.
50686
50687 2005-07-30  Karl Berry  <karl@gnu.org>
50688
50689         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50690         Report from Ben Pfaff, regarding getopt.
50691
50692 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50693
50694         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50695         normal way.
50696         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50697         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50698         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50699         (gl_GETOPT): Use the new macros.  Most of the implementation
50700         is moved to the new macros.  This is for programs like Emacs
50701         that don't want all the functionality of gl_GETOPT.
50702
50703 2005-07-26  Bruno Haible  <bruno@clisp.org>
50704
50705         * m4/lock.m4: Update from GNU gettext.
50706
50707 2005-07-26  Bruno Haible  <bruno@clisp.org>
50708
50709         * lib/lock.h: Update from GNU gettext.
50710         * lib/lock.c: Update from GNU gettext.
50711
50712 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50713
50714         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50715         obsolescent AC_TRY_RUN.  Include the default includes files, for
50716         'exit'.
50717
50718 2005-07-24  Bruno Haible  <bruno@clisp.org>
50719
50720         * modules/visibility: New file.
50721         * MODULES.html.sh (Misc): Add visibility.
50722
50723 2005-07-24  Bruno Haible  <bruno@clisp.org>
50724
50725         * m4/visibility.m4: New file.
50726
50727 2005-07-24  Bruno Haible  <bruno@clisp.org>
50728
50729         * doc/visibility.texi: New file.
50730
50731 2005-07-22  Bruno Haible  <bruno@clisp.org>
50732
50733         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50734         $(ALLOCA_H), redundant through BUILT_SOURCES.
50735         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50736         redundant through BUILT_SOURCES.
50737         * modules/byteswap (Makefile.am): Remove explicit dependency on
50738         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50739         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50740         $(FNMATCH_H), redundant through BUILT_SOURCES.
50741         * modules/getopt (Makefile.am): Remove explicit dependency on
50742         $(GETOPT_H), redundant through BUILT_SOURCES.
50743         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50744         redundant through BUILT_SOURCES.
50745         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50746         redundant through BUILT_SOURCES.
50747         * modules/stdbool (Makefile.am): Remove explicit dependency on
50748         $(STDBOOL_H), redundant through BUILT_SOURCES.
50749         * modules/stdint (Makefile.am): Remove explicit dependency on
50750         $(STDINT_H), redundant through BUILT_SOURCES.
50751         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50752         Remove explicit dependency on $(SYSEXITS_H).
50753         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50754
50755 2005-07-18  Simon Josefsson  <jas@extundo.com>
50756
50757         * lib/check-version.c (check_version): Accept identical versions too.
50758
50759 2005-07-18  Bruno Haible  <bruno@clisp.org>
50760
50761         * modules/lock: New file.
50762         * MODULES.html.sh (Multithreading): New section.
50763
50764 2005-07-18  Bruno Haible  <bruno@clisp.org>
50765
50766         * m4/lock.m4: New file, from GNU gettext.
50767
50768 2005-07-18  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/lock.h: New file, from GNU gettext.
50771         * lib/lock.c: New file, from GNU gettext.
50772
50773 2005-07-18  Bruno Haible  <bruno@clisp.org>
50774
50775         * lib/lock.h (gl_once_t): New type.
50776         (gl_once_define, gl_once): New macros.
50777         * lib/lock.c (fresh_once): New variable.
50778         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50779         functions.
50780
50781 2005-07-16  Simon Josefsson  <jas@extundo.com>
50782
50783         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50784         workaround, suggested by Bruno.
50785
50786 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * modules/xalloc (Depends-on): Add xalloc-die.
50789         * modules/xvasprintf (Depends-on): Add xalloc-die.
50790
50791 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50794         with a minor change.
50795
50796 2005-07-15  Bruno Haible  <bruno@clisp.org>
50797
50798         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50799         When using lib/poll.c, define poll as rpl_poll.
50800
50801 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         * modules/argp (Depends-on): Remove unlocked-io.
50804
50805 2005-07-14  Derek Price  <derek@ximbiot.com>
50806
50807         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50808         for glob symlink bug.
50809
50810 2005-07-14  Bruno Haible  <bruno@clisp.org>
50811
50812         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50813         Instead, test for *_unlocked function declarations directly.
50814
50815 2005-07-11  Simon Josefsson  <jas@extundo.com>
50816
50817         * modules/size_max: New file.
50818
50819         * modules/xsize: Depend on size_max module for size_max.m4.
50820
50821 2005-07-11  Simon Josefsson  <jas@extundo.com>
50822
50823         * lib/size_max.h: New file.
50824
50825 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50828         copyright symbol and the year.
50829         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50830         (version_etc_va): Use parameterized copyright notice.
50831         Reword to conform to the current GNU coding standards.
50832
50833 2005-07-11  Karl Berry  <karl@gnu.org>
50834
50835         * doc/gnulib.texi (Quoting): new node.
50836         (Initial import): more info, from Patrice.
50837
50838 2005-07-11  Bruno Haible  <bruno@clisp.org>
50839
50840         * gnulib-tool (func_usage): Document option --avoid.
50841         (Command line options): Handle --avoid.
50842         (func_acceptable): New function.
50843         (func_modules_transitive_closure): Use it.
50844
50845 2005-07-11  Bruno Haible  <bruno@clisp.org>
50846
50847         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50848         Reported by Jim Meyering.
50849
50850 2005-07-10  Bruno Haible  <bruno@clisp.org>
50851
50852         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50853         Needed when size_t is smaller than 'unsigned int'.
50854         Reported by Paul Eggert.
50855
50856 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50857
50858         * modules/argp (Depends-on): Add unlocked-io
50859
50860 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50861
50862         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50863         block of defines.
50864
50865 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50866
50867         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50868         fix now.
50869
50870 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50871         and Paul Eggert  <eggert@cs.ucla.edu>
50872
50873         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50874         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50875
50876 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50877
50878         * modules/regex (Files): Add lib/regex_internal.c,
50879         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50880         (Depends-on): Add extensions.
50881         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50882
50883 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50884
50885         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50886         pathconf.
50887         * m4/same.m4 (gl_SAME): Likewise.
50888         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50889
50890         * m4/regex.m4: Adjust to new libc regex implementation.
50891         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50892         all the .c and .h parts of (the new) regex.
50893         Quote the m4 stuff better.
50894         Check for RE_ICASE bug of old gnulib.
50895         Check for REG_STARTEND of recent libc.
50896         Rename local variables from jm_* to gl_*.
50897         Quote operand of "test -f".
50898         Say "recent enough" version of libc, not "version 2".
50899         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50900         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50901         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50902         Remove check for btowc, isascii.
50903         Require AM_LANGINFO_CODESET.
50904
50905 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50906
50907         * lib/regex.c, regex.h: Sync from libc.
50908         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50909         * lib/regexec.c:
50910         New files, synced from libc, except that regex_internal.h
50911         currently has a small porting fix.
50912
50913 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50914
50915         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50916         regex_internal.c, regexec.c.
50917         Add regex_internal.h too, but as a comment, since the libc version
50918         is currently broken in gnulib mode.
50919
50920 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50921
50922         Support programs like Emacs that use gnulib but not gettext.
50923         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50924         * modules/gettext-h: New file.
50925         * modules/gettext (Files): Remove lib/gettext.h.
50926         (Depends-on): Add gettext-h.
50927         (Makefile.am): Remove lib_SOURCES.
50928         * modules/argmatch, modules/c-stack, modules/closeout:
50929         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50930         * modules/execute, modules/file-type, modules/getaddrinfo:
50931         * modules/getopt, modules/human, modules/javacomp:
50932         * modules/javaexec, modules/mkdir-p, modules/obstack:
50933         * modules/openat, modules/pagealign_alloc, modules/pipe:
50934         * modules/quotearg, modules/regex, modules/rpmatch:
50935         * modules/unicodeio, modules/userspec, modules/version-etc:
50936         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50937         * modules/xsetenv:
50938         Depend on gettext-h, not gettext.
50939
50940 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50941
50942         * gnulib-tool (func_import): Add support for 'public domain' license.
50943         * modules/alloca, modules/atexit, modules/memmove:
50944         Now public domain, not GPL.
50945         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50946         * modules/realloc, modules/strerror, modules/strtod:
50947         Now LGPL, not GPL.
50948
50949 2005-07-05  Bruno Haible  <bruno@clisp.org>
50950
50951         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50952         autoconf CVS. Needed for mingw.
50953
50954 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         Remove the dependency of the strftime module on the tzset module.
50957         * modules/strftime (Depends-on): Remove dependency on tzset.
50958
50959 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50960
50961         Remove the dependency of the strftime module on the tzset module.
50962         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50963         gl_FUNC_TZSET_CLOBBER.
50964
50965 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         Remove the dependency of the strftime module on the tzset module.
50968         * lib/strftime.c (my_strftime)
50969         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50970         Copy the input structure, to work around some of the bug with
50971         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50972         Solaris releases, you should also use the tzset module, but we won't
50973         require it as a dependency any more since we don't want LGPLed code
50974         to depend on GPLed code.
50975
50976 2005-07-02  Jim Meyering  <jim@meyering.net>
50977
50978         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50979         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50980         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50981         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50982
50983 2005-07-02  Jim Meyering  <jim@meyering.net>
50984
50985         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50986
50987 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50988
50989         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50990         declares only 'struct timespec;' (!).
50991
50992 2005-07-01  Jim Meyering  <jim@meyering.net>
50993
50994         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50995         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50996         * lib/save-cwd.c, tempname.c:
50997         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50998         and don't include <sys/file.h>).
50999
51000 2005-06-29  Jim Meyering  <jim@meyering.net>
51001
51002         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51003         type name.  Use the variable name instead.
51004         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51005         Likewise.
51006
51007 2005-06-28  Simon Josefsson  <jas@extundo.com>
51008
51009         * modules/check-version (Files): Add check-version.m4.
51010
51011 2005-06-28  Simon Josefsson  <jas@extundo.com>
51012
51013         * m4/check-version.m4: New file, suggested by Jim Meyering
51014         <jim@meyering.net>.
51015
51016 2005-06-28  Simon Josefsson  <jas@extundo.com>
51017
51018         * lib/check-version.h, lib/check-version.c: New files.
51019
51020 2005-06-28  Simon Josefsson  <jas@extundo.com>
51021
51022         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51023         collision with global variable.  Better indentation.  Don't
51024         increment buffer pointer beyond buffer end.  Based on comments
51025         from Paul Eggert <eggert@cs.ucla.edu>.
51026
51027         * lib/base64.h: Indent.
51028
51029 2005-06-28  Simon Josefsson  <jas@extundo.com>
51030
51031         * doc/gnulib.texi (Library version handling): New section.
51032
51033 2005-06-28  Jim Meyering  <jim@meyering.net>
51034
51035         * check-module (find_included_lib_files): Hard-code another
51036         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51037         but modules/fts-lgpl (correctly) does not list those files.
51038
51039         * modules/canonicalize (Files): Add lib/pathmax.h.
51040
51041 2005-06-25  Simon Josefsson  <jas@extundo.com>
51042
51043         * modules/check-version: New file.
51044
51045 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51046
51047         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51048         initializer of struct addrinfo, as an indication that we don't
51049         care how many members the structure has.
51050
51051 2005-06-24  Derek Price  <derek@ximbiot.com>
51052         and Bruno Haible  <bruno@clisp.org>
51053
51054         Remove stat module & update lstat.
51055         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51056         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51057         * m4/stat.m4: Remove this file.
51058
51059 2005-06-24  Derek Price  <derek@ximbiot.com>
51060         and Bruno Haible  <bruno@clisp.org>
51061
51062         Remove stat module & update lstat.
51063         * lib/stat.c: Remove this file...
51064         (slash_aware_lstat): ...moving this content and its support...
51065         * lib/lstat.c (rpl_lstat): ...into here.
51066         * lib/lstat.h: New file.
51067
51068 2005-06-24  Derek Price  <derek@ximbiot.com>
51069         and Bruno Haible  <bruno@clisp.org>
51070
51071         Remove stat module & update lstat.
51072         * config/srclist.txt (libc sources): Remove stat.
51073
51074 2005-06-24  Derek Price  <derek@ximbiot.com>
51075         and Bruno Haible  <bruno@clisp.org>
51076
51077         Remove stat module & update lstat.
51078         * MODULES.html.sh (stat): Remove.
51079         * MODULES.html: Regenerated.
51080         * modules/lstat (Description): Correct function name.
51081         (Files): Add "lstat.h".
51082         (Depends-on): Remove stat, add xalloc, stat-macros.
51083         * modules/stat: Remove this file.
51084         (Include): Add "lstat.h", remove <sys/stat.h>.
51085
51086 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51087
51088         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51089         (ranged_convert): Don't save conversion in a temporary struct.
51090         This causes a warning with GCC 4.0.0, and anyway in the typical
51091         case it's not worth the extra 100 bytes or so of code.
51092         (ranged_convert, __mktime_internal): When calling a function via a
51093         pointer P, use P () rather than (*P) (), as we now assume C89 or
51094         better.
51095
51096 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51097
51098         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51099         "who -r" failed to give output.  Problem reported by Tim Waugh.
51100
51101         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51102         (xcalloc): Use it to avoid needless tests.
51103         Problem reported by Jim Meyering.
51104
51105 2005-06-20  Derek Price  <derek@ximbiot.com>
51106
51107         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51108         unnecessary for Autoconfs > 2.59c.
51109
51110 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51111
51112         * lib/argp.h (__option_is_short): Check upper limit of
51113         __key. Isprint() requires its argument to have the value
51114         of an unsigned char or EOF.
51115
51116 2005-06-16  Jim Meyering  <jim@meyering.net>
51117
51118         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51119         when either N or S is zero.
51120
51121 2005-06-16  Derek Price  <derek@ximbiot.com>
51122
51123         * m4/bison.m4: Declare YACC & YFLAGS precious.
51124
51125 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51128         multibyte string or pattern, fall back on unibyte matching.
51129         Problem reported by James Youngman.
51130
51131 2005-06-08  Bruno Haible  <bruno@clisp.org>
51132
51133         * modules/csharpcomp: New file.
51134         * MODULES.html.sh (C#): Add csharpcomp.
51135
51136 2005-06-08  Bruno Haible  <bruno@clisp.org>
51137
51138         * m4/csharpcomp.m4: New file, from GNU gettext.
51139
51140 2005-06-08  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/csharpcomp.h: New file, from GNU gettext.
51143         * lib/csharpcomp.c: New file, from GNU gettext.
51144         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51145
51146 2005-06-08  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51149         warning on mingw.
51150
51151 2005-06-07  Derek Price  <derek@ximbiot.com>
51152
51153         Sync from CVS.
51154         * lib/glob_.h: Indent nested #ifdef.
51155
51156 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         Sync from coreutils.
51159         Use "file name" when talking about file names, instead of "filename"
51160         or "path", as per the GNU coding standards.
51161         * lib/mkdir-p.c: Renamed from makepath.c.
51162         (make_dir_parents): Renamed from make_path.  All callers changed.
51163         * lib/mkdir-p.h: Likewise.  All includers changed.
51164         * lib/filenamecat.c: Renamed from path-concat.c.
51165         (file_name_concat): Renamed from path_concat.  All callers changed.
51166         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51167         * lib/filenamecat.h: Likewise.  All includers changed.
51168         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51169         in comments or local variable names.
51170         * lib/basename.c: Likewise.
51171         * lib/canonicalize.c, canonicalize.h: Likewise.
51172         * lib/dirname.c, dirname.h: Likewise.
51173         * lib/euidaccess.c: Likewise.
51174         * lib/exclude.c: Likewise
51175         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51176         * lib/fsusage.c, fsuage.h: Likewise.
51177         * lib/fts.c, fts_.h: Likewise.
51178         * lib/getcwd.c: Likewise.
51179         * lib/getloadavg.c: Likewise.
51180         * lib/mkstemp.c: Likewise.
51181         * lib/mountlist.c, mountlist.h: Likewise.
51182         * lib/openat.c, openat.h: Likewise.
51183         * lib/readlink-stub.c: Likewise.
51184         * lib/readutmp.c, readutmp.h: Likewise.
51185         * lib/rename.c: Likewise.
51186         * lib/rmdir.c: Likewise.
51187         * lib/same.c: Likewise.
51188         * lib/savedir.c: Likewise.
51189         * lib/stripslash.c: Likewise.
51190         * lib/tempname.c: Likewise.
51191         * lib/xreadlink.c: Likewise.
51192         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51193         All uses changed.
51194         * lib/exclude.h: Likewise.
51195
51196         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51197         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51198         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51199         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51200         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51201         files have been getting away with it for years (MORE/BSD 4.3
51202         is extinct now).
51203         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51204         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51205
51206         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51207         Define to 256, not 255, as per modern POSIX.
51208
51209 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51210
51211         Sync from coreutils.
51212         Use "file name" when talking about file names, instead of "filename"
51213         or "path", as per the GNU coding standards.
51214         * MODULES.html.sh: mkdir-p renamed from makepath.
51215         filenamecat renamed from path-concat.
51216         * modules/filenamecat: Renamed from modules/path-concat.
51217         (Files): filenamecat.h and filenamecat.c renamed from
51218         path-concat.h and path-concat.c.
51219         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51220         (Include): filenamecat.h, not path-concat.h.
51221         * modules/mkdir-p: Renamed from modules/makepath.
51222         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51223         makepath.c.
51224         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51225         (Include): mkdir-p.h, not makepath.h.
51226
51227 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         Sync from coreutils.
51230         * m4/mkdir-p.m4: Renamed from makepath.m4.
51231         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51232         Rename files from makepath.c to mkdir-p.c, and from
51233         makepath.h to mkdir-p.h.
51234         * m4/filenamecat.m4: Renamed from path-concat.m4.
51235         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51236         Rename files from path-concat.c to filenamecat.c,
51237         and from path-concat.h to filenamecat.h.
51238         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51239         "file name" in local variables or comments.
51240         * m4/rename.m4: Likewise.
51241
51242 2005-06-01  Bruno Haible  <bruno@clisp.org>
51243
51244         * modules/csharpexec: New file.
51245         * MODULES.html.sh (C#): New section.
51246
51247 2005-06-01  Bruno Haible  <bruno@clisp.org>
51248
51249         * m4/csharp.m4: New file, from GNU gettext.
51250         * m4/csharpexec.m4: New file, from GNU gettext.
51251
51252 2005-06-01  Bruno Haible  <bruno@clisp.org>
51253
51254         * lib/csharpexec.h: New file, from GNU gettext.
51255         * lib/csharpexec.c: New file, from GNU gettext.
51256         * lib/csharpexec.sh.in: New file, from GNU gettext.
51257
51258 2005-05-31  Derek Price  <derek@ximbiot.com>
51259             Paul Eggert  <eggert@cs.ucla.edu>
51260
51261         Sync from cvs.
51262         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51263
51264 2005-05-31  Derek Price  <derek@ximbiot.com>
51265             Paul Eggert  <eggert@cs.ucla.edu>
51266
51267         Sync from cvs.
51268         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51269
51270 2005-05-29  Derek Price  <derek@ximbiot.com>
51271
51272         * config/srclist.txt (glob_.h, glob.c): Add these files.
51273
51274 2005-05-29  Derek Price  <derek@ximbiot.com>
51275
51276         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51277         * modules/glob: New file.
51278         * modules/getlogin_r: Add link to POSIX spec in description.
51279
51280 2005-05-29  Derek Price  <derek@ximbiot.com>
51281             Paul Eggert  <eggert@cs.ucla.edu>
51282
51283         * m4/glob.m4: New file.
51284
51285 2005-05-29  Derek Price  <derek@ximbiot.com>
51286             Paul Eggert  <eggert@cs.ucla.edu>
51287
51288         * lib/glob_.h, lib/glob.c: New files.
51289
51290 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51291
51292         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51293         * modules/fts-lgpl (Depends-on): Remove gettext.
51294
51295 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51296
51297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51298         and don't require gt_INTTYPES_PRI.
51299
51300 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51301
51302         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51303
51304         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51305         the configuration hassle isn't worth it.
51306         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51307         (LONGEST_MODIFIER, PRIuMAX): Remove.
51308
51309 2005-05-27  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51312
51313 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51314
51315         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51316         _POSIX_PTHREAD_SEMANTICS for Solaris.
51317
51318 2005-05-25  Derek Price  <derek@ximbiot.com>
51319
51320         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51321
51322 2005-05-25  Derek Price  <derek@ximbiot.com>
51323             Paul Eggert  <eggert@cs.ucla.edu>
51324
51325         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51326         * lib/getlogin_r.c, getlogin_r.h: New files.
51327
51328 2005-05-25  Bruno Haible  <bruno@clisp.org>
51329             Derek Price  <derek@ximbiot.com>
51330
51331         * lib/getlogin_r.h: Simplify API documentation.
51332
51333 2005-05-23  Derek Price  <derek@ximbiot.com>
51334
51335         * modules/minmax (Files): Add m4/minmax.m4.
51336         (configure.ac): Add gl_MINMAX.
51337
51338 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51339
51340         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51341         so that unistd-safer.h (GPL'ed code) need not be included.
51342
51343 2005-05-22  Bruno Haible  <bruno@clisp.org>
51344
51345         * m4/minmax.m4: New file.
51346         Based on a patch by Derek Price <derek@ximbiot.com>.
51347
51348 2005-05-22  Bruno Haible  <bruno@clisp.org>
51349
51350         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51351         (INT64_MIN): Fix definition.
51352         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51353
51354         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51355         NEED_SIGNED_INT_TYPES.
51356
51357         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51358         HAVE_SYSTEM_INTTYPES.
51359
51360 2005-05-22  Bruno Haible  <bruno@clisp.org>
51361
51362         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51363         Also include <sys/param.h> if it defines MIN, MAX.
51364         Based on a patch by Derek Price <derek@ximbiot.com>.
51365
51366 2005-05-21  Jim Meyering  <jim@meyering.net>
51367
51368         * modules/fts (Files): Add m4/inttypes-pri.m4.
51369         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51370
51371 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51372
51373         New fts module.
51374         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51375         (setup_dir, free_dir): New functions.
51376         (enter_dir, leave_dir): Define trivial
51377         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51378         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51379         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51380         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51381         Move to fts-cycle.c.
51382         (fts_open): Use setup_dir.
51383         (fts_close): Use free_dir.
51384         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51385         This adds a label and some gotos, but the alternatives were messier.
51386         Check for memory allocation failure when entering a dir.
51387         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51388         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51389         (FTS): New member fts_cycle, that is a union that contains the
51390         old active_dir_ht and cycle_state.  All uses changed to mention
51391         fts_cycle.ht and fts_cycle.state.
51392         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51393         fts.c, with the following changes:
51394         (setup_dir, free_dir): New functions.
51395         (enter_dir): Now returns bool.  Return true if successful, false
51396         if memory exhausted.  All callers changed.
51397         Do not bother partly cleaning up on
51398         memory allocation failure; that is free_dir's job.
51399         However, free ad if hash_insert fails, to avoid memory leak.
51400         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51401         fts->fts_options to see which union member to use.
51402
51403 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51404
51405         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51406         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51407
51408 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51409
51410         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51411
51412 2005-05-20  Jim Meyering  <jim@meyering.net>
51413
51414         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51415         Now a macro, to pacify GCC.
51416
51417 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51418
51419         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51420         of -1.
51421
51422 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51423
51424         * lib/chown.c (rpl_chown): Return -1 on failure.
51425
51426 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51427
51428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51429         Don't check for stddef.h.
51430         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51431         don't use its results.
51432         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51433         since we include them unconditionally.  Don't require
51434         AM_STDBOOL_H, since stdbool is a prerequisite.
51435         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51436         since we assume C89 or better.
51437         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51438         as we don't use their results.
51439         Don't check for fchdir, memmove, memset, strrchr, as we use
51440         them unconditionally.
51441         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51442         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51443
51444 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51447         Include <stddef.h> unconditionally, since we assume C89 now.
51448         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51449         * lib/fts.c: Include fts_.h first, to check interface.
51450         Do not include intprops.h; no longer needed.
51451         Include cycle-check.h and hash.h, since fts_.h no longer does.
51452         Remove unnecessary casts of closedir to void.
51453         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51454         decide whether to decrement nlinks.
51455         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51456         (FTS): Use struct hash_table * instead of Hash_table, so that
51457         we no longer need to include hash.h here.
51458
51459 2005-05-18  Jim Meyering  <jim@meyering.net>
51460
51461         * modules/dirfd (License): Change to LGPL.  Most of the code
51462         is already in the public domain.
51463
51464 2005-05-18  Jim Meyering  <jim@meyering.net>
51465
51466         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51467         Reported by Yoann Vandoorselaere.
51468
51469 2005-05-17  Jim Meyering  <jim@meyering.net>
51470
51471         * m4/fts.m4: New file, from coreutils.
51472
51473 2005-05-17  Jim Meyering  <jim@meyering.net>
51474
51475         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51476
51477 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51478
51479         Sync from coreutils.
51480         * m4/unlinkdir.m4: New file.
51481
51482 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51483
51484         Sync from coreutils.
51485         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51486         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51487         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51488         White space changes only.
51489         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51490         special.
51491         * lib/yesno.c: Include getline.h, not ctype.h.
51492         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51493         Use getline to remove arbitrary restriction on response length.
51494
51495 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51496
51497         * config/srclist-update: Spell out "Street" in FSF postal
51498         mail address; this is the style the FSF seems to prefer.
51499
51500         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51501         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51502         this updates FSF postal mail address.
51503
51504         Sync from coreutils.
51505         * modules/unlinkdir: New file.
51506         * modules/yesno (Depends-on): Add getline.
51507         * MODULES.html.sh (File system functions): Add unlinkdir.
51508
51509 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51512         lib/strsep.h:
51513         Change the initial comment to refer to GPL, not LGPL.
51514         gnulib-tool will change it to LGPL as needed.
51515
51516         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51517         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51518         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51519         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51520         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51521         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51522         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51523         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51524         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51525         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51526         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51527         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51528         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51529         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51530         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51531         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51532         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51533         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51534         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51535         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51536         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51537         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51538         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51539         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51540         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51541         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51542         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51543         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51544         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51545         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51546         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51547         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51548         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51549         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51550         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51551         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51552         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51553         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51554         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51555         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51556         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51557         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51558         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51559         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51560         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51561         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51562         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51563         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51564         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51565         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51566         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51567         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51568         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51569         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51570         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51571         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51572         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51573         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51574         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51575         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51576         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51577         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51578         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51579         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51580         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51581         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51582         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51583         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51584         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51585         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51586         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51587         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51588         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51589         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51590         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51591         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51592         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51593         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51594         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51595         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51596         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51597         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51598         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51599         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51600         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51601         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51602         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51603         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51604         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51605         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51606         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51607         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51608         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51609         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51610         lib/yesno.c, lib/yesno.h:
51611         Update FSF postal mail address.
51612
51613 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51614
51615         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51616         tests/test-memmem.c, tests/test-stpncpy.c:
51617         Update FSF postal mail address.
51618
51619 2005-05-13  Bruno Haible  <bruno@clisp.org>
51620
51621         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51622         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51623         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51624         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51625         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51626         Add support for 64-bit integers in the MSVC compiler.
51627
51628 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51629
51630         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51631
51632 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51633
51634         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51635
51636 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51637
51638         * doc/getdate.texi (General date syntax): Don't say that date
51639         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51640         Problem reported by Nic Ferrier.
51641
51642 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51643
51644         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51645         specified in ai_socktype. Fix invalid ai_protocol
51646         check. ai_protocol is usually set to 0 or depending on
51647         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51648         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51649         ai_socktype / ai_protocol in the returned addrinfo structure.
51650
51651 2005-05-10  Simon Josefsson  <jas@extundo.com>
51652
51653         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51654         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51655
51656 2005-05-10  Karl Berry  <karl@gnu.org>
51657
51658         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51659         (from http://www.gnu.org/licenses).
51660         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51661         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51662         fdl.texi suffices.
51663
51664 2005-05-10  Karl Berry  <karl@gnu.org>
51665
51666         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51667         (COPYING.DOC): remove.
51668
51669         * config/srclist-update: new FSF address.
51670
51671 2005-05-10  Derek Price  <derek@ximbiot.com>
51672
51673         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51674         possible.
51675
51676 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51677             Bruno Haible  <bruno@clisp.org>
51678
51679         * modules/inet_ntop: New file.
51680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51681         inet_ntop.
51682
51683 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51684             Bruno Haible  <bruno@clisp.org>
51685
51686         * m4/inet_ntop.m4: New file.
51687
51688 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51689             Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/inet_ntop.h: New file.
51692         * lib/inet_ntop.c: New file, from glibc with modifications.
51693
51694 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51695
51696         * modules/time_r (License): Change to LGPL.
51697         * modules/extensions (License): Change to LGPL.  Actually,
51698         the license is more permissive than that, but currently gnulib-tool
51699         doesn't know how to handle more-permissive licenses.
51700
51701         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51702         Problem reported by Dave Love.
51703
51704 2005-05-08  Jim Meyering  <jim@meyering.net>
51705
51706         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51707         blank.
51708
51709 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51710
51711         * modules/argmatch (Depends-on): Add stdbool.
51712         * modules/backupfile (Depends-on): Likewise.
51713         * modules/chdir-long (Depends-on): Likewise.
51714         * modules/closeout (Depends-on): Likewise.
51715         * modules/cycle-check (Depends-on): Likewise.
51716         * modules/dirname (Depends-on): Likewise.
51717         * modules/fnmatch (Depends-on): Likewise.
51718         * modules/fsusage (Depends-on): Likewise.
51719         * modules/fwriteerror (Depends-on): Likewise.
51720         * modules/getcwd (Depends-on): Likewise.
51721         * modules/getloadavg (Depends-on): Likewise.
51722         * modules/hard-locale (Depends-on): Likewise.
51723         * modules/makepath (Depends-on): Likewise.
51724         * modules/mountlist (Depends-on): Likewise.
51725         * modules/nanosleep (Depends-on): Likewise.
51726         * modules/posixtm (Depends-on): Likewise.
51727         * modules/quotearg (Depends-on): Likewise.
51728         * modules/readtokens (Depends-on): Likewise.
51729         * modules/readtokens0 (Depends-on): Likewise.
51730         * modules/readutmp (Depends-on): Likewise.
51731         * modules/save-cwd (Depends-on): Likewise.
51732         * modules/strftime (Depends-on): Likewise.
51733         * modules/userspec (Depends-on): Likewise.
51734         * modules/utimecmp (Depends-on): Likewise.
51735         * modules/xgetcwd (Depends-on): Likewise.
51736         * modules/xnanosleep (Depends-on): Likewise.
51737         * modules/xstrtod (Depends-on): Likewise.
51738         * modules/yesno (Depends-on): Likewise.
51739
51740 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51743         needless checks.
51744
51745 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         Merge from coreutils.  Among other things,
51748         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51749         * lib/fd-safer.c: New file.
51750         * lib/fcntl-safer.h, open-safer.c: Remove.
51751         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51752         * lib/dup-safer.c: Include unistd-safer.h first.
51753         Don't include errno.h.
51754         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51755         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51756         * lib/file-type.c: Rely on file-type.h change.
51757         * lib/getloadavg.c: Include unistd-safer.h.
51758         (getloadavg): Use safer open.
51759         * lib/getusershell.c: Include "stdio-safer.h".
51760         (getusershell): Use safer fopen.
51761         * lib/long-options.c (long_options): Use NULL rather than 0.
51762         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51763         'free'.
51764         * lib/modechange.c: Likewise.
51765         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51766         (MODE_DONE): New constant.
51767         (struct mode_change): Remove 'next' member.
51768         (make_node_op_equals): New function; like the old one of the
51769         same name, except it allocates an array.
51770         (mode_compile, mode_create_from_ref): Use it.
51771         (mode_compile): Allocate result as an array, not a linked list.
51772         Parse octal string ourself, so that we catch mistakes like "+0".
51773         (mode_adjust): Arg is an array, not a linked list.
51774         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51775         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51776         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51777         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51778         Remove.  This is now stat-macros.h's job.
51779         (talloc): Remove.  All callers replaced by xalloc, so that
51780         our invokers don't have to worry about reporting memory failures.
51781         (make_node_op_equals): Remove.
51782         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51783         New constants.
51784         (struct mode_change): Moved here from modechange.h.
51785         (mode_append_entry): Remove.
51786         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51787         apps to have incorrect behavior.  Use simpler algorithm for head
51788         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51789         Detect more invalid usages rather than having somewhat-random behavior.
51790         Don't insert an "a=" action, as that leads to incorrect behavior.
51791         (mode_compile, mode_create_from_ref): Return NULL on error instead
51792         of an enum, since now there's only one way to have an error.  All
51793         callers changed.
51794         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51795         at the correct time.  Simplify calculation of "+u" and its ilk.
51796         Don't mishandle "+X".
51797         (mode_free): Remove "register" and localize decls.
51798         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51799         (struct mode_change): Move to modechange.c; callers don't
51800         need to see this stuff.
51801         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51802         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51803         (mode_change, mode_adjust): Reflect the new signatures noted above.
51804         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51805         that might redefine system include files.
51806         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51807         (my_usleep): Use NULL rather than (void *) 0.
51808         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51809         Use siginterrupt to specify that system calls should be interrupted.
51810         (rpl_nanosleep): Move initialization of suspended closer to call of
51811         my_usleep.
51812         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51813         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51814         (desirable_utmp_entry): New function.
51815         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51816         using x2nrealloc, to simplify logic.
51817         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51818         size calculation.  Do not assume utmp file is a regular file.
51819         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51820         (READ_UTMP_CHECK_PIDS): New constant.
51821         * lib/save-cwd.c: Include unistd-safer.h.
51822         (save_cwd): Use fd_safer.
51823         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51824         [!_LIBC] Include "stat-macros.h" instead.
51825         * lib/unistd-safer.h (fd_safer): New decl.
51826
51827 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51828
51829         * modules/getloadavg (Depends-on): Add unistd-safer.
51830         * modules/getusershell (Depends-on): Add stdio-safer.
51831         * modules/lstat (Depends-on): Remove xalloc.
51832         * modules/mkstemp (Depends-on): Add stat-macros.
51833         * modules/modechange (Depends-on): Remove xstrtol.
51834         Add stat-macros, xalloc.
51835         * modules/save-cwd (Depends-on): Add unistd-safer.
51836         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51837         * modules/unistd-safer (Files): Add lib/fd-safer.c
51838         (Makefile.am): Remove lib_SOURCES.
51839
51840         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51841         Remove fcntl-safer; unistd-safer supersedes it.
51842
51843 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51844
51845         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51846         AC_HEADER_STAT.
51847         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51848         (gl_PREREQ_CHOWN): Remove.
51849         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51850         it.  Don't require AC_HEADER_STAT.
51851         (gl_PREREQ_LSTAT): Remove.
51852         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51853         Don't require AC_HEADER_STAT.
51854         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51855         (gl_PREREQ_RMDIR): Remove.
51856         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51857         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51858         the stat-macros module a prerequisite.
51859         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51860         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51861         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51862         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51863         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51864         variable names.
51865         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51866         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51867         variable prefixes.
51868         * m4/fcntl-safer.m4: Remove.
51869         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51870         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51871         Invoke gl_PREREQ_FD_SAFER.
51872         (gl_PREREQ_FD_SAFER): New macro.
51873         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51874         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51875         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51876         Remove duplicate call to AC_LIBOBJ(readutmp).
51877         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51878
51879         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51880         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51881
51882 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51883
51884         * MODULES.html.sh (Misc): Add byteswap.
51885
51886 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51887
51888         * modules/getcwd (Depends-on): Add extensions.
51889         * modules/openat (Depends-on): Likewise.
51890
51891 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51892
51893         * modules/byteswap: New file.
51894
51895 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51896
51897         * m4/byteswap.m4: New file.
51898
51899 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51900
51901         * lib/byteswap_.h: New file.
51902
51903 2005-04-25  Karl Berry  <karl@gnu.org>
51904
51905         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51906
51907 2005-04-25  Albert Chin  <china@thewrittenword.com>
51908
51909         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51910         Toolkit C bug.
51911
51912 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51913
51914         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51915         (func_ln_if_changed) Remove forcibly for no error message
51916         in case file does not exist.
51917
51918 2005-04-19  Simon Josefsson  <jas@extundo.com>
51919
51920         * gnulib-tool (Options): Make --symlink mean --symbolic.
51921
51922 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51923
51924         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51925
51926 2005-04-16  Simon Josefsson  <jas@extundo.com>
51927
51928         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51929
51930 2005-04-15  Simon Josefsson  <jas@extundo.com>
51931
51932         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51933
51934 2005-04-15  Simon Josefsson  <jas@extundo.com>
51935
51936         * gnulib-tool: Rename --symlink to --symbolic.
51937
51938 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51939
51940         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51941         symbolic links to files instead of copying/moving.  Add --aux-dir,
51942         specifying directory relative --dir where auxiliary build tools
51943         are placed.
51944
51945 2005-04-14  Bruno Haible  <bruno@clisp.org>
51946
51947         * modules/allocsa (License): Change to LGPL.
51948         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51949
51950 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51953         that "UTC +1 second" continues to work.  Problem reported
51954         by Dmitry V. Levin.
51955         (relunit_snumber): New rule.
51956         (relunit): Use it.
51957
51958 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51959
51960         * lib/getdate.y (universal_time_zone_table): New constant.
51961         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51962         universal_time_zone_table.
51963         (lookup_zone): Prefer universal_time_zone_table to
51964         local_time_zone_table, so that "GMT" time stamps are allowed in
51965         London during the summer.  Problem reported by Ian Abbott.
51966
51967 2005-04-12  Jim Meyering  <jim@meyering.net>
51968
51969         * lib/human.c (humblock): Set *options even when returning due to
51970         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51971         warning from gcc-4.
51972
51973 2005-04-09  Jim Meyering  <jim@meyering.net>
51974
51975         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51976         -Wuninitialized: initialize tm0.tm_year.
51977
51978 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51979
51980         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51981         count, since there's no maximum.  All uses changed.
51982         Add member dsts_seen.
51983         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51984         not being INT_MAX.
51985         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51986         Use pc_rels_seen to decide whther a date is absolute.
51987
51988         * lib/getdate.y (number): Don't overwrite year.
51989         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51990         check.
51991
51992 2005-04-02  Simon Josefsson  <jas@extundo.com>
51993
51994         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51995         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51996
51997 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51998
51999         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52000         where no absolute path name can be longer than PATH_MAX.
52001
52002 2005-03-27  Jim Meyering  <jim@meyering.net>
52003
52004         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52005
52006 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52007
52008         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52009         "one's complement" -> "ones' complement" in comment, as per Knuth.
52010         "value of type" -> "type or expression" in comment.
52011         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52012
52013 2005-03-26  Jim Meyering  <jim@meyering.net>
52014
52015         Comment nits.
52016         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52017         Correct typos: s/or/of/.
52018
52019 2005-03-26  Jim Meyering  <jim@meyering.net>
52020
52021         * modules/check-include-files: Move to ../ and rename to...
52022         * check-module: ...this.
52023
52024 2005-03-25  Jim Meyering  <jim@meyering.net>
52025
52026         * modules/xvasprintf (Files): Add xalloc.h.
52027
52028 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52029
52030         * modules/gettext (Files): config/config.rpath ->
52031         build-aux/config.rpath
52032         * modules/iconv (Files): Likewise.
52033         Problem reported by Oskar Liljeblad.
52034
52035 2005-03-23  Jim Meyering  <jim@meyering.net>
52036
52037         * modules/check-include-files: New script to check for
52038         missing dependencies, multiple includes, etc.
52039
52040         * modules/c-strtold (Depends-on): Add xalloc.
52041         * modules/c-strtod (Depends-on): Add xalloc.
52042         * modules/hash (Depends-on): Add xalloc.
52043         (Files): Remove lib/xalloc.h.
52044
52045         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52046         * modules/userspec (Files): Add lib/inttostr.h.
52047
52048 2005-03-23  Jim Meyering  <jim@meyering.net>
52049
52050         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52051
52052 2005-03-22  Jim Meyering  <jim@meyering.net>
52053
52054         * modules/stat-macros: New module.
52055         * modules/canonicalize, modules/euidaccess, modules/file-type,
52056         * modules/filemode, modules/lchown, modules/makepath,
52057         * modules/rmdir, modules/stat: Depend on new stat-macros module
52058         rather than listing lib/stat-macros.h manually.
52059         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52060
52061 2005-03-22  Jim Meyering  <jim@meyering.net>
52062
52063         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52064
52065 2005-03-22  Bruno Haible  <bruno@clisp.org>
52066
52067         * config/srclist.txt: Replace target directory 'config' with
52068         'build-aux'.
52069         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52070         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52071         ../build-aux/.
52072
52073 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         * modules/chdir-long (Depends-on): Add mempcpy.
52076
52077         * modules/acl, modules/backupfile, modules/c-strtod,
52078         modules/c-strtold, modules/canon-host, modules/canonicalize,
52079         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52080         modules/exclude, modules/exitfail, modules/file-type,
52081         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52082         modules/getdate, modules/getline, modules/getpagesize,
52083         modules/getpass, modules/getugroups, modules/group-member,
52084         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52085         modules/inttostr, modules/long-options, modules/makepath,
52086         modules/md5, modules/memcasecmp, modules/memcoll,
52087         modules/modechange, modules/mountlist, modules/path-concat,
52088         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52089         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52090         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52091         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52092         modules/strftime, modules/strndup, modules/strverscmp,
52093         modules/timespec, modules/unlocked-io, modules/userspec,
52094         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52095         modules/yesno:
52096         Remove lib_SOURCES line from Makefile.am section, as this is now
52097         done automatically by the corresponding Autoconf macro.
52098
52099 2005-03-21  Jim Meyering  <jim@meyering.net>
52100
52101         Changes imported from coreutils.
52102
52103         * lib/cycle-check.c: Don't include xalloc.h.
52104
52105         * lib/path-concat.c: Don't include assert.h.
52106         (path_concat): Remove assertion that would have triggered
52107         for ABASE starting with more than one slash.
52108         Reported by Andreas Schwab.
52109
52110         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52111         properly when ABASE is an absolute file name.
52112         Correct the description of this function.
52113         Include <assert.h>.
52114         Add an assertion and a test driver.
52115         This fixes a bug introduced on 2004-07-02.
52116         Andreas Schwab reported the resulting failure of cp --parents:
52117         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52118
52119 2005-03-21  Jim Meyering  <jim@meyering.net>
52120
52121         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52123
52124 2005-03-21  Jim Meyering  <jim@meyering.net>
52125         and  Paul Eggert  <eggert@cs.ucla.edu>
52126
52127         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52128         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52129         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52130         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52131         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52132         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52133         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52134         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52135         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52136         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52137         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52138         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52139         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52140         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52141         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52142         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52143         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52144         for these modules.
52145
52146 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52149         (which shouldn't happen), generate nothing instead of returning 0
52150         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52151
52152 2005-03-16  Bruno Haible  <bruno@clisp.org>
52153
52154         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52155         HAVE_LONGLONG_64BIT.
52156
52157 2005-03-16  Bruno Haible  <bruno@clisp.org>
52158
52159         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52160         HAVE_LONGLONG_64BIT.
52161
52162 2005-03-16  Bruno Haible  <bruno@clisp.org>
52163
52164         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52165         HAVE_LONGLONG_64BIT.
52166
52167 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52170         reliably distinguish strftime failure from empty output on POSIX
52171         hosts.
52172
52173 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52174
52175         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52176         (iconv_string): Don't guess a size-zero buffer, as that might cause
52177         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52178         result would be 'too large', where 'too large' is (heuristically)
52179         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52180         overflow concerns.  This will prevent some unwanted malloc failures
52181         when the inputs are very large.
52182
52183 2005-03-15  Karl Berry  <karl@gnu.org>
52184
52185         * config/srclist.txt (config.rpath): from gettext.
52186         * config/config.rpath: update.
52187
52188 2005-03-15  Bruno Haible  <bruno@clisp.org>
52189
52190         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52191         to 'negate'.
52192
52193         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52194         variable.
52195
52196         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52197         results.
52198
52199 2005-03-14  Simon Josefsson  <jas@extundo.com>
52200
52201         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52202         <fx@gnu.org>.
52203
52204 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52207         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52208         intprops.h.
52209         * lib/strtol.c: Likewise.
52210
52211 2005-03-14  Jim Meyering  <jim@meyering.net>
52212
52213         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52214         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52215         to be nonzero so that we (and caller) can detect the difference
52216         between a valid zero-length expansion and an error return, even
52217         when the underlying strftime fails before writing anything into
52218         that location.
52219
52220 2005-03-14  Bruno Haible  <bruno@clisp.org>
52221
52222         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52223         Update from GNU gettext 0.14.3.
52224
52225 2005-03-10  Jim Meyering  <jim@meyering.net>
52226
52227         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52228
52229 2005-03-10  Jim Meyering  <jim@meyering.net>
52230
52231         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52232         so that this module works on systems without fchdir.
52233
52234 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         Factor int-properties macros into a single file, except for
52237         glibc-related files.
52238         * lib/intprops.h: New file.
52239         * lib/getloadavg.c: Include it instead of limits.h.
52240         (INT_STRLEN_BOUND): Remove.
52241         * lib/human.c: Include intprops.h.
52242         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52243         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52244         302/1000.
52245         * lib/inttostr.h: Include intprops.h instead of limits.h.
52246         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52247         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52248         for consistency with intprops.h.
52249         (time_t_is_integer, twos_complement_arithmetic): Use them.
52250         * lib/sig2str.h: Include <signal.h>, intprops.h.
52251         (INT_STRLEN_BOUND): Remove.
52252         * lib/strftime.c (TYPE_SIGNED): Remove.
52253         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52254         * lib/strtol.c: Adjust comments to match intprops.h.
52255         * lib/userspec.c: Include intprops.h.
52256         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52257         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52258         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52259         instead of rolling our own expressions.
52260         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52261
52262         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52263         instead of int.
52264         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52265         the right thing even if adding 1900 would overflow.  Similarly
52266         for tm_mon + 1 and tm_yday + 1.
52267         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52268         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52269         (DO_SIGNED_NUMBER): New macro.
52270         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52271
52272 2005-03-07  Bruno Haible  <bruno@clisp.org>
52273
52274         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52275
52276 2005-03-07  Bruno Haible  <bruno@clisp.org>
52277
52278         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52279
52280 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52281
52282         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52283         (func_import): Only replace files via --import when they have actually
52284         changed.
52285
52286 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52287
52288         * m4/mmap-anon.m4: New file.
52289         * m4/pagealign_alloc.m4: New file.
52290
52291 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52292             Bruno Haible  <bruno@clisp.org>
52293
52294         * modules/pagealign_alloc: New file.
52295         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52296
52297 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52298             Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/pagealign_alloc.h: New file.
52301         * lib/pagealign_alloc.c: New file.
52302
52303 2005-03-03  Bruno Haible  <bruno@clisp.org>
52304
52305         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52306         Use an all-permissive copyright notice, recommended by RMS.
52307
52308 2005-03-02  Bruno Haible  <bruno@clisp.org>
52309
52310         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52311         of AIX, the replacement has to be done only after <string.h> is
52312         included, therefore not in config.h. stpncpy.h does the replacement,
52313         and stpncpy.c uses it.
52314
52315 2005-03-02  Bruno Haible  <bruno@clisp.org>
52316
52317         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52318         stpncpy.c uses it.
52319
52320 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52323         The workaround isn't strictly needed for POSIX conformance, and
52324         it's too much of a pain to configure and maintain.  We'll ask
52325         people to fix their kernels instead.
52326         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52327         (NANOSLEEP_BUG_WORKAROUND): Remove.
52328         (xnanosleep): Remove the workaround.
52329
52330 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52331
52332         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52333         Reported by Derek Price.
52334         (Include): Add "timespec.h".
52335
52336         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52337
52338 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52341         to detect nanosleep bug.
52342
52343 2005-03-01  Bruno Haible  <bruno@clisp.org>
52344
52345         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52346
52347 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52348
52349         * modules/gethrxtime: New file.
52350         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52351         (Depends-on): Add gethrxtime.
52352         (configure.ac): Add gl_XNANOSLEEP.
52353         (Makefile.am): Remove lib_SOURCES line.
52354
52355 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52356
52357         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52358         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52359
52360 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52363         * lib/timespec.h (gettime): Return void, since it always
52364         succeeds now.  All uses changed.
52365         * lib/gettime.c (gettime) Likewise.
52366         [HAVE_NANOTIME]: Prefer nanotime.
52367         Assume gettimeofday succeeds, as POSIX requires.
52368         Assime time () succeeds, since other code already does.
52369         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52370         (timespec_subtract): Remove.
52371         (NANOSLEEP_BUG_WORKAROUND): New constant.
52372         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52373         things considerably.  Use it only on GNU/Linux hosts, since the
52374         workaround shouldn't be needed elsewhere.
52375
52376 2005-02-24  Bruno Haible  <bruno@clisp.org>
52377
52378         * modules/gettext (Files): Add m4/glibc2.m4.
52379
52380 2005-02-24  Bruno Haible  <bruno@clisp.org>
52381
52382         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52383         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52384         * m4/progtest.m4:
52385         Update from GNU gettext 0.14.2.
52386         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52387
52388 2005-02-24  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52391         * lib/config.charset: Update from GNU gettext 0.14.2.
52392
52393 2005-02-24  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/gettext.h: Update from GNU gettext 0.14.2.
52396
52397 2005-02-23  Simon Josefsson  <jas@extundo.com>
52398
52399         * m4/iconvme.m4: New file.
52400
52401 2005-02-23  Jim Meyering  <jim@meyering.net>
52402
52403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52404         change.
52405         Thanks to Bruno Haible for catching it.
52406
52407 2005-02-22  Simon Josefsson  <jas@extundo.com>
52408
52409         * modules/iconvme: New file.
52410
52411         * MODULES.html.sh: Add iconvme.
52412
52413 2005-02-22  Simon Josefsson  <jas@extundo.com>
52414
52415         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52416
52417 2005-02-22  Simon Josefsson  <jas@extundo.com>
52418
52419         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52420
52421 2005-02-22  Jim Meyering  <jim@meyering.net>
52422
52423         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52424         s/ifndef/ifdef/.
52425
52426 2005-02-20  Neil Conway  <neilc@samurai.com>
52427
52428         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52429         returned by OSX/Darwin if the specified buffer is not large
52430         enough for the hostname.
52431
52432 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52433
52434         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52435         pass it to _help, otherwise the latter coredumps trying to
52436         dereference state.root_argp.
52437
52438 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52439
52440         * modules/chdir-long (Depends-on): Add memrchr.
52441         * modules/memrchr (Files): Add lib/memrchr.h.
52442         (Include): "memrchr.h".
52443
52444 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52447
52448 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52449
52450         * lib/memrchr.h: New file.
52451         * lib/chdir-long.c: Include it.
52452         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52453         Don't bother including stddef.h.
52454
52455 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52456
52457         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52458         inclusion.
52459         Include <sys/types.h>, for dev_t.
52460         (ME_DUMMY, ME_REMOTE): Move from here....
52461         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52462         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52463         Dmitry V. Levin.
52464         Include mountlist.h first, to test the interface.
52465
52466 2005-01-29  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/progname.c (program_name): Initialize.
52469         Needed when linking statically on MacOS X.
52470
52471 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         Sync from coreutils.
52474         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52475         (Depends-on): Add c-strtod.
52476         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52477
52478 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52479
52480         Sync from coreutils.
52481         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52482
52483         Remove files that are specific to coreutils.
52484         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52485
52486 2005-01-28  Bruno Haible  <bruno@clisp.org>
52487
52488         * modules/javacomp: New file.
52489         * MODULES.html.sh (Java): Add javacomp.
52490
52491 2005-01-28  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/javacomp.m4: New file, from GNU gettext.
52494
52495 2005-01-28  Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/javacomp.sh.in: New file, from GNU gettext.
52498         * lib/javacomp.h: New file, from GNU gettext.
52499         * lib/javacomp.c: New file, from GNU gettext.
52500
52501 2005-01-26  Simon Josefsson  <jas@extundo.com>
52502
52503         * lib/gai_strerror.c: Use GPL in header.
52504
52505 2005-01-26  Bruno Haible  <bruno@clisp.org>
52506
52507         * modules/javaexec: New file.
52508         * MODULES.html.sh (Java): Add javaexec.
52509
52510 2005-01-26  Bruno Haible  <bruno@clisp.org>
52511
52512         * m4/javaexec.m4: New file, from GNU gettext.
52513
52514 2005-01-26  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/javaexec.sh.in: New file, from GNU gettext.
52517         * lib/javaexec.h: New file, from GNU gettext.
52518         * lib/javaexec.c: New file, from GNU gettext.
52519
52520 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52521
52522         * modules/lchown (Depends-on): Remove lchown.h
52523
52524 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52525
52526         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52527         must be defined if the header file was not found, in order
52528         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52529
52530 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52531
52532         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52533         initializers for struct pentry_state.
52534         (__argp_error): Check return value of __asprintf
52535         (__argp_failure): Translate error message
52536
52537         * lib/argp-parse.c: Removed braces around the expansion of N_()
52538
52539 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52540
52541         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52542         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52543         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52544         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52545         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52546         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52547         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52548         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52549         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52550         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52551         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52552         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52553         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52554         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52555         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52556         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52557         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52558         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52559         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52560         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52561         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52562         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52563         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52564         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52565         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52566         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52567         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52568         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52569         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52570         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52571         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52572         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52573         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52574         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52575         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52576         Use an all-permissive copyright notice, recommended by RMS.
52577
52578 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * modules/chdir-long (Depends-on): Remove mempcpy.
52581
52582 2005-01-21  Jim Meyering  <jim@meyering.net>
52583
52584         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52585         same value as for Solaris 9.
52586
52587         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52588         component length.  This included changing the parameter to be
52589         of type `char *' rather than `char const *'.
52590         * lib/chdir-long.h (chdir_long): Update prototype.
52591
52592         * lib/openat.c (fdopendir, fstatat): New functions.
52593         * lib/openat.h: Include headers required for use of DIR and struct
52594         stat.
52595         [AT_SYMLINK_NOFOLLOW]: Define.
52596         (fdopendir, fstatat): Add prototypes.
52597
52598 2005-01-21  Bruno Haible  <bruno@clisp.org>
52599
52600         * modules/classpath: New file.
52601         * MODULES.html.sh (Java): Add classpath.
52602
52603 2005-01-21  Bruno Haible  <bruno@clisp.org>
52604
52605         * lib/classpath.h: New file, from GNU gettext.
52606         * lib/classpath.c: New file, from GNU gettext.
52607
52608 2005-01-20  Simon Josefsson  <jas@extundo.com>
52609
52610         * modules/version-etc-fsf: New file.
52611
52612 2005-01-20  Simon Josefsson  <jas@extundo.com>
52613
52614         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52615         * lib/version-etc.c: Remove version_etc_copyright.
52616         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52617         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52618
52619 2005-01-20  Simon Josefsson  <jas@extundo.com>
52620
52621         * lib/base64.h (isbase64): Add.
52622
52623         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52624         using a unsigned prototype, don't inline.
52625         (base64_decode): Use it.
52626
52627 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52628
52629         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52630         it.
52631
52632 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * lib/save-cwd.c (save_cwd): Remove code to support the case
52635         where fchdir is missing or flaky.
52636
52637 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52640
52641 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52642
52643         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52644         AC_LIBSOURCES now does this.
52645         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52646         with new ullong_max module.
52647
52648 2005-01-19  Bruno Haible  <bruno@clisp.org>
52649
52650         * modules/sh-quote: New file.
52651         * MODULES.html.sh (Executing programs): Add sh-quote.
52652
52653 2005-01-19  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/sh-quote.h: New file, from GNU gettext.
52656         * lib/sh-quote.c: New file, from GNU gettext.
52657
52658 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52659
52660         Merge from coreutils.
52661         * m4/ullong_max.m4: New file.
52662         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52663         (gl_MACROS): Assume localeconv exists.
52664
52665 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52666
52667         Merge changes from coreutils, as described below in several
52668         changelogs dated today.
52669
52670         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52671         (O_DIRECTORY): Remove; not needed here, since "." must be
52672         a directory.  All uses removed.
52673         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52674         universal on Suns, and we also need to test for IRIX.
52675         Revamp code to use 'if' rather than '#if'.
52676         Avoid unnecessary comparison of cwd->desc to 0.
52677
52678         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52679         for known valid error numbers rather than observed invalid ones.
52680
52681 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         * modules/ullong_max: New file.
52684
52685         * modules/chdir-long, modules/openat: New files.
52686         * modules/save-cwd (Depends-on): Depend on chdir-long.
52687         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52688
52689 2005-01-18  Jim Meyering  <jim@meyering.net>
52690
52691         Merge from coreutils.
52692         * m4/chdir-long.m4, m4/openat.m4: New files.
52693         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52694         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52695         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52696         is sane and DOES follow symlinks.  Besides, testing 20 different
52697         systems found no broken chown implementations.
52698         Prompted by a change in rsync's copy of this macro.
52699         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52700
52701         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52702
52703         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52704         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52705         NULL-means-set-to-current-time semantics.
52706         Remove temporary file immediately, rather than waiting
52707         for configure's at-exit trap code to do it.
52708
52709 2005-01-18  Jim Meyering  <jim@meyering.net>
52710
52711         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52712
52713         * lib/utimens.c (futimens): Account for the fact that futimes
52714         can also fail with errno == ENOSYS or errno == ENOENT.
52715         Patch from Dmitry V. Levin.
52716
52717         Change the name of the robust chdir function from chdir to chdir_long.
52718         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52719         (restore_cwd): Use chdir_long, not chdir.
52720         * lib/chdir-long.c: Renamed from chdir.c.
52721         * lib/chdir-long.h: Renamed from chdir.h.
52722         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52723         Hurd.
52724
52725 2005-01-18  Bruno Haible  <bruno@clisp.org>
52726
52727         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52728         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52729         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52730         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52731         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52732         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52733         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52734         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52735         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52736         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52737         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52738         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52739         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52740         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52741         Use an all-permissive copyright notice, recommended by RMS.
52742
52743 2005-01-18  Bob Proulx  <bob@proulx.com>
52744
52745         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52746         simplify offsetof() macro construct to avoid compile failure with
52747         native HP-UX 11.0 ANSI C compiler.
52748
52749 2005-01-17  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52752         redundant because stpncpy.m4 takes care of it.
52753
52754 2005-01-17  Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52757
52758 2005-01-17  Bruno Haible  <bruno@clisp.org>
52759
52760         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52761         used.
52762
52763 2005-01-17  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/fwriteerror.h (fwriteerror): Change specification to include
52766         fclose.
52767         * lib/fwriteerror.c: Include <stdbool.h>.
52768         (fwriteerror): At the end, close the file stream. Record whether
52769         stdout was already closed.
52770
52771 2005-01-17  Bruno Haible  <bruno@clisp.org>
52772
52773         * lib/execute.c (environ): Declare if needed.
52774         * lib/pipe.c (environ): Likewise.
52775         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52776
52777 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52778
52779         * modules/argp: Depend on vsnprintf
52780
52781 2005-01-10  Jim Meyering  <jim@meyering.net>
52782
52783         * modules/closeout (Depends-on): Add atexit.
52784
52785 2005-01-06  Bruno Haible  <bruno@clisp.org>
52786
52787         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52788
52789 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52790
52791         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52792         definitions to be after all include files, to avoid collisions.
52793         Problem reported by Bob Proulx.
52794
52795 2005-01-04  Jim Meyering  <jim@meyering.net>
52796
52797         Changes imported from coreutils.
52798         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52799         as the mkstemp template, use a temporary directory and an
52800         8.3-friendly template to avoid trouble on systems like DJGPP.
52801         Reported by Juan M. Guerrero via Stepan Kasal.
52802         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52803         close. Remove the temporary directory right away, rather than waiting
52804         for configure's at-exit trap code to do it.
52805         Suggestion from Stepan Kasal.
52806
52807 2005-01-01  Simon Josefsson  <jas@extundo.com>
52808
52809         * gnulib-tool: Print #include directives when --import'ing.
52810
52811 2004-12-28  Simon Josefsson  <jas@extundo.com>
52812
52813         * tests/test-base64.c: Include required header files.  Remove
52814         unused variables.
52815
52816 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52817
52818         * modules/error (Depends-on): Remove gettext.
52819
52820 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52821
52822         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52823         not needed.  This removes a dependency on the gettext module.
52824         [defined _LIBC]: Do not include <libintl.h>; not needed.
52825
52826 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52827
52828         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52829         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52830
52831 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52832
52833         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52834         HAVE_DECL_STRTOLD.
52835
52836 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * modules/getdate (Depends-on): Remove alloca-opt.
52839
52840 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52843
52844 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * lib/argp-parse.c: Include <stddef.h>.
52847         (alignof, alignto): New macros.
52848         (parser_init): Don't assume that void * is aligned sufficiently
52849         for struct option.
52850
52851         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52852         need to extend the stack.
52853         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52854         large.
52855
52856 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52857
52858         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52859
52860 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52861
52862         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52863         (2004-10-24) change.  Apparently this was a false alarm.
52864
52865         * modules/getdate: Depend on alloca-opt, not alloca.
52866
52867 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52870         Remove now-obsolete comment about AIX.
52871         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52872         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52873         (YYMAXDEPTH): New macro.
52874
52875 2004-12-18  Simon Josefsson  <jas@extundo.com>
52876
52877         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52878
52879 2004-12-18  Bruno Haible  <bruno@clisp.org>
52880
52881         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52882
52883 2004-12-18  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/fatal-signal.c (fatal_signals): Make non-const.
52886         (init_fatal_signals): New function.
52887         (uninstall_handlers, install_handlers): Ignore signals that were set to
52888         SIG_IGN.
52889         (at_fatal_signal): Call init_fatal_signals.
52890         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52891         SIG_IGN.
52892         Reported by Paul Eggert.
52893
52894 2004-12-18  Bruno Haible  <bruno@clisp.org>
52895
52896         * doc/alloca.texi: New file.
52897         * doc/alloca-opt.texi: New file.
52898
52899 2004-12-17  Jim Meyering  <jim@meyering.net>
52900
52901         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52902         Otherwise, install-sh could exit with improper exit status when
52903         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52904
52905 2004-12-16  Simon Josefsson  <jas@extundo.com>
52906
52907         * tests/test-base64.c: Add license.
52908
52909 2004-12-15  Stepan Kasal  <address@hidden>
52910
52911         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52912
52913 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52914
52915         * modules/getcwd (Files): Add m4/d-ino.m4.
52916         Suggested by Mark D. Baushke.
52917
52918 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52919
52920         * lib/getdate.y (textint): New member "negative".
52921         (time_zone_hhmm): New function.
52922         Expect 14 shift-reduce conflicts, not 13.
52923         (o_colon_minutes): New rule.
52924         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52925         (yylex): Set the "negative" member of signed numbers.
52926
52927 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * doc/getdate.texi (Time of day items, Time zone items):
52930         Describe new formats +00:00, UTC+00:00.
52931
52932 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52933
52934         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52935         spurious "-l"s.  Problem reported by Stepan Kasal.
52936
52937 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52940         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52941
52942 2004-12-04  Simon Josefsson  <jas@extundo.com>
52943
52944         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52945         Vandoorselaere <yoann@prelude-ids.org>.
52946
52947 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52948
52949         Changes imported from coreutils.
52950         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52951         exist.
52952         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52953
52954 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52955
52956         Changes imported from coreutils.
52957         * lib/hard-locale.c: Assume <locale.h> exists.
52958         Include "strdup.h".
52959         (GLIBC_VERSION): New macro.
52960         (hard_locale): Assume setlocale exists.
52961         Rewrite to avoid #ifdef.
52962         Use strdup rather than malloc + strcpy.
52963         * lib/human.c: Assume <locale.h> exists.
52964         (human_readable): Assume localeconv exists.
52965
52966 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52967
52968         * modules/hard-locale (Depends-on): Add strdup.
52969
52970 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52971
52972         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52973         convert T2, not T.  (Imported from libc.)
52974
52975 2004-11-30  Simon Josefsson  <jas@extundo.com>
52976
52977         * modules/restrict (License): Change to LGPL.
52978
52979 2004-11-30  Simon Josefsson  <jas@extundo.com>
52980
52981         * m4/restrict.m4: Add copyright and copying conditions.
52982
52983 2004-11-30  Simon Josefsson  <jas@extundo.com>
52984
52985         * m4/base64.m4: New file.
52986
52987 2004-11-30  Simon Josefsson  <jas@extundo.com>
52988
52989         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52990         base64.
52991
52992         * tests/test-base64.c: New file.
52993
52994         * modules/base64: New file.
52995
52996 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52997
52998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52999         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53000
53001         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53002
53003 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53006         (__getcwd.c): Don't restore errno; glibc doesn't.
53007         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53008         first, falling back to our code only if its results look suspicious.
53009         Ensure that the resulting buffer is only as large as necessary.
53010
53011         * lib/readutmp.c: Include readutmp.h first.
53012         Include <errno.h>, since readutmp.h no longer does that.
53013         * lib/readutmp.h: Don't include <errno.h>,
53014         <sys/param.h>, <time.h>; not needed to establish interface.
53015         (errno): Remove decl.
53016         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53017         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53018         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53019
53020 2004-11-28  Simon Josefsson  <jas@extundo.com>
53021
53022         * lib/base64.h, base64.c: New file.
53023
53024 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53025
53026         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53027
53028 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53029
53030         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53031         (Depends-on): Remove pathmax, same.  Add mempcpy.
53032         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53033         (Makefile.am): Append getcwd.h to lib_SOURCES.
53034         (Include): Add getcwd.h.
53035         (Maintainer): Change from Jim Meyering to "all, glibc",
53036         since getdate now uses intended-for-glibc code.
53037         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53038         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53039
53040 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53041
53042         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53043         HP's ANSI C compiler.
53044         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53045         Declaring int functions causes warnings on some modern systems and
53046         shouldn't be needed to compile on ancient ones.
53047         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53048         defined.
53049
53050         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53051         with the following changes.
53052         (__set_errno): Parenthesize properly.
53053         Include <stdbool.h>.
53054         (MIN, MAX, MATCHING_INO): New macros.
53055         (__getcwd): Define with prototype, not K&R form.
53056         Use heuristics to allocate default buffer on stack if possible.
53057         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53058         behavior, and to avoid the PATH_MAX limit when computing
53059         ../../../../...
53060         Use MATCHING_INO to compare inode number to file.
53061         Check for arithmetic overflow in size calculations.
53062         Fix bug in reallocation of dot array that caused getcwd to fail
53063         on directories nested deeper than 75.
53064         Be more careful about saving errno on error.
53065         Do not use realloc; use only free+malloc, as this is a bit
53066         more flexible and avoids a needless copy operation.
53067         Do not inspect st_dev and st_ino for symbolic links; POSIX
53068         doesn't specify the latter.
53069         Check for closedir errors.
53070         Avoid needless casts.
53071         Use "#ifdef weak_alias" around weak_alias, to be like other
53072         glibc code.
53073         The following changes to getcwd.c have effect only when used in
53074         gnulib; they have no effect inside glibc proper.
53075         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53076         as alloca isn't used.
53077         (alloca, __alloca): Likewise.
53078         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53079         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53080         unconditionally, as gnulib assumes C89 or better.
53081         Do not include <sys/param.h>.
53082         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53083         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53084         better.
53085         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53086         Include <dirent.h> in a way that is compatible with modern Autoconf.
53087         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53088         New macros, if not already defined.
53089         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53090         Use "_LIBC", not "defined _LIBC", for consistency.
53091         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53092         a mempcpy module.
53093         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53094         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53095         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53096         credit only to Jim Meyering and adjust the copyright dates.
53097         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53098         <stdlib.h>, <unistd.h>, "pathmax.h".
53099         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53100         (INITIAL_BUFFER_SIZE): Remove.
53101         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53102
53103 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53104
53105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53106         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53107         Use the _ONCE methods, for efficiency.
53108         Check for fcntl.h.  In test program, include <errno.h>
53109         and <fcntl.h> if available.  Remove old K&R cruft from
53110         test program.  Check for common errors in GNU/Linux,
53111         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53112         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53114         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53115         name accordingly.
53116         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53117         accommodate new getcwd.c.
53118         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53119         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53120         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53121         that's all we need now.
53122
53123 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53124
53125         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53126         argp-parse.c depends on getopt internals, that means we should
53127         always use our getopt, to be on the safe side.
53128         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53129         order not to spoil the result of an eventual previous invocation
53130         of gl_GETOPT_SUBSTITUTE.
53131
53132 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53133
53134         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53135         redefinition warnings. To avoid them, include the defines
53136         in `#if !defined __need_getopt ... #endif'. The only place
53137         where __getopt_argv_const is used is in definitions
53138         of getopt_long and getopt_long_only below, which are as well
53139         protected by `#ifndef __need_getopt'.
53140         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53141         __need_getopt after including <stdio.h> and <unistd.h> These
53142         headers might have defined it.
53143
53144 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53145
53146         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53147
53148 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53151         (futimens): New function, which uses futimes if available.
53152         (futimens, utimens): Support timespec==NULL, with same semantics
53153         as utime and utimens.
53154         * lib/utimens.h (futimens): New decl.
53155
53156 2004-11-23  Jim Meyering  <jim@meyering.net>
53157
53158         * lib/getopt_.h: Remove trailing blanks.
53159
53160 2004-11-23  Jim Meyering  <jim@meyering.net>
53161
53162         * lib/__fpending.c: Add comment.
53163
53164 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53165
53166         * modules/canonicalize (Depends-on): Add xreadlink.
53167         Problem reported by James Youngman.
53168
53169 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53170
53171         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53172         New macros.
53173         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53174         optopt): Use them instead of invoking ## directly; otherwise, the
53175         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53176
53177 2004-11-19  Bruno Haible  <bruno@clisp.org>
53178
53179         * lib/strtok_r.c: Move comments from here...
53180         * lib/strtok_r.h: ... to here.
53181
53182 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53183
53184         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53185         implementations that mishandle size_t overflow.
53186
53187 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53190         might fail.  Problem reported by Yoann Vandoorselaere.
53191         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53192         implementations that mishandle size_t overflow.
53193
53194 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53195
53196         * modules/canon-host (Depends-on): Add strdup.
53197
53198 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53199
53200         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53201
53202 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53203
53204         * lib/canon-host.c: Include "strdup.h".
53205         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53206         Use strdup instead of malloc/strcpy to duplicate strings.
53207
53208         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53209         (human_space_before_unit): New constant.
53210         * lib/human.c (human_readable): Support it.
53211
53212         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53213         (xgetcwd): Set errno correctly when failing.
53214         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53215         the failure is actually due to a PATH_MAX problem.
53216
53217         Further getopt changes to make it more likely that glibc will
53218         buy the changes back.
53219         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53220         (getopt): Use it, so to preserve glibc semantic
53221         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53222         when compiling for libc.
53223         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53224         (getopt_long, getopt_long_only): Use it.
53225
53226         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53227         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53228         (getopt): Argv is now char * const *, as per standard.
53229         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53230         not char *__getopt_argv_const *.
53231         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53232         _getopt_long_only_r): Likewise.
53233         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53234         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53235         _getopt_long_r, _getopt_long_only_r): Likewise.
53236         * lib/getopt_.h (__getopt_argv_const): Remove.
53237         (getopt): Argv is now char * const *, as per standard.
53238
53239         * lib/getdate.y (tORDINAL): New token.
53240         (day, relunit): Allow it for relative times.
53241         (relative_time_table): Use tORDINAL for ordinals.
53242
53243 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53244
53245         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53246         Document that "second" isn't allowed as an ordinal number.
53247
53248 2004-11-16  Jim Meyering  <jim@meyering.net>
53249
53250         * modules/closeout (Depends-on): Add fpending.
53251
53252 2004-11-15  Jim Meyering  <jim@meyering.net>
53253
53254         * lib/closeout.c: Include "__fpending.h" once again.
53255         Include <stdbool.h>.
53256         (close_stdout): Don't fail just because stdout was closed initially,
53257         since some programs don't write to stdout in the normal course of
53258         operation (other than --version and --help), and we don't want this
53259         function to make e.g. `touch file >&-' fail.
53260         But do fail if it was closed and someone has tried to write to it.
53261         E.g., `printf foo >&-' must fail.
53262
53263 2004-11-13  Jim Meyering  <jim@meyering.net>
53264
53265         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53266
53267 2004-11-12  Simon Josefsson  <jas@extundo.com>
53268
53269         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53270         small doc fix is still pending.
53271
53272 2004-11-11  Simon Josefsson  <jas@extundo.com>
53273
53274         * modules/strtok_r: New file.
53275
53276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53277         strtok_r.
53278
53279 2004-11-11  Simon Josefsson  <jas@extundo.com>
53280
53281         * m4/strtok_r.m4: New file.
53282
53283         * m4/getopt.m4: Replace opterr.
53284
53285 2004-11-11  Simon Josefsson  <jas@extundo.com>
53286
53287         * lib/strtok_r.h, strtok_r.c: New file.
53288
53289 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53292         of replacing opterr, getopt, etc.  This should handle the
53293         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53294
53295 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53298         we can stop lying to compilers about the constness of argv when we
53299         are compiled outside glibc.
53300         (getopt, getopt_long, getopt_long_only): Use it.
53301         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53302         _getopt_internal, getopt): Likewise.
53303         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53304         _getopt_long_only_r): Likewise.
53305         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53306         _getopt_long_r, _getopt_long_only_r): Likewise.
53307
53308         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53309         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53310         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53311         the other external symbols.
53312         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53313         declaration, since the above renaming now works around collisions.
53314
53315 2004-11-11  Jim Meyering  <jim@meyering.net>
53316
53317         * lib/linebreak.c: Remove trailing blanks.
53318         * lib/alloca_.h: Likewise.
53319         * lib/acosl.c: Likewise.
53320         * lib/euidaccess.c: Likewise.
53321         * lib/allocsa.h: Likewise.
53322
53323 2004-11-10  Simon Josefsson  <jas@extundo.com>
53324
53325         * m4/getaddrinfo.m4: New file.
53326
53327 2004-11-10  Simon Josefsson  <jas@extundo.com>
53328
53329         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53330
53331 2004-11-10  Simon Josefsson  <jas@extundo.com>
53332
53333         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53334         getaddrinfo.
53335
53336         * modules/getaddrinfo: New file.
53337
53338 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53341
53342 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53343
53344         * lib/mktime.c (SHR): New macro, which is a portable
53345         substitute for >> that should work even on Crays.
53346         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53347         Problem reported by Mark D. Baushke in
53348         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53349         * lib/getdate.y (SHR): Likewise.
53350         (tm_diff): Use it.
53351         * lib/strftime.c (SHR): Likewise.
53352         (tm_diff): Use it.
53353         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53354         quote_these_too, so that right shifts are well defined.  All uses
53355         changed.
53356
53357 2004-11-10  Jim Meyering  <jim@meyering.net>
53358
53359         Ensure that no close failure goes unreported.
53360         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53361         return early when it seems there's nothing to flush.
53362         Don't include __fpending.h.
53363
53364 2004-11-10  Jim Meyering  <jim@meyering.net>
53365
53366         * modules/closeout (Depends-on): Remove fpending.
53367
53368 2004-11-10  Jim Meyering  <jim@meyering.net>
53369
53370         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53371
53372 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53373
53374         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53375         gl_FUNC_STRFTIME.
53376         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53377         and AC_REQUIRE when possible, to avoid duplicate checks.
53378         Check for <wchar.h>.
53379
53380 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53381
53382         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53383
53384 2004-11-09  Bruno Haible  <bruno@clisp.org>
53385
53386         * m4/sockpfaf.m4: New file.
53387
53388 2004-11-05  Bruno Haible  <bruno@clisp.org>
53389
53390         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53391         Reported by Mark D. Baushke <mdb@cvshome.org>.
53392
53393 2004-11-04  Bruno Haible  <bruno@clisp.org>
53394
53395         2004-09-11  Bruno Haible  <bruno@clisp.org>
53396                 * allocsa.valgrind: New file.
53397         2004-02-06  Bruno Haible  <bruno@clisp.org>
53398                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53399                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53400                 Reported by Christopher Seip <chris.seip@hp.com>.
53401
53402 2004-11-04  Bruno Haible  <bruno@clisp.org>
53403
53404         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53405         (Makefile.am): Distribute it.
53406
53407 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53410         with errno == ERANGE if the buffer is too small.
53411         Problem reported by Mark D. Baushke.
53412
53413 2004-11-03  Albert Chin  <china@thewrittenword.com>
53414             Paul Eggert  <eggert@cs.ucla.edu>
53415
53416         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53417         equivalent, substitute $ac_type for equivalent type rather than
53418         blindly using uint32_t *always* which won't work if uint32_t is not
53419         available.  Define _UINT32_T to work around typedef of uint32_t if
53420         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53421         2.5.1.
53422
53423 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         * m4/jm-macros.m4: Sync from coreutils.
53426         (gl_MACROS): Check for mbrlen, for pathchk.
53427         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53428
53429 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53430
53431         * lib/xreadlink.c (MAXSIZE): New macro.
53432         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53433         size does not exceed MAXSIZE.  Avoid cast.
53434         As suggested by Mark D. Baushke in
53435         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53436         if readlink fails with buffer size just under MAXSIZE, try again
53437         with MAXSIZE.
53438
53439 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53440
53441         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53442
53443 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53444         and  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53447         (get_date): Overparenthesize to avoid GCC warning.
53448
53449 2004-11-02  Bruno Haible  <bruno@clisp.org>
53450
53451         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53452         returns void.
53453
53454 2004-11-02  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53457         function returns void.
53458
53459 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53460
53461         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53462         fflush_unlocked, flockfile, funlockfile, funlockfile,
53463         fputs_unlocked, putc_unlocked.
53464
53465 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53466
53467         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53468         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53469         already declared.
53470
53471 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53472
53473         * modules/getdate (Files): Add doc/getdate.texi.
53474         (Depends-on): Add setenv, xalloc.
53475
53476 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         * lib/getdate.y: Add support for TZ="foo" within a date string.
53479         Fix some bugs near time_t boundaries.  Reject dates with
53480         out-of-range components, e.g., "Sept 31".
53481         Include <stdlib.h>, "setenv.h", "xalloc.h".
53482         (ISDIGIT_LOCALE): Remove; unused.
53483         Note that the TZ and time functions used here are not reentrant.
53484         (mktime_ok, get_tz): New functions.
53485         (TZBUFSIZE): New constant.
53486         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53487         This requires that we sometimes generate our own TZ="XXX..." setting.
53488
53489 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         * doc/getdate.texi: New file, from coreutils with modifications for
53492         the new TZ parsing.
53493
53494 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53495
53496         * lib/mktime.c (not_equal_tm): Remove redundant check.
53497
53498 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         * modules/regex (lib_SOURCES): Add regex.c.
53501         Reported by James Youngman in
53502         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53503
53504 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         * lib/getdate.y: Use Bison 1.875 features, and some minor
53507         code cleanups.  This change does not affect semantics.
53508         Don't include <stdlib.h>; no longer needed.
53509         Don't include unlocked-io.h; only the "#if TEST" code uses
53510         stdio, and performance isn't crucial there.
53511         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53512         Bison 1.875 features as described below.
53513         All uses of "PC." replaced by "pc->".
53514         (YYSTYPE): Add a forward declaration.
53515         (yylex, yyerror): Use full prototypes in forward decls.
53516         Use "%pure-parser" rather than obsolescent "%pure_parser".
53517         Use %parse-param and %lex-param instead of obsolescent
53518         YYPARSE_PARAM and YYLEX_PARAM.
53519         (meridian_table, month_and_day_table, time_units_table,
53520         relative_time_table, time_zone_table, military_table,
53521         lookup_zone, lookup_word, get_date):
53522         Use NULL instead of 0 where appropriate.
53523         (to_hour): Avoid abort (), to avoid a dependency on
53524         stdlib.h.
53525         (yyerror, yylex): Now accepts parser_control * arg.
53526         (main) [TEST]: Use '\0' rather than 0 for char.
53527
53528 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53531
53532 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53533
53534         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53535         It's now the caller's responsibility to handle the case where
53536         !HAVE_GETPAGESIZE && !defined getpagesize.
53537
53538         * lib/mktime.c (leapyear): Arg is long int, not int.
53539
53540 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53541
53542         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53543
53544 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53547         missing.  Problem reported by James Youngman.
53548
53549 2004-10-16  Simon Josefsson  <jas@extundo.com>
53550
53551         * gnulib-tool: Fix comments.  Fix parse problem.
53552         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53553
53554 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53555
53556         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53557         implementation of getopt_long.  Problem reported by Alexander Taler in:
53558         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53559
53560 2004-10-15  Bruno Haible  <bruno@clisp.org>
53561
53562         * gnulib-tool: Untabify. Initialize supplied_libname.
53563         (func_usage): More homogenous output.
53564         (func_modules_transitive_closure, func_modules_to_filelist,
53565         func_emit_lib_Makefile_am): New functions.
53566         (func_import): New function, extracted from big case statement. Use
53567         func_get_license, func_modules_transitive_closure,
53568         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53569         opt_lgpl. Don't use test -a, as it's not portable.
53570         (func_create_testdir): Use func_modules_transitive_closure,
53571         func_modules_to_filelist, func_emit_lib_Makefile_am.
53572
53573 2004-10-15  Bruno Haible  <bruno@clisp.org>
53574
53575         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53576
53577 2004-10-15  Bruno Haible  <bruno@clisp.org>
53578
53579         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53580         the portions belonging to each module.
53581         Suggested by Derek Robert Price <derek@ximbiot.com>.
53582
53583 2004-10-12  Simon Josefsson  <jas@extundo.com>
53584
53585         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53586         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53587         to real functions.
53588
53589 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53590
53591         * modules/vsnprintf: New file.
53592
53593 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53594
53595         * m4/vsnprintf.m4: New file.
53596
53597 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53598
53599         * lib/vsnprintf.h: New file.
53600         * lib/vsnprintf.c: New file.
53601
53602 2004-10-11  Bruno Haible  <bruno@clisp.org>
53603
53604         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53605         vsnprintf.
53606
53607 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53608
53609         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53610
53611 2004-10-07  Bruno Haible  <bruno@clisp.org>
53612
53613         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53614         fits into the provided buffer.
53615
53616 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53617
53618         * lib/diacrit.c, diacrit.h: Add GPL notice.
53619
53620         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53621         notice.
53622         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53623         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53624         This avoids a potential constant-folding bug.
53625
53626 2004-10-05  Bruno Haible  <bruno@clisp.org>
53627
53628         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53629         for the declaration of strsep.
53630
53631 2004-10-05  Bruno Haible  <bruno@clisp.org>
53632
53633         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53634
53635 2004-10-04  Simon Josefsson  <jas@extundo.com>
53636
53637         * modules/memmem: New file.
53638         * tests/test-memmem.c: New file.
53639         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53640
53641 2004-10-04  Simon Josefsson  <jas@extundo.com>
53642
53643         * m4/memmem.m4: New file.
53644
53645 2004-10-04  Simon Josefsson  <jas@extundo.com>
53646
53647         * lib/memmem.h: New file.
53648         * lib/memmem.c: New file, taken from glibc.
53649
53650 2004-10-04  Simon Josefsson  <jas@extundo.com>
53651
53652         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53653         '#ifdef USE_UNLOCKED_IO'.
53654
53655 2004-10-04  Simon Josefsson  <jas@extundo.com>
53656
53657         * config/srclist.txt: Add memmem from glibc.
53658
53659 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53662
53663         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53664         modules/exclude, modules/getdate, modules/getline,
53665         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53666         modules/getusershell, modules/linebuffer, modules/md5,
53667         modules/mountlist, modules/posixtm, modules/readtokens,
53668         modules/readutmp, modules/regex, modules/sha1,
53669         modules/version-etc, modules/yesno:
53670         Remove dependency on unlocked-io.
53671
53672 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53675
53676         * m4/unlocked-io.m4: Add copyright notice.
53677         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53678
53679 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53682         * lib/xmalloc.c (xmemdup): Likewise.
53683         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53684         XFREE): Remove these long-obsolescent macros.
53685         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53686         * lib/xstrdup.c: Remove.
53687
53688         * lib/regex.c (re_comp): Cast gettext return value to char *,
53689         Problem reported by Martin Neitzel via Mark D. Baushke.
53690
53691 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53694         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53695         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53696         regex.c, sha1.c, version-etc.c, yesno.c:
53697         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53698         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53699         the includer's responsibility.
53700
53701         Sync from coreutils.
53702
53703         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53704         points to the start of a string, as the C Standard says the
53705         resulting behavior is undefined.
53706
53707         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53708         simple -> simple_backups, numbered_existing ->
53709         numbered_existing_backups, numbered -> numbered_backups
53710         to avoid shadowing problems.  All uses changed.
53711         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53712         * lib/backupfile.c (check_extension, numbered_backup):
53713         Rename locals to avoid shadowing 'basename'.
53714         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53715         once.
53716
53717         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53718         * lib/.cvsignore: Add getopt.h.
53719
53720 2004-10-04  Bruno Haible  <bruno@clisp.org>
53721
53722         * modules/README: New file.
53723         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53724         not a module.
53725
53726 2004-10-02  Jim Meyering  <jim@meyering.net>
53727
53728         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53729
53730 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53731
53732         * modules/strsep: New file.
53733
53734 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53735
53736         * m4/strsep.m4: New file.
53737
53738 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53739
53740         * lib/strsep.h: New file.
53741         * lib/strsep.c: New file.
53742
53743 2004-10-01  Simon Josefsson  <jas@extundo.com>
53744
53745         * lib/snprintf.c (snprintf): Handle size==0.
53746
53747 2004-10-01  Simon Josefsson  <jas@extundo.com>
53748             Bruno Haible  <bruno@clisp.org>
53749
53750         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53751         (snprintf): Declare 'args'.
53752
53753 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         * lib/snprintf.c: Remove comments as to why each header is needed.
53756
53757 2004-10-01  Bruno Haible  <bruno@clisp.org>
53758
53759         * MODULES.html.sh: Add strsep.
53760
53761 2004-09-30  Simon Josefsson  <jas@extundo.com>
53762
53763         * modules/snprintf: New file.
53764
53765 2004-09-30  Simon Josefsson  <jas@extundo.com>
53766
53767         * m4/snprintf.m4: New file.
53768
53769 2004-09-30  Simon Josefsson  <jas@extundo.com>
53770
53771         * lib/snprintf.h, lib/snprintf.c: New files.
53772
53773 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53774
53775         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53776         (hol_entry_help): Never translate an empty string.
53777         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53778         * lib/argp.h (OPTION_NO_TRANS): New option.
53779
53780 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         * modules/argp (Maintainer): Replace Simon Josefsson
53783         by Sergey Poznyakoff.
53784
53785 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53788         changes merged back into glibc.
53789
53790 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53791
53792         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53793
53794 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53795
53796         * lib/xvasprintf.c: Include xalloc.h.
53797         (xvasprintf): Use xalloc_die, not xmalloc_die.
53798
53799 2004-09-29  Bruno Haible  <bruno@clisp.org>
53800
53801         * modules/alloca-opt: New file, derived from modules/alloca.
53802         * modules/allocsa: Depend on alloca-opt instead of alloca.
53803         * modules/setenv: Likewise.
53804         * modules/vasnprintf: Likewise.
53805         * MODULES.html.sh: Add alloca-opt.
53806
53807 2004-09-28  Simon Josefsson  <jas@extundo.com>
53808
53809         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53810         LGPL, and to replace license template from GPL to LGPL.
53811
53812 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * modules/dummy: Change license to LGPL.
53815
53816 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53819
53820 2004-09-24  Simon Josefsson  <jas@extundo.com>
53821
53822         * modules/minmax (License): Change from GPL to LGPL.
53823
53824 2004-09-23  Simon Josefsson  <jas@extundo.com>
53825
53826         * gnulib-tool (--import): Typo.
53827
53828 2004-09-23  Simon Josefsson  <jas@extundo.com>
53829
53830         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53831
53832 2004-09-22  Bruno Haible  <bruno@clisp.org>
53833
53834         * modules/*: Add 'License' field.
53835         * gnulib-tool: Accept --extract-license option.
53836         (func_get_license): New function.
53837
53838 2004-09-21  Bruno Haible  <bruno@clisp.org>
53839
53840         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53841         Reported by Simon Josefsson.
53842
53843 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53844
53845         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53846         gl_AC_TYPE_LONG_LONG.
53847
53848 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53851
53852 2004-09-18  Simon Josefsson  <jas@extundo.com>
53853         and  Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53856         calls with autoreconf.  Define GL_LIB.
53857
53858 2004-09-14  Karl Berry  <karl@gnu.org>
53859
53860         * config/srclist.txt: unsync setenv.c, sigh.
53861
53862 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53865         Problem reported by Bruno Haible in:
53866         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53867
53868 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         * config/srclist.txt: Comment out argp-pvh.c.
53871
53872 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53873
53874         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53875         in case some system header has #define'd it.  Problem reported by
53876         Soeren D. Schulze in
53877         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53878
53879 2004-09-09  Karl Berry  <karl@gnu.org>
53880
53881         * regex.[ch]: delete from the root.  These were supposed to be
53882                 synced with emacs cvs, but this has not happened for about
53883                 a year, and anyway nothing else uses emacs regex.[ch].
53884                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53885                 lib/regex[.ch] is untouched.
53886
53887 2004-09-09  Bruno Haible  <bruno@clisp.org>
53888
53889         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53890
53891 2004-09-09  Bruno Haible  <bruno@clisp.org>
53892
53893         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53894         modifications.
53895         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53896
53897 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53898
53899         * modules/xvasprintf: New file.
53900         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53901
53902 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53903
53904         * lib/xvasprintf.h: New file.
53905         * lib/xvasprintf.c: New file.
53906         * lib/xasprintf.c: New file.
53907
53908 2004-09-08  Bruno Haible  <bruno@clisp.org>
53909
53910         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53911
53912 2004-09-08  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53915         length is > INT_MAX.
53916         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53917         more.
53918
53919 2004-09-08  Bruno Haible  <bruno@clisp.org>
53920
53921         * lib/stdint_.h: New file, taken from GNU clisp.
53922
53923 2004-09-08  Bruno Haible  <bruno@clisp.org>
53924             Oskar Liljeblad  <oskar@osk.mine.nu>
53925
53926         * modules/stdint: New file.
53927         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53928
53929 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53930
53931         Import from coreutils.
53932         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53933         strings on unbounded length.  alloca's performance benefits aren't
53934         that important here.
53935         (V_STRDUP): Remove.
53936         (parse_with_separator): New function, with most of the internals
53937         of the old parse_user_spec.  Allow user to omit both user and group,
53938         for compatibility with FreeBSD.
53939         Clone only the user name, not the entire spec.
53940         Do not set *uid, *gid unless entirely successful.
53941         Avoid memory leak in some failing cases.
53942         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53943         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53944         (parse_user_spec): Rewrite to use parse_with_separator.
53945
53946 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53947
53948         * modules/userspec: Don't depend on alloca.
53949
53950 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53951
53952         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53953
53954 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53957         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53958         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53959
53960 2004-08-16  Simon Josefsson  <jas@extundo.com>
53961
53962         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53963         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53964         Add --dry-run for --import.
53965         Let user provided command line parameters override configure.ac
53966         settings.
53967
53968 2004-08-12  Simon Josefsson  <jas@extundo.com>
53969
53970         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53971         as discussed with Paul Eggert in threads rooted at
53972         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53973         and
53974         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53975         Before, the test was empty, and relied on ELIDE_CODE in source
53976         code.)
53977         (gl_PREREQ_GETOPT): New macro.
53978         (gl_GETOPT): Use them.
53979
53980 2004-08-12  Simon Josefsson  <jas@extundo.com>
53981
53982         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53983         * lib/getopt_.h: Renamed from getopt.h.
53984
53985 2004-08-12  Simon Josefsson  <jas@extundo.com>
53986
53987         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53988         Change default library name from libfoo to libgnu.
53989         Now, if you have a configure.ac that says:
53990                 gl_SOURCE_BASE(gl)
53991                 gl_M4_BASE(gl/m4)
53992                 gl_MODULES(error getopt etcetera)
53993                 gl_INIT
53994         you can import all you need by running:
53995                 ../gnulib/gnulib-tool --import
53996
53997         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53998         (Makefile.am): Rewrite, use logic from argz.
53999         (Include): Use <getopt.h> instead of "getopt.h".
54000
54001 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * modules/argp (Files): Add m4/unlocked-io.m4.
54004         (Depends-on): Add extensions.
54005
54006 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54007
54008         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54009         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54010         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54011         Check for program_invocation_name, program_invocation_short_name,
54012         flockfile, funlockfile, features.h, _getopt_long_only_r.
54013
54014 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54015
54016         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54017         its complicated substitute.
54018         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54019         and program_invocation_name.
54020         (__argp_basename) [!_LIBC]: Remove; the only use was
54021         replaced by its body.
54022         (__argp_short_program_name): Change condition from
54023         !defined __argp_short_program_name to
54024         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54025         to match argp-namefrob.h.
54026         (__argp_failure): Don't assume strerror_r returns char *.
54027         * lib/argp-parse.c (N_): Define unconditionally.
54028         (argp_default_options): Fill out initializers with 0 to avoid
54029         gcc warnings.
54030
54031 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54032
54033         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54034         getopt1.c.
54035
54036 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54037
54038         Merge from coreutils.
54039
54040         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54041
54042         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54043         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54044
54045 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54046
54047         Merge from coreutils.
54048
54049         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54050         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54051         for Reliant Unix 5.43.
54052
54053         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54054         (union fooround): Use uintmax_t, not long int.
54055         The rest is a merge from libc:
54056         [defined _LIBC]: Include <shlib-compat.h>.
54057         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54058
54059         * lib/settime.c (settime): Recode to avoid warning with
54060         Sun Forte C 6U2.
54061
54062         * lib/strverscmp.c: Convert to UTF-8.
54063
54064 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54065
54066         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54067         m4/uintmax_t.m4.
54068
54069 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54070
54071         * modules/xalloc-die: New file.
54072         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54073
54074         * modules/md5 (Files): Add m4/uint32_t.m4.
54075         * modules/sha1: Renamed from modules/sha.
54076         (Files):
54077         Rename lib/sha.h to lib/sha1.h.
54078         Rename lib/sha.c to lib/sha1.c.
54079         Rename m4/sha.m4 to m4/sha1.m4.
54080         (lib_SOURCES): Likewise.
54081         (configure.ac): Rename gl_SHA to gl_SHA1.
54082         (Include): sha.h -> sha1.h.
54083
54084 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54085
54086         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54087         * m4/sha1.m4: Renamed from sha.m4.
54088         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54089
54090 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54091
54092         * lib/obstack.h (obstack_empty_p):
54093         Don't assume that chunk->contents is suitably aligned.
54094         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54095         Likewise. Problem reported by Benno in
54096         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54097
54098         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54099         readable.  This could be improved further but it'd take some work.
54100
54101 2004-08-08  Simon Josefsson  <jas@extundo.com>
54102
54103         * modules/xgethostname (Depends-on): Remove exit and error (not
54104         used).
54105
54106         * modules/getpass-gnu: Add getpass.h.
54107         (Depends-on): Add stdbool.
54108         * modules/getpass: Add getpass.h.
54109
54110 2004-08-08  Simon Josefsson  <jas@extundo.com>
54111
54112         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54113         Check getpass declaration.
54114
54115 2004-08-08  Simon Josefsson  <jas@extundo.com>
54116
54117         * lib/xgethostname.c: Don't include error.h (not used).
54118
54119         * lib/getpass.h: Add.
54120         * lib/getpass.c: Include getpass.h first.
54121
54122 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54123
54124         * lib/xalloc-die.c: New file.
54125         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54126         All uses removed.
54127         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54128         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54129         xalloc-die.c.
54130         (_, N_, xalloc_die): Move to xalloc-die.c.
54131         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54132         so that we needn't mess with xalloc_msg_memory_exhausted.
54133
54134         * lib/sha1.h: Renamed from sha.h.
54135         (SHA1_H): Renamed from _SHA_H.
54136         (sha1_ctx): Renamed from sha_ctx.
54137         (sha1_init_ctx): Renamed from sha_init_ctx.
54138         (sha1_process_block): Renamed from sha_process_block.
54139         (sha1_process_bytes): Renamed from sha_process_bytes.
54140         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54141         (sha1_read_ctx): Renamed from sha_read_ctx.
54142         (sha1_stream): Renamed from sha_stream.
54143         (sha1_buffer): Renamed from sha_buffer.
54144         * lib/sha1.c: Likewise; renamed from sha.c.
54145         Do not include <sys/types.h>.
54146         Include <stddef.h> rather than <stdlib.h>.
54147
54148 2004-08-08  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54151         FILESYSTEM_PREFIX_LEN.
54152         * lib/progreloc.c: Likewise.
54153         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54154
54155 2004-08-06  Simon Josefsson  <jas@extundo.com>
54156
54157         * modules/progname (Depends-on): Don't depend on stdbool.
54158
54159 2004-08-06  Simon Josefsson  <jas@extundo.com>
54160
54161         * modules/getsubopt: New file.
54162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54163         getsubopt.
54164
54165 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         More merge from coreutils.
54168
54169         * m4/utimens.m4, m4/utimecmp.m4: New files.
54170         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54171         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54172         prereq.m4, sha.m4: Import changes from coreutils.
54173
54174 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         More merge from coreutils.
54177         * modules/raise, modules/readtokens0, modules/utimens:
54178         * modules/utimecmp, module/xnanosleep: New files.
54179         * modules/strftime: Add lib/strftime.h.
54180         Change include from <time.h> to "strftime.h".
54181         * modules/yesno: Add lib/yesno.h.
54182         * modules/backupfile: Remove lib/addext.c.
54183         * modules/euidaccess: Add stat-macros.h.
54184         * modules/canonicalize, modules/euidaccess,
54185         modules/filemode, modules/lchown, modules/makepath,
54186         modules/rmdir, modules/stat: Likewise.
54187
54188 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         Merge from tar.
54191         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54192         SIZE_MAX is a valid preprocessor constant.
54193         (__argp_basename): Change from "#ifndef _LIBC"
54194         to "#ifndef __argp_short_program_name", so that
54195         we don't compile these functions for tar.
54196
54197         More merges from coreutils.
54198         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54199         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54200         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54201         * lib/addext.c: Remove; no longer needed.
54202         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54203         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54204         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54205         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54206         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54207         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54208         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54209         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54210         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54211         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54212         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54213         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54214         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54215         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54216         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54217         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54218         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54219         Import changes from coreutils.
54220
54221 2004-08-05  Simon Josefsson  <jas@extundo.com>
54222
54223         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54224
54225 2004-08-05  Simon Josefsson  <jas@extundo.com>
54226
54227         * m4/getsubopt.m4: New file.
54228
54229 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54230
54231         Merge from coreutils.
54232
54233         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54234         * m4/getcwd-path-max.m4: New files.
54235
54236         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54237         FILESYSTEM_PREFIX_LEN ->
54238         FILE_SYSTEM_PREFIX_LEN.
54239         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54240         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54241         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54242         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54243
54244         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54245         prerequisite modules now handle the DOS stuff.
54246         Don't check for unistd.h.
54247
54248 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54249
54250         Merge from coreutils.
54251
54252         * lib/.gdb-history: Remove; this doesn't belong here.
54253
54254         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54255         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54256         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54257         * lib/getcwd.c: New files.
54258
54259         * lib/dirname.h: Include <stdbool.h>.
54260         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54261         for consistency with POSIX terminology.  All uses changed.
54262         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54263         (strip_trailing_slashes): Use bool for booleans.
54264         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54265
54266         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54267         sometimes returns a positive errno value even when it succeeds.
54268         (print_errno_message) [!LIBC]: Fall back on strerror if
54269         __strerror_r fails.
54270
54271         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54272         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54273         (longest_relative_suffix): New function.
54274         (path_concat): Use it.  Assume first argument is not NULL.
54275         Port to DOS.  Omit redundant separators.
54276         Report an error instead of returning NULL.
54277         Use mempcpy instead of memcpy.
54278         (xpath_concat): Remove: not declared or used.
54279
54280         * lib/same.h: Include <stdbool.h>
54281         (same_name): Return bool, not int.
54282         * lib/same.c (same_name): Likewise.
54283         (errno): Don't declare; we assume C89 or better now.
54284
54285         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54286         if not already defined.
54287
54288         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54289         * lib/dup-safer.c (errno): Likewise.
54290
54291 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54292
54293         Merge from coreutils.
54294         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54295         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54296         * modules/path-concat: Don't depend on strdup.
54297
54298 2004-08-03  Simon Josefsson  <jas@extundo.com>
54299
54300         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54301         * lib/progname.h: Don't include stdbool.h.
54302
54303 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54306         * MODULES.html.sh (func_all_modules): Remove fatal.
54307
54308 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54309
54310         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54311
54312 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54315         working.
54316
54317 2004-08-02  Simon Josefsson  <jas@extundo.com>
54318
54319         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54320         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54321         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54322
54323 2004-08-01  Simon Josefsson  <jas@extundo.com>
54324
54325         * lib/xgetdomainname.c: Include stdlib.h, for free().
54326
54327 2004-07-19  Bruno Haible  <bruno@clisp.org>
54328
54329         * MODULES.html.sh (func_all_modules): Add dummy.
54330
54331 2004-07-16  Simon Josefsson  <jas@extundo.com>
54332
54333         * modules/dummy: New file.
54334
54335 2004-07-16  Simon Josefsson  <jas@extundo.com>
54336
54337         * lib/dummy.c: New file.
54338
54339 2004-07-16  Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/backupfile.h: Add extern "C" for C++.
54342         * lib/closeout.h: Likewise.
54343         * lib/copy-file.h: Likewise.
54344         * lib/findprog.h: Likewise.
54345         * lib/full-write.h: Likewise.
54346         * lib/pathname.h: Likewise.
54347         * lib/progname.h: Likewise.
54348         * lib/stpcpy.h: Likewise.
54349         * lib/stpncpy.h: Likewise.
54350         * lib/strcase.h: Likewise.
54351         * lib/strstr.h: Likewise.
54352         * lib/xalloc.h: Likewise.
54353
54354         * lib/mbswidth.h: Add extern "C" for C++.
54355         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54356
54357 2004-07-13  Robert Millan  <robertmh@gnu.org>
54358
54359         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54360
54361 2004-07-09  Simon Josefsson  <jas@extundo.com>
54362
54363         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54364         failed without this.)
54365
54366 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         * modules/chown (Files): Add lib/fchown-stub.c, since
54369         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54370
54371 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54372
54373         * lib/fchown-stub.c: New file.
54374
54375 2004-06-24  Jim Meyering  <jim@meyering.net>
54376
54377         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54378
54379 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54380
54381         * modules/argz: Omit "#include".
54382
54383         * MODULES.html.sh (func_all_modules): Add calloc, to match
54384         2004-06-01 addition of calloc module.
54385
54386 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * m4/argz.m4: New file, which is autoupdated from libtool.
54389
54390 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54391
54392         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54393         libtool.
54394
54395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54396
54397         * config/srclist-update: Don't insist on "USA." before the
54398         close-comment, as libtool omits the period and puts the */ on a
54399         separate line.
54400         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54401         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54402
54403 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54404
54405         * modules/argz: New file.
54406         * MODULES.html.sh (func_all_modules): Add argz.
54407
54408 2004-06-12  Jim Meyering  <jim@meyering.net>
54409         and  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         * modules/hash (Files): Add lib/xalloc.h.
54412         * modules/pipe (Depends-on): Add wait-process.
54413         * modules/stat (Depends-on): Add xalloc.
54414         * modules/userspec (Files): Add lib/userspec.h.
54415         * modules/xstrto
54416
54417         Upgrade from gettext-0.13.
54418         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54419         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54420         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54421
54422 2004-06-10  Jim Meyering  <jim@meyering.net>
54423
54424         * lib/calloc.c: New file.
54425
54426 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * lib/getdate.y (yylex): Allow space between sign and number.
54429         Problem reported by Dan Jacobson.
54430
54431 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         Merge from coreutils CVS.
54434
54435         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54436         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54437         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54438         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54439         xstrtol.m4: Fix copyright date and/or serial number.
54440
54441         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54442         See if we need an fchown replacement.
54443         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54444         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54445         and use the replacement function if we detect either defect.
54446
54447         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54448         gl_UTIMECMP.
54449
54450 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54451         and  Jim Meyering  <jim@meyering.net>
54452
54453         Merge from coreutils CVS.
54454
54455         * lib/stat-macros.h: New file, with contents from file-type.h
54456         and coreutils' system.h.
54457         * lib/file-type.c: Include "stat-macros.h".
54458         * lib/file-type.h (file_type): Move all macro definitions to new file,
54459         stat-macros.h.
54460
54461         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54462         Wrap old code with this conditional.
54463         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54464         function that does not dereference symlinks.
54465         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54466
54467         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54468         dependency problems.
54469         (xreadlink): Accept new arg SIZE, for efficiency.
54470         All decls and uses changed.
54471         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54472
54473         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54474         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54475
54476         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54477         sysexits.h.
54478
54479 2004-06-01  Jim Meyering  <jim@meyering.net>
54480
54481         * m4/calloc.m4: New file.
54482
54483 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54486         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54487         Also, fix a typo in a diagnostic.
54488
54489 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54492         or AC_FUNC_REALLOC.
54493
54494 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54497         macros to be defined.
54498         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54499         the allocator returns NULL because the requested size is zero.
54500
54501 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54504         var.  Add comment explaining why libc still defines it.  This
54505         merges the following patch from glibc:
54506         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54507
54508 2004-05-20  Andreas Schwab  <schwab@suse.de>
54509
54510         * m4/free.m4: Replace free if it not known to work, not the other
54511         way round.
54512
54513 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54516         present in glibc since revision 1.1 of this file.
54517         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54518         obstack_alignment_mask, obstack_alloc, obstack_base,
54519         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54520         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54521         obstack_grow0, obstack_init, obstack_int_grow,
54522         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54523         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54524         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54525         nonexistent functions.
54526
54527 2004-05-18  Karl Berry  <karl@gnu.org>
54528
54529         * config/srclist.txt: break link for vasnprintf.c.
54530
54531 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54532
54533         Port obstack to the AS/400, where pointers are 16 bytes wide and
54534         you cannot cast an integer to a valid pointer.  This patch is
54535         currently waiting to be integrated into glibc; see
54536         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54537
54538         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54539         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54540         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54541         (struct obstack): temp member is now a union of a pointer and
54542         an integer, instead of an integer.  All integer uses changed.
54543         This does not affect the physical layout of struct obstack,
54544         except on hosts (like the AS/400) where the size or alignment of
54545         void * is greater than that of ptrdiff_t.
54546         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54547         __STDC__)]: Store temporary in pointer member of union, not
54548         integer member.
54549         * lib/obstack.c: Include <stddef.h>, for offsetof.
54550         (struct fooalign): Remove; it doesn't need a name.
54551         (union fooround): Change double to long double, and add void *.
54552         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54553         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54554         not a macro.  Hence the values are always int; so remove all
54555         casts-to-int in uses.
54556
54557 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54560         we can get this patch merged into glibc.
54561
54562 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54563             Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * m4/argp: Depend on alloca.
54566
54567 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54568             Paul Eggert  <eggert@cs.ucla.edu>
54569
54570         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54571         freecoding.
54572
54573 2004-05-17  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54576         precision that consists of a '.' followed by an empty digit string.
54577         Patch by Tor Lillqvist <tml@iki.fi>.
54578
54579 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54582         for backward compatibility with older code.  We need our own
54583         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54584         it under some other name, and our alloca.h will define it.
54585
54586 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54587             Derek Price  <derek@ximbiot.com>
54588
54589         * lib/alloca.c: Include <alloca.h>, to get our interface.
54590         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54591         include <alloca.h> first.  Use C89 prototype for alloca; this
54592         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54593         Use #elif for simplicity, since we can assume C89 now.
54594         Don't try to source the system alloca.h since it will not be found
54595         and to prevent recursively including its replacement.
54596         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54597         * lib/regex.c: Likewise.
54598
54599 2004-05-16  Derek Price  <derek@ximbiot.com>
54600             Paul Eggert  <eggert@cs.ucla.edu>
54601
54602         getline cleanup.  This changes the getndelim2 API: both order of
54603         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54604         no delimiter).
54605
54606         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54607         interface does that.
54608         (getline): Always use getdelim, so that we don't have two
54609         copies of this code.
54610         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54611         if available.
54612         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54613         (GETNDELIM2_MAXIMUM): New macro.
54614         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54615         instead of the old practice of delim2==0.  All callers changed.
54616         Return -1 on overflow, instead of returning junk.
54617         Do not set *linesize unless allocation succeeds.
54618         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54619         that we include sys/types.h.
54620         * lib/getnline.h: Likewise.
54621         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54622         (getndelim2): Reorder arguments.
54623         * lib/getnline.c (getnline, getndelim):
54624         Don't discard the NMAX argument.
54625         (getnline): Invoke getndelim, to avoid code duplication.
54626         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54627         of (size_t) -1 by callers of the getnline family.
54628
54629 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54632         Check for gettimeofday.
54633         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54634         Check for settimeofday, stime.
54635
54636 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * lib/nanosleep.c (suspended): Change its type from int to
54639         sig_atomic_t volatile.
54640         (first_call): Make it private to rpl_nanosleep, and have it
54641         be zero initially as that's a bit faster.
54642         (my_usleep): Round up fractional times instead of truncating them,
54643         as this is the usual meaning for 'sleep'.
54644
54645         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54646         doesn't work.
54647         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54648         (ENOSYS): Define if not defined.
54649         (settime): Fall back on stime if it exists and settimeofday fails.
54650         But don't bother with fallbacks if a method fails with errno == EPERM.
54651
54652 2004-05-11  Jim Meyering  <jim@meyering.net>
54653
54654         Prior to this change, the save_cwd caller required read access to the
54655         current directory on most systems (ones with the fchdir function).
54656
54657         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54658         fails, try write-only, and finally, resort to using xgetcwd.
54659
54660 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         * lib/obstack.c, obstack.h: Import changes from libc.
54663
54664 2004-04-28  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54667         also implicitly appends .exe to executables.
54668         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54669         accepts Windows pathnames.
54670         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54671         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54672         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54673         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54674         Reported by Derek Robert Price <derek@ximbiot.com>.
54675
54676 2004-04-21  Karl Berry  <karl@gnu.org>
54677
54678         * config/srclist.txt (localcharset.c): break sync.
54679
54680 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54681
54682         * m4/host-os.m4: Add a copyright notice.
54683
54684 2004-04-20  Jim Meyering  <jim@meyering.net>
54685
54686         Change UTILS_ to gl_ in AC_DEFINE'd names.
54687         Change utils_- and jm_-prefixed variables, too.
54688         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54689         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54691
54692         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54693         Don't emit trailing blanks.
54694         Also rename jm_-prefixed variables to have gl_ prefix.
54695
54696         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54697         Also rename jm_-prefixed variables to have gl_ prefix.
54698
54699         * m4/jm-macros.m4: Reflect the renamings.
54700         * m4/prereq.m4: Likewise.
54701
54702 2004-04-20  Jim Meyering  <jim@meyering.net>
54703
54704         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54705         memory.
54706
54707 2004-04-20  Jim Meyering  <jim@meyering.net>
54708             Bruno Haible  <bruno@clisp.org>
54709
54710         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54711         memory when realloc fails.
54712
54713 2004-04-19  Jim Meyering  <jim@meyering.net>
54714
54715         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54716         now that readutmp.c may call `free (0)'.
54717
54718 2004-04-19  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54721         * m4/inttypes_h.m4: Likewise.
54722         * m4/stdint_h.m4: Likewise.
54723         * m4/intmax_t.m4: Likewise.
54724         * m4/uintmax_t.m4: Likewise.
54725
54726 2004-04-18  Jim Meyering  <jim@meyering.net>
54727
54728         * m4/prereq.m4: Don't forbid jm_ prefix.
54729
54730         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54731         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54732         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54733         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54734         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54735         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54736         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54737         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54738         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54739         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54740         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54741         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54742         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54743         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54744         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54745         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54746         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54747         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54748         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54749
54750 2004-04-18  Jim Meyering  <jim@meyering.net>
54751
54752         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54753         failure, don't leak memory and do call END_UTMP_ENT.
54754
54755 2004-04-16  Jim Meyering  <jim@meyering.net>
54756
54757         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54758         coreutils' stat program.
54759         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54760
54761 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54762
54763         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54764         C89.
54765         (CHAR_BIT): Remove, since we assume C89.
54766         Include <stdint.h> if available, as per current Autoconf CVS advice.
54767
54768 2004-03-31  Jim Meyering  <jim@meyering.net>
54769
54770         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54771         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54772         * m4/xalloc.m4: Likewise.
54773
54774 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54775
54776         Merge from coreutils.
54777
54778         * m4/inttostr.m4: New file.
54779         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54780         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54781         Require gl_CLOCK_TIME.
54782         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54783
54784 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54785
54786         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54787         not bool, to be more consistent with Unix conventions.
54788         Suggested by Bruno Haible.
54789
54790         Merge from coreutils.
54791
54792         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54793         * lib/umaxtostr.c: New files.
54794
54795         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54796         the usual <time.h> dance.
54797         (get_date): Change signature to support fractional time stamps.
54798         All callers changed.
54799         * lib/getdate.y: Include "getdate.h" first, as we can now
54800         assume C89 and don't need to worry about 'const'.
54801         Similarly, include "unlocked-io.h" near start, not in middle.
54802         Include <limits.h>.
54803         (textint.value): Use long int rather than int.
54804         (textint.digits): Use size_t rather than int.
54805         (BILLION, LOG10_BILLION): New constants.
54806         (parser_control): New member rel_ns.  Members day_ordinal,
54807         time_zone, month, day, hour, minutes, rel_year, rel_month,
54808         rel_day, rel_hour, rel_minutes, rel_seconds
54809         are now long int, not int.  Member seconds is now struct timespec,
54810         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54811         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54812         not int.
54813         (%union.intval): Now long int, not int.
54814         New member timespec.
54815         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54816         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54817         (spec): Now is a timespec or an item list.
54818         (timespec, items): New nonterminals.
54819         (time, rel, relunit, number, get_date):
54820         Add support for fractional seconds.
54821         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54822         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54823         (to_hour): First arg is now long int, not int.
54824         (to_year): Returns long int, not int.
54825         Don't treat year -70 like 70.
54826         (tm_diff): Returns long int, not int.
54827         (lookup_word): Use bool instead of int when appropriate.
54828         (yylex): Use size_t for count, not int.
54829         Detect overflow when parsing large integer constants.
54830         Add support for fractions.
54831         (get_date): Make pointers 'const' if possible.
54832         Use more-portable code to detect integer overflow.
54833         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54834         Don't use ctime; it's not reliable if the year has >4 digits.
54835
54836         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54837         This is for compatibility with BSD.
54838
54839         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54840         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54841         From coreutils' system.h.
54842
54843         * lib/userspec.c: Don't include "posixver.h".
54844         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54845         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54846         compatible extension.  Simplify code by removing a boolean int
54847         that was always nonzero if a string was nonnull.
54848
54849 2004-03-30  Jim Meyering  <jim@meyering.net>
54850
54851         Merge from coreutils.
54852
54853         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54854         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54855         on some systems one must include <grp.h> before it.
54856         Reported by Christian Krackowizer.
54857
54858 2004-03-30  Jim Meyering  <jim@meyering.net>
54859
54860         Merge from coreutils.
54861
54862         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54863
54864         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54865         an empty input stream.
54866
54867         * lib/readtokens.c: Include <stdbool.h>.
54868         (readtoken): Use `size_t' rather than int/long.
54869         All callers adjusted.
54870         Use `bool' rather than `int' where appropriate.
54871         Use memset rather than an explicit loop.
54872         Use x2nrealloc rather than xrealloc.
54873         Allow the use of `\0' as a delimiter.
54874         (readtokens): Likewise.
54875         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54876
54877 2004-03-30  Jim Meyering  <jim@meyering.net>
54878
54879         * m4/realloc.m4: Remove file, since now it does no more than
54880         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54881         the `configure.ac' section of module/realloc.
54882         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54883
54884 2004-03-30  Bruno Haible  <bruno@clisp.org>
54885
54886         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54887         nonnull.
54888
54889 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54890
54891         Merge changes to getloadavg.c from coreutils and Emacs.
54892
54893         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54894         Define to an expression, not to the empty string.
54895         Include cloexec.h and xalloc.h.
54896         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54897         Use set_cloexec_flag rather than rolling our own.
54898         * lib/cloexec.c, lib/cloexec.h: New files.
54899
54900 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54901
54902         * m4/cloexec.m4: New file.
54903
54904 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54905
54906         * lib/getopt.h: Sync with libc CVS.
54907
54908 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54909             Bruno Haible  <bruno@clisp.org>
54910
54911         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54912         mbswidth.
54913
54914 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54915             Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/mbswidth.h: Include <wchar.h> only if
54918         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54919         <wchar.h>.
54920         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54921
54922 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54923
54924         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54925         Sync with libc CVS.
54926         * lib/getopt_int.h: New file, also synced from libc.
54927
54928 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54929
54930         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54931         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54932         Bring back getopt.c, getopt.h, getopt1.c.
54933
54934 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54935
54936         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54937         All uses changed.  Check for sa_sigaction member; this fixes
54938         a bug first reported by Jason Andrade in
54939         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54940
54941 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54942
54943         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54944         '#if' expressions.  Unlike the code it replaces, it does not
54945         depend on (defined _SC_PAGESIZE).  However, it does depend on
54946         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54947         first reported by Jason Andrade in
54948         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54949
54950 2004-02-25  Simon Josefsson  <jas@extundo.com>
54951
54952         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54953
54954 2004-02-25  Simon Josefsson  <jas@extundo.com>
54955
54956         * lib/strdup.h: New file.
54957         * lib/strdup.c: Include it.
54958         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54959         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54960
54961 2004-02-23  Karl Berry  <karl@gnu.org>
54962
54963         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54964         (from fencepost.gnu.org:/gd/gnuorg).
54965
54966 2004-02-23  Karl Berry  <karl@gnu.org>
54967
54968         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54969         * config/srclist.txt: add maintain/standards documents.
54970
54971 2004-02-18  Bruno Haible  <bruno@clisp.org>
54972
54973         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54974         Reported by Derek Robert Price <derek@ximbiot.com>.
54975
54976 2004-02-16  Karl Berry  <karl@gnu.org>
54977
54978         * config/mkinstalldirs, install-sh: update from automake.
54979
54980 2004-02-06  Karl Berry  <karl@gnu.org>
54981
54982         * m4/po.m4: update from gettext 0.14.1.
54983
54984 2004-02-06  Karl Berry  <karl@gnu.org>
54985
54986         * lib/config.charset: update from gettext 0.14.1.
54987
54988 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54989
54990         Add comments and code, prompted by suggestions from Bruno Haible
54991         for sh-quote.
54992         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54993         describing the enum quoting_style values.
54994         * lib/quotearg.c (quotearg_alloc): New function.
54995         (quotearg_buffer_restyled): Treat lone { and } as special.
54996         Treat = as special.  Work around bug with older shells
54997         that "see" a '\' that is really the 2nd byte of a multibyte char.
54998         Quote empty string with shell_quoting_style.
54999
55000 2004-02-03  Bruno Haible  <bruno@clisp.org>
55001
55002         * m4/pipe.m4: New file, from GNU gettext.
55003
55004 2004-02-03  Bruno Haible  <bruno@clisp.org>
55005
55006         * lib/pipe.h: New file, from GNU gettext.
55007         * lib/pipe.c: New file, from GNU gettext.
55008
55009 2004-01-27  Bruno Haible  <bruno@clisp.org>
55010
55011         * m4/execute.m4: New file, from GNU gettext.
55012
55013 2004-01-27  Bruno Haible  <bruno@clisp.org>
55014
55015         * lib/execute.h: New file, from GNU gettext.
55016         * lib/execute.c: New file, from GNU gettext.
55017         * lib/w32spawn.h: New file, from GNU gettext.
55018
55019 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55020
55021         Merge from diffutils.
55022
55023         * lib/file-type.c (file_type): Add typed memory objects.
55024         * lib/file-type.h (S_TYPEISTMO): New macro.
55025
55026         * lib/c-stack.h (c_stack_action): Remove argv argument.
55027         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55028         (die): Don't calculate message unless segv_action returns.
55029         (get_stack_location, min_address_from_argv, max_address_from_argv,
55030         volatile stack_base, volatile_stack_size): Remove.
55031         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55032         that every segmentation violation is a stack overflow.  (Ouch!)
55033         See Debian bug 136249 (still outstanding) for more info about why
55034         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55035
55036 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55037
55038         Exit-status fix from coreutils.
55039
55040         Use exit_failure consistently in place of EXIT_FAILURE,
55041         so that program exit statuses are consistent on failure.
55042
55043         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55044         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55045         * lib/argmatch.h: Comment fix to match the above.
55046         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55047         Now a macro referring to exit_failure, instead of a separate
55048         variable.  Include "exitfail.h" to get it.
55049         * lib/xstrtol.h: Include "exitfail.h".
55050         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55051
55052         * lib/long-options.c (parse_long_options): Use prototype
55053         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55054         for clarity.
55055
55056 2004-01-21  Jim Meyering  <jim@meyering.net>
55057
55058         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55059         so as not to conflict with a different-sized __mktime_internal
55060         function in GNU libc.
55061         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55062         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55063
55064 2004-01-20  Karl Berry  <karl@gnu.org>
55065
55066         * config/config.guess: update from config.
55067
55068         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55069
55070 2004-01-20  Bruno Haible  <bruno@clisp.org>
55071
55072         Safer stack allocation.
55073         * lib/setenv.c: Include allocsa.h.
55074         (alloca): Remove fallback definition.
55075         (freea): Remove macro.
55076         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55077         instead of freea.
55078
55079 2004-01-20  Bruno Haible  <bruno@clisp.org>
55080
55081         * m4/eealloc.m4: New file, from GNU gettext.
55082
55083 2004-01-20  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/allocsa.m4: New file, from GNU gettext.
55086
55087 2004-01-20  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/xallocsa.h: New file, from GNU gettext.
55090         * lib/xallocsa.c: New file, from GNU gettext.
55091
55092 2004-01-20  Bruno Haible  <bruno@clisp.org>
55093
55094         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55095
55096 2004-01-20  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55099         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55100         specially.
55101
55102 2004-01-20  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55105         patch.
55106
55107 2004-01-20  Bruno Haible  <bruno@clisp.org>
55108
55109         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55110
55111 2004-01-20  Bruno Haible  <bruno@clisp.org>
55112
55113         * lib/eealloc.h: New file.
55114
55115 2004-01-20  Bruno Haible  <bruno@clisp.org>
55116
55117         * lib/binary-io.h: Avoid warnings on Cygwin.
55118
55119 2004-01-20  Bruno Haible  <bruno@clisp.org>
55120
55121         * lib/allocsa.h: New file, from GNU gettext.
55122         * lib/allocsa.c: New file, from GNU gettext.
55123
55124 2004-01-18  Karl Berry  <karl@gnu.org>
55125
55126         * doc/gpl.texi, doc/lgpl.texi: new files.
55127
55128 2004-01-18  Karl Berry  <karl@gnu.org>
55129
55130         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55131         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55132
55133 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55134
55135         Merge from coreutils.
55136
55137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55138         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55139         (gl_DEFAULT_POSIX2_VERSION): Move
55140         the documentation from 'configure' into 'config.hin',
55141         so that 'configure --help' isn't burdened by it and
55142         we don't have to worry about its formatting there.
55143         Reword the documentation so that it's more succinct
55144         and can be run together into a single paragraph.
55145         * m4/same.m4 (gl_SAME): Check for pathconf.
55146
55147 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55148
55149         Merge from coreutils.
55150
55151         * lib/posixver.c: Include posixver.h.
55152
55153         * lib/same.c: Include <stdbool.h>, <limits.h>.
55154         (_POSIX_NAME_MAX): Define if not defined.
55155         (MIN): New macro.
55156         (same_name): If file names are silently truncated, report
55157         that the file names are the same if they are the same after
55158         the silent truncation.
55159
55160         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55161         conversion function.
55162         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55163         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55164         longer needed.
55165
55166 2004-01-15  Jim Meyering  <jim@meyering.net>
55167
55168         Merge from coreutils.
55169
55170         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55171         if no library is required.
55172         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55173         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55174         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55175         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55176         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55177         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55178         value, $ac_cv_search_crypt, if it's "none required".
55179         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55180         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55181         not gl_FUNC_GETLOADAVG.
55182         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55183         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55184
55185 2004-01-15  Jim Meyering  <jim@meyering.net>
55186
55187         Merge from coreutils.
55188
55189         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55190         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55191         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55192
55193         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55194         optional configure-time default.
55195
55196         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55197
55198         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55199
55200 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55201
55202         Merge from coreutils.
55203
55204         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55205         value, $ac_cv_search_nanosleep, if it's "none required".
55206
55207 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55208
55209         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55210         with like-named macro in fnmatch.c.
55211         (EXT): Use an internal constant instead.
55212
55213         Merge fnmatch patches from glibc.
55214         * lib/fnmatch.c (mbsinit): Remove define.
55215         Add libc_hidden_ver (__fnmatch, fnmatch).
55216         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55217         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55218
55219 2004-01-14  Karl Berry  <karl@gnu.org>
55220
55221         * config/install-sh: update from automake.
55222
55223 2004-01-13  Karl Berry  <karl@gnu.org>
55224
55225         * config/install-sh: update from automake.
55226
55227 2004-01-09  Karl Berry  <karl@gnu.org>
55228
55229         * config/install-sh: update from automake.
55230
55231 2004-01-05  Karl Berry  <karl@gnu.org>
55232
55233         * config/config.{sub,guess}: update from config.
55234
55235 2003-12-31  Karl Berry  <karl@gnu.org>
55236
55237         * config/depcomp: update from automake.
55238
55239 2003-12-14  Karl Berry  <karl@gnu.org>
55240
55241         * lib/config.charset: update from gettext-runtime.
55242
55243 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55244
55245         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55246         Bug reported by Alfred M. Szmidt.
55247
55248 2003-12-03  Bruno Haible  <bruno@clisp.org>
55249
55250         * m4/gettext.m4: Upgrade from gettext-0.13.
55251         * m4/po.m4: Upgrade from gettext-0.13.
55252         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55253         * m4/intmax.m4: New file, from gettext-0.13.
55254         * m4/printf-posix.m4: New file, from gettext-0.13.
55255
55256 2003-11-29  Karl Berry  <karl@gnu.org>
55257
55258         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55259
55260 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55261             Bruno Haible  <bruno@clisp.org>
55262
55263         * lib/printf-parse.h: Don't include sys/types.h.
55264         (ARG_NONE): New macro.
55265         (char_directive): Change type of *arg_index fields to size_t.
55266         * lib/printf-parse.c: Don't include sys/types.h.
55267         (SSIZE_MAX): Remove macro.
55268         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55269         Remove unnecessary overflow check.
55270         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55271         fields.
55272
55273 2003-11-25  Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55276
55277 2003-11-25  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55280         gt_TYPE_SSIZE_T.
55281
55282 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55283
55284         * modules/alloca: Remove dependency on xalloc.
55285
55286 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55287
55288         * lib/alloca.c: Remove dependency on xalloc module.
55289         (xalloc_die): Remove.
55290         (memory_full) [!defined emacs]: New macro.
55291         [!defined emacs]: Don't include xalloc.h.
55292         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55293         address arithmetic overflows.  Change datatypes a bit to avoid
55294         unnecessary casts.
55295
55296 2003-11-22  Jim Meyering  <jim@meyering.net>
55297
55298         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55299         s/size/size_t/.
55300
55301 2003-11-21  Karl Berry  <karl@gnu.org>
55302
55303         * config/config.{sub,guess}: update from config.
55304
55305 2003-11-18  Karl Berry  <karl@gnu.org>
55306
55307         * config/config.{sub,guess}: update from config.
55308
55309         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55310
55311 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55312
55313         * README: Mention that S+T cannot overflow if S is the size of
55314         an existing object and T is sufficiently small.
55315
55316 2003-11-17  Jim Meyering  <jim@meyering.net>
55317
55318         On systems without utime and without a utimes function capable of
55319         dealing with a NULL struct utimbuf* argument, this utime replacement
55320         could -- in unusual circumstances -- leak a file descriptor.
55321         * lib/utime.c: Include <unistd.h> and <errno.h>.
55322         (utime_null): Be sure to close `fd' and to preserve errno.
55323         Reported by Geoff Collyer via Arnold Robbins.
55324
55325 2003-11-17  Bruno Haible  <bruno@clisp.org>
55326
55327         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55328         (Depends-on): Add xsize.
55329
55330 2003-11-17  Bruno Haible  <bruno@clisp.org>
55331
55332         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55333
55334 2003-11-17  Bruno Haible  <bruno@clisp.org>
55335
55336         * lib/vasnprintf.c (alloca): Remove fallback definition.
55337         (freea): Remove definition.
55338         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55339         Reported by Paul Eggert.
55340
55341 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55342             Bruno Haible  <bruno@clisp.org>
55343
55344         Protect against address arithmetic overflow.
55345         * lib/printf-args.h: Include stddef.h.
55346         (arguments): Change type of field 'count' to size_t.
55347         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55348         'unsigned int' where appropriate.
55349         * lib/printf-parse.h: Include sys/types.h.
55350         (char_directive): Change type of *arg_index fields to ssize_t.
55351         (char_directives): Change type of fields 'count', max_*_length to
55352         size_t.
55353         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55354         (SSIZE_MAX): Define fallback value.
55355         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55356         instead of 'int' where appropriate. Check a_allocated, d_allocated
55357         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55358         * lib/vasnprintf.c: Include xsize.h.
55359         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55360         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55361         overflow. Avoid wraparound when converting a width or precision from
55362         decimal to binary.
55363
55364 2003-11-16  Bruno Haible  <bruno@clisp.org>
55365
55366         Update from GNU gettext.
55367         * lib/printf-parse.c: Generalize to it can be compiled for wide
55368         strings.
55369         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55370         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55371         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55372         SNPRINTF): New macros.
55373         Don't include <alloca.h> if the file is used inside libintl.
55374         (local_wcslen): New function, for Solaris 2.5.1.
55375         (VASNPRINTF): Use it instead of wcslen.
55376
55377 2003-11-16  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/xsize.h (xmax): New function.
55380         (xsum, xsum3, xsum4): Declare as "pure" functions.
55381
55382 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55383
55384         * modules/xalloc (Files): Undo latest change, since xalloc.h
55385         no longer needs SIZE_MAX or PTRDIFF_MAX.
55386
55387 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55388
55389         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55390         gl_PTRDIFF_MAX.
55391
55392 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55393
55394         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55395         "return", to pacify some unknown compiler.  Problem reported
55396         by Joerg Schilling.
55397
55398 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55399
55400         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55401         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55402         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55403         heuristic is just as accurate as far as we know, and it removes a
55404         dependency on size_max.m4 and ptrdiff_max.m4.
55405
55406 2003-11-11  Bruno Haible  <bruno@clisp.org>
55407
55408         * modules/xsize (Files): Add m4/size_max.m4.
55409         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55410
55411 2003-11-11  Bruno Haible  <bruno@clisp.org>
55412
55413         * m4/size_max.m4: New file.
55414         * m4/ptrdiff_max.m4: New file.
55415         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55416         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55417         (gl_XALLOC): Invoke it.
55418
55419 2003-11-11  Bruno Haible  <bruno@clisp.org>
55420
55421         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55422         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55423         defined.
55424
55425 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55426
55427         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55428         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55429         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55430         From Bruno Haible.
55431         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55432         not (size_t) -1, since it's defined here.
55433
55434 2003-11-09  Karl Berry  <karl@gnu.org>
55435
55436         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55437
55438 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55439
55440         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55441         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55442         Reject sizes of exactly SIZE_MAX bytes.
55443         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55444         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55445
55446 2003-11-05  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55449         SIZE_MAX defined in <limits.h> on Solaris.
55450
55451 2003-11-04  Jim Meyering  <jim@meyering.net>
55452
55453         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55454         variable names, rather than @VAR@.
55455         * modules/poll: Likewise.
55456
55457 2003-11-04  Bruno Haible  <bruno@clisp.org>
55458
55459         * modules/xsize: New file.
55460         * modules/linebreak: Depend on xsize.
55461         * MODULES.html.sh (func_all_modules): Add xsize.
55462
55463 2003-11-04  Bruno Haible  <bruno@clisp.org>
55464
55465         * m4/xsize.m4: New file.
55466
55467 2003-11-04  Bruno Haible  <bruno@clisp.org>
55468
55469         * lib/xsize.h: New file.
55470         * lib/linebreak.c: Include xsize.h.
55471         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55472         argument for overflow.
55473         Suggested by Paul Eggert.
55474
55475 2003-11-03  Karl Berry  <karl@gnu.org>
55476
55477         * config/config.{guess,sub}: update from config.
55478
55479 2003-11-03  Jim Meyering  <jim@meyering.net>
55480
55481         * modules/userspec (lib_SOURCES): Add userspec.h.
55482         (Include): Add "userspec.h".
55483         Improve description.
55484
55485 2003-11-03  Jim Meyering  <jim@meyering.net>
55486
55487         * lib/userspec.c: Include "userspec.h".
55488         * lib/userspec.h: New file.
55489
55490 2003-11-03  Bruno Haible  <bruno@clisp.org>
55491
55492         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55493
55494 2003-11-03  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55497         available, to avoid (extremely rare) race condition.
55498         Suggested by Paul Eggert.
55499
55500 2003-11-02  Karl Berry  <karl@gnu.org>
55501
55502         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55503
55504 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55505
55506         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55507         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55508         (read_filesystem_list): Set and use me_type_malloced.
55509         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55510         whatever the type happens to be), for brevity and consistency.
55511         Check for size calculation overflow on Alphas running OSF/1.
55512
55513 2003-10-31  Jim Meyering  <jim@meyering.net>
55514
55515         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55516
55517         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55518
55519 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55520             Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55523         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55524
55525 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55528         netbsd*-gnu*.  Suggested by Robert Millan.
55529
55530 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55531
55532         * modules/group-member: Depend on stdbool.
55533
55534 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55535
55536         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55537
55538 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55539
55540         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55541         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55542         after the 'gnu' in these cases.  This fixes some bugs in the
55543         previous change, and is based on suggestions by Robert Millan.
55544
55545 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55546
55547         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55548         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55549         no longer needed.
55550         * lib/quotearg.c (quotearg_n_options): Use it.
55551         * lib/group-member.c: Include <stdbool.h>.
55552         (free_group_info): Arg is now const *; don't free arg.
55553         (get_group_info): Now returns bool and accepts struct group_info *,
55554         rather than returning a malloc'ed struct group_info *.
55555         All uses changed.  Check for overflow in internal size calculation.
55556
55557         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55558         rather than xmalloc/xrealloc.
55559         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55560         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55561         conformance bug: the old code used a pointer after freeing the
55562         storage that it addressed.
55563         * lib/hash.c (hash_initialize): Simplify the code by using
55564         xalloc_oversized rather than doing it by hand.
55565         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55566         the buffer preserved.  Use free and xmalloc instead.
55567         * lib/quotearg.c (quotearg_n_options): Likewise.
55568         Use a simpler test for size overflow.  Don't use xalloc_oversized
55569         because unsigned int might be wider than size_t (!); this suggests
55570         that we should switch from unsigned int to size_t for slot numbers.
55571
55572 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55573
55574         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55575         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55576         NetBSD kernels.  Requested by Richard Stallman.
55577
55578 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55579
55580         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55581         to allocate the returned structure.  Do not allocate a subarray,
55582         as x2nrealloc will do that.
55583         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55584         instead of xnrealloc.
55585         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55586
55587 2003-10-27  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/stdbool_.h: Better support for BeOS.
55590
55591 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55592
55593         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55594         now uses inline.
55595
55596 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55597
55598         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55599         callers that want to do their own size-overflow checking.  Include
55600         <stdbool.h>, since xalloc_oversized returns bool.
55601         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55602         to use xalloc_oversized.
55603
55604         Add two functions x2realloc, x2nrealloc, for programs that grow
55605         arrays dynamically by doubling their sizes.
55606         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55607         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55608         New functions.
55609
55610         Port to C99 semantics for 'inline' of external functions.
55611         Bug reported by Bruno Haible.
55612         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55613         with the old contents of xnmalloc.
55614         (xnmalloc, xmalloc): Use it.
55615         (xnrealloc_inline): New static inline function,
55616         with the old contents of xnrealloc.
55617         (xnrealloc, xrealloc): Use it.
55618
55619         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55620         that.
55621
55622 2003-10-26  Karl Berry  <karl@gnu.org>
55623
55624         * config/srclist.txt (COPYING.DOC): no longer available from
55625         /gd/gnuorg; don't know where the ultimate source is.
55626
55627 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55628
55629         Fix several address-calculation bugs in the hash modules,
55630         plus some minor code cleanup.
55631
55632         * lib/hash.h: Include <stdbool.h>, for bool.
55633         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55634         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55635         hash_get_n_entries, hash_get_max_bucket_length,
55636         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55637         hash_rehash): Use size_t rather than unsigned.
55638         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55639         hash_get_n_buckets_used, hash_get_n_entries,
55640         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55641         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55642         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55643         Likewise.
55644         (SIZE_MAX): Define if not defined.
55645         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55646         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55647         hash_print):
55648         Use const * when possible.
55649         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55650         (check_tuning): Fix bug: if tuning parameters were very close to
55651         0 or 1, rounding errors could have caused subscript violations.
55652         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55653         (hash_initialize): Add 'fail:' label
55654         to free table and return NULL, and use it to simplify code.
55655         Use calloc rather than clearing the storage ourself.
55656         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55657         buffer size calculations.
55658         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55659         Include <stddef.h>, for size_t.
55660         * lib/hash-pjw.c (hash_pjw): Likewise.
55661         Switch to method described by Bruno Haible.
55662         Include <limits.h>, for CHAR_BIT.
55663         (SIZE_BITS): New macro.
55664
55665 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55666
55667         * m4/getline.m4 (AM_FUNC_GETLINE):
55668         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55669         hosts.  Problem reported by Derek Robert Price in
55670         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55671         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55672         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55673
55674 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55675
55676         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55677         ceiling the allocation at NMAX bytes rather than silently
55678         discarding input bytes before NMAX is reached.  This makes
55679         a difference only if NMAX exceeds SIZE_MAX / 2.
55680
55681         * lib/obstack.c: Merge from glibc.
55682         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55683         Add libc_hidden_def (_obstack_newchunk).
55684         (_obstack_free) [! defined _LIBC]: Remove.
55685         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55686         a clone of the function body.
55687         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55688         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55689
55690         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55691         glibc.
55692         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55693         arg to memcpy.
55694
55695         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55696         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55697         Don't use lvalue casts, as GCC plans to remove support for them
55698         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55699         was also present in the non-GCC version, indicating that this
55700         code had always been buggy and had never been widely used.
55701         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55702         Use the fast variant of each macro, rather than copying the
55703         definiens of the fast variant; that way, we'll be more likely to
55704         catch future bugs in the fast variants.
55705
55706 2003-10-20  Bruno Haible  <bruno@clisp.org>
55707
55708         * modules/wait-process: New file.
55709         * MODULES.html.sh (func_all_modules): Add wait-process.
55710
55711 2003-10-20  Bruno Haible  <bruno@clisp.org>
55712
55713         * m4/wait-process.m4: New file.
55714
55715 2003-10-20  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/wait-process.h: New file, from GNU gettext.
55718         * lib/wait-process.c: New file, from GNU gettext.
55719
55720 2003-10-19  Jim Meyering  <jim@meyering.net>
55721
55722         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55723         HPUX 10.20.
55724
55725 2003-10-18  Karl Berry  <karl@gnu.org>
55726
55727         * config/config.guess: update from config.
55728
55729 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55730
55731         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55732         (getgroups): First arg is int, not size_t.
55733         Don't let 'free' mangle errno.
55734
55735 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55736
55737         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55738
55739 2003-10-16  Karl Berry  <karl@gnu.org>
55740
55741         * config/config.{guess,sub}: update from config.
55742
55743 2003-10-16  Jim Meyering  <jim@meyering.net>
55744
55745         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55746         memcpy.
55747
55748 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55749
55750         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55751         (SIZE_MAX): Remove.
55752         (new_exclude, add_exclude_file): Initial size no longer needs to
55753         be a power of 2.
55754         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55755         our own address arithmetic overflow checking.
55756
55757         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55758         (fnmatch): Do not alloca more than 2000 wide characters;
55759         instead, use malloc for large buffers.
55760         Check for address arithmetic overflow, and return -1
55761         with errno set to ENOMEM in that case.
55762         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55763         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55764         instead, return -1.  Check for address arithmetic overflow.
55765
55766 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55767
55768         Handle invalid suffixes and overflow independently, so that
55769         callers can treat them independently as needed.  Fix some bugs in
55770         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55771         suffix for a human-readable blocksize.  The major caller-visible
55772         change is the addition of a new
55773         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55774         that both overflow and suffix chars were found.
55775
55776         * lib/human.c (humblock): Don't check separately for invalid suffix
55777         char; that is xstrtoumax's job (now that its bug is fixed).
55778         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55779         INTMAX_MAX]: New macros.
55780         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55781         TYPE_MAXIMUM): New macros.
55782         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55783         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55784         if overflow occurs, as it's what __strtol does and it's more useful
55785         in practice.
55786         (__xstrtol): If __strtol reports some error other than ERANGE,
55787         reflect it to the caller as LONGINT_INVALID.  If it reports
55788         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55789         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55790         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55791         value.
55792         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55793         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55794         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55795         [defined UINTMAX_MAX]: New macros.
55796
55797 2003-10-14  Bruno Haible  <bruno@clisp.org>
55798
55799         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55800
55801 2003-10-14  Bruno Haible  <bruno@clisp.org>
55802
55803         * m4/sig_atomic_t: New file, from GNU gettext.
55804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55805
55806 2003-10-14  Bruno Haible  <bruno@clisp.org>
55807
55808         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55809         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55810         Also use volatile where needed.
55811
55812 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55813
55814         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55815         Change maintainer from Bruno Haible to 'all'.
55816
55817 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55818
55819         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55820
55821 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55822
55823         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55824         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55825         and define in terms of the other primitives.
55826         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55827         (SIZE_MAX): Define if not already defined.
55828         (array_size_overflow): New function.
55829         (xalloc_die): Abort instead of exiting if 'error' returns.
55830         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55831         (xmalloc, xrealloc): Use them.
55832         (xcalloc): Check for address arithmetic overflow.
55833         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55834         a bit faster than strcpy.
55835
55836 2003-10-10  Simon Josefsson  <jas@extundo.com>
55837
55838         * modules/argp (Depends-on): Add restrict and strcase.
55839
55840 2003-10-10  Simon Josefsson  <jas@extundo.com>
55841
55842         * m4/argp.m4: Add AC_C_INLINE.
55843
55844 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55845
55846         Merge getpass from libc, plus a few fixes.
55847
55848         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55849         Include <stdbool.h>.
55850         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55851         __fsetlocking to empty.
55852         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55853         do include <bits/libc-lock.h>.
55854         Do not include <fcntl.h>; not needed.
55855         [_LIBC]: Include <wchar.h>.
55856         (NOTCANCEL_MODE): New macro.
55857         (flockfile, funlockfile) [_LIBC]: New macros.
55858         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55859         [!_LIBC]: New macros.
55860         (call_fclose): New function.
55861         (getpass): Use it.  Save tty stream separately; this simplifies the
55862         code and makes it more reliable if stdin happens to equal stdout.
55863         Invoke __fsetlocking on tty.
55864         Handle thread cancellation if needed.
55865         Namespace cleanup (use __tcgetattr, __getline).
55866         Use bool for Booleans.
55867         [USE_IN_LIBIO]: Handle wide streams.
55868         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55869         stream might go where.
55870
55871         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55872         doesn't have to include <stdio.h> before us.
55873         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55874         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55875         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55876         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55877         if not declared, so that we can use getpass.c code from libc without
55878         rewriting it.
55879         (flockfile, ftrylockfile, funlockfile): New macros.
55880
55881 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55882
55883         * modules/getpass: Depend on stdbool.
55884
55885 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55886
55887         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55888
55889 2003-10-07  Karl Berry  <karl@gnu.org>
55890
55891         * config/config.{guess,sub}: update from config.
55892
55893 2003-10-06  Jim Meyering  <jim@meyering.net>
55894             Bruno Haible  <bruno@clisp.org>
55895
55896         This lets translators provide better translations for the
55897         "Written by ..." part of --version output.
55898         * lib/version-etc.h: Include stdarg.h.
55899         (version_etc_copyright): Declare as readonly.
55900         (version_etc): Make this function variadic with a NULL-terminated list
55901         of author name strings.
55902         (version_etc_va): New declaration.
55903         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55904         (version_etc_copyright): Declare as readonly.
55905         (version_etc_va): New function. Provide a different translatable string
55906         for each possible number of authors < 10. Abbreviate when there are 10
55907         authors or more.
55908         (version_etc): Make this function variadic. Call version_etc_va.
55909         Suggestion from Gary V. Vaughan.
55910
55911         * lib/long-options.h (parse_long_options): Change prototype: the
55912         authors string is moved to the end and becomes variadic.
55913         * lib/long-options.c: Include stdarg.h.
55914         (parse_long_options): Make this function variadic, too.
55915         Call version_etc_va, not version_etc.
55916
55917 2003-10-06  Bruno Haible  <bruno@clisp.org>
55918
55919         * modules/version-etc-2: Remove file.
55920         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55921
55922 2003-10-06  Bruno Haible  <bruno@clisp.org>
55923
55924         * modules/fatal-signal: New file.
55925         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55926
55927 2003-10-06  Bruno Haible  <bruno@clisp.org>
55928
55929         * m4/fatal-signal.m4: New file.
55930         * m4/signalblocking.m4: New file, from GNU gettext.
55931
55932 2003-10-06  Bruno Haible  <bruno@clisp.org>
55933
55934         * lib/version-etc-2.h: Remove file.
55935         * lib/version-etc-2.c: Remove file.
55936
55937 2003-10-06  Bruno Haible  <bruno@clisp.org>
55938
55939         * lib/fatal-signal.h: New file, from GNU gettext.
55940         * lib/fatal-signal.c: New file, from GNU gettext.
55941
55942 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55943
55944         * README: Rework advice for preventing empty .o files.
55945         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55946         not <sys/types.h>.
55947
55948 2003-10-04  Karl Berry  <karl@gnu.org>
55949
55950         * lib/argp*: update from libc.
55951
55952 2003-10-04  Karl Berry  <karl@gnu.org>
55953
55954         * config/config.{guess,sub}: update from config.
55955
55956 2003-10-02  Bruno Haible  <bruno@clisp.org>
55957
55958         * modules/lchown (Include): Add lchown.h.
55959         * modules/time_r (Include): Use "..." syntax.
55960         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55961
55962 2003-10-01  Simon Josefsson  <jas@extundo.com>
55963
55964         * MODULES.html.sh (func_all_modules): Move gethostname from section
55965         'based on' to section 'lacking' POSIX:2001.
55966
55967 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55968
55969         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55970         to output mode on the same stream.
55971
55972 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55973
55974         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55975         Fix arg typo in previous patch.
55976
55977 2003-09-28  Jim Meyering  <jim@meyering.net>
55978
55979         * lib/error.c: Correct cpp indentation.
55980
55981 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55982
55983         * modules/free: New file.
55984
55985 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55986
55987         * m4/free.m4: New file.
55988
55989 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55990
55991         * lib/minmax.h (MIN, MAX)
55992         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55993         Omit the special code that used __typeof__, since we worry that
55994         it could be more trouble than it's worth.  See:
55995         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55996         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55997
55998         * lib/free.c: New file.
55999
56000 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56001
56002         Trivial fixes to Makefile.am parts of module listings.
56003         * modules/strstr: Append strstr.h to lib_SOURCES.
56004         * modules/strcase: Likewise, for strcase.h.
56005
56006 2003-09-27  Karl Berry  <karl@gnu.org>
56007
56008         * config/mkinstalldirs: update from automake.
56009
56010 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56011
56012         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56013         (error_tail): Do not loop, reallocating temporary buffer, since
56014         the output cannot contain more wide characters than the input
56015         contains bytes, the size must be big enough already.  This avoids
56016         one potential size overflow calculation.  Check for size overflow
56017         when calculating temporary buffer size.  Free temporary buffer
56018         when done, if it was allocated with malloc; this plugs a memory
56019         leak.  Remove casts from void * to pointers, that are no longer
56020         needed now that we're assuming C89 or better.
56021
56022         Merge error changes from glibc.
56023
56024         * lib/error.c, error.h: Update copyright notice header to match glibc.
56025         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56026         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56027         Disable cancellation while printing error.
56028         * lib/error.h: Prepend __ to parameter names.
56029
56030 2003-09-26  Jim Meyering  <jim@meyering.net>
56031
56032         * lib/error.c (error_tail): Move some declarations
56033         into inner scope where the local variables are used.
56034
56035 2003-09-26  Bruno Haible  <bruno@clisp.org>
56036
56037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56038         stpncpy().
56039         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56040
56041 2003-09-26  Bruno Haible  <bruno@clisp.org>
56042
56043         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56044         (stpncpy): Define as alias for gnu_stpncpy.
56045         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56046
56047 2003-09-25  Simon Josefsson  <jas@extundo.com>
56048
56049         * lib/xgetdomainname.h: New file.
56050         * lib/xgetdomainname.c: New file.
56051
56052 2003-09-25  Simon Josefsson  <jas@extundo.com>
56053             Bruno Haible  <bruno@clisp.org>
56054
56055         * modules/getdomainname: New file.
56056         * modules/xgetdomainname: New file.
56057         * MODULES.html.sh (func_all_modules): Add getdomainname,
56058         xgetdomainname.
56059
56060 2003-09-25  Simon Josefsson  <jas@extundo.com>
56061             Bruno Haible  <bruno@clisp.org>
56062
56063         * m4/getdomainname.m4: New file.
56064
56065 2003-09-25  Simon Josefsson  <jas@extundo.com>
56066             Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/getdomainname.h: New file.
56069         * lib/getdomainname.c: New file.
56070
56071 2003-09-25  Karl Berry  <karl@gnu.org>
56072
56073         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56074
56075 2003-09-25  Karl Berry  <karl@gnu.org>
56076
56077         * config/install-sh: update from automake.
56078
56079 2003-09-25  Bruno Haible  <bruno@clisp.org>
56080
56081         * modules/version-etc-2: New file, from modules/version-etc with
56082         modifications.
56083         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56084
56085 2003-09-25  Bruno Haible  <bruno@clisp.org>
56086
56087         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56088         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56089
56090 2003-09-24  Simon Josefsson  <jas@extundo.com>
56091
56092         * modules/xgethostname: Add xgethostname.h.
56093
56094 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56095
56096         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56097         the buffer associated with the argument.  Bug reported by
56098         Simon Josefsson.
56099
56100 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56101
56102         * README: Document assumptions that 'int' is at least 32 bits
56103         wide, that integer arithmetic is 2's complement without overflow,
56104         that there are no holes in integer values, that adding sizes of
56105         two nonoverlapping objects can't overflow, and that all-bits-zero
56106         yields scalar zero.  Fix spelling and capitalization typos.
56107
56108 2003-09-19  Karl Berry  <karl@gnu.org>
56109
56110         * lib/argp.h: update from libc.
56111
56112 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56113
56114         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56115         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56116         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56117
56118 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56119
56120         * gnulib-tool: Use "test -h", not "test -L", for portability
56121         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56122         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56123         (sed_extract_prog): Issue s commands one-by-one, rather than
56124         using \| in one s command.
56125
56126 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56127
56128         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56129         input error, instead of returning NULL the next time we are called
56130         (and therefore losing track of errno).
56131
56132 2003-09-16  Bruno Haible  <bruno@clisp.org>
56133
56134         * gnulib-tool (func_create_testdir): Warn about duplicated
56135         dependencies.
56136
56137 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56138
56139         * modules/argmatch, modules/fatal, modules/obstack,
56140         modules/xalloc, modules/xgethostname: Sort dependencies by
56141         importance, not alphabetically.
56142
56143 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56144
56145         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56146         fails, so that the caller gets the proper errno.
56147
56148         * lib/readutmp.c (read_utmp): Likewise.
56149         Check for fstat error.  Close stream and free storage
56150         when failing.
56151
56152 2003-09-14  Karl Berry  <karl@gnu.org>
56153
56154         * config/srclist.txt (strdup.c): disable for c89 changes.
56155
56156 2003-09-14  Jim Meyering  <jim@meyering.net>
56157
56158         * lib/getloadavg.c: Correct cpp indentation.
56159         * lib/strdup.c: Likewise.
56160         * lib/vasnprintf.c: Likewise.
56161
56162 2003-09-14  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/fwriteerror: New file.
56165         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56166
56167 2003-09-14  Bruno Haible  <bruno@clisp.org>
56168
56169         * lib/fwriteerror.h: New file.
56170         * lib/fwriteerror.c: New file.
56171
56172 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56173
56174         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56175         modules/xgethostname, modules/xalloc: Depend on exit.
56176
56177 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56178
56179         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56180
56181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56182         and AC_MINIX, too, so that their extensions are available.
56183
56184         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56185         This macro has been superseded by gl_BACKUPFILE.
56186
56187         More patches to assume C89 or better.
56188
56189         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56190
56191         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56192         unconditionally.
56193         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56194         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56195         Include <string.h>, <stdlib.h> unconditionally.
56196         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56197         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56198         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56199         headers or for string.h.
56200         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56201         or strtoul.
56202
56203         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56204         headers.
56205         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56206         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56207         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56208         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56209         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56210         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56211         memcpy, memset.
56212         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56213         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56214         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56215         strtol.
56216         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56217         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56219         strtoul.
56220
56221 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56222
56223         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56224         * lib/obstack.c [!defined _LIBC]: Likewise.
56225         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56226         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56227         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56228
56229         More changes to assume C89 or better.
56230
56231         * lib/error.c (error_tail): Assume vprintf.
56232
56233         * lib/argmatch.c (getenv): Remove decl.
56234         * lib/progreloc.c (get_full_program_name): Define via prototype.
56235         * lib/setenv.c (clearenv): Likewise.
56236         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56237         needed.
56238         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56239         (malloc, memcpy): Remove decls.
56240         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56241         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56242         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56243         (memcpy): Remove macro.
56244         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56245         (__P): Remove.  All uses removed.
56246         (PTR): Remove.  All uses changed to void *.
56247         (CHAR_BIT, NULL): Remove.
56248         (spaces, zeros, memset_space, memset_zero)
56249         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56250         Remove.
56251         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56252         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56253         Define with prototype.
56254         Remove now-unnecessary prototype decl.
56255         (extra_args_spec): Assume ANSI C.  All uses changed.
56256         (extra_args_spec_iso): Remove.
56257         (my_strftime, emacs_strftimeu): Define via prototype.
56258         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56259         unconditionally.
56260         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56261         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56262         (strtoul, strtol): Remove decls.
56263         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56264         LONG_MAX): Remove.
56265         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56266         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56267         (LOCALE_PARAM_PROTO): New macro.
56268         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56269         (INTERNAL (strtol), strtol): Define with a prototype.
56270         (PARAMS): Remove.  All uses removed.
56271         * lib/tempname.c: Include <string.h> unconditionally.
56272         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56273         * lib/xgethostname.c (main): Define with a prototype.
56274         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56275         Include <stdlib.h> unconditionally.
56276         (calloc, malloc, realloc, free): Remove decls.
56277         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56278         Include <stdlib.h> unconditionally.  Sort include file names.
56279         (strtod): Remove.
56280         (xstrtod): Define with a prototype.
56281         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56282         (strtol, strtoul): Remove decls.
56283
56284 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56285
56286         More patches to assume C89 or better.
56287         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56288         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56289         string.h, memchr, STDC_HEADERS.
56290
56291 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56292
56293         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56294         Include <stdlib.h>, <string.h> unconditionally.
56295         Remove now-unnecessary cast to char *.
56296         * lib/strnlen.c: Include <string.h> unconditionally.
56297         * lib/yesno.c (yesno): Define with a prototype.
56298
56299 2003-09-11  Bruno Haible  <bruno@clisp.org>
56300
56301         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56302
56303 2003-09-10  Jim Meyering  <jim@meyering.net>
56304
56305         * lib/error.c: Correct indentation of cpp directives.
56306
56307 2003-09-10  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56310         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56311         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56312         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56313         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56314         <stdlib.h> and <string.h> checks.
56315         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56316         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56317
56318 2003-09-10  Bruno Haible  <bruno@clisp.org>
56319
56320         * lib/strcspn.c: Include <string.h> unconditionally.
56321         * lib/strpbrk.c: Include <string.h> unconditionally.
56322         * lib/strstr.c: Include <string.h> unconditionally.
56323         * lib/unicodeio.c: Include <string.h> unconditionally.
56324         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56325         * lib/unsetenv.c: Likewise.
56326         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56327         * lib/yesno.c: Include <stdlib.h> unconditionally.
56328         (rpmatch): Add prototype.
56329
56330 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56331
56332         More patches to assume C89 or better.
56333         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56334         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56335         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56336         or for string.h.
56337         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56338         stdlib.h.
56339         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56340         C headers.
56341         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56342         string.h.
56343         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56344         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56345         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56346         or for string.h.
56347         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56348         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56349         C headers.
56350         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56351         memcpy.
56352         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56353         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56354         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56355         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56356         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56357         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56358         string.h, free.
56359         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56360         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56361         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56362         C headers, or for string.h.
56363         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56364         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56365         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56366         headers, memory.h, stdlib.h, string.h, strings.h.
56367         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56368         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56369         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56370         strchr.
56371         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56372         headers, memory.h, string.h.
56373         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56374         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56375         free.
56376         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56377         headers.
56378         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56379         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56380         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56381         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56382         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56383
56384 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56385
56386         More K&R removal.
56387
56388         * lib/acosl.c (main): Use a prototype.
56389         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56390         tanl.c: Likewise.
56391
56392         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56393
56394         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56395         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56396         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56397         with a prototype.
56398         * lib/getopt.c (const): Remove macro.
56399         Include <string.h> unconditionally.
56400         (my_index): Remove; all uses changed to strchr.
56401         (strlen): Remove decl.
56402         (exchange): Remove forward decl; no longer needed.
56403         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56404         Define with prototype.
56405         * lib/getopt1.c (const): Remove macro.
56406         (getopt_long, getopt_long_only, main): Define with prototype.
56407
56408         * lib/getugroups.c: Include <string.h> unconditionally.
56409
56410         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56411         (getusershell, setusershell, endusershell, readname, main):
56412         Define with prototypes.
56413
56414         * lib/group-member.c: Include group-member.h first.
56415         Include <stdlib.h> unconditionally.
56416
56417         * lib/hard-locale.c: Include hard-locale.h first.
56418         Include <stdlib.h>, <string.h> unconditionally.
56419
56420         * lib/hash.c (free, malloc): Remove decls.
56421         Include <stdlib.h> unconditionally.
56422
56423         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56424         (getenv): Do not declare.
56425
56426         * lib/idcache.c: Include <string.h> unconditionally.
56427
56428         * lib/long-options.c: Include long-options.h first, to test interface.
56429         Include <stdlib.h> unconditionally.
56430
56431         * lib/makepath.c: Include makepath.h first, to test interface.
56432         Include <stdlib.h> and <string.h> unconditionally.
56433
56434         * lib/linebuffer.c: Include <stdlib.h>.
56435         (free): Remove decl.
56436
56437         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56438         stddef.h. rpl_malloc returns void *, not char *.
56439         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56440         prototype.
56441
56442         * lib/md5.h: Include <limits.h> unconditionally.
56443         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56444         (__P): Remove; all uses removed.
56445         * lib/md5.c: Include "md5.h" first.
56446         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56447         md5_buffer, md5_process_bytes, md5_process_block):
56448         Define with prototypes.
56449         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56450         * lib/sha.c: Include "sha.h" first.
56451         Include <stdlib.h>, <string.h> unconditionally.
56452
56453         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56454         * lib/memcmp.c (__ptr_t): Likewise.
56455         * lib/memrchr.c (__ptr_t): Likewise.
56456         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56457         Include <string.h> unconditionally.
56458         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56459         * lib/memchr.c: Include <stdlib.h> unconditionally.
56460         * lib/memchr.c (LONG_MAX): Remove.
56461         * lib/memrchr.c (LONG_MAX): Likewise.
56462         * lib/memchr.c (__memchr): Define via a prototype.
56463         * lib/memrchr.c (__memrchr): Likewise.
56464         * lib/memcmp.c (__P): Remove, and remove all uses.
56465         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56466         Remove forward decls; no longer needed.
56467         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56468         Use types required by C89 in prototype.
56469
56470         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56471         * lib/savedir.c: Likewise.
56472         * lib/mkdir.c (free): Remove decl.
56473         * lib/rmdir.c (rmdir): Define with a prototype.
56474         * lib/savedir.c: Include savedir.h first, to test interface.
56475
56476         * lib/mktime.c (STDC_HEADERS): Remove.
56477         Include <stdlib.h>, <string.h> unconditionally.
56478
56479         * lib/modechange.c: Include <stdlib.h> unconditionally.
56480         (malloc): Remove decl.
56481
56482         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56483         (free): Remove decl.
56484
56485         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56486         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56487         (This type really should be intptr_t, but that's a C99ism.)
56488         (_obstack_memcpy): Remove: all uses changed to memcpy.
56489         Include <string.h> unconditionally.
56490         (struct obstack): Assume __STDC__ for types of members
56491         chunkfun, freefun, extra_arg.
56492         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56493         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56494         obstack_begin, obstack_specify_allocation,
56495         obstack_specify_allocation_with_arg, obstack_chunkfun,
56496         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56497         Remove unprototyped decls and the macros that use them.
56498         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56499         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56500         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56501         (defined __STDC__ && __STDC__)]:
56502         Remove nonprototyped code.
56503         Include <stdlib.h> unconditionally.
56504         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56505         _obstack_allocated_p, _obstack_free, obstack_free,
56506         _obstack_memory_used, print_and_abort):
56507         Define using prototypes.
56508         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56509         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56510         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56511         obstack_next_free, obstack_object_size, obstack_room) [0]:
56512         Remove unused, unprototyped code.
56513
56514         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56515
56516         * lib/physmem.c (physmem_total, physmem_available, main): Define
56517         with prototypes.
56518
56519         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56520         (main): Define with a prototype.
56521
56522         * lib/posixver.c (getenv): Remove decl.
56523
56524         * lib/putenv.c (malloc): Returns void *, not char *.
56525         Include <string.h> unconditionally.
56526         (strchr, memcpy, NULL): Do not define.
56527
56528         * lib/readtokens.c: Include readtokens.h first, to test interface.
56529         Include <stdlib.h>, <string.h> unconditionally.
56530         (init_tokenbuffer): Define with a prototype.
56531
56532         * lib/regex.c (PARAMS): Remove.  All uses removed.
56533         All uses of _RE_ARGS removed, too.
56534         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56535         unconditionally.
56536         (bzero): Assume memset exists.
56537         (memcmp, memcpy, NULL): Remove.
56538         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56539         char, or assignments to local vars of type signed char.
56540         (init_syntax_once, PREFIX(extract_number_and_incr),
56541         PREFIX(print_partial_compiled_pattern),
56542         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56543         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56544         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56545         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56546         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56547         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56548         wcs_compile_range, byte_compile_range, truncate_wchar,
56549         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56550         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56551         count_mbs_length, wcs_re_match_2_internal,
56552         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56553         PREFIX(alt_match_null_string_p),
56554         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56555         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56556         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56557         now-unnecessary declaration, if any.
56558         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56559         regcomp, regexec):
56560         Remove now-unnecessary casts among pointer types.
56561         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56562
56563         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56564         (free): Remove decl.
56565
56566         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56567
56568         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56569         (free): Remove decl.
56570
56571         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56572         * lib/xgetcwd.c: Likewise.
56573
56574         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56575         (free): Remove decl.
56576
56577         * lib/strchrnul.c (strchrnul): Define with a prototype.
56578         Fix bug: c_in was not converted to char before searching.
56579
56580         The following changes are not K&R related:
56581
56582         * lib/group-member.h: Include <sys/types.h>, so that this file is
56583         self-contained.
56584         * lib/makepath.h: Likewise.
56585
56586         * lib/getusershell.c (readname, default_index, line_size, readname):
56587         Use size_t, not int, for sizes.
56588         (readname): If the size overflows, report an error instead of
56589         looping forever.
56590
56591 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56592
56593         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56594         libc.
56595
56596 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56597
56598         * README: New section: portability guidelines.
56599
56600 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56601
56602         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56603         C89 spec.
56604
56605 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56606
56607         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56608
56609 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56610
56611         Assume C89 or better; remove K&R cruft.
56612         A few of these changes were first proposed by Derek Robert Price
56613         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56614
56615         * lib/addext.c: Include <string.h> unconditionally.
56616         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56617         Don't declare getenv or malloc.
56618
56619         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56620         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56621         (NULL): Remove.
56622         (find_stack_direction, alloca): Use prototypes.
56623
56624         * lib/atexit.c (atexit): Define using a prototype.
56625
56626         * lib/basename.c, dirname.c, stripslash.c:
56627         Include <string.h> unconditionally.
56628
56629         * lib/bcopy.c: Include <stddef.h>.
56630         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56631
56632         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56633
56634         * lib/error.h (error, error_at_line, error_print_progname)
56635         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56636         * lib/error.c: Include error.h first, to check interface.
56637         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56638         (VA_START): Remove; all uses changeed to va_start.
56639         (exit, strerror): Remove decls.
56640         (error_print_progname): Prototype uncondionally.
56641         Don't include <errno.h>; no longer needed.
56642         (private_strerror): Remove.
56643         (error_tail): Always define.
56644         (error, error_at_line): Assume C89 or better; always use prototypes.
56645         * lib/fatal.c: Include "fatal.h" first, to test interface.
56646         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56647         (VA_START): Remove; all uses changed to va_start.
56648         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56649         this case.
56650         (exit): Remove decl.
56651         (fatal): Prototype unconditionally.  Assume va_start works.
56652         Abort at end, to pacify gcc.
56653
56654         * lib/euidaccess.c (main): Define with a prototype.
56655
56656         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56657
56658         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56659
56660         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56661         prototypes.
56662         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56663         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56664         (getenv): Remove decl.
56665         (fnmatch): Define using a prototype.
56666         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56667         (FCT): Define using a prototype.
56668
56669         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56670
56671         * lib/gethostname.c: Include <stddef.h>.
56672         (gethostname): Define with prototype.  Length is size_t, not int.
56673
56674 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56675
56676         Assume C89 or better; remove K&R cruft.
56677         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56678         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56679         string.h, getenv, malloc.
56680         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56681         headers.
56682         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56683         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56684         do not check for strerror.
56685         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56686         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56687         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56688         do not check for doprnt or vprintf.
56689         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56690         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56691
56692 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56693
56694         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56695         getversion.c should have been removed then, but was accidentally
56696         preserved.
56697
56698         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56699         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56700
56701 2003-09-08  Karl Berry  <karl@gnu.org>
56702
56703         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56704                 config, forget about prep.
56705
56706         * config/depcomp, missing: update from automake.
56707
56708 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56709
56710         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56711         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56712
56713 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56714
56715         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56716         copy_tm_result.  Bug reported by Simon Josefsson in
56717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56718
56719 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56720
56721         * m4/time_r.m4: New file.
56722         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56724         is. Check for timegm declaration.
56725         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56726         Do not check for gmtime_r.
56727         Replace mktime if __mktime_internal does not exist and if mktime
56728         hasn't been replaced already.
56729
56730 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56731
56732         * lib/time_r.c, lib/time_r.h: New files.
56733
56734         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56735         __localtime_r.
56736         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56737         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56738
56739         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56740         __gmtime_r.
56741         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56742         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56743         Include <time_r.h>.
56744
56745         * lib/timegm.c: Switch to glibc implementation, with the following
56746         changes:
56747         [defined HAVE_CONFIG_H]: Include <config.h>.
56748         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56749         (__mktime_internal) [!defined _LIBC]: New decl.
56750         (__gmtime_r) [!defined _LIBC]: New macro and function.
56751         (timegm): Use a prototype, since gnulib assumes C89.
56752         Do not bother declaring tmp to be const, as it's not really usefu.
56753         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56754         (timegm): Declare only if HAVE_DECL_TIMEGM.
56755
56756 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56757
56758         * MODULES.html.sh (func_all_modules): Add time_r.
56759         * modules/time_r: New file.
56760         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56761         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56762
56763 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56764
56765         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56766         Bug reported by Lute Kamstra in
56767         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56768
56769         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56770         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56771         course with correspondingly smaller numbers for tomorrow and
56772         yesterday.  From Tadayoshi Funaba.  Originally installed into
56773         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56774         coreutils merge?).
56775
56776 2003-08-31  Simon Josefsson  <jas@extundo.com>
56777
56778         * modules/timegm: New file.
56779         * MODULES.html.sh (func_all_modules): Add timegm.
56780
56781 2003-08-31  Simon Josefsson  <jas@extundo.com>
56782
56783         * m4/timegm.m4: New file.
56784
56785 2003-08-31  Simon Josefsson  <jas@extundo.com>
56786
56787         * lib/timegm.h: New file.
56788         * lib/timegm.c: New file.  Based on
56789         wget-1.8.2/src/http.c:mktime_from_utc.
56790
56791 2003-08-31  Karl Berry  <karl@gnu.org>
56792
56793         * lib/argp.h: update from libc.
56794
56795 2003-08-28  Bruno Haible  <bruno@clisp.org>
56796
56797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56798         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56799         followed by '#define fnmatch fnmatch_posix' gives an error.
56800
56801 2003-08-28  Bruno Haible  <bruno@clisp.org>
56802
56803         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56804         warning on QNX, which defines O_BINARY to 000000.
56805
56806 2003-08-27  Jim Meyering  <jim@meyering.net>
56807
56808         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56809         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56810         would fail after 32.  Reported by Danny Levinson.  Details here:
56811         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56812
56813 2003-08-24  Bruno Haible  <bruno@clisp.org>
56814
56815         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56816         MSVC7 <stdio.h> is included later.
56817
56818 2003-08-22  Simon Josefsson  <jas@extundo.com>
56819
56820         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56821
56822 2003-08-20  Karl Berry  <karl@gnu.org>
56823
56824         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56825
56826 2003-08-20  Bruno Haible  <bruno@clisp.org>
56827
56828         * modules/progname: New file.
56829         * MODULES.html.sh (func_all_modules): Add progname.
56830
56831 2003-08-20  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/progname.h: New file, from GNU gettext.
56834         * lib/progname.c: New file, from GNU gettext.
56835         * lib/progreloc.c: New file, from GNU gettext.
56836
56837 2003-08-19  Jim Meyering  <jim@meyering.net>
56838
56839         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56840         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56841
56842 2003-08-19  Bruno Haible  <bruno@clisp.org>
56843
56844         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56845         more.
56846
56847 2003-08-19  Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/xstrdup.c: Assume <string.h> exists.
56850
56851 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56852
56853         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56854         in makefile rules.
56855
56856 2003-08-18  Jim Meyering  <jim@meyering.net>
56857
56858         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56859         * m4/lib-ld.m4: Likewise.
56860
56861 2003-08-18  Jim Meyering  <jim@meyering.net>
56862
56863         * lib/setenv.h: Indent nested cpp directive.
56864         * lib/vasnprintf.c: Remove trailing blanks.
56865
56866 2003-08-17  Simon Josefsson  <jas@extundo.com>
56867
56868         * modules/xstrndup: New file.
56869         * MODULES.html.sh (func_all_modules): Add xstrndup.
56870
56871 2003-08-17  Simon Josefsson  <jas@extundo.com>
56872
56873         * modules/argp: Fix autoconf macro name. Add more dependencies.
56874
56875 2003-08-17  Simon Josefsson  <jas@extundo.com>
56876
56877         * m4/xstrndup.m4: New file.
56878
56879 2003-08-17  Simon Josefsson  <jas@extundo.com>
56880
56881         * m4/argp.m4: New file.
56882
56883 2003-08-17  Simon Josefsson  <jas@extundo.com>
56884             Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/xstrndup.h: New file.
56887         * lib/xstrndup.c: New file.
56888
56889 2003-08-17  Bruno Haible  <bruno@clisp.org>
56890
56891         * modules/strndup (Files, Include): Add lib/strndup.h.
56892
56893 2003-08-17  Bruno Haible  <bruno@clisp.org>
56894
56895         * modules/euidaccess (Files): Add lib/euidaccess.h.
56896
56897 2003-08-17  Bruno Haible  <bruno@clisp.org>
56898
56899         * lib/strndup.h: New file.
56900
56901 2003-08-17  Bruno Haible  <bruno@clisp.org>
56902
56903         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56904         like AC_GNU_SOURCE.
56905         * modules/extensions (configure.ac): Comment out the invocation of
56906         gl_USE_SYSTEM_EXTENSIONS.
56907
56908 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56909
56910         Merges from coreutils, etc.
56911         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56912         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56913         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56914         fixing a typo.
56915         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56916         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56917
56918 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56919
56920         Document merge from coreutils.
56921         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56922         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56923         * modules/utime: Add m4/utimes-null.m4.
56924
56925 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56926
56927         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56928         space, undoing this 2003-08-12 change:
56929         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56930
56931 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56932
56933         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56934         strtoul.c from libc, undoing this 2003-08-12 change:
56935         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56936
56937 2003-08-16  Jim Meyering  <jim@meyering.net>
56938
56939         Merges from coreutils.
56940         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56941         prefix.  Adjust cache variables similarly.  Create 500 rather than
56942         just 300 files, to exercise bug on Darwin6.5, too.
56943         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56944         $missing_dir.
56945         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56946         AM_SYS_POSIX_TERMIOS.
56947         Reported by mkc@mathdogs.com.
56948         Also change use of $am_cv_sys_posix_termios
56949         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56950         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56951         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56952         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56953         in /proc/mounts until it finds one with matching device number.  This
56954         is unnecessary when the FILE argument *is* a mount point.  No stat call
56955         is necessary in that case.  So, disable the statvfs-testing code on
56956         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56957         as RedHat bug# 84846.
56958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56959         to 1MB, so as not to render systems with no stack size limit (e.g.,
56960         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56961         Include <unistd.h>.  On some systems,
56962         it is required for the definition of _SC_PAGESIZE.
56963
56964 2003-08-16  Jim Meyering  <jim@meyering.net>
56965
56966         Merge from coreutils.
56967         * lib/xstrtoimax.c: #else #if -> #elif.
56968         * lib/xstrtoumax.c: Likewise.
56969
56970 2003-08-16  Jim Meyering  <jim@meyering.net>
56971
56972         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56973         * m4/utimes.m4: Removed.
56974         * m4/utimes-null.m4: Renamed from utimes.m4.
56975
56976         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56977         to 1MB, so as not to render systems with no stack size limit (e.g.,
56978         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56979         Include <unistd.h>.  On some systems,
56980         it is required for the definition of _SC_PAGESIZE.
56981
56982 2003-08-16  Jim Meyering  <jim@meyering.net>
56983         and Paul Eggert  <eggert@cs.ucla.edu>
56984
56985         Merges from coreutils, etc.
56986
56987         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56988         using the latest version from cvs.  This avoids problems with #line
56989         directives using a vendor (Sun) compiler.
56990         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56991         Don't set GETGROUPS_LIB here; now it's
56992         done via getgroups.m4's wrapper function.
56993         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56994         rather than just in sh-util/configure.in, so that the
56995         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56996         same.
56997         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56998         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56999         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57000         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57001         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57002         Remove code that is now done by the newly-required macros.
57003         Append $(EXEEXT) to DF_PROG.
57004         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57005         Do not invoke or require the following here,
57006         since prereq.m4 or some gnulib .m4 now does this for us:
57007         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57008         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57009         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57010         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57011         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57012         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57013         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57014         AC_FUNC_OBSTACK.
57015         Do not replace the following functions, as this is now the job
57016         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57017         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57018         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57019         atexit getpass, strdup, getpagesize.
57020         Replace 'raise'.
57021         Do not check for the following functions, as this is now the job
57022         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57023         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57024         setregid.
57025         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57026         Check for sys/sysctl.h.
57027         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57028         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57029         of checking for ssize_t ourselves.
57030
57031         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57032         Require every macro that gnulib/modules/* suggests for us.
57033         (jm_PREREQ_ADDEXT): New macro.
57034         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57035         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57036
57037         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57038         (gl_PHYSMEM): Use it.
57039         Also check for `table' function.
57040         Check for new headers and functions.
57041         Add check for sys/sysmp.h.
57042         With suggestions from Kaveh Ghazi.
57043         Ignore headers that are present but cannot be compiled.  This
57044         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57045         C 5.4.
57046
57047 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57048
57049         Document merge from coreutils.
57050         * modules/userspec: Depend on posixver.
57051         * modules/strftime: Depend on tzset.
57052
57053 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57054
57055         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57056         rather than tab, after '#' in shell-script copyright notices.
57057         Suggested by Bruno Haible.
57058
57059 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57060
57061         * config/srclist-update: Use three spaces, rather than tab, after '#'
57062         in shell-script copyright notices.  Suggested by Bruno Haible.
57063         Remove unnecessary parenthesization in regular expression.
57064
57065 2003-08-15  Jim Meyering  <jim@meyering.net>
57066
57067         Merge from coreutils.
57068         * lib/xgethostname.c: Include <stdlib.h>.
57069         (xghostname): Don't exit for anything other than memory-related
57070         failure; just return NULL.
57071         * lib/userspec.c: Include "posixver.h".
57072         (parse_user_spec): Accept `.' as a separator only
57073         in pre-POSIX-200112 mode.
57074         * lib/strtoimax.c: Use #elif rather than #else #if.
57075         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57076         Remove function, now that we can rely on a working tzset function.
57077         [!_LIBC]: Ensure that the required autoconf test has been run.
57078         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57079         Use underlying_strftime for %r.
57080         * lib/sha.c: Merge in some clean-up and optimization changes from
57081         glibc.
57082         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57083         Ensure that it is a multiple of 64.
57084         Rearrange loop exit tests so as to avoid performing an
57085         additional fread after encountering an error or EOF.
57086         * lib/realloc.c: Update copyright date.
57087
57088 2003-08-15  Jim Meyering  <jim@meyering.net>
57089         and Paul Eggert  <eggert@twinsun.com>
57090
57091         Merge from coreutils.
57092         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57093         member but strut utmpx does not.  Needed for AIX 4.3.3.
57094         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57095
57096 2003-08-15  Jim Meyering  <jim@meyering.net>
57097         and Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         Merges from coreutils, etc.
57100         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57101         Require gl_FUNC_TZSET_CLOBBER.
57102         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57103         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57104         members.
57105
57106 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57107
57108         Help the merge from coreutils.
57109         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57110         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57111         * m4/tzset.m4: Use it too.
57112
57113 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57114
57115         * modules/tzset: New file.
57116
57117 2003-08-14  Jim Meyering  <jim@meyering.net>
57118
57119         Merges from coreutils.
57120         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57121         variable names, rather than @FNMATCH_H@.
57122         * modules/alloca: Likewise for $(ALLOCA_H).
57123
57124         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57125         the three copies of the literal target, `fnmatch.h'.
57126         * modules/alloca (alloca.h): Likewise.
57127
57128 2003-08-14  Jim Meyering  <jim@meyering.net>
57129
57130         Merge from coreutils.
57131         * m4/tzset.m4: New file.
57132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57133         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57134         otherwise, AIX 5.1 systems would end up using the latter.
57135         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57136         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57137         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57138         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57139
57140 2003-08-14  Jim Meyering  <jim@meyering.net>
57141
57142         Merge from coreutils.
57143         * lib/obstack.h: Whitespace changes.
57144         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57145         and xcalloc return values.
57146         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57147         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57148         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57149         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57150         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57151         error from mntctl.
57152         Use mntctl's return value to drive the entry-processing loop, since
57153         we can't rely on the value of the vmt_length member in the last
57154         entry.  On some systems doing so could result in exhausting
57155         virtual memory.  Based in part on a patch from Mike Jetzer.
57156
57157 2003-08-14  Jim Meyering  <jim@meyering.net>
57158         and Paul Eggert  <eggert@twinsun.com>
57159
57160         Merges from coreutils, plus other fixes.
57161         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57162         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57163         for credits and details.  Thanks to Kaveh Ghazi for helping
57164         to keep these files in sync.
57165         (ARRAY_SIZE): Define it.
57166         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57167         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57168         (memcasecmp): Don't assume size_t fits in unsigned int.
57169         Remove casts and duplicate code.
57170         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57171         (memcpy): Remove definition.
57172         Merge in some clean-up and optimization changes from glibc.
57173         [BLOCKSIZE]: Move definition to top of file.
57174         Ensure that it is a multiple of 64.
57175         Rearrange loop exit tests so as to avoid performing an
57176         additional fread after encountering an error or EOF.
57177         * lib/md5.h (md5_uintptr): Define.
57178         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57179         return to the initial working directory.  Preserve errno
57180         for caller.
57181         * lib/idcache.c: Include "xalloc.h".
57182         (xmalloc, xrealloc): Remove decls.
57183         (getuser): Remove casts no longer required in C89.
57184         * lib/human.c: Include stdio.h, for sprintf.
57185         * lib/group-member.c: Include "xalloc.h".
57186         (xmalloc, xrealloc): Remove decls.
57187         (get_group_info): Remove casts no longer required in C89.
57188         * lib/getusershell.c (readname): Remove casts no longer required in
57189         C89.
57190         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57191         * lib/getline.c: Whitespace fix, from coreutils.
57192
57193 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57194
57195         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57196         Check for isascii.
57197
57198         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57199         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57200         Undo previous (whitespace-only) change.
57201
57202 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57203
57204         * lib/exclude.c: Include <ctype.h>
57205         (IN_CTYPE_DOMAIN): New macro.
57206         (is_space): New fn.
57207         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57208         and empty lines.
57209
57210         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57211         Undo previous (whitespace-only) change.
57212
57213 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57214
57215         * config/srclist-update: Change update back to the old behavior,
57216         leaving whitespace alone.  Use one 'sed' command rather than a
57217         pipeline.
57218         (fixlicense): Now a variable, not a function.
57219         (remove_trailing_blanks): Remove.
57220         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57221         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57222         Undo previous (whitespace-only) change.
57223
57224 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57225
57226         Merge from coreutils.
57227         * modules/euidaccess: Add lib_SOURCES, include for new
57228         file euidaccess.h
57229
57230 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57231
57232         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57233         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57234         Normalize leading white space and remove trailing white space.
57235
57236         Merge from coreutils
57237         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57238
57239         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57240         0.12.1.  These files are now being upgraded automatically by
57241         ../config/srclist-update.
57242
57243 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57244
57245         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57246         Normalize leading white space and remove trailing white space.
57247         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57248         notice, as per ../config/srclist-update.
57249
57250         Merge from coreutils.
57251         * lib/euidaccess.h: New file.
57252         * lib/euidaccess.c: Include it.
57253         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57254         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57255         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57256
57257 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57258
57259         * config/srclist-update: Add copyright notice.
57260         (remove_id_lines, remove_trailing_blanks): New constants.
57261         (fixfile): Use them to normalize spacing a bit in copied files.
57262         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57263         Normalize leading white space and remove trailing white space.
57264
57265         * config/texinfo.tex: Sync with texinfo.
57266
57267         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57268         strtoul.c from libc, to merge coreutils whitespace changes.
57269
57270         * config/srclist.txt: Get the following m4 files from gettext:
57271         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57272         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57273         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57274         wint_t.m4.
57275
57276 2003-08-12  Karl Berry  <karl@gnu.org>
57277
57278         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57279         been made.
57280
57281 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57282
57283         * modules/gnu-source, m4/gnu-source.m4:
57284         Remove; we're assuming Autoconf 2.54 or later now.
57285         Suggested by Bruno Haible.
57286         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57287
57288 2003-08-11  Bruno Haible  <bruno@clisp.org>
57289
57290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57291
57292 2003-08-11  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57295         (vasnprintf): Use it instead of wcslen.
57296
57297 2003-08-11  Bruno Haible  <bruno@clisp.org>
57298
57299         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57300         value to ensure that _Bool promotes to int. Use #define for _Bool when
57301         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57302
57303 2003-08-10  Karl Berry  <karl@gnu.org>
57304
57305         * lib/regex.h: update from libc (whitespace fix).
57306
57307 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57308
57309         Merge some files from coreutils.  These changes were
57310         originally made by Jim Meyering.
57311         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57312         many older Unixes require this.
57313         * lib/alloca.c (alloca): Remove cast to argument of free;
57314         no longer needed in C89.
57315         * lib/alloca_.h, regex.h: Fix white space to match
57316         what GNU indent does.
57317
57318 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57319
57320         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57321         apparently Emacs's Unicode mode got confused before my 2003-08-05
57322         checkin.
57323
57324 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57325
57326         * m4/extensions.m4: New file.
57327         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57328         Require gl_USE_SYSTEM_EXTENSIONS.
57329         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57330         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57331
57332 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57333
57334         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57335         * modules/extensions, modules/gnu-source: New files.
57336         * modules/timespec, modules/unlocked-io: Depend on extensions.
57337
57338 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57339
57340         * modules/restrict: New file.
57341         * MODULES.html.sh (func_all_modules): Add restrict.
57342         * modules/regex: Depend on restrict.
57343
57344 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57345
57346         * m4/restrict.m4: New file.
57347         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57348
57349 2003-08-07  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57352         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57353
57354 2003-08-07  Bruno Haible  <bruno@clisp.org>
57355
57356         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57357         makes the module 'getndelim2' compatible with the module 'getline'.
57358
57359 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57360
57361         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57362         byte with "\201" to avoid glitches when editing that source file
57363         with multi-gnome-terminal.
57364
57365 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57366
57367         * lib/bumpalloc.h: Remove.
57368
57369 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57370
57371         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57372         * modules/bumpalloc: Remove.
57373
57374 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57375
57376         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57377         GNU coding style.
57378
57379         Merge from coreutils.
57380         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57381         1. From glibc.
57382         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57383         from Karl Berry, implemented by Jim Meyering.
57384         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57385         from Dmitry V. Levin.
57386         Remove anachronistic cast of xrealloc.
57387         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57388         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57389         type. Otherwise, it wouldn't compile with at least /bin/cc on
57390         ymp-cray-unicos9.0.2.X.
57391         Combine two mostly-identical uses of alloca into one.
57392         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57393
57394 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57395
57396         [From Emacs.]
57397
57398         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57399         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57400         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57401         obsolete NLIST_NAME_UNION.
57402         [__GNU__]: Undef BSD and FSCALE.
57403         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57404
57405 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57406
57407         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57408         an enum type, so that it's guaranteed to promote to int.  See:
57409         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57410
57411 2003-08-03  Karl Berry  <karl@gnu.org>
57412
57413         * config/depcomp: update from automake.
57414
57415 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57416
57417         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57418         (strerror): Don't assume that a printable int fits in 14 bytes.
57419
57420 2003-07-31  Bruno Haible  <bruno@clisp.org>
57421
57422         * modules/getpass-gnu: New file.
57423         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57424
57425 2003-07-31  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57428
57429 2003-07-24  Karl Berry  <karl@gnu.org>
57430
57431         * config/missing: update from automake.
57432
57433 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57434             Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57437         * lib/getline.c (getline, getdelim): Likewise.
57438         Remove _GNU_SOURCE define; now it's defined in config.h through
57439         m4/getline.m4.
57440
57441 2003-07-23  Karl Berry  <karl@gnu.org>
57442
57443         * config/config.sub: update from prep.
57444
57445 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57446
57447         * modules/xalloc (Depends-on): Add exitfail.
57448         * modules/xmemcoll: Likewise.
57449
57450 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57451
57452         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57453         over-parenthesization in macros.
57454
57455         Sync with coreutils.
57456
57457         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57458         required by C99.
57459
57460         Use `exit_failure' for xalloc and xmemcoll instead of their own
57461         private exit-failure variables.
57462         * lib/xalloc.h (xalloc_exit_failure): Remove.
57463         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57464         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57465         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57466         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57467         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57468
57469 2003-07-20  Jim Meyering  <jim@meyering.net>
57470
57471         * modules/closeout (Depends-on): Add exitfail.
57472         Suggestion from Bruno Haible.
57473
57474 2003-07-19  Karl Berry  <karl@gnu.org>
57475
57476         * config/config.sub: update from prep.
57477
57478 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57479
57480         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57481         Remove.
57482         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57483         to test that it can stand by itself.  Include "exitfail.h".
57484         Clients should set exit_failure instead.
57485         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57486
57487 2003-07-18  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/getndelim2: New file.
57490         * modules/getline: Share files with module getndelim2.
57491         * modules/getnline: Depend on getndelim2 instead of sharing files with
57492         it. Add getnline.c to lib_SOURCES.
57493         * MODULES.html.sh (func_all_modules): Add getndelim2.
57494
57495 2003-07-18  Bruno Haible  <bruno@clisp.org>
57496
57497         * m4/getndelim2.m4: New file.
57498         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57499         invoke gl_PREREQ_GETNDELIM2.
57500         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57501         gl_PREREQ_GETNDELIM2.
57502         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57503         gl_GETNDELIM2.
57504
57505 2003-07-18  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/getndelim2.h: New file.
57508         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57509         getndelim2.h.
57510         (getndelim2): Make non-static. Change return type to ssize_t.
57511         * lib/getline.h: Change argument names.
57512         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57513         * lib/getnline.c: Include getndelim2.h.
57514
57515 2003-07-18  Andreas Schwab  <schwab@suse.de>
57516
57517         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57518
57519 2003-07-17  Karl Berry  <karl@gnu.org>
57520
57521         * config/config.sub: update from prep.
57522
57523 2003-07-17  Bruno Haible  <bruno@clisp.org>
57524
57525         * modules/getnline: New file.
57526         * modules/getline: Add lib/getndelim2.c to source file list.
57527         * MODULES.html.sh (func_all_modules): Add getnline.
57528
57529 2003-07-17  Bruno Haible  <bruno@clisp.org>
57530
57531         * m4/getnline.m4: New file.
57532
57533 2003-07-17  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/Makefile.am.in: Remove file.
57536         * m4/Makefile.am: Remove file.
57537         * m4/Makefile.in: Remove file.
57538
57539 2003-07-17  Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/getnline.h: New file.
57542         * lib/getnline.c: New file.
57543         * lib/getndelim2.c: New file, extracted from getline.c.
57544         (getndelim2): Renamed from getdelim2, with added nmax argument.
57545         * lib/getline.c: Include getndelim2.c.
57546         (getdelim2): Moved out to getndelim2.c.
57547         (getline, getdelim): Update.
57548
57549 2003-07-17  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/Makefile.am: Remove file.
57552         * lib/Makefile.in: Remove file.
57553
57554 2003-07-17  Bruno Haible  <bruno@clisp.org>
57555
57556         * configure.in: Remove file.
57557         * Makefile.in: Remove file.
57558
57559 2003-07-17  Bruno Haible  <bruno@clisp.org>
57560
57561         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57562
57563 2003-07-16  Karl Berry  <karl@gnu.org>
57564
57565         * config/srclist-update: was running fixlicense twice, which caused
57566                 texinfo.tex to be nullified for some reason.  Simplify,
57567                 $gplsrc is no longer needed as far as I can see?
57568
57569 2003-07-16  Jim Meyering  <jim@meyering.net>
57570
57571         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57572
57573 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57574
57575         * config/srclist.txt: Get the following files from gettext-runtime/intl
57576         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57577         ref-del.sin.  From Bruno Haible.
57578         * config/srclist-update (fixfile): Change grep pattern again, since the
57579         previous fix didn't work (there was another trailing $).  Use
57580         '[$]' to escape the $s.
57581
57582 2003-07-15  Karl Berry  <karl@gnu.org>
57583
57584         * lib/vasnprintf.c: update from gettext.
57585
57586 2003-07-15  Karl Berry  <karl@gnu.org>
57587
57588         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57589         gets expanded when surrounded by '$'.
57590
57591 2003-07-15  Jim Meyering  <jim@meyering.net>
57592
57593         * modules/save-cwd: Don't depend on error.  From Derek Price.
57594
57595 2003-07-15  Jim Meyering  <jim@meyering.net>
57596
57597         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57598
57599 2003-07-14  Simon Josefsson  <jas@extundo.com>
57600
57601         * modules/mempcpy: New file.
57602         * MODULES.html.sh (func_all_modules): Add mempcpy.
57603
57604 2003-07-14  Simon Josefsson  <jas@extundo.com>
57605
57606         * m4/mempcpy.m4: New file.
57607
57608 2003-07-14  Simon Josefsson  <jas@extundo.com>
57609
57610         * lib/mempcpy.h: New file.
57611         * lib/mempcpy.c: New file.
57612
57613 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57614
57615         * modules/getdate, modules/posixtm: Depend on mktime.
57616
57617 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57618
57619         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57620         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57621         unicodeio.c, unicodeio.h, unlocked-io.h:
57622         Switch from LGPL to GPL.
57623
57624 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57625
57626         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57627         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57628         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57629         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57630         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57631         updated automatically by ../config/srclist-update.  This changes
57632         their license from LPGL to GPL.
57633
57634 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57635
57636         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57637         assumed to refer to the root of the most recent stable gettext version.
57638         * config/srclistvars.sh: Add defaults for eggert.
57639         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57640         Match "This program" as well as "The program".  This is needed
57641         for gettext.
57642
57643 2003-07-14  Jim Meyering  <jim@meyering.net>
57644
57645         Don't emit diagnostics.  Let callers do that.
57646         * lib/save-cwd.c: Don't include "error.h".
57647         (save_cwd): Don't call error.  Ensure that errno is valid
57648         when returning nonzero.
57649
57650         * lib/save-cwd.h (restore_cwd): Update prototype.
57651         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57652         Simplify.  Don't call error upon failure.  Let callers do that.
57653         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57654         when auditing is enabled.  But don't bother updating the #if.
57655
57656 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57657
57658         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57659         it breaks C++ compilation.
57660         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57661
57662 2003-07-10  Simon Josefsson  <jas@extundo.com>
57663
57664         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57665
57666 2003-07-10  Jim Meyering  <jim@meyering.net>
57667
57668         * m4/clock_time.m4: Remove trailing blank.
57669         * m4/intmax_t.m4: Likewise.
57670
57671 2003-07-10  Jim Meyering  <jim@meyering.net>
57672
57673         * lib/vasnprintf.c: Remove trailing blanks.
57674         Make cpp indentation consistent.
57675
57676 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57677
57678         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57679         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57680         Switch from LGPL to GPL.
57681
57682 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57683
57684         * config/srclist.txt: Sort sublists.  Add
57685         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57686         that differ from gnulib for one reason or another; we'd like this list
57687         to be smaller but for now let's document what we have.
57688
57689 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57690
57691         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57692         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57693         and sweeter "eval x=$x".
57694         * config/srclist.txt: Get lib/argp* from glibc.
57695
57696 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57697
57698         * lib/mktime.c: Fix some boundary cases and remove need for floating
57699         point.
57700
57701         Issue a compile-time diagnostic if time_t is floating point, or if
57702         two's complement arithmetic is not in effect, or if arithmetic
57703         right shift does not propagate the sign.  These assumptions were
57704         all in the original code but they weren't checked.
57705
57706         (TIME_T_MIDPOINT, verify): New macros.
57707         (__isleap): Remove; it has integer overflow problems.
57708         (leapyear): New function, without those problems.
57709         (ydhms_tm_diff): Remove; splitting into two parts.
57710         (ydhms_diff): New function, containing the arithmetic part of
57711         the old ydhms_tm_diff function.  Issue a compile-time
57712         diagnostic if we are not using C99 integer division.
57713         Avoid casts when possible.
57714         (guess_time_tm): New function, containing the checking part of
57715         the old ydhms_tm_diff function.  Return the new value, rather than
57716         the difference between it and the old.  Accept a new argument T
57717         so that *T specifies the old value.  Check for overflow in the result.
57718
57719         (__mktime_internal): Use a time_t offset, not a long int offset.
57720         This undoes the 2003-06-04 change, which is no longer needed now
57721         that we have better overflow checking.
57722         (localtime_offset): Likewise.
57723
57724         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57725         and long are 64-bit but int is only 32-bit.
57726         (ydhms_diff): Use long int to store year1 and yday1.
57727         Issue a compile-time diagnostic if long int is not wide enough.
57728
57729         (__mktime_internal): Use long int to store adjusted year and yday.
57730         Use plain C rather than preprocessor commands, if that doesn't
57731         affect efficiency.
57732         Check for overflow (and try to repair) after each probe
57733         rather than checking only at the very end.  This avoids some bugs
57734         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57735         does not equal GMT offset at maximum time).
57736         Use integer to check for overflow rather than floating point; this
57737         is more portable to non-IEEE hosts, and is a tad faster.
57738         When we detect that we are oscillating between two values,
57739         don't check whether tm_isdst has the requested value, since
57740         we already know the answer.  When tm_isdst has the wrong value,
57741         use a different heuristic to find the right one, based on the
57742         extreme values actually observed in practice in tz2003a,
57743         rather than the (overly optimistic) "previous 3 calendar quarters".
57744
57745         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57746         "T const" to accommodate glibc style.
57747         (check_result): Use less-confusing report format.  "long" -> "long int.
57748         (main): Likewise.
57749         Don't loop if the iteration overflows time_t.
57750         Allow a negative step in the iteration.
57751
57752 2003-07-06  Karl Berry  <karl@gnu.org>
57753
57754         * config/depcomp: update from automake.
57755         * config/config.sub: update from prep.
57756
57757 2003-07-03  Karl Berry  <karl@gnu.org>
57758
57759         * config/config.guess: update from prep.
57760
57761 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57762
57763         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57764         xreadlink.c now includes it unconditionally.
57765
57766 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57767
57768         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57769         having it depend on HAVE_SYS_TYPES_H.
57770
57771 2003-07-01  Bruno Haible  <bruno@clisp.org>
57772
57773         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57774         <sys/types.h> should be sufficient.
57775         Reported by Paul Eggert.
57776
57777 2003-06-26  Karl Berry  <karl@gnu.org>
57778
57779         * config/depcomp: update from automake.
57780
57781 2003-06-26  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/human: Depend on module stdbool.
57784
57785 2003-06-25  Bruno Haible  <bruno@clisp.org>
57786
57787         * modules/readlink: New file.
57788         * modules/xreadlink: Depend on it.
57789         * MODULES.html.sh (func_all_modules): Add readlink.
57790
57791 2003-06-25  Bruno Haible  <bruno@clisp.org>
57792
57793         * m4/readlink.m4: New file.
57794
57795 2003-06-25  Bruno Haible  <bruno@clisp.org>
57796
57797         * lib/readlink.c: New file.
57798
57799 2003-06-22  Karl Berry  <karl@gnu.org>
57800
57801         * config/srclist.txt: update mkinstalldirs from automake.
57802         * config/mkinstalldirs: update.
57803
57804 2003-06-22  Bruno Haible  <bruno@clisp.org>
57805
57806         Portability to mingw32.
57807         * m4/ssize_t.m4: New file, from GNU gettext.
57808         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57809         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57810
57811 2003-06-22  Bruno Haible  <bruno@clisp.org>
57812
57813         * modules/safe-read: Add m4/ssize_t.m4.
57814         * modules/xreadlink: Add m4/ssize_t.m4.
57815
57816 2003-06-20  Bruno Haible  <bruno@clisp.org>
57817
57818         Assume C89, so PARAMS isn't needed.
57819         * lib/unicodeio.h (PARAMS): Remove.
57820         * lib/unicodeio.c: Don't use PARAMS.
57821
57822 2003-06-18  Karl Berry  <karl@gnu.org>
57823
57824         * config/config.{guess,sub}: update from prep.
57825
57826 2003-06-18  Jim Meyering  <jim@meyering.net>
57827
57828         Merge changes from coreutils.
57829         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57830         Remove explicit declarations of xmalloc and realloc.
57831         Include xalloc.h.
57832         (read_utmp): Remove anachronistic cast of xmalloc.
57833
57834 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57835
57836         Assume C89, so PARAMS isn't needed.
57837         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57838         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57839         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57840         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57841         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57842         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57843         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57844         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57845         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57846         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57847         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57848         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57849         no longer needed. Anyway, config.h should always be included before any
57850         other file.
57851
57852 2003-06-11  Simon Josefsson  <jas@extundo.com>
57853
57854         * modules/sysexits: New file.
57855         * MODULES.html.sh (func_all_modules): Add sysexits.
57856
57857 2003-06-11  Simon Josefsson  <jas@extundo.com>
57858
57859         * lib/sysexit_.h: New file.
57860
57861 2003-06-11  Derek Price  <derek@ximbiot.com>
57862
57863         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57864         necessary.
57865
57866 2003-06-11  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/sysexits.m4: New file.
57869
57870 2003-06-10  Simon Josefsson  <jas@extundo.com>
57871
57872         * lib/argp.h: New file, from glibc.
57873         * lib/argp-ba.c: New file, from glibc.
57874         * lib/argp-eexst.c: New file, from glibc.
57875         * lib/argp-fmtstream.c: New file, from glibc.
57876         * lib/argp-fmtstream.h: New file, from glibc.
57877         * lib/argp-fs-xinl.c: New file, from glibc.
57878         * lib/argp-help.c: New file, from glibc.
57879         * lib/argp-namefrob.h: New file, from glibc.
57880         * lib/argp-parse.c: New file, from glibc.
57881         * lib/argp-pv.c: New file, from glibc.
57882         * lib/argp-pvh.c: New file, from glibc.
57883         * lib/argp-xinl.c: New file, from glibc.
57884
57885 2003-06-10  Simon Josefsson  <jas@extundo.com>
57886
57887         * modules/strchrnul: New file.
57888
57889 2003-06-10  Simon Josefsson  <jas@extundo.com>
57890
57891         * modules/argp: New file.
57892
57893 2003-06-10  Simon Josefsson  <jas@extundo.com>
57894
57895         * m4/strchrnul.m4: New file.
57896
57897 2003-06-10  Simon Josefsson  <jas@extundo.com>
57898
57899         * lib/strchrnul.h: New file.
57900         * lib/strchrnul.c: New file.
57901
57902 2003-06-10  Bruno Haible  <bruno@clisp.org>
57903
57904         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57905
57906 2003-06-07  Karl Berry  <karl@gnu.org>
57907
57908         * config/config.{guess,sub}: update from prep.
57909
57910 2003-06-07  Jim Meyering  <jim@meyering.net>
57911
57912         * modules/strtod: Use $(...) notation, not @...@ for
57913         AC_REPLACE'd variables.
57914         * modules/localcharset: Likewise.
57915
57916 2003-06-07  Jim Meyering  <jim@meyering.net>
57917
57918         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57919         in place of my name in the copyright comment.
57920         Remove definition and uses of __P.
57921
57922         From coreutils.
57923         * lib/stat.c: Don't declare xmalloc explicitly.
57924         Instead, include "xalloc.h".
57925         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57926         xrealloc, and xcalloc return values.
57927         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57928         Improve comment.
57929         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57930
57931 2003-06-07  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57934         avoid AC_CONFIG_LINKS.
57935         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57936         fnmatch.h, to avoid AC_CONFIG_LINKS.
57937         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57938
57939 2003-06-07  Bruno Haible  <bruno@clisp.org>
57940
57941         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57942         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57943         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57944         directory.
57945         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57946         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57947         directory.
57948
57949 2003-06-06  Jim Meyering  <jim@meyering.net>
57950
57951         Merge from coreutils.
57952         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57953         Consolidate declarations and initializations of *_base* locals.
57954
57955         Merge from coreutils.
57956         This avoids a core dump on systems without GNU putenv,
57957         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57958         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57959         (unsetenv): New static function, from GNU libc.
57960         (rpl_putenv): Use it.
57961
57962         * lib/modechange.c: Remove trailing blanks.
57963
57964         Merge from coreutils.
57965         * lib/fsusage.c: Remove declaration of statfs.
57966         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57967
57968         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57969
57970 2003-06-06  Jim Meyering  <jim@meyering.net>
57971
57972         * lib/stdbool_.h: Renamed from stdbool.h.in.
57973
57974 2003-06-06  Jim Meyering  <jim@meyering.net>
57975             Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57978         Adjust Makefile.am snippet not to redirect directly to target.
57979         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57980
57981 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57982
57983         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57984         mismatch, look in future quarters as well as past.  This fixes a
57985         bug when processing fall-backwards gaps immediately after a long
57986         period of daylight-saving time.
57987
57988         * lib/mktime.c: Assume freestanding C89 or better.
57989         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57990         (__P): Remove; not used.
57991         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57992         (mktime, not_equal_tm, print_tm, check_result,
57993         main): Use prototypes.  Use const * where appropriate.
57994         (main): Fix typo in testing code that uncovered by above changes.
57995         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57996
57997 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57998
57999         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58000         locale.h, localeconv.  This merges changes from coreutils.
58001
58002         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58003         It can be removed after the next Autoconf is released.
58004         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58005         needed.
58006
58007 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58008
58009         * lib/mktime.c: Fix Debian bug 177940
58010         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58011         (localtime_offset): Now long int, not time_t, because we want it
58012         to be guaranteed to be signed.  All uses changed.
58013         (__mktime_internal): If overflow would occur when adding offset,
58014         don't add it.
58015
58016         Merge 'human' changes from coreutils.  Rewrite to support
58017         locale-specific notations like thousands separators.
58018         * lib/human.c: Simplify authorship notice.
58019         Include human.h immediately after config.h.
58020         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58021         <limits.h>: Do not include, since human.h does.
58022         (SIZE_MAX, UINTMAX_MAX): New macros.
58023         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58024         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58025         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58026         (power_letter): Renamed from suffixes.
58027         (generate_suffix_backwards): Remove.
58028         (adjust_value): Now takes int style (because of human.h changes)
58029         and long double value (for greater precision on some platforms).
58030         (group_number): New function.
58031         (human_readable): Use it.  Use integer options, not enum.
58032         Put the options before the sizes in the arg list.
58033         Support all the new options.
58034         The old human_readable function has been removed;
58035         use inttostr.h instead.
58036         (human_readable, default_block_size, humblock):
58037         Use uintmax_t, not int, for block sizes.
58038         (human_readable_inexact, block_size_types): Remove.
58039         (block_size_opts): New constant.
58040         (human_options): Renamed from human_block_size, with new signature
58041         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58042         * lib/human.h: Add copyright and authorship notice.
58043         Include <limits.h> and <stdbool.h> unconditionally.
58044         (PARAMS): Remove.  All uses removed.
58045         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58046         (enum human_inexact_style): Remove tag; now a nameless enum.
58047         (human_floor, human_ceiling, human_round_to_even): Now have
58048         values 2, 0, 1 rather than -1, 1, 0.
58049         (human_group_digits, human_suppress_point_zero, human_autoscale,
58050         human_base_1024, human_SI, human_B): New constants.
58051         (human_readable_inexact, human_block_size): Remove.
58052         (human_readable): Size args are now uintmax_t, not int.
58053         (human_options): New decl.
58054
58055         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58056         unnecessary now that we assume C89 or better.  This change
58057         imported from coreutils.
58058
58059         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58060         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58061         in the 2003-05-30 sync from glibc.
58062
58063         .h files should stand alone, but we shouldn't include <sys/types.h>
58064         if we can get away with just <stddef.h>.
58065
58066         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58067         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58068         rather than <sys/types.h>, as we merely need size_t.
58069         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58070         to get size_t.
58071         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58072         Include <stdio.h>, to get FILE.
58073         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58074         memcasecmp.h has included <stddef.h> and all we need is size_t.
58075         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58076         our interface, instead of including <sys/types.h>
58077
58078 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58079
58080         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58081         now, as glibc mktime is buggy on non-glibc systems.
58082
58083 2003-06-03  Karl Berry  <karl@gnu.org>
58084
58085         * config/config.sub: update from prep.
58086
58087 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58088
58089         [from coreutils]
58090         Fix some minor time-related bugs with POSIX time arguments.
58091         Some valid time stamps were being rejected (notably -1, and
58092         time stamps before 1900 on 64-bit hosts).  And some invalid
58093         time stamps were being accepted, e.g. September 31.
58094
58095         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58096         that we can return (time_t) -1 successfully.
58097         * lib/posixtm.c: Likewise.
58098         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58099         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58100         (t): Remove static var.
58101         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58102         of static var.  All uses changed.
58103         (year): Do not reject years before 1900; they can occur with
58104         64-bit time_t.
58105         (posix_time_parse): Do not check for out-of-range components;
58106         that is now the caller's responsibility, since our checks were
58107         only approximations.
58108         (posixtime): Use mktime to check for out-of-range components,
58109         since it knows them exactly.
58110         If mktime returns (time_t) -1, check whether an error actually occurred
58111         by invoking localtime on -1.
58112         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58113         posixtime failures better.
58114         Improve the test data (in comments only).
58115
58116 2003-06-02  Karl Berry  <karl@gnu.org>
58117
58118         * config/mkinstalldirs (version): new variable.
58119         (--version): new option.
58120         (usage): improve message.
58121
58122 2003-05-30  Karl Berry  <karl@gnu.org>
58123
58124         * lib/mktime.c: update from libc.
58125
58126 2003-05-30  Bruno Haible  <bruno@clisp.org>
58127
58128         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58129         * config/config.rpath: Upgrade to gettext-0.12.1.
58130
58131 2003-05-30  Bruno Haible  <bruno@clisp.org>
58132
58133         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58134         * m4/nls.m4: New file, from gettext-0.12.1.
58135         * m4/po.m4: New file, from gettext-0.12.1.
58136         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58137
58138 2003-05-30  Bruno Haible  <bruno@clisp.org>
58139
58140         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58141         * lib/localcharset.h: Likewise.
58142         * lib/localcharset.c: Likewise.
58143
58144 2003-05-29  Karl Berry  <karl@gnu.org>
58145
58146         * config/config.rpath: update from gettext.
58147
58148 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58149
58150         Assume the headers required for C89 freestanding compilers.
58151         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58152         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58153         * m4/human.m4 (gl_HUMAN): Likewise.
58154         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58155         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58156         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58157         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58158         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58159         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58160
58161 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58162
58163         Assume the headers required for C89 freestanding compilers.
58164         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58165         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58166         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58167         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58168         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58169         define, since <limits.h> is guaranteed to do that.
58170         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58171         * lib/exclude.c: Include <stdbool.h> unconditionally.
58172         * lib/tempname.c: Include <stddef.h> unconditionally.
58173         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58174         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58175         <stddef.h> does that.
58176         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58177         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58178         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58179         needed.
58180         * lib/xstrtol.c: Likewise.
58181         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58182         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58183
58184         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58185         warnings on some platforms.
58186
58187         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58188         arbitrarily.
58189
58190 2003-05-26  Jim Meyering  <jim@meyering.net>
58191
58192         Merge in a change from coreutils:
58193         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58194         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58195         that condition, rather than `-1' which is slightly misleading.
58196         Change the name of the cache variable to have the gl_ prefix.
58197         Prompted by a patch from Richard Dawe for DJGPP.
58198
58199 2003-05-24  Karl Berry  <karl@gnu.org>
58200
58201         * config/config.guess: update from prep.
58202
58203 2003-05-22  Karl Berry  <karl@gnu.org>
58204
58205         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58206
58207 2003-05-20  Karl Berry  <karl@gnu.org>
58208
58209         * config/config.guess: update from prep.
58210
58211 2003-05-18  Karl Berry  <karl@gnu.org>
58212
58213         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58214         might actually be set by the user.
58215
58216         * config/depcomp, install-sh, mdate-sh: update from automake.
58217
58218 2003-05-17  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58221         invalid expansion for AC_EGREP_CPP.
58222         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58223         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58224         Suggested by Akim Demaille <akim@epita.fr> in
58225         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58226
58227 2003-05-12  Jim Meyering  <jim@meyering.net>
58228
58229         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58230         the space-padded-by-default conversion specifiers, %e, %k, %l.
58231
58232 2003-05-12  Bruno Haible  <bruno@clisp.org>
58233
58234         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58235         the string is longer than 4 KB.
58236
58237 2003-05-11  Karl Berry  <karl@gnu.org>
58238
58239         * config/config.{guess,sub}: update from prep.
58240
58241 2003-05-09  Bruno Haible  <bruno@clisp.org>
58242
58243         * modules/error: Add m4/strerror_r.m4 to file list.
58244
58245 2003-05-03  Bruno Haible  <bruno@clisp.org>
58246
58247         Upgrade to Unicode-4.0.
58248         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58249         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58250         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58251         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58252         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58253         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58254         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58255         Change width of U+E0100..U+E01EF from 1 to 0.
58256
58257 2003-04-25  Jim Meyering  <jim@meyering.net>
58258
58259         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58260         of type size_t, not int.
58261
58262 2003-04-25  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/copy-file.c: Include <stddef.h>, for size_t.
58265
58266 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58267
58268         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58269         code which expansion is under static control.  Patch imported from
58270         Akim Demaille's patch to Bison; see
58271         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58272
58273 2003-04-14  Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58276
58277 2003-04-11  Jim Meyering  <jim@meyering.net>
58278
58279         Merge changes from Coreutils.
58280
58281         2003-03-22  Jim Meyering  <jim@meyering.net>
58282
58283         * lib/strftime.c (widen): Cast alloca return value to proper type.
58284
58285         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58286
58287         From GNU libc.
58288         * lib/strftime.c (my_strftime): Handle very large width
58289         specifications for numeric values correctly.  Improve checks for
58290         overflow.
58291
58292         2003-01-19  Jim Meyering  <jim@meyering.net>
58293
58294         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58295         definitions.
58296         (nl_get_alt_digit) [! defined my_strftime]: Define.
58297         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58298         _nl_get_alt_digit and _nl_get_walt_digit.
58299
58300         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58301         libc. These changes have no effect outside of _LIBC.
58302
58303 2003-04-10  Bruno Haible  <bruno@clisp.org>
58304
58305         * modules/findprog: New file.
58306         * MODULES.html.sh (func_all_modules): Add it.
58307
58308 2003-04-10  Bruno Haible  <bruno@clisp.org>
58309
58310         * m4/findprog.m4: New file.
58311         * m4/eaccess.m4: New file.
58312
58313 2003-04-10  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/findprog.h: New file, from GNU gettext.
58316         * lib/findprog.c: New file, from GNU gettext.
58317
58318 2003-04-05  Jim Meyering  <jim@meyering.net>
58319
58320         Merge changes from Coreutils.
58321
58322         * lib/exclude.h (PARAMS): Remove definition and uses.
58323         * lib/exclude.c: Remove uses of `PARAMS'.
58324
58325         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58326         Add test-cases for DOS filenames. Declare program_name.
58327         (main): Set up program_name.  Patch by Rich Dawe.
58328
58329         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58330         error from mntctl.
58331         Use mntctl's return value to drive the entry-processing loop, since
58332         we can't rely on the value of the vmt_length member in the last
58333         entry.  On some systems doing so could result in exhausting
58334         virtual memory.  Based in part on a patch from Mike Jetzer.
58335
58336 2003-04-04  Bruno Haible  <bruno@clisp.org>
58337
58338         * modules/linebreak: New file.
58339         * MODULES.html.sh (func_all_modules): Add it.
58340
58341 2003-04-04  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/linebreak.m4: New file.
58344
58345 2003-04-04  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/linebreak.h: New file, from GNU gettext.
58348         * lib/linebreak.c: New file, from GNU gettext with slight
58349         modifications.
58350         * lib/lbrkprop.h: New file, from GNU gettext.
58351
58352 2003-04-03  Bruno Haible  <bruno@clisp.org>
58353
58354         * modules/utf8-ucs4: New file.
58355         * modules/utf16-ucs4: New file.
58356         * modules/ucs4-utf8: New file.
58357         * modules/ucs4-utf16: New file.
58358         * MODULES.html.sh (func_all_modules): Add them.
58359
58360 2003-04-03  Bruno Haible  <bruno@clisp.org>
58361
58362         * m4/utf-ucs4.m4: New file.
58363         * m4/ucs4-utf.m4: New file.
58364
58365 2003-04-03  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/utf8-ucs4.h: New file, from GNU gettext.
58368         * lib/utf16-ucs4.h: New file, from GNU gettext.
58369         * lib/ucs4-utf8.h: New file, from GNU gettext.
58370         * lib/ucs4-utf16.h: New file, from GNU gettext.
58371
58372 2003-04-02  Bruno Haible  <bruno@clisp.org>
58373
58374         * modules/binary-io: New file.
58375         * MODULES.html.sh (func_all_modules): Add it.
58376
58377 2003-04-02  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/binary-io.h: New file, from GNU gettext.
58380
58381 2003-04-01  Bruno Haible  <bruno@clisp.org>
58382
58383         * modules/pathname: New file.
58384         * MODULES.html.sh (func_all_modules): Add it.
58385
58386 2003-04-01  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/pathname.h: New file, from GNU gettext.
58389         * lib/concatpath.c: New file, from GNU gettext.
58390
58391 2003-03-30  Bruno Haible  <bruno@clisp.org>
58392
58393         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58394
58395 2003-03-30  Bruno Haible  <bruno@clisp.org>
58396
58397         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58398         function chown() doesn't exist.
58399
58400 2003-03-28  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/copy-file: New file.
58403         * MODULES.html.sh (func_all_modules): Add it.
58404
58405 2003-03-28  Bruno Haible  <bruno@clisp.org>
58406
58407         * m4/copy-file.m4: New file.
58408
58409 2003-03-28  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/copy-file.h: New file, from GNU gettext.
58412         * lib/copy-file.c: New file, from GNU gettext.
58413
58414 2003-03-18  Jim Meyering  <jim@meyering.net>
58415
58416         * lib/quote.c (quote_n): Fix typo in comment.
58417
58418 2003-03-18  Bruno Haible  <bruno@clisp.org>
58419
58420         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58421         checking.
58422         * m4/onceonly_2_57.m4: Likewise.
58423
58424 2003-03-17  Bruno Haible  <bruno@clisp.org>
58425
58426         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58427         (m4_quote): Remove macro.
58428         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58429
58430 2003-03-14  Jim Meyering  <jim@meyering.net>
58431
58432         Merge changes from Coreutils.
58433         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58434         to be const, in order to avoid warnings.
58435         (obstack_room): Likewise.
58436         (obstack_empty_p): Likewise.
58437
58438 2003-03-14  Bruno Haible  <bruno@clisp.org>
58439
58440         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58441         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58442
58443 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58444
58445         Merge changes from Bison.
58446         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58447         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58448         when compiling Bison 1.875's `bitset bset = obstack_alloc
58449         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58450         * lib/hash.c: Include <stdbool.h> unconditionally.
58451
58452 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58453
58454         * m4/onceonly.m4 (m4_quote): New macro.
58455         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58456         Quote AC_FOREACH variable-expansions properly.
58457
58458 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58459
58460         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58461
58462 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58463
58464         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58465         Reported by Bruce Becker; see:
58466         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58467
58468 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58469             Bruno Haible  <bruno@clisp.org>
58470
58471         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58472         Reported by John Hughes, see
58473         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58474
58475 2003-02-20  Bruno Haible  <bruno@clisp.org>
58476
58477         * MODULES.html.sh (func_all_modules): Add poll.
58478
58479 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58480
58481         * modules/poll: New file.
58482
58483 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58484
58485         * lib/poll_.h: New file.
58486         * lib/poll.c: New file.
58487
58488 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58489
58490         * m4/poll.m4: New file.
58491
58492 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58493
58494         * modules/mathl: New file.
58495
58496 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58497
58498         * lib/mathl.h: New file.
58499         * lib/acosl.c: New file.
58500         * lib/asinl.c: New file.
58501         * lib/atanl.c: New file.
58502         * lib/ceill.c: New file.
58503         * lib/cosl.c: New file.
58504         * lib/expl.c: New file.
58505         * lib/floorl.c: New file.
58506         * lib/frexpl.c: New file.
58507         * lib/ldexpl.c: New file.
58508         * lib/logl.c: New file.
58509         * lib/sincosl.c: New file.
58510         * lib/sinl.c: New file.
58511         * lib/sqrtl.c: New file.
58512         * lib/tanl.c: New file.
58513         * lib/trigl.c: New file.
58514         * lib/trigl.h: New file.
58515
58516 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58517
58518         * m4/mathl.m4: New file.
58519
58520 2003-02-18  Bruno Haible  <bruno@clisp.org>
58521
58522         * MODULES.html.sh (func_all_modules): Add mathl.
58523
58524 2003-02-17  Bruno Haible  <bruno@clisp.org>
58525
58526         * modules/mkdtemp: New module.
58527         * MODULES.html.sh (func_all_modules): Add it.
58528
58529 2003-02-17  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58532
58533 2003-02-17  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/mkdtemp.h: New file, from GNU gettext.
58536         * lib/mkdtemp.c: New file, from GNU gettext.
58537
58538 2003-02-02  Jim Meyering  <jim@meyering.net>
58539
58540         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58541         e.g. glibc-2.2.93.
58542
58543 2003-01-31  Bruno Haible  <bruno@clisp.org>
58544
58545         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58546         'rpl_rename'.
58547         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58548         'rpl_strnlen'.
58549         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58550         'rpl_strtod'.
58551         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58552         'rpl_utime'.
58553
58554 2003-01-31  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/rename.c: #undef rename before defining rpl_rename.
58557         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58558
58559 2003-01-30  Bruno Haible  <bruno@clisp.org>
58560
58561         * modules/vasnprintf, modules/vasprintf: New modules.
58562         * MODULES.html.sh (func_all_modules): Add them.
58563
58564 2003-01-30  Bruno Haible  <bruno@clisp.org>
58565
58566         * m4/signed.m4: New file, from GNU gettext.
58567         * m4/longdouble.m4: New file, from GNU gettext.
58568         * m4/wchar_t.m4: New file, from GNU gettext.
58569         * m4/wint_t.m4: New file, from GNU gettext.
58570         * m4/vasnprintf.m4: New file.
58571         * m4/vasprintf.m4: New file.
58572
58573 2003-01-30  Bruno Haible  <bruno@clisp.org>
58574
58575         * lib/printf-args.h: New file, from GNU gettext.
58576         * lib/printf-args.c: New file, from GNU gettext.
58577         * lib/printf-parse.h: New file, from GNU gettext.
58578         * lib/printf-parse.c: New file, from GNU gettext.
58579         * lib/vasnprintf.h: New file, from GNU gettext.
58580         * lib/vasnprintf.c: New file, from GNU gettext.
58581         * lib/asnprintf.c: New file, from GNU gettext.
58582         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58583         * lib/vasprintf.c: New file, from GNU gettext.
58584         * lib/asprintf.c: New file, from GNU gettext.
58585
58586 2003-01-29  Bruno Haible  <bruno@clisp.org>
58587
58588         * modules/stpncpy: New module.
58589         * MODULES.html.sh (func_all_modules): Add it.
58590
58591 2003-01-29  Bruno Haible  <bruno@clisp.org>
58592
58593         * m4/stpncpy.m4: New file.
58594
58595 2003-01-29  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58598         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58599
58600 2003-01-28  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/c-ctype: New module.
58603         * MODULES.html.sh (func_all_modules): Add it.
58604
58605 2003-01-28  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58608         Paul Eggert.
58609         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58610         Paul Eggert.
58611
58612 2003-01-27  Bruno Haible  <bruno@clisp.org>
58613
58614         * modules/xsetenv: New module.
58615         * MODULES.html.sh (func_all_modules): Add it.
58616
58617 2003-01-27  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/xsetenv.h: New file, from GNU gettext.
58620         * lib/xsetenv.c: New file, from GNU gettext.
58621
58622 2003-01-23  Jim Meyering  <jim@meyering.net>
58623
58624         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58625         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58626
58627 2003-01-23  Bruno Haible  <bruno@clisp.org>
58628
58629         * modules/minmax: New module.
58630         * MODULES.html.sh (func_all_modules): Add it.
58631
58632 2003-01-23  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58635         Eggert.
58636
58637 2003-01-22  Bruno Haible  <bruno@clisp.org>
58638
58639         * modules/exit: New module.
58640         * MODULES.html.sh (func_all_modules): Add it.
58641
58642 2003-01-22  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/exit.h: New file, from GNU gettext.
58645
58646 2003-01-19  Bruno Haible  <bruno@clisp.org>
58647
58648         * gnulib-tool: Recognize option --extract-maintainer.
58649         (func_get_maintainer): New function.
58650         * modules/*: Add Maintainer entry.
58651
58652 2003-01-16  Jim Meyering  <jim@meyering.net>
58653
58654         * m4/regex.m4: The `regex' struct is both input and output.
58655         Initialize it before each use.  Patch by Tim Waugh.
58656
58657 2003-01-16  Bruno Haible  <bruno@clisp.org>
58658
58659         * MODULES.html.sh: Add a table of contents. Add the module name as
58660         leftmost column. Add hyperlinks.
58661
58662 2003-01-15  Bruno Haible  <bruno@clisp.org>
58663
58664         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58665
58666 2003-01-15  Bruno Haible  <bruno@clisp.org>
58667
58668         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58669         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58670         suffix.
58671
58672 2003-01-15  Bruno Haible  <bruno@clisp.org>
58673
58674         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58675
58676 2003-01-15  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58679         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58680
58681 2003-01-14  Jim Meyering  <jim@meyering.net>
58682
58683         * lib/same.c (same_name): Tweak a comment.
58684
58685 2003-01-14  Bruno Haible  <bruno@clisp.org>
58686
58687         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58688         when a string comparison is sufficient.
58689
58690 2003-01-14  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58693         'unsigned int'.
58694
58695 2003-01-14  Bruno Haible  <bruno@clisp.org>
58696
58697         * lib/hash-pjw.c: Add comment about low quality of this function.
58698
58699 2003-01-13  Bruno Haible  <bruno@clisp.org>
58700
58701         * modules/stpcpy: Distribute lib/stpcpy.h.
58702         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58703
58704 2003-01-13  Bruno Haible  <bruno@clisp.org>
58705
58706         * modules/*: Add a description.
58707         * modules/strpbrk: Fix Makefile.am snippet.
58708         * modules/strtoimax: Fix dependencies.
58709         * modules/strtoumax: Likewise.
58710
58711 2003-01-13  Bruno Haible  <bruno@clisp.org>
58712
58713         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58714         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58715         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58716
58717 2003-01-13  Bruno Haible  <bruno@clisp.org>
58718
58719         * gnulib-tool (func_create_testdir): Store config/* files in the main
58720         directory.
58721         * config.rpath: Move to ...
58722         * config/config.rpath: ... here.
58723         * modules/gettext: Contains config/config.rpath, not config.rpath.
58724         * modules/iconv: Likewise.
58725
58726 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58727
58728         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58729         to avoid collisions with libcurses and libreadline.
58730
58731         * m4/getstr.m4: Remove.
58732         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58733
58734 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58735
58736         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58737         to avoid collisions with libcurses and libreadline.
58738
58739         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58740         * lib/getstr.h, getstr.c: Remove.
58741         * lib/getline.c: Include "getline.h", to check interface.
58742         Move body of old getstr.c here: this defines MIN_CHUNK and
58743         declares getdelim2, which is renamed from getstr.
58744         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58745
58746         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58747         All uses changed.
58748         * lib/linebuffer.h: Likewise.
58749         (readline): Remove backward-compatibility macro.
58750
58751 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58752
58753         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58754         to avoid collisions with libcurses and libreadline.
58755         * getstr: Remove.
58756         * MODULES.html.sh: Remove getstr.
58757         * modules/getline: Depend on unlocked-io, not getstr.
58758
58759 2003-01-12  Jim Meyering  <jim@meyering.net>
58760
58761         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58762
58763 2003-01-10  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/alloca: Change Makefile.am requirements. Simplify Include
58766         requirements. Add lib/alloca_.h to file list.
58767
58768 2003-01-10  Bruno Haible  <bruno@clisp.org>
58769
58770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58771
58772 2003-01-10  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/alloca_.h: New file.
58775         * lib/getdate.y: Unconditionally include alloca.h.
58776         * lib/makepath.c: Likewise.
58777         * lib/setenv.c: Likewise.
58778         * lib/userspec.c: Likewise.
58779
58780 2003-01-09  Karl Berry  <karl@gnu.org>
58781
58782         * MODULES.html.sh: include `dirname $0` in PATH, to find
58783         gnulib-tool.
58784
58785 2003-01-09  Bruno Haible  <bruno@clisp.org>
58786
58787         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58788         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58789
58790 2003-01-09  Bruno Haible  <bruno@clisp.org>
58791
58792         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58793
58794 2003-01-09  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/stdbool.h.in: New file.
58797
58798 2003-01-09  Bruno Haible  <bruno@clisp.org>
58799
58800         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58801         * MODULES.html.sh: Likewise.
58802
58803 2003-01-08  Jim Meyering  <jim@meyering.net>
58804
58805         * lib/full-write.c: Undefine and define-away `const' after inclusion
58806         of errno.h, not before.  Suggestion from Bruno Haible.
58807
58808 2003-01-08  Bruno Haible  <bruno@clisp.org>
58809
58810         * modules/full-read: Depend on full-write.
58811
58812 2003-01-08  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/safe-read.c: Include specification header first, to ensure its
58815         selfcontainedness.
58816         * lib/full-write.c: Likewise.
58817
58818 2003-01-07  Jim Meyering  <jim@meyering.net>
58819
58820         * lib/full-write.c: Rework so that it may serve to define full_read,
58821         too.
58822         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58823
58824 2003-01-07  Bruno Haible  <bruno@clisp.org>
58825
58826         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58827         <inttypes.h>.
58828         * lib/xstrtol.h: Likewise.
58829         * lib/xstrtoimax.c: Likewise.
58830         * lib/xstrtoumax.c: Likewise.
58831         * lib/human.h: Likewise.
58832
58833         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58834         on systems that have <inttypes.h> but not <stdint.h>.
58835
58836 2003-01-07  Bruno Haible  <bruno@clisp.org>
58837
58838         * MODULES.html.sh: Add copyright notice.
58839         (missed_files): Omit CVS directory entries.
58840         (func_module): Make it work with sed-3.02.
58841         * MODULES.txt: Remove file.
58842
58843 2003-01-06  Jim Meyering  <jim@meyering.net>
58844
58845         * lib/version-etc.c: Update year in translatable copyright string.
58846
58847 2003-01-03  Karl Berry  <karl@gnu.org>
58848
58849         * config/config.{guess,sub}: update from prep.
58850
58851 2003-01-02  Karl Berry  <karl@gnu.org>
58852
58853         * doc/COPYING.DOC: belatedly updated to 1.2.
58854
58855 2003-01-01  Karl Berry  <karl@gnu.org>
58856
58857         * gnulib-tool (func_verify_module): report module name $module in
58858         error message, not $1.
58859         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58860         be created, only if it doesn't exist.
58861         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58862
58863 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58864
58865         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58866
58867 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58868
58869         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58870         memcmp if strcoll doesn't work.
58871
58872 2002-12-31  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58875         nonempty.
58876
58877 2002-12-31  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/memcoll.c (STRCOLL): New macro.
58880         (memcoll): Use it.
58881
58882 2002-12-31  Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/localcharset.h: New file.
58885         * lib/localcharset.c: Include it.
58886         * lib/unicodeio.c: Likewise.
58887
58888 2002-12-31  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58891         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58892
58893 2002-12-31  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/getline.h: Include <stddef.h>, for size_t.
58896
58897         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58898         * lib/unicodeio.c: Don't include <stddef.h>.
58899
58900 2002-12-31  Bruno Haible  <bruno@clisp.org>
58901
58902         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58903         HAVE_TM_ZONE.
58904
58905 2002-12-24  Karl Berry  <karl@gnu.org>
58906
58907         * config/config.guess: update from prep.
58908
58909 2002-12-24  Bruno Haible  <bruno@clisp.org>
58910
58911         General infrasructure.
58912         * m4/README: Rewritten.
58913         * m4/onceonly.m4: New file.
58914         * m4/onceonly_2_57.m4: New file.
58915
58916         Module atexit.
58917         * m4/atexit.m4: New file.
58918
58919         Module strtod.
58920         * m4/strtod.m4: New file.
58921
58922         Module strtol.
58923         * m4/strtol.m4: New file.
58924
58925         Module strtoul.
58926         * m4/strtoul.m4: New file.
58927
58928         Module memchr.
58929         * m4/memchr.m4: New file.
58930
58931         Module memcmp.
58932         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58933         (jm_FUNC_MEMCMP): Invoke it.
58934
58935         Module memcpy.
58936         * m4/memcpy.m4: New file.
58937
58938         Module memmove.
58939         * m4/memmove.m4: New file.
58940
58941         Module memset.
58942         * m4/memset.m4: New file.
58943
58944         Module strcspn.
58945         * m4/strcspn.m4: New file.
58946
58947         Module strpbrk.
58948         * m4/strpbrk.m4: New file.
58949
58950         Module strstr.
58951         * m4/strstr.m4: New file.
58952
58953         Module strerror.
58954         * m4/strerror.m4: New file.
58955
58956         Module mktime.
58957         * m4/mktime.m4: Renamed from jm-mktime.m4.
58958         (gl_PREREQ_MKTIME): New macro.
58959         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58960
58961         Module malloc.
58962         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58963         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58964         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58965
58966         Module realloc.
58967         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58968         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58969         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58970
58971         Module strftime.
58972         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58973         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58974         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58975         gl_TM_GMTOFF.
58976         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58977
58978         Module xalloc.
58979         * m4/xalloc.m4: New file.
58980
58981         Module alloca.
58982         * m4/alloca.m4: New file.
58983
58984         Module putenv.
58985         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58986         (jm_FUNC_PUTENV): Invoke it.
58987
58988         Module setenv.
58989         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58990         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58991         when invoked twice.
58992         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58993         gt_FUNC_SETENV.
58994
58995         Module memrchr.
58996         * m4/memrchr.m4: New file.
58997
58998         Module stpcpy.
58999         * m4/stpcpy.m4: New file.
59000
59001         Module strcase.
59002         * m4/strcase.m4: New file.
59003
59004         Module strdup.
59005         * m4/strdup.m4: New file.
59006
59007         Module strnlen.
59008         * m4/strnlen.m4: New file.
59009
59010         Module strndup.
59011         * m4/strndup.m4: New file.
59012
59013         Module xstrtod.
59014         * m4/xstrtod.m4: New file.
59015
59016         Module xstrtol.
59017         * m4/xstrtol.m4: New file.
59018
59019         Module getdate.
59020         * m4/getdate.m4: New file.
59021
59022         Module unlocked-io.
59023         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59024         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59025         * m4/jm-glibc-io.m4n: Remove file.
59026
59027         Module long-options.
59028         * m4/long-options.m4: New file.
59029
59030         Module md5.
59031         * m4/md5.m4: New file.
59032
59033         Module sha.
59034         * m4/sha.m4: New file.
59035
59036         Module getstr.
59037         * m4/getstr.m4: New file.
59038
59039         Module getline.
59040         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59041         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59042         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59043         simply getline. Infoke gl_PREREQ_GETLINE.
59044
59045         Module obstack.
59046         * m4/obstack.m4: New file.
59047
59048         Module hash.
59049         * m4/hash.m4: New file.
59050
59051         Module readtokens.
59052         * m4/readtokens.m4: New file.
59053
59054         Module strverscmp.
59055         * m4/strverscmp.m4: New file.
59056
59057         Module stdbool.
59058         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59059         OSF/1.
59060
59061         Module strtoll.
59062         * m4/strtoll.m4: New file.
59063
59064         Module strtoull.
59065         * m4/strtoull.m4: New file.
59066
59067         Module strtoimax.
59068         * m4/strtoimax.m4: New file.
59069
59070         Module strtoumax.
59071         * m4/strtoumax.m4: New file.
59072
59073         Module xstrtoimax.
59074         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59075         jm_AC_PREREQ_XSTRTOIMAX.
59076         Moved the strtol prerequisites to strtol.m4.
59077         Moved the strtoll prerequisites to strtoll.m4.
59078         Moved the strtoimax prerequisites to strtoimax.m4.
59079
59080         Module xstrtoumax.
59081         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59082         jm_AC_PREREQ_XSTRTOUMAX.
59083         Moved the strtoul prerequisites to strtoul.m4.
59084         Moved the strtoull prerequisites to strtoull.m4.
59085         Moved the strtoumax prerequisites to strtoumax.m4.
59086
59087         Module chown.
59088         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59089         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59090
59091         Module dup2.
59092         * m4/dup2.m4: New file.
59093
59094         Module ftruncate.
59095         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59096         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59097
59098         Module getgroups.
59099         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59100         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59101
59102         Module gettimeofday.
59103         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59104         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59105         gl_PREREQ_GETTIMEOFDAY.
59106
59107         Module mkdir.
59108         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59109         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59110
59111         Module mkstemp.
59112         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59113         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59114         jm_AC_TYPE_UINTMAX_T.
59115         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59116
59117         Module stat.
59118         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59119         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59120
59121         Module lstat.
59122         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59123         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59124
59125         Module timespec.
59126         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59127         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59128         * m4/st_mtim.m4: Indentation.
59129
59130         Module nanosleep.
59131         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59132         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59133         gl_PREREQ_NANOSLEEP.
59134
59135         Module regex.
59136         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59137         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59138         (gl_REGEX): New macro.
59139
59140         Module rename.
59141         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59142         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59143
59144         Module rmdir.
59145         * m4/rmdir.m4: New file.
59146
59147         Module utime.
59148         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59149         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59150         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59151
59152         Module dirname.
59153         * m4/dirname.m4: New file.
59154
59155         Module getopt.
59156         * m4/getopt.m4: New file.
59157
59158         Module unistd-safer.
59159         * m4/unistd-safer.m4: New file.
59160
59161         Module fnmatch.
59162         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59163         declaration.
59164         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59165         (gl_FUNC_FNMATCH_POSIX): New macro.
59166         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59167         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59168         simply fnmatch.
59169
59170         Module exclude.
59171         * m4/exclude.m4: New file.
59172
59173         Module human.
59174         * m4/human.m4: New file.
59175
59176         Module acl.
59177         * m4/acl.m4: Nop.
59178
59179         Module backupfile.
59180         * m4/backupfile.m4: New file.
59181         * m4/d-ino.m4: Indentation.
59182
59183         Module fsusage.
59184         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59185         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59186         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59187
59188         Module dirfd.
59189         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59190         requirements.
59191
59192         Module euidaccess.
59193         * m4/euidaccess.m4: New file.
59194
59195         Module file-type.
59196         * m4/file-type.m4: New file.
59197
59198         Module fileblocks.
59199         * m4/fileblocks.m4: New file.
59200
59201         Module filemode.
59202         * m4/filemode.m4: New file.
59203
59204         Module isdir.
59205         * m4/isdir.m4: New file.
59206
59207         Module lchown.
59208         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59209         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59210
59211         Module makepath.
59212         * m4/makepath.m4: New file.
59213
59214         Module modechange.
59215         * m4/modechange.m4: New file.
59216
59217         Module mountlist.
59218         * m4/mountlist.m4: New file.
59219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59220         Indentation.
59221
59222         Module path-concat.
59223         * m4/path-concat.m4: New file.
59224
59225         Module pathmax.
59226         * m4/pathmax.m4: New file.
59227
59228         Module same.
59229         * m4/same.m4: New file.
59230
59231         Module save-cwd.
59232         * m4/save-cwd.m4: New file.
59233
59234         Module savedir.
59235         * m4/savedir.m4: New file.
59236
59237         Module xgetcwd.
59238         * m4/xgetcwd.m4: New file.
59239         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59240
59241         Module xreadlink.
59242         * m4/xreadlink.m4: New file.
59243
59244         Module safe-read.
59245         * m4/safe-read.m4: New file.
59246
59247         Module safe-write.
59248         * m4/safe-write.m4: New file.
59249
59250         Module closeout.
59251         * m4/closeout.m4: New file.
59252
59253         Module stdio-safer.
59254         * m4/stdio-safer.m4: New file.
59255
59256         Module getpass.
59257         * m4/getpass.m4: New file.
59258
59259         Module getugroups.
59260         * m4/getugroups.m4: New file.
59261
59262         Module group-member.
59263         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59264         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59265
59266         Module idcache.
59267         * m4/idcache.m4: New file.
59268
59269         Module userspec.
59270         * m4/userspec.m4: New file.
59271
59272         Module gettime.
59273         * m4/clock_time.m4: New file.
59274         * m4/gettime.m4: New file.
59275
59276         Module settime.
59277         * m4/settime.m4: New file.
59278
59279         Module posixtm.
59280         * m4/posixtm.m4: New file.
59281
59282         Module gethostname.
59283         * m4/gethostname.m4: New file.
59284
59285         Module canon-host.
59286         * m4/canon-host.m4: New file.
59287
59288         Module gettext.
59289         * m4/codeset.m4: New file, from gettext-0.11.5.
59290         * m4/gettext.m4: New file, from gettext-0.11.5.
59291         * m4/glibc21.m4: New file, from gettext-0.11.5.
59292         * m4/iconv.m4: New file, from gettext-0.11.5.
59293         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59294         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59295         * m4/inttypes.m4: New file, from gettext-0.11.5.
59296         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59297         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59298         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59299         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59300         * m4/lib-link.m4: New file, from gettext-0.11.5.
59301         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59302         * m4/progtest.m4: New file, from gettext-0.11.5.
59303         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59304         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59305         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59306
59307         Module localcharset.
59308         * m4/localcharset.m4: New file.
59309
59310         Module hard-locale.
59311         * m4/hard-locale.m4: New file.
59312
59313         Module mbswidth.
59314         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59315         onceonly macros.
59316         * m4/mbrtowc.m4: Add comment.
59317
59318         Module memcasecmp.
59319         * m4/memcasecmp.m4: New file.
59320
59321         Module memcoll.
59322         * m4/memcoll.m4: New file.
59323
59324         Module unicodeio.
59325         * m4/unicodeio.m4: New file.
59326
59327         Module rpmatch.
59328         * m4/rpmatch.m4: New file.
59329
59330         Module yesno.
59331         * m4/yesno.m4: New file.
59332
59333         Module exitfail.
59334         * m4/exitfail.m4: New file.
59335
59336         Module c-stack.
59337         * m4/c-stack.m4 (gl_C_STACK): New macro.
59338         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59339
59340         Module error.
59341         * m4/error.m4 (gl_ERROR): New macro.
59342         (jm_PREREQ_ERROR): Use onceonly macros.
59343
59344         Module fatal.
59345         * m4/fatal.m4: New file.
59346
59347         Module getloadavg.
59348         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59349         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59350
59351         Module getpagesize.
59352         * m4/getpagesize.m4: New file.
59353
59354         Module getusershell.
59355         * m4/getusershell.m4: New file.
59356
59357         Module physmem.
59358         * m4/physmem.m4: New file.
59359
59360         Module posixver.
59361         * m4/posixver.m4: New file.
59362
59363         Module quotearg.
59364         * m4/quotearg.m4: New file.
59365
59366         Module quote.
59367         * m4/quote.m4: New file.
59368
59369         Module readutmp.
59370         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59371
59372         Module sig2str.
59373         * m4/sig2str.m4: New file.
59374
59375         Other.
59376         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59377         ulonglong.m4.
59378         * m4/intmax_t.m4: New file.
59379         * m4/d-type.m4: Indentation.
59380         * m4/jm-macros.m4: Update.
59381         * m4/prereq.m4 (jm_PREREQ): Update.
59382         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59383         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59384         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59385         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59386         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59387         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59388         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59389         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59390         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59391         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59392         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59393         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59394         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59395         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59396         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59397         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59398         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59399         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59400         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59401
59402 2002-12-24  Bruno Haible  <bruno@clisp.org>
59403
59404         * MODULES.txt: Update according to m4/ changes.
59405
59406         Module gettext.
59407         * config.rpath: New file, from gettext-0.11.5.
59408
59409         * modules/*: New module descriptions.
59410         * gnulib-tool: New file.
59411         * MODULES.html.sh: New file.
59412
59413 2002-12-21  Karl Berry  <karl@gnu.org>
59414
59415         * doc/fdl.texi: update to version 1.2.
59416
59417 2002-12-19  Karl Berry  <karl@gnu.org>
59418
59419         * config/config.guess: update from prep.
59420
59421 2002-12-18  Bruno Haible  <bruno@clisp.org>
59422
59423         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59424         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59425
59426 2002-12-17  Bruno Haible  <bruno@clisp.org>
59427
59428         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59429         stdlib.h, string.h.
59430
59431 2002-12-17  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/canon-host.c (strdup): Remove unused declaration.
59434
59435         * lib/fsusage.c: Include full_read.h.
59436         (get_fs_usage): Use full_read instead of safe_read.
59437
59438         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59439
59440 2002-12-12  Karl Berry  <karl@gnu.org>
59441
59442         * config/config.guess: update from prep.
59443
59444 2002-12-11  Bruno Haible  <bruno@clisp.org>
59445
59446         * m4/setenv.m4: New file, from gettext-0.11.5.
59447
59448 2002-12-11  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59451         not unsetenv().
59452         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59453         modifications:
59454
59455         2002-12-11  Bruno Haible  <bruno@clisp.org>
59456
59457                 * setenv.c (alloca): Fall back to malloc.
59458                 (freea): New macro.
59459                 (setenv): Use freea() to free memory allocated with alloca().
59460
59461         2002-11-13  Bruno Haible  <bruno@clisp.org>
59462
59463                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59464                 function declarations.
59465                 * unsetenv.c (unsetenv): Likewise.
59466
59467         2002-03-04  Bruno Haible  <bruno@clisp.org>
59468
59469                 Portability to AIX 4.3.3.
59470                 * unsetenv.c: New file, extracted from setenv.c.
59471                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59472
59473         2001-12-20  Bruno Haible  <bruno@clisp.org>
59474
59475                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59476                 use malloc instead. For SunOS 4.
59477
59478         2001-12-11  Bruno Haible  <bruno@clisp.org>
59479
59480                 * setenv.c: Declare alloca.
59481                 (compar_fn_t): New typedef.
59482                 (KNOWN_VALUE, STORE_VALUE): Use it.
59483
59484         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59485         setenv.h.
59486
59487 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59488
59489         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59490         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59491         Choose values that are less likely to collide with system fnmatch
59492         options.
59493         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59494         defined (e.g., a pure POSIX system).
59495         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59496         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59497
59498 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59499
59500         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59501         a pain in practice to deal with generated m4 files.  This change
59502         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59503
59504         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59505         and jm-glibc-io.m4, as they are no longer a special case.
59506         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59507         kludge and the auto-generation stuff.  Check only whether the
59508         functions are declared, not whether they exist, since older hosts
59509         that don't declare the functions can't use the optimization anyway.
59510
59511 2002-12-06  Jim Meyering  <jim@meyering.net>
59512
59513         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59514
59515         Merge in changes from libc's misc/error.c, in preparation
59516         for the merge of gnulib's changes back into libc.
59517
59518         * lib/error.c (_): Define only if not already defined.
59519         Move definition to follow all #include directives.
59520         Include unlocked-io.h only if !_LIBC.
59521         [_LIBC]: Include <libio/libioP.h>.
59522         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59523         (fflush): Tweak definition to use INTUSE.
59524         (putc): Define.
59525
59526 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59527
59528         * lib/alloca.c [defined emacs]: Include "lisp.h".
59529         (xalloc_die) [defined emacs]: New macro.
59530         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59531         [! defined emacs]: Include <xalloc.h>.
59532         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59533         (pointer): Typedef to POINTER_TYPE *.
59534         (malloc): Remove decl; we now always use xmalloc.
59535         (alloca): Use old-style definition, since Emacs needs this.
59536         Check for arithmetic overflow when computing combined size.
59537
59538 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59539
59540         Do not generate unlocked-io.h automatically, since it's easier to
59541         maintain it by hand.
59542
59543         * lib/unlocked-io.h: New file, from GNU diffutils,
59544         but with proper copyright notice and attribution.
59545         * lib/gen-uio: Remove.
59546         * lib/Makefile.am: Add copyright notice.
59547         (libfetish_a_SOURCES): Add unlocked-io.h.
59548         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59549         (DISTCLEANFILES, io_functions): Remove macros.
59550         (EXTRA_DIST): Remove gen_uio.
59551         (unlocked-io.h): Remove rule.
59552
59553 2002-12-04  Jim Meyering  <jim@meyering.net>
59554
59555         Reflect the fact that stat.c and lstat.c are no longer generated.
59556         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59557         (DISTCLEANFILES): Likewise.
59558         (EXTRA_DIST): Likewise.
59559         (all_local): Don't depend on stat.c or lstat.c.
59560         (stat.c, lstat.c): Remove rules.
59561         (EXTRA_DIST): Remove xstat.in.
59562
59563         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59564         * lib/stat.c: New file.  Contents mostly from xstat.in.
59565         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59566         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59567
59568         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59569         too.
59570         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59571
59572 2002-12-03  Jim Meyering  <jim@meyering.net>
59573
59574         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59575         but not semantics, to minimize the differences between these two files.
59576         (safe_read): Change comment to mention SAFE_READ_ERROR.
59577
59578         * lib/safe-read.c (IS_EINTR): Define.
59579         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59580
59581 2002-12-02  Jim Meyering  <jim@meyering.net>
59582
59583         * lib/safe-read.c (EINTR): Define.
59584         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59585         (INT_MAX): Provide fallback.
59586         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59587
59588         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59589
59590 2002-12-02  Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59593         Define, taken from safe-read.c.
59594         (INT_MAX): Provide fallback.
59595         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59596         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59597
59598         * lib/safe-read.c (EINTR): Remove definition.
59599         (safe_read): Don't use EINTR if it is absent.
59600
59601 2002-12-01  Jim Meyering  <jim@meyering.net>
59602
59603         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59604         zero.
59605         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59606
59607 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59608
59609         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59610         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59611         with `if (! (value < limit)) abort ();', for readability.
59612
59613 2002-11-26  Karl Berry  <karl@gnu.org>
59614
59615         * lib/strdup.c: copy from libc again, with jim's ok.
59616         * lib/.cppi-disable: re-add strdup.c
59617
59618 2002-11-25  Karl Berry  <karl@gnu.org>
59619
59620         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59621         instead of "strtol.c".
59622
59623 2002-11-25  Karl Berry  <karl@gnu.org>
59624
59625         * config/install-sh: update from automake for variable quoting, $0 in
59626         error msgs, etc.
59627
59628         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59629         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59630         entry.
59631
59632 2002-11-25  Jim Meyering  <jim@meyering.net>
59633
59634         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59635
59636 2002-11-24  Karl Berry  <karl@gnu.org>
59637
59638         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59639         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59640
59641 2002-11-24  Jim Meyering  <jim@meyering.net>
59642
59643         Update from coreutils:
59644
59645         * lib/mktime.c: Merge in changes from libc.
59646
59647         Avoid a link-time failure on some Linux systems.
59648         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59649         (otherwise).
59650         (__mon_yday): Declare with the STATIC attribute.
59651         (__mktime_internal): Likewise.
59652         Based on a report from Greg Schafer.
59653
59654 2002-11-23  Jim Meyering  <jim@meyering.net>
59655
59656         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59657         Use `unsigned', not `int', as type of index.
59658
59659         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59660
59661         * lib/fsusage.c: Remove unneeded parentheses around operands of
59662         `defined'.
59663
59664 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59665
59666         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59667         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59668         so that we can be included first.
59669         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59670         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59671         No need to include stddef.h or sys/types.h any more.
59672         Surround local include files with "", not "<>".
59673         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59674         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59675         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59676         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59677         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59678         (ISPRINT): Remove; no longer needed now that we assume C89.
59679
59680         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59681         Preserve errno.
59682
59683         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59684         quotearg_char): Use SIZE_MAX rather than
59685         (size_t) -1 when we are talking about "infinity".
59686
59687         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59688
59689 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59690
59691         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59692         hint that one should use `if (! x) abort ();' rather than `assert
59693         (x);', and anyway it's one less thing to worry about configuring.
59694         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59695         hash_rehash, hash_insert): Use abort rather than assert.
59696
59697 2002-11-22  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/safe-read.h: Assume C89. Add comments.
59700         (safe_read): Change return type to size_t.
59701         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59702         byte counts > SSIZE_MAX correctly.
59703         * lib/safe-write.h: New file.
59704         * lib/safe-write.c: New file.
59705         * lib/full-read.h: New file.
59706         * lib/full-read.c: New file.
59707         * lib/full-write.h: Assume C89. Add comments.
59708         * lib/full-write.c: Include safe-write.h.
59709         (full_write): Rewritten to use safe_write.
59710         Suggested by Jim Meyering and Paul Eggert.
59711
59712 2002-11-21  Jim Meyering  <jim@meyering.net>
59713
59714         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59715
59716         Merge in changes from the coreutils.
59717
59718         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59719         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59720         <stdint.h>.
59721         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59722         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59723         int.  Work more efficiently if X is the same width as uintmax_t.
59724         Do not compare X to -1, to avoid bogus compiler warning.
59725         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59726         Don't assume that f_frsize and f_bsize are the same type.
59727
59728         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59729         warning on FreeBSD.
59730
59731         * lib/makepath.c (make_path): Restore umask *before* creating the final
59732         component.
59733         (make_path): Minor reformatting.
59734
59735         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59736         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59737         HAVE_MALLOC/HAVE_REALLOC.
59738
59739         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59740         dummy ones.  At least on GNU/Linux systems, `auto' means something
59741         else.
59742         From Michael Stone.
59743
59744 2002-11-21  Bruno Haible  <bruno@clisp.org>
59745
59746         Remove case insensitive option matching.
59747         * lib/argmatch.h (argcasematch): Remove declaration.
59748         (ARGCASEMATCH): Remove macro.
59749         (__xargmatch_internal): Remove case_sensitive argument.
59750         (XARGMATCH): Update.
59751         (XARGCASEMATCH): Remove macro.
59752         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59753         case_sensitive argument.
59754         (argcasematch): Remove function.
59755         (__xargmatch_internal): Remove case_sensitive argument.
59756         (main): Use XARGMATCH instead of XARGCASEMATCH.
59757
59758         * lib/xmalloc.c: Change compile-time error message. Add comment about
59759         required autoconf version.
59760
59761 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59762
59763         Merge argmatch cleanups from Bison.  Assume C89.
59764
59765         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59766         Include stdlib.h, for EXIT_FAILURE.
59767         Always include <string.h>, since we assume C89.
59768         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59769         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59770         Include <stddef.h> instead, since it's all we need for size_t.
59771         (PARAMS): Remove.  All uses removed.
59772         (ARRAY_CARDINALITY): Do not bother to #undef.
59773         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59774         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59775         Remove unnecessary parentheses.
59776         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59777         Insert necessary parentheses.
59778         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59779         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59780
59781 2002-11-19  Bruno Haible  <bruno@clisp.org>
59782
59783         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59784         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59785
59786         * lib/mbswidth.h (PARAMS): Remove macro.
59787         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59788         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59789
59790         * lib/gcd.h (PARAMS): Remove macro.
59791         (gcd): Use ANSI C function declarations.
59792         * lib/gcd.c (gcd): Likewise.
59793
59794 2002-11-15  Bruno Haible  <bruno@clisp.org>
59795
59796         * lib/strcspn.c: Include <stddef.h>.
59797         (strcspn): Use ANSI C function declaration. Change return type to
59798         size_t. Use NULL.
59799         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59800         (strpbrk): Use NULL.
59801         * lib/strpbrk.h (PARAMS): Remove macro.
59802         (strpbrk): Use ANSI C function declaration.
59803         * lib/strstr.c: Don't include <sys/types.h>.
59804         * lib/strstr.h (PARAMS): Remove macro.
59805         (strstr): Use ANSI C function declarations.
59806
59807 2002-11-14  Karl Berry  <karl@gnu.org>
59808
59809         * config/mkinstalldirs: `do' on separate line, instead of
59810         `for var; do'.
59811
59812 2002-11-06  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59815         * lib/gcd.c (gcd): Likewise.
59816
59817 2002-11-05  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/gcd.h: New file, from gettext-0.11.5.
59820         * lib/gcd.c: New file, from gettext-0.11.5.
59821
59822 2002-11-05  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59825         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59826         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59827         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59828
59829         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59830         <libintl.h>.
59831         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59832         <libintl.h>.
59833
59834         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59835         * lib/human.c: Include gettext.h instead of <libintl.h>.
59836         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59837         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59838         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59839         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59840         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59841         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59842         (textdomain): Remove definition.
59843         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59844
59845         * lib/long-options.c: Remove include of <libintl.h> and definition of
59846         _.
59847         * lib/same.c: Remove include of <libintl.h> and definition of _.
59848
59849 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59850
59851         * lib/config.charset: A few additions for Solaris.
59852
59853 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59854
59855         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59856         * lib/localcharset.c (locale_charset): Declare as extern "C".
59857
59858 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59859
59860         * lib/config.charset: msdos in uk_UA uses CP1125.
59861
59862 2002-11-04  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59865         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59866         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59867         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59868         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59869
59870 2002-11-04  Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/localcharset.c (locale_charset): Don't return an empty string.
59873
59874 2002-11-04  Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59877         aliases.
59878
59879 2002-11-04  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/config.charset: Update for newest glibc. Add canonical names
59882         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59883
59884 2002-11-04  Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/config.charset: Add support for NetBSD.
59887
59888 2002-11-04  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59891
59892 2002-11-01  Bruno Haible  <bruno@clisp.org>
59893
59894         * configure.in: Add AC_CONFIG_AUX_DIR call.
59895         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59896         test/Makefile.
59897         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59898
59899 2002-09-28  Karl Berry  <karl@gnu.org>
59900
59901         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59902         installed automake until the next release, since changes have been
59903         made.
59904
59905 2002-09-25  Karl Berry  <karl@gnu.org>
59906
59907         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59908         * lib/getopt*: copy from libc/posix.
59909         * lib/gettext.h: copy from gettext.
59910         * lib/.cppi-disable: add strdup.c, gettext.h.
59911
59912 2002-09-25  Karl Berry  <karl@gnu.org>
59913
59914         * config/srclist.txt: enable gettext.h check.
59915         * config/config.{guess,sub}: update from prep.
59916         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59917                 from automake 1.6.3.
59918         See srclist*.
59919
59920 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59921
59922         * regex.c (PATFETCH): Remove the translating fetch.
59923         (PATFETCH_RAW): Rename to PATFETCH.
59924         (set_image_of_range): New fun.
59925         (SET_RANGE_TABLE_WORK_AREA): Use it.
59926         (regex_compile): Don't translate the pattern chars so eagerly.
59927         Only do it when inserting an `exactn' bytecode or when handling
59928         a char-range.
59929         (mutually_exclusive_p): Avoid empty statement.
59930
59931 2002-07-06  Jim Meyering  <meyering@lucent.com>
59932
59933         * m4/README: Don't mention Makefile.am.in.
59934         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59935
59936 2002-07-01  Jim Meyering  <meyering@lucent.com>
59937
59938         * lib/c-stack.c: Include sys/time.h.
59939         From Volker Borchert.
59940
59941 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59942
59943         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59944
59945 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59946
59947         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59948         New macro.  Use it uniformly instead of
59949         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59950         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59951         reported by Vin Shelton.
59952
59953 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59954
59955         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59956         Do not assume SA_SIGINFO behavior.
59957         Bug reported by Jim Meyering on NetBSD 1.5.2.
59958
59959 2002-06-22  Jim Meyering  <meyering@lucent.com>
59960
59961         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59962         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59963
59964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59965         now that configure.ac uses AC_GNU_SOURCE.
59966         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59967         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59968
59969         Update to latest tools.  Suggestions from Paul Eggert.
59970         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59971         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59972         * m4/fnmatch.m4: Likewise.
59973         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59974         to AC_HEADER_STDBOOL
59975
59976 2002-06-22  Jim Meyering  <meyering@lucent.com>
59977
59978         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59979         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59980
59981 2002-06-22  Jim Meyering  <meyering@lucent.com>
59982
59983         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59984
59985         * lib/exitfail.c, exitfail.h: Likewise.
59986         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59987
59988         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59989         of fnmatch.h.
59990         (EXTRA_DIST): Add fnmatch_loop.c.
59991         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59992
59993         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59994         * lib/fnmatch.c: Update from diffutils-2.8.2.
59995         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59996         * lib/fnmatch.h: Remove file.
59997
59998 2002-06-21  Jim Meyering  <meyering@lucent.com>
59999
60000         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60001         * m4/mbrtowc.m4: Likewise.
60002
60003         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60004         * m4/mbswidth.m4: Reflect name change:
60005         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60006         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60007
60008         * m4/lib-link.m4: Update from gettext-0.11.2.
60009         * m4/gettext.m4: Likewise.
60010
60011         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60012         From Alfred M. Szmidt.
60013
60014 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60015
60016         * lib/file-type.h: Report an error if neither S_ISREG nor
60017         S_IFREG is defined, instead of using a test specific to glibc
60018         2.2.  This should be safe, since POSIX requires S_ISREG and
60019         Unix Version 7 had S_IFREG.  We don't need to check for
60020         <sys/types.h> since we don't use any symbols that it defines.
60021
60022 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60023
60024         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60025         $@-t, so that each temporary file name is unique and valid in the first
60026         8 characters, for operation under DOS.
60027
60028 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60029
60030         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60031
60032 2002-06-15  Jim Meyering  <meyering@lucent.com>
60033
60034         Work even with DJGPP 2.03, which lacks support for symlinks.
60035         From Richard Dawe.
60036         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60037         is defined.
60038         * lib/lchown.c (S_ISLNK): Likewise.
60039
60040 2002-06-15  Jim Meyering  <meyering@lucent.com>
60041
60042         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60043         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60044         have been included before this file.
60045
60046 2002-06-14  Jim Meyering  <meyering@lucent.com>
60047
60048         * lib/file-type.h: Use the version from diffutils-2.8.2.
60049         * lib/file-type.c: Likewise.
60050
60051 2002-06-07  Jim Meyering  <meyering@lucent.com>
60052
60053         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60054         They're needed at least for NetBSD 1.5.2.
60055         ($statxfs_includes): Include those same headers.
60056         ($statxfs_includes): Include sys/vfs.h if available.
60057         ($statxfs_includes): Likewise for sys/statvfs.h.
60058         Check for the following members in both structs statfs and statvfs:
60059         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60060
60061 2002-06-01  Jim Meyering  <meyering@lucent.com>
60062
60063         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60064         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60065
60066 2002-05-28  Jim Meyering  <meyering@lucent.com>
60067
60068         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60069         Reported by Volker Borchert.
60070
60071 2002-05-27  Jim Meyering  <meyering@lucent.com>
60072
60073         Fix a problem seen only on nonconforming systems whereby ls.c's
60074         use of localtime, and then of gettimeofday would cause trouble:
60075         the localtime call used to initialize rpl_gettimeofday's save
60076         mechanism would clobber ls's current local time information so
60077         that in any long listing the first file would always be listed
60078         with date 1970-01-01.  Analysis by Volker Borchert.
60079
60080         * lib/gettimeofday.c (localtime): Undefine.
60081         (rpl_localtime): New function.
60082
60083 2002-05-27  Jim Meyering  <meyering@lucent.com>
60084
60085         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60086         localtime.
60087
60088         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60089         use the replacement function; it wouldn't resolve at link time.
60090         Reported by Volker Borchert.
60091
60092 2002-05-22  Jim Meyering  <meyering@lucent.com>
60093
60094         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60095         file-type.h.
60096         * lib/file-type.h: New file.
60097         * lib/file-type.c (file_type): New file/function.  Extracted from
60098         diffutils.
60099
60100 2002-04-30  Jim Meyering  <meyering@lucent.com>
60101
60102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60103
60104 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60105
60106         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60107
60108 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60109
60110         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60111         Do not check for alloca.h (no longer used) or stdbool.h (was never
60112         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60113
60114 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60115
60116         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60117
60118 2002-04-29  Jim Meyering  <meyering@lucent.com>
60119
60120         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60121         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60122         Use AC_FUNC_STRNLEN here instead.
60123
60124         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60125         With autoconf-2.53a, it's part of AC_PROG_CC.
60126
60127 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60128
60129         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60130         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60131
60132 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60133
60134         * lib/sig2str.h, lib/sig2str.c: New files.
60135         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60136
60137 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60138
60139         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60140         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60141         of 127, since 64 is the largest conceivable number for ancient
60142         nonstandard hosts.
60143         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60144
60145 2002-04-28  Jim Meyering  <meyering@lucent.com>
60146
60147         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60148
60149 2002-04-24  Jim Meyering  <meyering@lucent.com>
60150
60151         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60152         (jm_PREREQ): Use it.
60153
60154         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60155         mach/mach.h fcntl.h.
60156         Check for this function: setlocale.
60157
60158 2002-04-24  Jim Meyering  <meyering@lucent.com>
60159
60160         * lib/gettext.h: New file, from Gettext.
60161         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60162         (libfetish_a_SOURCES): Add gettext.h.
60163
60164 2002-04-16  Jim Meyering  <meyering@lucent.com>
60165
60166         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60167         ut_pid, ut_id, ut_exit.
60168
60169 2002-04-16  Jim Meyering  <meyering@lucent.com>
60170
60171         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60172         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60173         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60174
60175 2002-04-12  Jim Meyering  <meyering@lucent.com>
60176
60177         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60178         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60179         existence of the getmntinfo function.  Needed for Darwin 5.3.
60180
60181         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60182         This is necessary at least on Darwin 5.3.
60183
60184         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60185         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60186         strnlen.o in the library, and that makes some versions of ranlib
60187         object.
60188
60189 2002-04-12  Jim Meyering  <meyering@lucent.com>
60190
60191         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60192
60193 2002-04-09  Jim Meyering  <meyering@lucent.com>
60194
60195         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60196         to be more precise.  Rather than saying we're checking whether the
60197         function `works', say what we're testing.
60198         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60199         Reported by Bruno Haible.
60200
60201 2002-03-10  Jim Meyering  <meyering@lucent.com>
60202
60203         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60204         Suggestion from Santiago Vila.
60205
60206 2002-03-08  Jim Meyering  <meyering@lucent.com>
60207
60208         * lib/rename.c: Mention that this wrapper is needed also on
60209         mips-dec-ultrix4.4 systems.
60210
60211 2002-03-02  Jim Meyering  <meyering@lucent.com>
60212
60213         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60214         not HAVE_CLOCK_SETTIME.
60215
60216 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60217
60218         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60219         Check for clock_settime.
60220
60221 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60222
60223         * lib/nanosleep.h: Rename to....
60224         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60225
60226         * lib/gettime.c: New file.
60227         * lib/settime.c: New file.
60228         * lib/stime.c: Remove.
60229
60230         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60231         timespec.h.  Remove nanosleep.h.
60232
60233 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60234
60235         * m4/acl.m4: New file.
60236         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60237         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60238
60239 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60240
60241         * lib/acl.c, lib/acl.h: New files.
60242         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60243
60244 2002-02-24  Jim Meyering  <meyering@lucent.com>
60245
60246         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60247         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60248         cause trouble.  Reported by Nelson Beebe.
60249
60250 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60251
60252         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60253         compilers that don't know that xalloc_die never returns.
60254
60255 2002-02-20  Jim Meyering  <meyering@lucent.com>
60256
60257         * lib/getdate.c: Regenerate using bison-1.33.
60258
60259 2002-02-17  Jim Meyering  <meyering@lucent.com>
60260
60261         * config/config.guess (main): Don't use `head -1'; it's no longer
60262         portable. Use `sed 1q' instead.
60263
60264 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60265
60266         * m4/codeset.m4: Upgrade to gettext-0.11.
60267         * m4/gettext.m4: Upgrade to gettext-0.11.
60268         * m4/glibc21.m4: Upgrade to gettext-0.11.
60269         * m4/iconv.m4: Upgrade to gettext-0.11.
60270         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60271         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60272         * m4/lib-ld.m4: New file, from gettext-0.11.
60273         * m4/lib-link.m4: New file, from gettext-0.11.
60274         * m4/lib-prefix.m4: New file, from gettext-0.11.
60275         * m4/progtest.m4: Upgrade to gettext-0.11.
60276
60277 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60278
60279         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60280         (jm_PREREQ): Use it.
60281
60282 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60283
60284         * lib/posixver.c, lib/posixver.h: New files.
60285         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60286
60287 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60288             Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60291         (fwrite_success_callback): New declaration.
60292         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60293         print_unicode_char. Call failure callback instead of error.
60294         (fwrite_success_callback): New function.
60295         (exit_failure_callback): New function.
60296         (fallback_failure_callback): New function.
60297         (print_unicode_char): Call unicode_to_mb.
60298
60299 2002-01-26  Jim Meyering  <meyering@lucent.com>
60300
60301         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60302         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60303
60304 2002-01-26  Jim Meyering  <meyering@lucent.com>
60305
60306         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60307
60308 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60309
60310         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60311
60312 2002-01-22  Jim Meyering  <meyering@lucent.com>
60313
60314         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60315         Otherwise, some versions of automake would omit the rule that makes
60316         Makefile from Makefile.in.
60317
60318 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60319
60320         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60321         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60322         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60323         (memcoll): Set errno to zero if there is no error.
60324
60325         * lib/quotearg.c (quotearg_buffer_restyled):
60326         Fix bug with quoting buffers containing NUL when backslashing escapes.
60327         This bug was exposed by the other changes in this patch.
60328         (quotearg_n_options): New arg ARGSIZE.
60329         All callers changed.
60330         (quoting_options_from_style): New function.
60331         (quotearg_n_style): Use it.
60332         (quotearg_n_style_mem): New function.
60333
60334         * lib/quotearg.h (quotearg_n_style_mem): New function.
60335
60336 2002-01-19  Jim Meyering  <meyering@lucent.com>
60337
60338         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60339         Remove useless quotes: DF_PROG="df".
60340         * m4/strnlen.m4: New file.
60341
60342 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60343
60344         * lib/backupfile.c (ISDIGIT): Comment fix.
60345         * lib/getdate.y (ISDIGIT): Likewise.
60346         * lib/posixtm.c (ISDIGIT, year): Likewise.
60347         * lib/strverscmp.c (ISDIGIT): Likewise.
60348         * lib/userspec.c (ISDIGIT): Likewise.
60349
60350 2002-01-16  Jim Meyering  <meyering@lucent.com>
60351
60352         * lib/getdate.y: Add three semicolons, each just before a closing
60353         brace. Bison (as of version 1.31) no longer papers over that mistake.
60354
60355 2002-01-05  Jim Meyering  <meyering@lucent.com>
60356
60357         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60358
60359 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60360
60361         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60362         not silently exit merely because the output buffer happens to
60363         have nothing pending.
60364
60365 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60366
60367         See the big note in ../ChangeLog.
60368         * lib/human.c (suffixes): Prefer K to k for 1024.
60369         (generate_suffix_backwards): New function.
60370         (human_readable_inexact): Use it.
60371         * lib/xstrtol.c (__xstrtol): If there is no number but there
60372         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60373         Accept 'K' as well as 'k'.
60374
60375 2001-12-15  Jim Meyering  <meyering@lucent.com>
60376
60377         * lib/regex.h (__restrict_arr): Update from libc.
60378
60379         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60380         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60381         (STREQ): Define.
60382
60383 2001-12-14  Jim Meyering  <meyering@lucent.com>
60384
60385         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60386         Suggestion from Bruno Haible.
60387
60388 2001-12-10  Jim Meyering  <meyering@lucent.com>
60389
60390         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60391         xrealloc, Instead, include "xalloc.h".
60392         (initbuffer): Don't cast xmalloc return value to char*.
60393         (readline): Reword comment.
60394         Don't cast xrealloc return value to char*
60395         Return NULL, not 0.
60396
60397 2001-12-09  Jim Meyering  <meyering@lucent.com>
60398
60399         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60400         about `signed and unsigned type in conditional expression'.
60401         * lib/posixtm.c (posix_time_parse): Likewise.
60402
60403         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60404
60405         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60406         to avoid a pedantic warning.
60407
60408         * lib/getstr.c: Don't include assert.h.
60409         (getstr): Remove warning-evoking assertions.
60410         Return -1 if offset parameter is out of bounds.
60411         Change the type of a local from int to size_t.
60412
60413         * lib/strftime.c (my_strftime_localtime_r): Include this function
60414         definition in the `#if ! HAVE_TM_GMTOFF' block.
60415
60416         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60417         Include xalloc.h instead.
60418
60419 2001-12-02  Jim Meyering  <meyering@lucent.com>
60420
60421         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60422         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60423         included.
60424
60425         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60426         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60427
60428 2001-11-30  Akim Demaille  <akim@epita.fr>
60429
60430         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60431         before being defined.
60432
60433 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60434
60435         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60436         First arg is int, not unsigned.
60437         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60438         (SIZE_MAX, UINT_MAX): New macros.
60439         (quotearg_n_options): Abort if N is negative.
60440         Avoid overflow check on hosts where size_t is 64 bits and int
60441         is 32 bits, as overflow is impossible there.
60442         Fix off-by-one typo that caused unnecessary reallocation.
60443
60444 2001-11-27  Jim Meyering  <meyering@lucent.com>
60445
60446         * lib/tempname.c: Merge with version from libc.
60447         * lib/regex.c: Likewise.
60448
60449         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60450         systems for which STDC_HEADERS is 0, it was not included, resulting in
60451         a warning about an integer-to-pointer conversion problem with getenv.
60452         Reported by Volker Borchert.
60453
60454 2001-11-26  Jim Meyering  <meyering@lucent.com>
60455
60456         * lib/gtod.h: Remove file.
60457         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60458         * lib/gettimeofday.c: Don't include gtod.h.
60459         (GTOD_init): Remove function.
60460         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60461         Suggestion from Volker Borchert.
60462
60463 2001-11-23  Jim Meyering  <meyering@lucent.com>
60464
60465         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60466         it.
60467         * lib/hash.c (struct hash_table): Define it here instead.
60468
60469 2001-11-22  Jim Meyering  <meyering@lucent.com>
60470
60471         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60472
60473 2001-11-20  Jim Meyering  <meyering@lucent.com>
60474
60475         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60476         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60477
60478 2001-11-19  Jim Meyering  <meyering@lucent.com>
60479
60480         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60481         directory.  Use "conftestXXXXXX" as the template.
60482         Suggestion from Paul Eggert.
60483
60484         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60485         immediately, so the test doesn't mistakenly hit the max-open-files
60486         limit.
60487
60488 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60489
60490         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60491         (TEMPORARIES): New macro.
60492         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60493         removes an artificial limitation (e.g. HP-UX 10.20, where
60494         TMP_MAX is 17576).
60495
60496 2001-11-18  Jim Meyering  <meyering@lucent.com>
60497
60498         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60499
60500 2001-11-18  Jim Meyering  <meyering@lucent.com>
60501
60502         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60503         on SunOS 4.
60504
60505         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60506         files will be created before anything else.
60507
60508 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60509
60510         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60511         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60512
60513 2001-11-17  Jim Meyering  <meyering@lucent.com>
60514
60515         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60516         Prompted by a report from Bob Proulx.
60517
60518         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60519         Instead, require UTILS_FUNC_MKSTEMP.
60520
60521 2001-11-17  Jim Meyering  <meyering@lucent.com>
60522
60523         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60524         Now, that's done as part of AC_FUNC_STRTOD.
60525
60526 2001-11-17  Jim Meyering  <meyering@lucent.com>
60527
60528         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60529         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60530         rather than group writable.  Patch by Juan F. Codagnone.
60531
60532         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60533         xrealloc, Instead, include "xalloc.h".
60534
60535         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60536         Remove explicit declarations of xmalloc, xrealloc,
60537         and xstrdup.  Instead, include "xalloc.h".
60538
60539         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60540         unlocked-io.h.
60541         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60542         Likewise.
60543         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60544
60545         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60546         Reported by Padraig Brady.
60547
60548         * lib/mkstemp.c: #undef mkstemp.
60549         Include config.h.
60550         (rpl_mkstemp): Rename from mkstemp.
60551         Protoize.
60552
60553 2001-11-16  Jim Meyering  <meyering@lucent.com>
60554
60555         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60556         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60557         determine the amount of total physical memory, use pstat_getstatic.
60558         HPUX-11 doesn't define _SC_PHYS_PAGES.
60559         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60560         If sysconf couldn't be used to determine the amount of available
60561         physical memory, use both pstat_getstatic and pstat_getdynamic.
60562         Based on a patch from Bob Proulx.
60563
60564 2001-11-10  Jim Meyering  <meyering@lucent.com>
60565
60566         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60567         (jm_PREREQ): Use it.
60568
60569 2001-11-09  Jim Meyering  <meyering@lucent.com>
60570
60571         * m4/jm-macros.m4: Require autoconf-2.52f.
60572         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60573         Use these AC_-prefixed names, not the AM_-prefixed ones.
60574
60575         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60576
60577 2001-11-05  Jim Meyering  <meyering@lucent.com>
60578
60579         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60580
60581 2001-11-04  Jim Meyering  <meyering@lucent.com>
60582
60583         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60584         $DEFS.
60585
60586 2001-11-03  Jim Meyering  <meyering@lucent.com>
60587
60588         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60589         of AC_DEFUN.
60590
60591         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60592         know the name of the variable in the macro definition.
60593
60594 2001-11-03  Jim Meyering  <meyering@lucent.com>
60595
60596         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60597         in argmatch_to_argument call.
60598
60599         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60600         argument.
60601
60602         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60603         e.g., a fault due to an attempt to free a NULL pointer.
60604
60605 2001-11-01  Jim Meyering  <meyering@lucent.com>
60606
60607         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60608         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60609
60610 2001-11-01  Jim Meyering  <meyering@lucent.com>
60611
60612         * lib/dirfd.c, lib/dirfd.h: New files.
60613         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60614
60615         * lib/hash.c (hash_print) [TESTING]: Clean up.
60616
60617 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60618
60619         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60620         to avoid a warning if -Wall.
60621
60622 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60623
60624         * README: New file
60625         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60626         (per RMS's instructions, this is now the canonical source)
60627         * lgpl/, gpl/: New directories.
60628
60629 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60630
60631         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60632
60633 2001-10-21  Jim Meyering  <meyering@lucent.com>
60634
60635         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60636         this code would end up calling gettext even in packages built
60637         with --disable-nls.
60638         * lib/getopt.c (_): Likewise.
60639         * lib/regex.c (_): Likewise.
60640
60641 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60642
60643         * m4/error.m4 (jm_PREREQ_ERROR):
60644         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60645         AC_FUNC_STRERROR_R does that.
60646         Check for strerror declaration.
60647
60648         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60649         are supposed to have them these days.
60650         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60651         Merge changes from latest Autoconf CVS.
60652         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60653         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60654         POSIX decided to standardize on the int flavor of strerror_r.
60655
60656 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60657
60658         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60659         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60660         Use strerror_r that is only a macro, even if it is not a function.
60661         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60662         (private_strerror): Use prototypes, not old-style function definition.
60663         (print_errno_message): New function.
60664         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60665         char*-flavored one.
60666         (error_tail, error, error_at_line): Use it.
60667
60668 2001-10-11  Jim Meyering  <meyering@lucent.com>
60669
60670         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60671         and quote_n (1, ... to avoid clobbering a buffer.
60672
60673 2001-10-05  Jim Meyering  <meyering@lucent.com>
60674
60675         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60676         hash-pjw.h.
60677         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60678         * lib/hash-pjw.h: New file.
60679
60680 2001-09-30  Jim Meyering  <meyering@lucent.com>
60681
60682         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60683         `struct fsstat' has the `f_fstypename' member.
60684         Use that to define FS_TYPE, which is now used to make
60685         the getfsstat link test tighter.
60686
60687 2001-09-30  Jim Meyering  <meyering@lucent.com>
60688
60689         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60690         Include <sys/ucred.h>, for Apple Darwin.
60691         Include sys/mount.h and sys/fs_types.h only if available.
60692         (FS_TYPE): Define.
60693         (read_filesystem_list): Use FS_TYPE.
60694
60695 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60696
60697         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60698         a boolean context.
60699
60700 2001-09-29  Jim Meyering  <meyering@lucent.com>
60701
60702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60703         [one-argument getmntent function]): Include stdio.h before mntent.h.
60704         SunOS 4.1.x needs it for the declaration of `FILE'.
60705         Patch by Volker Borchert.
60706
60707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60708         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60709         sys/fs_types.h, and make the link-test for getfsstat guard #include
60710         directives with appropriate #if HAVE_*_H tests so that we can
60711         detect getfsstat on Apple Darwin1.3.7 systems.
60712         Reported by Nelson Beebe.
60713         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60714
60715 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60716
60717         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60718         #defines strtoimax.  Also treat the other strto* functions
60719         like strtoimax.
60720
60721         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60722         Check for strtoul and strtoumax,
60723         as those declarations are made even in the signed case.
60724         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60725         Likewise, for strtol and strtoimax.
60726
60727 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60728
60729         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60730         #defines strtoimax.  Also treat the other strto* functions
60731         like strtoimax.
60732
60733         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60734         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60735         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60736
60737 2001-09-26  Jim Meyering  <meyering@lucent.com>
60738
60739         Most macros in unlocked-io.h had the wrong number of arguments.
60740         * lib/gen-uio: New script.
60741         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60742         * lib/unlocked-io.hin: Remove file.
60743         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60744         rather than trying to embed it here.
60745         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60746         Reported by Padraig Brady.
60747
60748 2001-09-25  Volker Borchert  <bt@teknon.de>
60749
60750         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60751         `result'.
60752
60753 2001-09-24  Jim Meyering  <meyering@lucent.com>
60754
60755         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60756
60757 2001-09-23  Jim Meyering  <meyering@lucent.com>
60758
60759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60760         instead of the mere test for existence of mntent.h.  The latter
60761         would get a false-positive on AIX 3.4 systems.
60762         In the outer getmntent if-block, don't die if neither of the getmntent
60763         tests succeeds.  Instead, just fall through and continue with the
60764         remaining tests.
60765
60766 2001-09-23  Jim Meyering  <meyering@lucent.com>
60767
60768         * lib/mountlist.c: Remove useless parentheses in #if directives.
60769         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60770         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60771
60772 2001-09-22  Jim Meyering  <meyering@lucent.com>
60773
60774         * m4/gettext.m4: New file.  From gettext.
60775         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60776         * m4/progtest.m4: Likewise
60777         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60778         * m4/glibc21.m4: Likewise.
60779
60780         * m4/libintl.m4: Remove.  No longer used.
60781
60782 2001-09-22  Jim Meyering  <meyering@lucent.com>
60783
60784         * lib/localcharset.c: Update from latest gettext.
60785         * lib/config.charset: Likewise.
60786
60787 2001-09-20  Jim Meyering  <meyering@lucent.com>
60788
60789         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60790         strtoimax.
60791         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60792         strtoumax.
60793
60794 2001-09-20  Jim Meyering  <meyering@lucent.com>
60795
60796         * lib/xstrtol.c (strtoimax): Guard declaration with
60797         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60798         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60799         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60800         (strtoumax): Likewise, for completeness (it wasn't necessary).
60801
60802 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60803
60804         * lib/strtoimax.c (HAVE_LONG_LONG):
60805         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60806         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60807         to work around bug in IBM C compiler.
60808
60809 2001-09-17  Jim Meyering  <meyering@lucent.com>
60810
60811         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60812         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60813         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60814         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60815         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60816         whenever the right hand side need not be expanded by the shell.
60817
60818 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60819
60820         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60821         library.  It's not correct, as some older glibcs are buggy.
60822         fnmatch wasn't fixed until glibc 2.2.
60823
60824         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60825         special shell magic here.
60826
60827 2001-09-16  Jim Meyering  <meyering@lucent.com>
60828
60829         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60830         * m4/jm-macros.m4: Require it.
60831
60832 2001-09-16  Jim Meyering  <meyering@lucent.com>
60833
60834         * lib/mkdir.c: New file.
60835
60836 2001-09-15  Jim Meyering  <meyering@lucent.com>
60837
60838         * m4/jm-macros.m4: Check for help2man.
60839
60840 2001-09-11  Jim Meyering  <meyering@lucent.com>
60841
60842         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60843         The body, by Paul Eggert, was moved here from configure.in.
60844         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60845
60846 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60847
60848         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60849         (jm_PREREQ): Use it.
60850
60851 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60852
60853         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60854         Use ssize_t, not int, to store result of readlink.
60855         Check for ssize_t overflow as well as size_t overflow,
60856         as POSIX says the result of readlink is implementation-defined
60857         when ssize_t overflows.
60858         Remove unnecessary cast to char*.
60859         Use free+malloc instead of realloc, as the storage doesn't need
60860         to be preserved and it's clearer and can be more efficient that way.
60861         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60862         * lib/xreadlink.h (xreadlink): Update prototype.
60863
60864 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60865
60866         * lib/xgetcwd.c: Revert some of the previous change; intead,
60867         fix the HAVE_GETCWD_NULL code to behave more like the
60868         !HAVE_GETCWD_NULL code used to.
60869
60870         Include "xalloc.h".
60871         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60872         invoke xalloc_die.
60873
60874 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60875
60876         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60877         sys/param.h, as pathmax.h includes them.
60878
60879 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60880
60881         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60882         (jm_PREREQ_XGETCWD): New macro.
60883
60884         * m4/getcwd.m4: New file.
60885
60886 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60887
60888         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60889         like the HAVE_GETCWD_NULL code.
60890         Include pathmax.h if not HAVE_GETCWD.
60891         Do not include xalloc.h.
60892         (INITIAL_BUFFER_SIZE): New symbol.
60893         Do not use xmalloc / xrealloc, since the caller is responsible for
60894         handling errors.  Preserve errno around `free' during failure.
60895         Do not overrun buffer when using getwd.
60896
60897 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60898
60899         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60900         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60901         getcwd (NULL, 0).
60902
60903 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60904
60905         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60906         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60907         spotted by Jim Meyering.
60908
60909 2001-09-03  Jim Meyering  <meyering@lucent.com>
60910
60911         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60912         failure.
60913
60914 2001-09-02  Jim Meyering  <meyering@lucent.com>
60915
60916         * lib/error.c: Update from GNU libc.
60917
60918 2001-09-01  Jim Meyering  <meyering@lucent.com>
60919
60920         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60921         Used by df.
60922
60923 2001-09-01  Jim Meyering  <meyering@lucent.com>
60924
60925         * lib/xreadlink.c: New file.
60926         * lib/xreadlink.h: New file.
60927         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60928         xreadlink.h.
60929
60930         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60931         doesn't conflict with sparc Solaris 7's definition in
60932         /usr/include/sys/int_types.h.
60933
60934         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60935         files.
60936         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60937         and strncasecmp as r-values.  Unixware didn't have declarations.
60938
60939 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60940
60941         * lib/xstrtol.h: Add copyright notice.
60942         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60943         LONGINT_INVALID_SUFFIX_CHAR.
60944
60945 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60946
60947         * lib/xstrtol.c (strtoimax): New decl.
60948
60949 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60950
60951         * lib/xgetcwd.c: Don't include pathmax.h.
60952         Include stdlib.h and unistd.h if available.
60953         Include xalloc.h.
60954         (xmalloc, xstrdup, free): Remove decls.
60955         (xgetcwd): Don't assume sizes fit in unsigned.
60956         Check for overflow when computing sizes.
60957         Simplify reallocation code.
60958
60959 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60960
60961         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60962         a directory's st_size can have an arbitrary value, so the old
60963         usage could waste an arbitrary amount of memory.  All uses
60964         changed.
60965         * lib/savedir.h: Update prototype.
60966
60967 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60968
60969         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60970
60971         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60972         old strtoimax.c.
60973
60974         Also, make the following further changes to make this file's
60975         configuration more similar to that of strtol.c:
60976         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60977         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60978         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60979         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60980         changed to signed values.
60981
60982         And make the following changes as well:
60983         Fix copyright notice, as 1999 was missing.
60984         (verify): New macro.
60985         (strtoimax): Check sizes at compile-time, not run-time.
60986         Prefer strtol to strtoll if both work.
60987         (main): Remove; it was not that useful and was a pain to maintain.
60988
60989         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60990
60991 2001-08-31  Jim Meyering  <meyering@lucent.com>
60992
60993         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60994         Use an initial, malloc'd, buffer of length 128 rather than
60995         a statically allocated one of length 1024.
60996
60997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60998
60999         Simplify code, partly by assuming autoconf 2.52 semantics.
61000
61001         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61002
61003         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61004         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61005         All uses removed.
61006         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61007         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61008         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61009         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61010         jm_AC_HEADER_INTTYPES_H.
61011         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61012
61013         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61014
61015         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61016         Quote first arg of AC_DEFUN.
61017         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61018         since they are needed to parse the include file even if we need
61019         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61020         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61021         but with opposite signedness.
61022
61023 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61024
61025         Merge 'exclude' changes from tar 1.13.22.
61026         This fixes one or two unlikely storage allocation overflow bugs,
61027         but doesn't change user-visible behavior otherwise.
61028
61029 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61030
61031         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61032         (jm_PREREQ_EXCLUDE): New macro.
61033
61034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61035
61036         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61037         tm to be declared.
61038
61039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61040
61041         * lib/hash.c: Remove '2001' from copyright notice.
61042
61043 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61044
61045         * lib/full-write.h: New file.
61046         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61047         * lib/full-write.c: Correct credits, as cccp.c no longer
61048         exists and anyway it was so heavily changed from the old cccp
61049         code as to be unrecognizable.  Include full-write.h.
61050         (full_write) Return size_t, with short writes meaning failure.
61051         All callers changed.  This fixes a bug with large buffers
61052         on 64-bit hosts.
61053         * lib/utime.c: Include full-write.h.
61054
61055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61056
61057         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61058         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61059         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61060         Include if available.
61061         (<xalloc.h>): Include
61062         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61063         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61064         collide with FNM macros.
61065         (struct patopts): New struct.
61066         (struct exclude): Use it, as exclude patterns now come with options.
61067         (new_exclude): Support above changes.
61068         (new_exclude, add_exclude_file):
61069         Initial size must now be a power of two to simplify overflow checking.
61070         (free_exclude, fnmatch_no_wildcards): New function.
61071         (excluded_filename): No longer requires options arg, as the options
61072         are determined by add_exclude.  Now returns bool, not int.
61073         (excluded_filename, add_exclude):
61074         Add support for the fancy new exclusion options.
61075         (add_exclude, add_exclude_file): Now takes int options arg.
61076         Check for arithmetic overflow when computing sizes.
61077         (add_exclude_file): xrealloc might modify errno, so don't
61078         realloc until after errno might be used.
61079
61080         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61081         New macros.
61082         (free_exclude): New decl.
61083         (add_exclude, add_exclude_file): Now takes int options arg.
61084         (excluded_filename): No longer requires options arg, as the options
61085         are determined by add_exclude.  Now returns bool, not int.
61086
61087 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61088
61089         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61090
61091 2001-08-27  Jim Meyering  <meyering@lucent.com>
61092
61093         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61094
61095         * lib/version-etc.c (N_): Remove definition.
61096         Revert most of last change.
61097         Instead, simply don't mark the `Copyright...' string for translation.
61098         Based on advice from Paul Eggert.
61099
61100         * lib/strtoxmax.c: Tweak comment.
61101
61102 2001-08-26  Jim Meyering  <meyering@lucent.com>
61103
61104         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61105
61106         * m4/xstrtoimax.m4: New file.
61107         * m4/xstrtoumax.m4: Add comments explaining why we
61108         AC_REPLACE_FUNCS(strtol).
61109
61110 2001-08-26  Jim Meyering  <meyering@lucent.com>
61111
61112         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61113         of copyright with `%s' so translators don't get an untranslated
61114         message in 2002.
61115         (COPYRIGHT_YEAR): Define.
61116         (version_etc): Use fprintf rather than fputs.
61117         Suggestion from Ulrich Drepper.
61118
61119         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61120
61121         * lib/strtoll.c: New file, from GNU libc.
61122         * lib/xstrtoimax.c: New file.
61123
61124         * lib/xstrtol.h: Add xstrtoimax.
61125         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61126         * lib/strtoimax.c: New file.  Likewise, but first define
61127         STRTOUXMAX_SIGNED.
61128
61129         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61130         ...
61131         * lib/strtoxmax.c: ... then renamed to this.
61132
61133 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61134
61135         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61136         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61137         (jm_AC_TYPE_INTMAX_T): New macro.
61138         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61139
61140         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61141
61142         * m4/longlong.m4: Renamed from ulonglong.m4.
61143         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61144         * m4/uintmax_t.m4: Removed.
61145
61146 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61147
61148         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61149         Port to Solaris 8, where 'sed' requires a space after the 'r'
61150         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61151         Redirect output to $tmp just once.
61152
61153 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61154
61155         * lib/addext.c (<errno.h>): Include.
61156         (errno): Declare if not defined.
61157         (addext): Work correctly when pathconf returns -1 and leaves
61158         errno alone because there is no limit.  Also, work even if
61159         pathconf returns a value greater than SIZE_MAX.
61160
61161 2001-08-12  Jim Meyering  <meyering@lucent.com>
61162
61163         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61164         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61165         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61166         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61167         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61168         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61169         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61170         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61171         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61172         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61173         utime.m4, utimes.m4, xstrtoumax.m4:
61174         Quote the first argument in each use of AC_DEFUN.
61175
61176 2001-08-12  Jim Meyering  <meyering@lucent.com>
61177
61178         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61179         Simply `return getcwd (NULL, 0);'.
61180         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61181         Use 1300 as initial value for length, not PATH_MAX.
61182
61183         * lib/pathmax.h: Clean up cpp syntax.
61184
61185 2001-08-12  Jim Meyering  <meyering@lucent.com>
61186
61187         * lib/gettimeofday.c: New file.
61188         * lib/gtod.h: New file.
61189         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61190
61191 2001-08-05  Jim Meyering  <meyering@lucent.com>
61192
61193         * m4/jm-macros.m4: Require autoconf-2.52.
61194
61195 2001-08-04  Jim Meyering  <meyering@lucent.com>
61196
61197         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61198         stmt, to get in sync with glibc.
61199
61200 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61201
61202         The following changes are from gettext 0.10.39 as maintained by
61203         Bruno Haible.
61204
61205         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61206         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61207         with inverted sense.  All uses changed.
61208
61209         * lib/mbswidth.c: Don't include <limits.h>.
61210         Include <stdlib.h> and <string.h> unconditionally.
61211         (iswcntrl, mbsinit, ISCNTRL): New macros.
61212         (mbsnwidth): Use K&R style function declarations.
61213         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61214         can optimize it when MB_CUR_MAX == 1.
61215         The width of control characters is zero, not 1.
61216
61217 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61218
61219         The following changes are from gettext 0.10.39 as maintained by
61220         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61221
61222         * m4/codeset.m4: Upgrade to serial AM1.
61223         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61224         all uses changed.  Quote first arg of AC_DEFUN.
61225         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61226
61227         * m4/iconv.m4: Upgrade to serial AM2.
61228         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61229         Add --with-libconv-prefix.
61230         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61231         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61232         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61233         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61234         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61235
61236         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61237         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61238         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61239         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61240         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61241         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61242         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61243         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61244         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61245
61246         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61247         string.h any more.
61248
61249         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61250         not the default value.
61251
61252         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61253         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61254         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61255         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61256         Also check for iswcntrl, used for wcwidth fallback.
61257         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61258         to Autoconf 2.13.
61259
61260 2001-08-03  Jim Meyering  <meyering@lucent.com>
61261
61262         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61263         as it was in the original.  Reported by Paul Eggert.
61264
61265 2001-07-16  Jim Meyering  <meyering@lucent.com>
61266
61267         * m4/gettimeofday.m4: New file.
61268         Prompted by a report from Bernhard Baehr.
61269
61270 2001-07-15  Jim Meyering  <meyering@lucent.com>
61271
61272         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61273         stuff. Now it's in ../Makefile.cfg.
61274
61275 2001-07-15  Jim Meyering  <meyering@lucent.com>
61276
61277         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61278         (BUILT_SOURCES): Add unlocked-io.h.
61279         (io_functions): Define.
61280         (unlocked-io.h): New rule.
61281         (DISTCLEANFILES): Add unlocked-io.h.
61282         (all-local): Depend on unlocked-io.h, to ensure it is created.
61283
61284         * lib/unlocked-io.hin: New file
61285
61286         * lib/regex.c: Update from glibc.
61287
61288 2001-07-05  Jim Meyering  <meyering@lucent.com>
61289
61290         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61291         recommendation.
61292         (libfetish_a_SOURCES): Put all .h files here instead.
61293         Remove a thus-exposed (better checks in automake) duplicate and
61294         two unnecessary .h files.
61295
61296 2001-07-04  Jim Meyering  <meyering@lucent.com>
61297
61298         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61299         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61300         distcheck failure.
61301
61302 2001-07-02  Jim Meyering  <meyering@lucent.com>
61303
61304         The following changes were prompted by suggestions from Bruno Haible.
61305
61306         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61307         is now generated.
61308         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61309         definition of EXTRA_DIST.
61310         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61311         ensure that the generated file is created/updated whenever the list
61312         of $(unlocked_functions) is changed.
61313         (jm-glibc-io.m4): New rule.
61314         (unlocked-io.h): New rule -- currently unused.
61315
61316 2001-06-24  Jim Meyering  <meyering@lucent.com>
61317
61318         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61319         unmatched right bracket, rather than kludging it with an extra,
61320         falsely-matching quote in a comment.  Patch by Akim Demaille.
61321
61322 2001-06-11  Jim Meyering  <meyering@lucent.com>
61323
61324         * lib/regex.c: Update from GNU libc.
61325
61326 2001-05-27  Jim Meyering  <meyering@lucent.com>
61327
61328         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61329         Check for ut_type in struct utmp.
61330
61331 2001-05-27  Jim Meyering  <meyering@lucent.com>
61332
61333         * lib/readutmp.h (UT_TYPE): Define.
61334
61335 2001-05-24  Jim Meyering  <meyering@lucent.com>
61336
61337         * lib/argmatch.c: Include "quote.h".
61338         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61339         quote function.  Reported by Göran Uddeborg.
61340
61341 2001-05-22  Jim Meyering  <meyering@lucent.com>
61342
61343         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61344         now that we use the package-supplied version unconditionally.
61345         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61346
61347 2001-05-21  Jim Meyering  <meyering@lucent.com>
61348
61349         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61350         shell syntax errors.
61351
61352 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61353
61354         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61355
61356 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61357
61358         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61359         Don't bother to check library strftime, since
61360         we'll be using our own my_strftime function anyway.
61361         Define my_strftime instead of strftime.
61362
61363 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61364
61365         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61366         which is not yet declared.
61367
61368 2001-05-15  Jim Meyering  <meyering@lucent.com>
61369
61370         * m4/regex.m4: Use proper quoting so brackets appear in the test
61371         program.
61372         Reported by, and with help from, Bruno Haible.
61373
61374 2001-05-13  Jim Meyering  <meyering@lucent.com>
61375
61376         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61377         undefined.
61378
61379 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61380
61381         dirname code cleanup.  base_name now behaves more compatibly
61382         with POSIX basename when given file names that have trailing
61383         slashes, and similarly for dir_name.  Add new primitives
61384         base_len and dir_len.  Put the directory-name-related decls
61385         into dirname.h.
61386
61387         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61388         * lib/backupfile.c (base_name): Likewise.
61389         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61390         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61391         * lib/makepath.c (strip_trailing_slashes): Likewise.
61392         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61393         ISSLASH): Likewise.
61394         * lib/rename.c (strip_trailing_slashes): Likewise.
61395         * lib/same.c (base_name): Likewise.
61396         * lib/stripslash.c (ISSLASH): Likewise.
61397
61398         * lib/addext.c: Include <dirname.h> after size_t is defined.
61399         * lib/backupfile.c: Likewise.
61400
61401         * lib/addext.c (addext): Use base_len to trim redundant
61402         trailing slashes instead of doing it ourselves.
61403         But do not trim the last slash if it is not redundant.
61404
61405         * lib/backupfile.c (find_backup_file_name,
61406         max_backup_version): Use base_len instead of rolling it ourselves.
61407         Handle the case of "" and (on DOS) "C:" correctly.
61408
61409         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61410         needed. Include <string.h>, <dirname.h>.
61411         (base_name): Allow file names ending in slashes, other than names
61412         that are all slashes.  In this case, return the basename followed
61413         by the slashes.  This is more general, and can be used in places
61414         where the original base_name purposely had an assertion failure.
61415         (base_len): New function.
61416
61417         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61418         Do not include <assert.h>; no longer needed.
61419         Include xalloc.h.
61420         (memrchr): Remove decl.
61421         (dir_name_r): Remove.
61422         (dir_len): Renamed from dirlen.  All callers changed.
61423         Rewrite in terms of base_name, for simplicity and consistency.
61424         (dir_name): Never return NULL.  All callers changed.
61425         Do not include <stdlib.h> in test program; no longer needed.
61426         return 0; is fine for test program.
61427
61428         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61429         New macros.
61430         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61431
61432         * lib/path-concat.c (path_concat): Use base_len to compute
61433         base length, not strlen; this means we cannot rely on memcpy
61434         to null-terminate.
61435
61436         * lib/same.c (STREQ): Remove.
61437         (same_name): Handle the case where the basename ends in trailing '/'.
61438
61439         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61440         a slash was stripped.  Do not strip the last slash after a
61441         file system prefix.
61442
61443 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61444
61445         * lib/Makefile.am (libfetish_a_SOURCES):
61446         Add strftime.c, since we now compile it on all hosts.
61447
61448         * lib/strftime.c (my_strftime):
61449         Define to nstrftime if emacs, but only if my_strftime is not defined.
61450         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61451         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61452         Add one more extra argument: a nanoseconds value.
61453         All uses changed.
61454         (ns): New macro.
61455         (my_strftime function): Add %N format.
61456         (emacs_strftimeu): Renamed from emacs_strftime,
61457         with extra ut argument.
61458
61459 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61460
61461         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61462
61463 2001-04-21  Jim Meyering  <meyering@lucent.com>
61464
61465         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61466         doesn't interfere.
61467
61468 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61469
61470         * m4/ftruncate.m4: Check for chsize.
61471         Link with ftruncate.o unconditionally if ftruncate is missing.
61472         This was required when cross-compiling to i586-mingw32msvc.
61473
61474 2001-04-08  Jim Meyering  <meyering@lucent.com>
61475
61476         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61477         recomputed; that's necessary when the offset spans a DST transition.
61478         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61479
61480 2001-04-02  Jim Meyering  <meyering@lucent.com>
61481
61482         * lib/regex.h, regex.c: Update from GNU libc.
61483
61484 2001-03-24  Jim Meyering  <meyering@lucent.com>
61485
61486         * m4/jm-macros.m4: Require autoconf-2.49d.
61487
61488 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61489
61490         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61491
61492 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61493
61494         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61495
61496 2001-03-17  Jim Meyering  <meyering@lucent.com>
61497
61498         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61499         now that the version in autoconf is equivalent.
61500         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61501
61502         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61503         Suggestion from Akim Demaille.
61504
61505         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61506         (jm_PREREQ_TEMPNAME): New function.
61507
61508 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61509
61510         * lib/tempname.c (uint64_t): Define to uintmax_t if
61511         not defined, and if UINT64_MAX is not defined.
61512         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61513         Reported by John David Anglin.
61514
61515 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61516
61517         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61518         resolve alias if codeset is empty.
61519         * lib/config.charset (BeOS): Use wildcard syntax.
61520
61521 2001-03-13  Jim Meyering  <meyering@lucent.com>
61522
61523         * lib/path-concat.c (path_concat)
61524         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61525         concatenating e.g., `C:' and `foo'.
61526         From Bruno Haible.
61527
61528 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61529
61530         * lib/localcharset.c (locale_charset): Don't use
61531         setlocale(LC_CTYPE,NULL). Don't return NULL.
61532         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61533
61534 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61535
61536         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61537         support for DOS/DJGPP.
61538
61539 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61540
61541         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61542         lacks mkstemp.  Compile our own tempname.c if we compile our own
61543         mkstemp.c, as mkstemp relies on tempname.
61544
61545 2001-03-01  Jim Meyering  <meyering@lucent.com>
61546
61547         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61548         AH_VERBATIM really does output its argument verbatim.
61549
61550 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61551
61552         * lib/Makefile.am (libfetish_a_SOURCES):
61553         Add dup-safer.c, fopen-safer.c.
61554         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61555
61556         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61557         * lib/unistd-safer.h: New files.
61558
61559 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61560
61561         The mkstemp replacement is taken from glibc 2.2.2, with some
61562         portability fixes for use outside glibc, as follows:
61563
61564         * lib/tempname.c (struct_stat64): New macro.
61565         (direxists, __gen_tempname): Use it.
61566         This avoids a portability problem with Solaris 8.
61567
61568         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61569         (<stddef.h>, <stdint.h>, <string.h>):
61570         Include only if STDC_HEADERS || _LIBC.
61571         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61572         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61573         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61574         (__set_errno): Define this macro if <errno.h> doesn't.
61575         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61576         Define these macros if <stdio.h> doesn't.
61577         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61578         Define these macros if <sys/stat.h>
61579         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61580         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61581         __xstat64): Define if not _LIBC.
61582         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61583         (__gen_tempname): Invoke gettimeofday only if
61584         HAVE_GETTIMEOFDAY || _LIBC;
61585         otherwise, fall back on plain "time".
61586         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61587
61588         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61589
61590         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61591
61592 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61593
61594         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61595
61596 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61597
61598         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61599         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61600         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61601         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61602
61603 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61604
61605         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61606         Remove workaround macros for hosts that have mbrtowc but not
61607         mbstate_t, as we now insist on proper declarations for both
61608         before using mbrtowc.
61609
61610 2001-02-17  Jim Meyering  <meyering@lucent.com>
61611
61612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61613         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61614         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61615         UnixWare 7.1.1.
61616
61617         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61618         rather than AC_CACHE_VAL.
61619
61620 2001-02-17  Jim Meyering  <meyering@lucent.com>
61621
61622         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61623         around included file name.
61624
61625         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61626
61627         * lib/strftime.c: Update from GNU libc (the only changes were to
61628         comments).
61629
61630 2001-02-17  Jim Meyering  <meyering@lucent.com>
61631
61632         * lib/regex.c: Update from libc.
61633
61634 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61635
61636         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61637         clash.
61638
61639 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61640
61641         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61642         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61643         Reported by Mark Hounschell via Paul Eggert.
61644
61645 2001-02-07  Jim Meyering  <meyering@lucent.com>
61646
61647         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61648
61649 2001-02-05  Jim Meyering  <meyering@lucent.com>
61650
61651         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61652         it includes the patch required for `large file' support with at least
61653         HP-UX's 10.20 /bin/cc.
61654
61655 2001-02-03  Jim Meyering  <meyering@lucent.com>
61656
61657         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61658         AS_IF, now that it works once again (mysteriously).
61659         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61660
61661 2001-01-30  Jim Meyering  <meyering@lucent.com>
61662
61663         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61664         * m4/chown.m4: Rename conftestchown to conftest.chown.
61665         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61666         s/conftestdir2/conftest.d2/.
61667         * m4/utimes.m4: s/conftestdata/conftest.data/
61668         Inspired by Pavel Roskin's change in autoconf.
61669
61670 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61671
61672         * lib/config.charset: Update for FreeBSD 4.2.
61673
61674 2001-01-27  Jim Meyering  <meyering@lucent.com>
61675
61676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61677         a use of AS_IF.
61678         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61679
61680 2001-01-26  Jim Meyering  <meyering@lucent.com>
61681
61682         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61683         quotearg.c includes it.
61684
61685 2001-01-26  Jim Meyering  <meyering@lucent.com>
61686
61687         * lib/quotearg.c: Include stddef.h.
61688         * lib/quote.c: Include stddef.h.
61689         Reported by Axel Kittenberger.
61690
61691         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61692         line in double quotes so that it evokes a better diagnostic.
61693         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61694         Reported by Axel Kittenberger.
61695
61696 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61697
61698         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61699         as if it was a `charset'.
61700
61701 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61702
61703         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61704         has const.
61705
61706 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61707
61708         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61709         to avoid a warning.  Add back 'const' to inptr.
61710
61711 2001-01-20  Jim Meyering  <meyering@lucent.com>
61712
61713         Be sure that headers are checked before used in code compiled
61714         for the type checks.
61715         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61716         In place of that, invoke jm_CHECK_ALL_TYPES.
61717         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61718         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61719         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61720         The check for ssize_t was mistakenly run before the test for unistd.h.
61721
61722         The configure-time check for stdbool.h was missing.
61723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61724         (jm_PREREQ_HASH): New function.
61725
61726 2001-01-17  Jim Meyering  <meyering@lucent.com>
61727
61728         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61729         for autoconf-2.49c.
61730         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61731
61732 2001-01-16  Jim Meyering  <meyering@lucent.com>
61733
61734         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61735         From Bruno Haible.
61736
61737 2001-01-14  Jim Meyering  <meyering@lucent.com>
61738
61739         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61740         foo and bar.  Create conftestdir/ in the script, not in the C code.
61741         Remove directories in the script, not in the C code.
61742         Remove conftestdir{,2} before trying to create the directory.
61743         Make the entire configure script fail if the mkdir fails.
61744
61745 2001-01-14  Jim Meyering  <meyering@lucent.com>
61746
61747         * lib/rename.c: New file.  From Volker Borchert.
61748         Include stdlib.h, string.h or strings.h, and xalloc.h.
61749         Use strip_trailing_slashes rather than open-coding it.
61750
61751 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61752
61753         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61754
61755 2001-01-03  Jim Meyering  <meyering@lucent.com>
61756
61757         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61758         of local `inptr' to avoid warning with some system declarations of
61759         iconv.
61760
61761 2001-01-02  Volker Borchert  <bt@teknon.de>
61762
61763         * m4/rename.m4: New file.
61764         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61765
61766 2001-01-01  Jim Meyering  <meyering@lucent.com>
61767
61768         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61769         even on systems with utmpx.h.  It's necessary for the declaration of
61770         utmp's ut_user member.  Reported by Andreas Jaeger.
61771
61772         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61773         available. They are required for the declarations of getgrgid and
61774         getpwuid resp.
61775         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61776         Reported by Andreas Jaeger.
61777
61778 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61779
61780         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61781         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61782         so `make install' also works in VPATH builds.
61783
61784 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61785
61786         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61787         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61788         can be used in subdirectories.
61789
61790 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61791
61792         * lib/modechange.c: Do not assume that mode_t uses the
61793         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61794         the other-execute bit of FOO even if S_IXOTH != 1.
61795
61796         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61797         WOTH, XOTH, ALLM): New macros.
61798         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61799          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61800         Use them.
61801         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61802         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61803         (mode_compile):
61804         No need to use uintmax_t; unsigned long is long enough.
61805         Don't bother to get suffix since we don't use it.
61806
61807 2000-12-26  Jim Meyering  <meyering@lucent.com>
61808
61809         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61810         better with autoheader.
61811
61812 2000-12-24  Jim Meyering  <meyering@lucent.com>
61813
61814         * lib/hash.c (is_prime): Return explicit boolean values.
61815         (hash_get_first): Return NULL to appease Irix5.6's 89.
61816         Reported by Nelson Beebe.
61817
61818 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61819
61820         * lib/localcharset.c (locale_charset): Add support for Win32.
61821
61822 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61823
61824         * lib/physmem.h, lib/physmem.c: New files.
61825
61826         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61827         (noinst_HEADERS): Add physmem.h.
61828
61829         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61830         't' for compatibility with Solaris 8 sort.
61831
61832 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61833
61834         * lib/config.charset: Add support for BeOS.
61835
61836 2000-12-17  Jim Meyering  <meyering@lucent.com>
61837
61838         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61839         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61840
61841 2000-12-16  Jim Meyering  <meyering@lucent.com>
61842
61843         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61844         N and M) would have treated it like `chown N:N FILE'.
61845
61846         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61847
61848 2000-12-16  Jim Meyering  <meyering@lucent.com>
61849
61850         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61851         SHELLS_FILE to a file name that's useful on djgpp systems.
61852         Include stdlib.h.
61853         (ADDITIONAL_DEFAULT_SHELLS): Define.
61854         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61855         Based mostly on a patch from Prashant TR.
61856
61857 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61858
61859         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61860         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61861         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61862
61863 2000-12-08  Andreas Schwab  <schwab@suse.de>
61864
61865         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61866         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61867
61868 2000-12-07  Jim Meyering  <meyering@lucent.com>
61869
61870         * lib/stripslash.c (ISSLASH): Define.
61871         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61872         `/'.
61873         From Prashant TR.
61874
61875         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61876         (dir_name_r): Declare this function as static.
61877         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61878         manifest itself on a name containing a mix of slashes and
61879         backslashes.
61880         Make this function work with names starting with a DOS-style
61881         drive letter and colon prefix.
61882         (dir_name): Append `.' if necessary.
61883         Based mostly on patches from Prashant TR and Eli Zaretskii.
61884
61885         * lib/dirname.h (dir_name_r): Remove prototype.
61886
61887 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61888
61889         * m4/off_t-format.m4: Remove this file.
61890         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61891
61892 2000-12-06  Jim Meyering  <meyering@lucent.com>
61893
61894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61895         replacement strtoull, we may well need the replacement strtoul, too.
61896         Check for declarations of strtoul and strtoull.
61897         Check for strtol.  Mainly as a cue to cause automake to include
61898         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61899         Check for limits.h -- strtol.c needs it.
61900
61901 2000-12-05  Jim Meyering  <meyering@lucent.com>
61902
61903         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61904
61905 2000-12-04  Jim Meyering  <meyering@lucent.com>
61906
61907         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61908         Also include memory.h, stdlib.h, unistd.h if appropriate.
61909         Reported by Andreas Jaeger (conflicting declaration of malloc).
61910
61911 2000-12-02  Jim Meyering  <meyering@lucent.com>
61912
61913         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61914         * m4/jm-macros.m4 (jm_MACROS): require it.
61915
61916 2000-12-02  Jim Meyering  <meyering@lucent.com>
61917
61918         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61919
61920 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61921
61922         * lib/memrchr.c: Include <config.h> before any system include file.
61923
61924 2000-11-30  Jim Meyering  <meyering@lucent.com>
61925
61926         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61927
61928 2000-11-30  Jim Meyering  <meyering@lucent.com>
61929
61930         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61931
61932 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61933
61934         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61935
61936 2000-11-26  Jim Meyering  <meyering@lucent.com>
61937
61938         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61939
61940 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61941
61942         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61943         size of (size_t) -1; it's not portable.
61944
61945 2000-11-17  Jim Meyering  <meyering@lucent.com>
61946
61947         * lib/strstr.c: Update from GNU libc.
61948
61949 2000-11-17  Akim Demaille  <akim@epita.fr>
61950
61951         * lib/obstack.h: Formatting changes.
61952         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61953         prevent type checking.
61954         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61955         cast the value to (void *): assigning a `foo *' to a `void *'
61956         variable is valid.
61957         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61958
61959 2000-11-16  Jim Meyering  <meyering@lucent.com>
61960
61961         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61962
61963 2000-11-11  Jim Meyering  <meyering@lucent.com>
61964
61965         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61966
61967 2000-11-10  Jim Meyering  <meyering@lucent.com>
61968
61969         * lib/obstack.h: Update from GNU libc.
61970         * lib/obstack.c: Likewise.
61971
61972 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61973
61974         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61975
61976 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61977
61978         * lib/getusershell.c (setusershell): Use rewind rather than
61979         fseek/fseeko, to avoid configuration hassles with fseeko.
61980         Don't bother opening SHELLS_FILE if shellstream is NULL;
61981         it's not necessary.
61982
61983 2000-11-05  Jim Meyering  <meyering@lucent.com>
61984
61985         * lib/makepath.h (make_dir): Declare.
61986         * lib/makepath.c (make_dir): Remove `static' attribute.
61987         Tweak a comment.
61988
61989 2000-11-04  Jim Meyering  <meyering@lucent.com>
61990
61991         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61992
61993 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61994
61995         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61996         last one in a bucket, advance to the next bucket.
61997
61998 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61999
62000         * lib/fnmatch.c: Do not comment out all the code if we are using
62001         the GNU C library, because in some cases we are replacing buggy
62002         code in the GNU C library itself.
62003
62004 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62005
62006         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62007         (regex_compile): Catch bogus \(\1\).
62008
62009 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62010
62011         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62012         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62013         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62014
62015 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62016
62017         * lib/error.h, getline.h, modechange.h:
62018         Remove "2000" from Copyright line, as the file hasn't been
62019         changed this year other than in the copyright notice.
62020
62021         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62022         was changed this year.
62023
62024 2000-10-29  Jim Meyering  <meyering@lucent.com>
62025
62026         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62027         renaming.
62028         * m4/ls-mntd-fs.m4: Likewise
62029
62030 2000-10-29  Jim Meyering  <meyering@lucent.com>
62031
62032         * lib/xstat.in: Fix grammar in comment.
62033
62034 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62035
62036         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62037         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62038         doesn't define __restrict_arr.
62039
62040 2000-10-28  Jim Meyering  <meyering@lucent.com>
62041
62042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62043         (jm_PREREQ_MEMCHR): New function.
62044
62045 2000-10-28  Jim Meyering  <meyering@lucent.com>
62046
62047         * lib/memchr.c: Update from libc.
62048         Adjust for portability:
62049         [HAVE_STDLIB_H]: Include stdlib.h.
62050         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62051         Undef __memchr, too.
62052         [!weak_alias]: Define __memchr to memchr.
62053
62054         * lib/regex.c: Update from libc.
62055         * lib/regex.h: Likewise.
62056         * lib/getopt1.c: Likewise.
62057         * lib/memcmp.c: Likewise.
62058
62059         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62060         Avoid using fseek, when possible -- it's broken by design.
62061         Patch by Ulrich Drepper.
62062
62063 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62064
62065         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62066         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62067         Giving in to popular pressure to shut up the compiler with casts.
62068
62069 2000-10-26  Jim Meyering  <meyering@lucent.com>
62070
62071         * lib/strftime.c: Update from libc.
62072
62073 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62074
62075         * regex.c: More `unsigned char' -> `re_char' changes.
62076         Also change several `int' into `re_wchar_t'.
62077         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62078         (PUSH_FAILURE_POINTER): Don't cast any more.
62079         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62080         We want GCC to complain, since this piece of code makes
62081         re_match non-reentrant, which *should* be fixed.
62082         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62083         (EXTEND_BUFFER): Use RETALLOC.
62084         (SET_LIST_BIT): Don't cast.
62085         (re_wchar_t): New type.
62086         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62087         that those two functions will always properly return.
62088         (IMMEDIATE_QUIT_CHECK): Cast to void.
62089         (analyse_first): Use recursion rather than an explicit stack.
62090         (re_compile_fastmap): Can't fail anymore.
62091         (re_search_2): Don't check re_compile_fastmap for failure.
62092         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62093         Now also sets the new value (passed in a new argument).
62094         (re_match_2_internal): Use it.
62095         Also, use a new var `reg' of type size_t when looping through regs
62096         rather than reuse the inappropriate `mcnt'.
62097
62098 2000-10-25  Jim Meyering  <meyering@lucent.com>
62099
62100         * lib/obstack.c: Update from libc.
62101
62102 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62103
62104         * regex.c (regex_compile): Change the way of handling a range from
62105         a char less than 256 to a char not less than 256.
62106
62107 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62108
62109         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62110         NT-Emacs only.
62111         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62112         so that re_search functions only quit when callers expect them to.
62113
62114 2000-10-23  Jim Meyering  <meyering@lucent.com>
62115
62116         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62117         wrong.  That set_locale call must not have any side effects.
62118         From Paul Eggert.
62119
62120 2000-10-22  Jim Meyering  <meyering@lucent.com>
62121
62122         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62123         [CYCLIC]: Remove now-unused definition.
62124
62125         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62126         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62127         Suggestion from Ulrich Drepper.
62128
62129 2000-10-21  Jim Meyering  <meyering@lucent.com>
62130
62131         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62132         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62134
62135 2000-10-21  Jim Meyering  <meyering@lucent.com>
62136
62137         * lib/dirname.c (memrchr): Declare if necessary.
62138         (dir_name): Remove the restriction that there be no
62139         trailing slashes.  Now, this code skips past them, effectively
62140         ignoring them.
62141         [TEST_DIRNAME] (main): New unit tests.
62142
62143         * lib/memrchr.c: New file from GNU libc.
62144         Undef __memrchr, too.
62145         [!weak_alias]: Define __memrchr to memrchr.
62146         Guard weak_alias use with `#ifdef weak_alias'.
62147
62148 2000-10-21  Jim Meyering  <meyering@lucent.com>
62149
62150         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62151         (dir_name): Use dir_name_r.
62152         * lib/dirname.h (dir_name_r): Declare it.
62153
62154 2000-10-17  Jim Meyering  <meyering@lucent.com>
62155
62156         * lib/quote.h (PARAMS): Define and use.
62157         Reported by Akim Demaille.
62158
62159         * lib/getopt.c: Update from libc.
62160
62161 2000-10-16  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62164         setlocale.
62165         From Jan Fedak.
62166
62167 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62168
62169         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62170
62171 2000-09-25  Jim Meyering  <meyering@lucent.com>
62172
62173         * lib/md5.h (rol): Define (from GnuPG).
62174
62175         * lib/sha.c: Give credit (GnuPG) where due.
62176         (M): Use rol rather than open-coding it.
62177         Add a FIXME comment.
62178
62179 2000-09-21  Jim Meyering  <meyering@lucent.com>
62180
62181         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62182         Reported by Michael Stone.
62183
62184 2000-09-20  Jim Meyering  <meyering@lucent.com>
62185
62186         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62187         (noinst_HEADERS): Add sha.h.
62188         Based on code from Scott G. Miller and from GnuPG.
62189
62190 2000-09-18  Jim Meyering  <meyering@lucent.com>
62191
62192         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62193         LIBS. Otherwise, everyone ends up linking with -lelf for some
62194         configurations.
62195         Reported by Mike Stone.
62196
62197 2000-09-15  Jim Meyering  <meyering@lucent.com>
62198
62199         * lib/regex.c: Update from libc.
62200
62201 2000-09-10  Jim Meyering  <meyering@lucent.com>
62202
62203         * lib/getopt.c (_getopt_internal): Update from glibc.
62204
62205 2000-09-09  Jim Meyering  <meyering@lucent.com>
62206
62207         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62208         think it should be used as a general replacement for isascii.
62209         * lib/fnmatch.c: Likewise.
62210         * lib/mbswidth.c: Likewise
62211         * lib/regex.c: Likewise.
62212
62213         Don't use atoi.
62214         * lib/userspec.c: Include sys/param.h and limits.h.
62215         Include xstrtol.h.
62216         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62217         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62218         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62219         UID, GID.  Check range.
62220
62221 2000-09-06  Jim Meyering  <meyering@lucent.com>
62222
62223         * lib/getopt.c (_getopt_internal): Update from glibc.
62224
62225 2000-08-30  Jim Meyering  <meyering@lucent.com>
62226
62227         * lib/strftime.c: Merge in changes from GNU libc.
62228
62229 2000-08-26  Jim Meyering  <meyering@lucent.com>
62230
62231         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62232         * m4/fpending.m4: New file.
62233
62234 2000-08-26  Jim Meyering  <meyering@lucent.com>
62235
62236         * lib/closeout.c: Include "__fpending.h".
62237         (close_stdout_status): Return right away if there's nothing to flush.
62238
62239         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62240         * lib/__fpending.c: New file.
62241         * lib/__fpending.h: New file.
62242
62243 2000-08-20  Jim Meyering  <meyering@lucent.com>
62244
62245         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62246         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62247         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62248
62249 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62250
62251         Improve fileutils installation on systems where running
62252         programs (like install) can't be unlinked.
62253         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62254         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62255
62256 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62257
62258         Standardize on "memory exhausted" instead of "Memory exhausted"
62259         or "virtual memory exhausted".
62260         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62261         "virtual memory exhausted".
62262         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62263         our own message.
62264         * lib/userspec.c (parse_user_spec): Likewise.
62265         * lib/bumpalloc.h: comment fix
62266         * lib/same.c, userspec.c: Include xalloc.h.
62267
62268         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62269         not char *const and pointing to a constant array.
62270         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62271         (xrealloc): Comment fix.
62272
62273         * lib/userspec.c (parse_user_spec):
62274         Don't translate a message until just before returning,
62275         to avoid unnecessary translation.
62276
62277 2000-08-07  Jim Meyering  <meyering@lucent.com>
62278
62279         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62280         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62281         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62282         getgroups.c, gethostname.c, getopt.h, group-member.c,
62283         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62284         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62285         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62286         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62287         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62288         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62289         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62290         yesno.c: Back out Copyright date changes for each file with no change
62291         this year.  This eases coordination with other programs using the same
62292         source code modules.  From Paul Eggert.
62293
62294 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62295
62296         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62297         not char, for compatibility with glibc 2.1.3 strftime.c.
62298
62299 2000-08-03  Greg McGary  <greg@mcgary.org>
62300
62301         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62302         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62303         (EXTEND_BUFFER): Use them.
62304
62305 2000-08-01  Jim Meyering  <meyering@lucent.com>
62306
62307         * lib/dirname.c (ISSLASH): Define.
62308         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62309         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62310         both `\' and `/' may be use as path separators.
62311         Based on a patch from Prashant TR.
62312
62313 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62314
62315         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62316         slot vector a constant, since it might get modified.
62317
62318 2000-07-31  Jim Meyering  <meyering@lucent.com>
62319
62320         * lib/xmalloc.c: Use `virtual memory exhausted', not
62321         `Memory exhausted'.
62322         * lib/obstack.c (print_and_abort): Likewise.
62323
62324 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62325
62326         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62327         buffer, so that the caller can always quote one small
62328         component of a "memory exhausted" message in slot 0.
62329         From a suggestion by Jim Meyering.
62330
62331 2000-07-30  Jim Meyering  <meyering@lucent.com>
62332
62333         * lib/makepath.c (make_path): Quote the other instance, too.
62334
62335         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62336         (STATIC_BUF_SIZE): Define.
62337         (quotearg_n_options): Use only statically allocated storage when
62338         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62339         than STATIC_BUF_SIZE.
62340
62341 2000-07-29  Jim Meyering  <meyering@lucent.com>
62342
62343         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62344         * lib/dirname.c (dir_name): Likewise.
62345
62346         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62347         `/'.
62348
62349         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62350         (dir_name): Assert that there are no trailing slashes.
62351
62352 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62353
62354         * lib/mbswidth.h (mbswidth): Add a flags argument.
62355         (mbswidth): New declaration.
62356         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62357         * lib/mbswidth.c (mbswidth): Add a flags argument.
62358         (mbsnwidth): New function.
62359
62360 2000-07-24  Jim Meyering  <meyering@lucent.com>
62361
62362         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62363
62364 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62365
62366         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62367
62368 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62369
62370         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62371         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62372         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62373         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62374         invoke multibyte primitives.
62375
62376 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62377
62378         * lib/quotearg.c:
62379         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62380         so that mbstate_t is always defined.
62381
62382         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62383         be 1 in at least one GCC installation, and this configuration
62384         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62385         performance on hosts that have mbrtowc but have only unibyte
62386         locales, but I assume these hosts are rare.
62387
62388 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62389
62390         * lib/mbswidth.c (_XOPEN_SOURCE):
62391         Don't define; this causes problems on Solaris 7.
62392         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62393
62394 2000-07-23  Jim Meyering  <meyering@lucent.com>
62395
62396         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62397         too: getgrgid, getpwuid, getuid.
62398
62399 2000-07-23  Jim Meyering  <meyering@lucent.com>
62400
62401         * lib/basename.c (base_name): Add an assertion.
62402
62403 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62404
62405         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62406         shadow its mbsinit function.
62407
62408 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62409
62410         * lib/mbswidth.h: New file.
62411         * lib/mbswidth.c: New file.
62412         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62413         (noinst_HEADERS): Add mbswidth.h.
62414
62415 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62416
62417         * lib/config.charset: Add support for FreeBSD. Improve support for
62418         HP-UX and IRIX 6.
62419
62420 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62421
62422         * m4/mbswidth.m4: New file.
62423         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62424
62425 2000-07-15  Jim Meyering  <meyering@lucent.com>
62426
62427         * lib/makepath.c: Include quote.h.
62428         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62429         corresponding argument in a `quote (...)' call.
62430         Give better diagnostics.
62431
62432         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62433         (noinst_HEADERS): Add quote.h.
62434
62435         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62436         from tar's src/misc.c.
62437         * lib/quote.h: New file.  Prototypes for same.
62438
62439 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62440
62441         From a suggestion by Bruno Haible.
62442         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62443         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62444         to decide whether to define the BeOS workaround macro;
62445         this adjusts to the change to AC_MBSTATE_T.
62446
62447 2000-07-14  Jim Meyering  <meyering@lucent.com>
62448
62449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62450         jm_AC_TYPE_UINTMAX_T.
62451
62452 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62453
62454         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62455
62456         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62457         quotearg_buffer_restyled): Add support for
62458         clocale_quoting_style.  Undo previous change to
62459         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62460         and "{RIGHT QUOTATION MARK}" msgids.
62461
62462 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62463
62464         From a suggestion by Bruno Haible.
62465         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62466         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62467         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62468         and mbstate_t, to a single-part test that simply defines mbstate_t.
62469         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62470         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62471
62472 2000-07-10  Jim Meyering  <meyering@lucent.com>
62473
62474         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62475
62476         * m4/gnu-source.m4: Output to confdefs.h directly.
62477         Suggestion from Akim Demaille.
62478
62479 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62480
62481         The old behavior of quoting `like this' doesn't look good with
62482         newer, ISO-style fonts.  See:
62483         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62484
62485         Instead, quote "like this" by default.  Let the translator
62486         tailor the locale-specific quoting behavior by providing
62487         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62488
62489         * lib/quotearg.c (N_): New macro.
62490         (gettext_default): New function.
62491         (quotearg_buffer_restyled): Use
62492         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62493         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62494
62495 2000-07-09  Jim Meyering  <meyering@lucent.com>
62496
62497         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62498         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62499
62500         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62502
62503 2000-07-09  Jim Meyering  <meyering@lucent.com>
62504
62505         * lib/Most files: Update copyright dates to include 2000.
62506
62507 2000-07-08  Jim Meyering  <meyering@lucent.com>
62508
62509         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62510         if not defined.
62511         (xgethostname): Remove now-unnecessary #ifdef.
62512         Move declaration of `err' into loop where it's used.
62513
62514 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62515         and Bruno Haible  <haible@clisp.cons.org>
62516
62517         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62518         only if the test for an object-type mbstate_t fails.  This
62519         prevents us from mistakenly reporting that mbstate_t is a
62520         system object type after we "#define mbstate_t int" to work
62521         around its lack.
62522
62523 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62524         and Bruno Haible  <haible@clisp.cons.org>
62525
62526         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62527
62528 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62529
62530         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62531         to strerror_r.
62532         Include <ctype.h> for use of isalpha.
62533
62534 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62535
62536         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62537         by allocating a larger buffer. Test the gethostname return value for
62538         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62539         returns an error and ENAMETOOLONG isn't defined.
62540
62541 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62542
62543         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62544         dimension.
62545
62546 2000-07-04  Jim Meyering  <meyering@lucent.com>
62547
62548         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62549         of the deprecated AC_CHECKING.
62550
62551 2000-07-04  Jim Meyering  <meyering@lucent.com>
62552
62553         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62554         Reported by Bruno Haible.
62555
62556 2000-07-04  Jim Meyering  <meyering@lucent.com>
62557
62558         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62559         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62560         lacks mbrtowc.
62561
62562 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62563
62564         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62565         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62566
62567 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62568         and Bruno Haible  <haible@clisp.cons.org>
62569
62570         * lib/quotearg.c (mbrtowc):
62571         Assign to *pwc, and return 1 only if result is nonzero.
62572         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62573
62574 2000-07-03  Jim Meyering  <meyering@lucent.com>
62575
62576         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62577
62578 2000-07-03  Jim Meyering  <meyering@lucent.com>
62579
62580         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62581         This is necessary to get a definition of e.g., UTMP_FILE on
62582         HP-UX 10.20.
62583         From Bob Proulx.
62584
62585 2000-07-02  Jim Meyering  <meyering@lucent.com>
62586
62587         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62588
62589         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62590         AC_LIBOBJ(function_name).
62591         * m4/chown.m4: Likewise.
62592         * m4/fnmatch.m4: Likewise.
62593         * m4/ftruncate.m4: Likewise.
62594         * m4/getgroups.m4: Likewise.
62595         * m4/getline.m4: Likewise.
62596         * m4/group-member.m4: Likewise.
62597         * m4/jm-macros.m4: Likewise.
62598         * m4/lstat.m4: Likewise.
62599         * m4/malloc.m4: Likewise.
62600         * m4/memcmp.m4: Likewise.
62601         * m4/nanosleep.m4: Likewise.
62602         * m4/putenv.m4: Likewise.
62603         * m4/realloc.m4: Likewise.
62604         * m4/regex.m4: Likewise.
62605         * m4/stat.m4: Likewise.
62606         * m4/strftime.m4: Likewise.
62607
62608 2000-07-02  Jim Meyering  <meyering@lucent.com>
62609
62610         * lib/quotearg.c (mbstate_t): Don't define here.
62611
62612 2000-07-02  Jim Meyering  <meyering@lucent.com>
62613
62614         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62615
62616 2000-07-01  Jim Meyering  <meyering@lucent.com>
62617
62618         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62619
62620 2000-07-01  Jim Meyering  <meyering@lucent.com>
62621
62622         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62623         problem.
62624
62625 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62626
62627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62628         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62629
62630 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62631
62632         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62633         per change in ../m4/ls-mntd-fs.m4.
62634         (read_filesystem_list): Ignore symbolic links.
62635
62636 2000-06-29  Jim Meyering  <meyering@lucent.com>
62637
62638         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62639         for declaration of strcmp.
62640
62641         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62642
62643         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62644         Avoid warning by casting result to `char *' to remove `const'.
62645
62646 2000-06-28  Jim Meyering  <meyering@lucent.com>
62647
62648         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62649         included by quotearg.c, for which we perform this test.  From
62650         Bruno Haible.
62651
62652 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62653
62654         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62655         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62656         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62657
62658 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62659
62660         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62661
62662 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62663
62664         savedir now sets errno on failure and invokes xmalloc to get memory.
62665         Fix a couple of other minor bugs while we're at it.
62666
62667         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62668         (NAMLEN): Remove macro.
62669         (malloc, realloc): Remove decls.
62670         (stpcpy): Likewise.
62671         ("xalloc.h"): Include.
62672         (NAME_SIZE_DEFAULT): New macro.
62673         (savedir): Use xmalloc / xrealloc to allocate memory.
62674         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62675         Skip "" directory entries.
62676         Use strlen to calculate directory entry length, since the old method
62677         is rarely used these days and isn't worth supporting.
62678         Don't use a pointer after freeing it.
62679         Check for integer overflow when calculating allocation size.
62680         Use memcpy to copy entries, instead of stpcpy.
62681         Set errno properly when returning NULL.
62682         Check for readdir error.
62683
62684 2000-06-26  Jim Meyering  <meyering@lucent.com>
62685
62686         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62687
62688 2000-06-25  Jim Meyering  <meyering@lucent.com>
62689
62690         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62691         Linux header bug when _XOPEN_SOURCE is defined to 500.
62692
62693 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62694
62695         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62696         deficiency.
62697
62698 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62699
62700         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62701         Include xalloc.h.
62702         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62703
62704 2000-06-24  Jim Meyering  <meyering@lucent.com>
62705
62706         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62707         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62708         for which strerror does return char*, but which lacks a conveniently
62709         accessible declaration of the function.  If the compile-test says
62710         strerror_r doesn't work, then resort to a `run'-test that works on
62711         BeOS and segfaults on DEC Unix.
62712
62713 2000-06-24  Jim Meyering  <meyering@lucent.com>
62714
62715         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62716
62717 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62718
62719         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62721
62722 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62723
62724         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62725         (mbrtowc, mbstate_t): Define substitutes if
62726         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62727         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62728         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62729
62730 2000-06-23  Jim Meyering  <meyering@lucent.com>
62731
62732         * m4/afs.m4: Add missing AC_MSG_RESULT.
62733         Reported by Bruno Haible.
62734
62735         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62736         Suggestion from Bruno Haible.
62737
62738 2000-06-23  Jim Meyering  <meyering@lucent.com>
62739
62740         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62741
62742 2000-06-21  Jim Meyering  <meyering@lucent.com>
62743
62744         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62745
62746 2000-06-21  Jim Meyering  <meyering@lucent.com>
62747
62748         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62749         (noinst_HEADERS): Add getstr.h.
62750
62751         * lib/getline.c (getstr): Move into a separate file.
62752         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62753         the following changes: new parameter, delim2; both delim[12]
62754         parameters have type `int', not `char'.  The latter would lose
62755         with 8-bit delimiters.
62756         * lib/getstr.h: New file.
62757
62758 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62759
62760         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62761         than 1024, return a memory chunk of least possible size, instead
62762         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62763         Use free/xmalloc instead of xrealloc to avoid copying for very long
62764         paths.
62765
62766 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62767
62768         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62769         the empty string.
62770
62771 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62772
62773         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62774         address, not strdup.  Include <stdlib.h> and don't declare free().
62775
62776 2000-06-19  Jim Meyering  <meyering@lucent.com>
62777
62778         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62779
62780 2000-06-18  Jim Meyering  <meyering@lucent.com>
62781
62782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62783
62784         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62785         `checking whether...' message to be consistent with that of the
62786         lstat test.
62787
62788 2000-06-18  Jim Meyering  <meyering@lucent.com>
62789
62790         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62791         Besides, these days every porting target provides a mkdir function.
62792
62793         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62794         needed. (this snippet comes from src/system.h).
62795
62796 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62797
62798         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62799
62800 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62801
62802         * lib/human.c (adjust_value): New function.
62803         (human_readable_inexact): Apply rounding style even when
62804         printing approximate values.
62805
62806 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62807
62808         * lib/human.c (human_readable_inexact): Allow an input block
62809         size that is not a multiple of the output block size, and vice versa.
62810         Reported by Piergiorgio Sartor.
62811
62812 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62813
62814         * lib/getdate.y (get_date): Apply relative times after time
62815         zone indicator, not before.  Reported by Todd A. Jacobs.
62816
62817 2000-06-13  Jim Meyering  <meyering@lucent.com>
62818
62819         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62820
62821         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62822
62823 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62824
62825         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62826
62827 2000-06-12  Jim Meyering  <meyering@lucent.com>
62828
62829         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62830         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62831         optional argument.
62832         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62833         the optional argument, `lib'.
62834
62835 2000-06-08  Jim Meyering  <meyering@lucent.com>
62836
62837         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62838
62839 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62840
62841         Rewrite largefile configuration so that we don't need to run
62842         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62843         AC_CANONICAL_HOST in configure.in -- jmm]
62844
62845         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62846         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62847         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62848         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62849         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62850         All uses changed.
62851         Instead of inspecting the output of getconf, try to compile the
62852         test program without and with the macro definition.
62853         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62854         for getconf.  Instead, check for the needed flags by compiling
62855         test programs.
62856
62857 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62858
62859         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62860
62861 2000-06-04  Jim Meyering  <meyering@lucent.com>
62862
62863         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62864         SunOS 4.1.4 for which gid_t is an unsigned type.
62865
62866 2000-06-03  Jim Meyering  <meyering@lucent.com>
62867
62868         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62869         now that autoconf requires that.
62870
62871         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62872         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62873         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62874
62875 2000-06-03  Jim Meyering  <meyering@lucent.com>
62876
62877         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62878
62879 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62880
62881         * m4/glibc21.m4: New file.
62882         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62883
62884 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62885
62886         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62887         newer, don't install charset.alias.
62888         * lib/config.charset: Change the Linux/glibc rules so they become empty
62889         on glibc-2.1 or newer.
62890
62891 2000-06-02  Jim Meyering  <meyering@lucent.com>
62892
62893         * lib/mountlist.c: Back out last change.  Instead, do this...
62894         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62895         me_dummy member using the same `ignore'-testing code.
62896         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62897         fs_type strings.
62898         From Mark D. Roth.
62899
62900 2000-05-29  Jim Meyering  <meyering@lucent.com>
62901
62902         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62903         mounts with the `ignore' attribute.  Based on a patch from
62904         Mark D. Roth.
62905
62906 2000-05-28  Jim Meyering  <meyering@lucent.com>
62907
62908         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62909         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62910         * m4/stat.m4: Likewise.
62911         * m4/lstat.m4: Likewise.
62912         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62913
62914         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62915         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62916
62917 2000-05-26  Jim Meyering  <meyering@lucent.com>
62918
62919         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62920
62921 2000-05-24  Jim Meyering  <meyering@lucent.com>
62922
62923         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62924         autoconf requires that.
62925         * m4/lib-check.m4: Likewise.
62926         * m4/jm-macros.m4: Likewise.
62927         * m4/strftime.m4: Likewise.
62928
62929         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62930         AC_CHECK_DECLS, now that autoconf requires that.
62931
62932 2000-05-22  Jim Meyering  <meyering@lucent.com>
62933
62934         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62935         * m4/lstat.m4: Likewise.
62936
62937 2000-05-22  Jim Meyering  <meyering@lucent.com>
62938
62939         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62940
62941 2000-05-20  Jim Meyering  <meyering@lucent.com>
62942
62943         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62944         (jm_PREREQ): Use it.
62945
62946 2000-05-18  Jim Meyering  <meyering@lucent.com>
62947
62948         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62949         back, too, since it may have been modified by allocate_entry.
62950         (hash_delete): Rewrite to use neither the assignment operator
62951         nor the comma operator in an if-expression.
62952
62953 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62954
62955         * lib/closeout.c:
62956         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62957         Remove; no longer needed.
62958         "quotearg.h": Add include.
62959         (file_name): Do not bother to explicitly initialize to NULL; it's less
62960         efficient on some hosts.
62961         (close_stdout_status): Remove test as to whether stdout was already
62962         closed; it breaks for the case "echo x | sort >&-".
62963         Quote file name colons.
62964         Do not assume that _("write error") lacks format strings.
62965
62966 2000-05-15  Jim Meyering  <meyering@lucent.com>
62967
62968         * lib/version-etc.c (version_etc_copyright): Update the copyright
62969         string used in all --version output.
62970
62971 2000-05-14  Jim Meyering  <meyering@lucent.com>
62972
62973         * lib/closeout.c (close_stdout_set_file_name): New function.
62974         (close_stdout_status): Use new file-scoped global.
62975         Return right away if fstat says the stdout file descriptor is invalid.
62976         * lib/closeout.h (close_stdout_set_file_name): Declare.
62977
62978 2000-05-10  Jim Meyering  <meyering@lucent.com>
62979
62980         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62981         (close_stdout_set_status): New function.
62982         * lib/closeout.h (close_stdout_set_status): Declare.
62983
62984 2000-05-09  Jim Meyering  <meyering@lucent.com>
62985
62986         * m4/gettext.m4: Rename this...
62987         * m4/libintl.m4: ...to this.
62988
62989 2000-05-08  Jim Meyering  <meyering@lucent.com>
62990
62991         * lib/long-options.c: Don't include closeout.h.
62992         (parse_long_options): Don't call close_stdout for --version.
62993
62994 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62995
62996         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62997         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62998         2.1.3 bug.  This avoids a clash when files like regex.c define
62999         _GNU_SOURCE.
63000
63001 2000-05-06  Jim Meyering  <meyering@lucent.com>
63002
63003         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63004         (AC_REPLACE_FUNCS): Add strnlen.
63005
63006         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63007         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63008
63009         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63010         AC_SEARCH_LIBS call for nanosleep.
63011         (LIB_NANOSLEEP): Set and AC_SUBST.
63012
63013 2000-05-06  Jim Meyering  <meyering@lucent.com>
63014
63015         * lib/strnlen.c: Undefine __strnlen and strnlen.
63016         [!weak_alias]: Define __strnlen to strnlen.
63017
63018         * lib/atexit.c: New file, from libiberty.
63019
63020 2000-05-06  Jim Meyering  <meyering@lucent.com>
63021
63022         * lib/closeout.c (close_stdout_status): Also check for errors on the
63023         stderr stream.
63024
63025 2000-05-05  Jim Meyering  <meyering@lucent.com>
63026
63027         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63028         AC_SEARCH_LIBS call for clock_gettime.
63029         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63030
63031         * m4/search-libs.m4: Update from autoconf.
63032
63033         su doesn't work on Solaris 2.6.
63034         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63035         <shadow.h>.  Reported by Dragos Harabor.
63036
63037 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63038
63039         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63040         memcpy instead of xmalloc, xrealloc, path_concat.
63041         (locale_charset): Treat empty environment variables as absent.
63042         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63043
63044 2000-05-04  Jim Meyering  <meyering@lucent.com>
63045
63046         * lib/getopt.c: Update from glibc.
63047         * lib/obstack.c: Likewise.
63048         * lib/obstack.h: Likewise.
63049         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63050         file
63051
63052         * lib/regex.h: Likewise.
63053         * lib/strndup.c: Likewise.
63054         * lib/strnlen.c: New file, from glibc.
63055
63056 2000-05-03  Jim Meyering  <meyering@lucent.com>
63057
63058         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63059
63060 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63061
63062         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63063         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63064         compile-time test, rather than inspecting host and OS, to
63065         decide whether to define _LARGEFILE_SOURCE.
63066
63067 2000-05-01  Jim Meyering  <meyering@lucent.com>
63068
63069         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63070
63071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63072         Based on a patch from Bruno Haible.
63073
63074 2000-05-01  Jim Meyering  <meyering@lucent.com>
63075
63076         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63077
63078 2000-04-29  Jim Meyering  <meyering@lucent.com>
63079
63080         * lib/path-concat.c: Declare strdup only if it's not defined.
63081         * lib/canon-host.c: Likewise.
63082
63083 2000-04-28  Jim Meyering  <meyering@lucent.com>
63084
63085         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63086         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63087         is included first, then limits.h is included by locale.h by libintl.h.
63088         From John David Anglin.
63089
63090 2000-04-25  Jim Meyering  <meyering@lucent.com>
63091
63092         * lib/makepath.c (S_IRWXUGO): Define.
63093         (make_path): Always perform explicit chmod if MODE specifies any
63094         of the `special' permission bits.  Prompted by a bug report against
63095         install from Mate Wierdl and Joost van Baal.
63096
63097 2000-04-18  Jim Meyering  <meyering@lucent.com>
63098
63099         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63100         (jm_PREREQ): Use it.
63101
63102 2000-04-18  Jim Meyering  <meyering@lucent.com>
63103
63104         * lib/README: New file.
63105
63106         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63107         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63108
63109 2000-04-17  Jim Meyering  <meyering@lucent.com>
63110
63111         Get it right :-)
63112         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63113         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63114         Suggestion from Akim Demaille.
63115
63116 2000-04-17  Jim Meyering  <meyering@lucent.com>
63117
63118         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63119         the definition of it to rpl_strftime also defined-away the system's
63120         declaration.
63121
63122 2000-04-15  Jim Meyering  <meyering@lucent.com>
63123
63124         Use `C' to denote so-called `contiguous' files, the same way
63125         that tar does.
63126         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63127         (ftypelet): Use S_ISCTG.
63128         From Michael Deutschmann.
63129
63130 2000-04-14  Jim Meyering  <meyering@lucent.com>
63131
63132         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63133         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63134         clobbered.
63135
63136 2000-04-14  Jim Meyering  <meyering@lucent.com>
63137
63138         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63139
63140 2000-04-13  Jim Meyering  <meyering@lucent.com>
63141
63142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63143         AH_VERBATIM to insert required #ifndef into config.h.in.
63144         Suggestion from Akim Demaille.
63145
63146 2000-04-12  Jim Meyering  <meyering@lucent.com>
63147
63148         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63149         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63150         Christian Krackowizer.
63151
63152         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63153         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63154         (AC_SYS_LARGEFILE): Require.
63155         (AM_C_PROTOTYPES): Require.
63156
63157 2000-04-08  Jim Meyering  <meyering@lucent.com>
63158
63159         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63160         names don't conflict.  Reported by Eli Zaretskii.
63161
63162 2000-04-07  Jim Meyering  <meyering@lucent.com>
63163
63164         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63165         sys/types.h, to work around system header problems on AIX 3.2.5.
63166         From Bruno Haible.
63167
63168 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63169
63170         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63171         bug.  Deal with the different error behavior of Irix iconv.
63172
63173 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63174
63175         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63176         IRIX if the installer said otherwise.
63177
63178 2000-04-05  Jim Meyering  <meyering@lucent.com>
63179
63180         Portability tweaks required for ultrix4.3.
63181         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63182         (jm_CHECK_DECLS): Add getutent to the list of functions.
63183         (_jm_DECL_HEADERS): Add utmpx.h.
63184         From John David Anglin.
63185
63186         * m4/strftime.m4: Back out the 2000-04-02 change.
63187         Instead of that change, simply undefine putenv in the test program.
63188
63189 2000-04-05  Jim Meyering  <meyering@lucent.com>
63190
63191         Portability tweaks required for ultrix4.3.
63192         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63193         getutent.
63194         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63195         * lib/canon-host.c: Declare strdup.
63196         * lib/path-concat.c: Likewise.
63197         From John David Anglin.
63198
63199 2000-04-04  Jim Meyering  <meyering@lucent.com>
63200
63201         Be more DOS 8.3-friendly.
63202         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63203         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63204         * lib/Makefile.am: Reflect renaming.
63205         Reported by Eli Zaretskii.
63206
63207         Use a temporary file name that won't clash with `charset.alias'
63208         in the DOS 8.3 name space.
63209         * lib/Makefile.am (charset_tmp): Define.
63210         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63211         (uninstall-local): Likewise.
63212         Reported by Eli Zaretskii.
63213
63214 2000-04-03  Jim Meyering  <meyering@lucent.com>
63215
63216         * m4/gettext.m4: Fix typo in comment.
63217
63218         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63219         textutils/configure.in).  Suggestion from Paul Eggert.
63220         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63221
63222 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63223
63224         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63225         variable in the shell rather than using putenv, which isn't
63226         portable.  This avoids the configure-time inter-test dependency
63227         on the potentially-renamed putenv function.
63228
63229 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63230
63231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63232         before checking struct stat.st_blksize, so that
63233         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63234
63235 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63236
63237         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63238         since strftime.c uses HAVE_STRFTIME to decide whether to use
63239         the underlying strftime.
63240
63241 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63242
63243         * lib/time/strftime.c (my_strftime): Make sure we call the system
63244         strftime, not ourselves, when invoking the underlying strftime.
63245
63246 2000-03-24  Jim Meyering  <meyering@lucent.com>
63247
63248         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63249         (charset_alias): Define.
63250         (install-exec-local): Factor out common code.
63251         (uninstall-local): Split lines longer than 80.
63252         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63253         (SUFFIXES): Define.
63254         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63255         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63256
63257 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63258
63259         * lib/config.charset: Output a line containing "Packages using this
63260         file".
63261         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63262         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63263         ref-del.sed): New rules.
63264
63265 2000-03-17  Jim Meyering  <meyering@lucent.com>
63266
63267         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63268         Otherwise, include <strings.h>
63269
63270 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63271
63272         * lib/unicodeio.c (utf8_wctomb): New function.
63273         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63274         format instead of in UCS-4 with platform dependent endianness.
63275
63276 2000-03-10  Jim Meyering  <meyering@lucent.com>
63277
63278         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63279         From Marco Franzen.
63280
63281 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63282
63283         * lib/savedir.c (savedir): Work even if directory size is
63284         negative; this can happen with some screwy NFS configurations.
63285
63286 2000-03-06  Jim Meyering  <meyering@lucent.com>
63287
63288         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63289         if it's NULL (because we ran out of memory).  From Bruno Haible.
63290
63291 2000-03-05  Jim Meyering  <meyering@lucent.com>
63292
63293         * lib/localcharset.c ("path-concat.h"): Include.
63294         (get_charset_aliases): Use path_concat instead of ANSI string
63295         concatenation.
63296
63297         * lib/unicodeio.h (PARAMS): Define.
63298         Use it to guard prototype.
63299
63300 2000-03-04  Jim Meyering  <meyering@lucent.com>
63301
63302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63303         for lib/localcharset.c.
63304
63305 2000-03-04  Jim Meyering  <meyering@lucent.com>
63306
63307         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63308         installing into it.
63309         (uninstall-local): Uncomment this rule so `make distcheck' works
63310         once again.
63311
63312         * lib/unicodeio.c (<errno.h>): Include it.
63313         (errno): Declare if not defined.
63314
63315         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63316
63317         * lib/config.charset: New version, incorporating remarks from a linux
63318         i18n mailing list.  From Bruno Haible.
63319
63320 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63321
63322         * m4/codeset.m4: New file.
63323         * m4/iconv.m4: New file.
63324         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63325
63326 2000-03-03  Jim Meyering  <meyering@lucent.com>
63327
63328         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63329
63330 2000-03-02  Jim Meyering  <meyering@lucent.com>
63331
63332         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63333         the messages come out on separate lines.
63334
63335         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63336         rather than jm_CHECK_DECLARATIONS.
63337         * m4/decl.m4: Remove now-unused file.
63338
63339         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63340         geteuid.
63341
63342 2000-03-02  Jim Meyering  <meyering@lucent.com>
63343
63344         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63345
63346 2000-03-01  Jim Meyering  <meyering@lucent.com>
63347
63348         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63349         * lib/unicodeio.c: Likewise.
63350
63351 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63352
63353         * lib/config.charset: New file.
63354         * lib/localcharset.c: New file.
63355         * lib/unicodeio.h, lib/unicodeio.c: New files.
63356         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63357         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63358         (noinst_HEADERS): Add unicodeio.h.
63359         (all-local, install-exec-local, charset.alias): New targets.
63360
63361 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63362
63363         * lib/quotearg.c (ALERT_CHAR): New macro.
63364         (quotearg_buffer_restyled): Use it.
63365
63366 2000-02-27  Jim Meyering  <meyering@lucent.com>
63367
63368         * m4/check-decl.m4: Add getenv to the list.
63369
63370 2000-02-27  Jim Meyering  <meyering@lucent.com>
63371
63372         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63373         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63374
63375         * lib/backupfile.c: Guard inclusion of stdlib.h with
63376         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63377         Declare malloc if needed.
63378
63379         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63380         `#ifndef HAVE_DECL..'
63381         now that autoconf always defines the HAVE_DECL_ symbols.
63382         * lib/human.c: Likewise.
63383         * lib/same.c: Likewise.
63384         * lib/strtoumax.c: Likewise.
63385
63386         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63387         declaration check was not run.
63388         * lib/hash.c: Likewise.
63389         * lib/human.c: Likewise.
63390         * lib/same.c: Likewise.
63391         * lib/strtoumax.c: Likewise.
63392
63393         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63394         `.', then first look up the entire `.'-containing string as a login
63395         name.
63396
63397 2000-02-23  Jim Meyering  <meyering@lucent.com>
63398
63399         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63400         in place of my hack.
63401
63402 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63403
63404         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63405         (textint): New typedef.
63406         (parser_control): Member year changed from int to textint.
63407         All uses changed.
63408         (YYSTYPE): Removed; replaced by %union with int and textint members.
63409         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63410         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63411         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63412         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63413         (date, number, to_year): Use width of number in digits, not its value,
63414         to determine whether it's a 2-digit year, or a 2-digit time.
63415         (yylex): Store number of digits of numeric tokens.
63416         Reported by John Kendall.
63417
63418         (parser_control): Changed from struct parser_control to typedef (for
63419         consistency).  All uses changed.
63420
63421         (tID): Removed; not used.
63422         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63423
63424 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63425
63426         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63427         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63428
63429 2000-02-12  Jim Meyering  <meyering@lucent.com>
63430
63431         * lib/userspec.c (ISDIGIT): Define it.
63432         (isdigit): Remove definition.
63433         (is_number): Use ISDIGIT, not isdigit.
63434         <libintl.h>: Include.
63435         (_ and N_): Define.
63436         (parse_user_spec): Mark translatable strings.
63437
63438 2000-02-10  Jim Meyering  <meyering@lucent.com>
63439
63440         With these changes, nanosleep.[ch] are finally enough like the other
63441         lib/* replacement files to compile on a few more losing systems.
63442
63443         * lib/nanosleep.h: Don't include config.h.
63444         Remove prototype from declaration of nanosleep.
63445         (PARAMS): Remove now-unneeded definition.
63446         * lib/nanosleep.c: #undef nanosleep.
63447         (rpl_nanosleep): Rename from nanosleep.
63448
63449 2000-02-10  Jim Meyering  <meyering@lucent.com>
63450
63451         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63452         gnu_nanosleep to rpl_nanosleep.
63453
63454 2000-02-09  Jim Meyering  <meyering@lucent.com>
63455
63456         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63457         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63458
63459 2000-02-08  Akim Demaille  <akim@epita.fr>
63460
63461         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63462         `[' and `]' and remove uses of `changequote'.
63463         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63464         (AC_SYS_LARGEFILE): Likewise.
63465         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63466         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63467         of changequote.
63468         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63469         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63470         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63471         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63472
63473 2000-02-05  Jim Meyering  <meyering@lucent.com>
63474
63475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63476         Remove explicit use of AC_HEADER_TIME.  It is required by
63477         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63478         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63479         in autoconf whereby the expansion of the latter ended up preceding
63480         the expansion of its prerequisite, AC_HEADER_TIME.
63481         Reported by Volker Borchert.
63482
63483 2000-02-03  Jim Meyering  <meyering@lucent.com>
63484
63485         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63486
63487 2000-02-03  Jim Meyering  <meyering@lucent.com>
63488
63489         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63490         rather than with `#if HAVE_UTMPNAME'.
63491
63492 2000-02-02  Jim Meyering  <meyering@lucent.com>
63493
63494         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63495         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63496         Reported by Eli Zaretskii.
63497
63498 2000-02-01  Jim Meyering  <meyering@lucent.com>
63499
63500         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63501
63502 2000-01-31  Jim Meyering  <meyering@lucent.com>
63503
63504         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63505         functions.  Add the time.h and sys/time.h headers along with the
63506         AC_REQUIRE'ment of AC_HEADER_TIME.
63507
63508 2000-01-31  Jim Meyering  <meyering@lucent.com>
63509
63510         * lib/nanosleep.h (nanosleep): Guard declaration with
63511         `#if ! HAVE_DECL_NANOSLEEP'.
63512         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63513         the declaration in that vendor's sys/timers.h.
63514         Reported by Christian Krackowizer.
63515
63516         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63517         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63518         (ISPRINT): Likewise.
63519         Reported by Tom Tromey.
63520
63521 2000-01-30  Jim Meyering  <meyering@lucent.com>
63522
63523         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63524
63525         * m4/prereq.m4 (utmp_includes): Define.
63526         Check for ut_user and ut_name members in both struct utmpx
63527         and struct utmp.
63528
63529 2000-01-30  Jim Meyering  <meyering@lucent.com>
63530
63531         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63532         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63533         header files where only utmpx.ut_user is declared.
63534
63535         * lib/readutmp.h (UT_USER): Define.
63536
63537 2000-01-29  Jim Meyering  <meyering@lucent.com>
63538
63539         * m4/lib-check.m4: New file containing library-related checks from
63540         fileutils and sh-utils (textutils had none).
63541
63542 2000-01-28  Jim Meyering  <meyering@lucent.com>
63543
63544         * m4/perl.m4: Change format of warning message to look more like that
63545         from the missing script.  Suggestion from François Pinard.
63546
63547 2000-01-25  Jim Meyering  <meyering@lucent.com>
63548
63549         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63550         well as time.h in the compile check.
63551         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63552         Fix typo in cross-compiling case: s/yes/no/.
63553
63554 2000-01-23  Jim Meyering  <meyering@lucent.com>
63555
63556         * m4/jm-macros.m4: Move df-related tests here from
63557         fileutils/configure.in
63558
63559         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63560         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63561
63562         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63563         s/space/ac_fsusage_space/.
63564         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63565
63566         * m4/ftruncate.m4: New file (derived from part of
63567         fileutils/configure.in).
63568         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63569         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63570
63571         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63572         AC_SUBST these here, rather than just in sh-util/configure.in, so
63573         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63574         all the same.
63575         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63576         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63577         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63578         (AC_SUBST(POW_LIBM)): Likewise.
63579         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63580
63581 2000-01-23  Jim Meyering  <meyering@lucent.com>
63582
63583         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63584         obstack.c.
63585
63586 2000-01-22  Jim Meyering  <meyering@lucent.com>
63587
63588         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63589
63590         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63591
63592         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63593         configure.in
63594         (AC_CHECK_HEADERS): Likewise for sh-utils.
63595         (AC_CHECK_HEADERS): Likewise for textutils.
63596         Merge the three lists of headers.
63597
63598         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63599         from fileutils' configure.in.
63600
63601         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63602         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63603         check-decl.m4.
63604
63605         * m4/check-decl.m4: Use #if rather than #ifdef.
63606         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63607         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63608         (_jm_DECL_HEADERS): Define new function.
63609         (jm_CHECK_DECLARATIONS): Require it.
63610
63611 2000-01-22  Jim Meyering  <meyering@lucent.com>
63612
63613         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63614         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63615         Required for some AIX systems.  Reported by Christian Krackowizer.
63616         [TESTING] (main): New function.
63617
63618         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63619         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63620         letters.
63621
63622         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63623         iswprint.
63624
63625         * lib/strverscmp.c (ISDIGIT): Define.
63626         (strverscmp): Use ISDIGIT, not isdigit.
63627
63628 2000-01-19  Jim Meyering  <meyering@lucent.com>
63629
63630         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63631         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63632         defines `struct timespec' in <sys/time.h>
63633
63634         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63635         Thanks to Akim for explaining.
63636
63637 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63638
63639         * lib/nanosleep.c (nanosleep):
63640         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63641         POSIX.1 doesn't require SA_INTERRUPT and some systems
63642         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63643         it's been part of POSIX.1 since day 1 (in 1988).
63644
63645 2000-01-17  Jim Meyering  <meyering@lucent.com>
63646
63647         * lib/interlock: Remove unused file.  Reported by François Pinard.
63648
63649 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63650
63651         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63652         alert, backslash, formfeed, and vertical tab unnecessarily in
63653         shell quoting style.
63654
63655 2000-01-16  Jim Meyering  <meyering@lucent.com>
63656
63657         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63658         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63659         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63660         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63661
63662 2000-01-16  Jim Meyering  <meyering@lucent.com>
63663
63664         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63665         because the latter didn't work.
63666
63667 2000-01-15  Jim Meyering  <meyering@lucent.com>
63668
63669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63670         (AC_REPLACE_FUNCS): Add memcpy and memset.
63671         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63672         Add strpbrk.
63673         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63674
63675 2000-01-12  Jim Meyering  <meyering@lucent.com>
63676
63677         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63678         (jm_PREREQ): Use it.
63679         (jm_PREREQ_READUTMP): New macro.
63680         (jm_PREREQ): Use it.
63681
63682 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63683
63684         Quote multibyte characters correctly.
63685         * m4/c-bs-a.m4: New file.
63686         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63687         (jm_PREREQ): Use it.
63688
63689 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63690
63691         * m4/uintmax_t.m4: Port to autoconf 2.13.
63692
63693 2000-01-08  Jim Meyering  <meyering@ascend.com>
63694
63695         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63696         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63697
63698 2000-01-04  Jim Meyering  <meyering@ascend.com>
63699
63700         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63701         jm_STRUCT_DIRENT_D_TYPE.
63702         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63703         jm_STRUCT_DIRENT_D_INO.
63704         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63705         jm_STRUCT_UTIMBUF.
63706         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63707         renamings.
63708         * m4/utime.m4: Likewise.
63709
63710         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63711         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63712
63713 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63714
63715         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63716         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63717
63718 2000-01-02  Jim Meyering  <meyering@ascend.com>
63719
63720         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63721         remember if this is necessary.
63722
63723 1999-12-26  Jim Meyering  <meyering@ascend.com>
63724
63725         * m4/jm-macros.m4: Use it here.
63726         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63727
63728 1999-12-23  Jim Meyering  <meyering@ascend.com>
63729
63730         * m4/jm-macros.m4: Check for clock_gettime (moved from
63731         fileutils/configure.in)
63732         Check for gettimeofday.
63733
63734 1999-12-20  Jim Meyering  <meyering@ascend.com>
63735
63736         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63737         autoconf-2.14a-1999-12-20.
63738
63739 1999-12-19  Jim Meyering  <meyering@ascend.com>
63740
63741         * m4/lstat-slash.m4: New file.
63742         * m4/jm-macros.m4: Use the new macro:
63743         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63744
63745 1999-12-07  Jim Meyering  <meyering@ascend.com>
63746
63747         * m4/perl.m4: Require that File::Compare be available, too.
63748         Too many systems seem to lack it.
63749
63750         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63751         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63752
63753 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63754
63755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63756         problem with the QNX 4.25 shell, which doesn't propagate exit
63757         status of failed commands inside shell assignments.
63758
63759 1999-11-17  Jim Meyering  <meyering@ascend.com>
63760
63761         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63762
63763 1999-11-07  Jim Meyering  <meyering@ascend.com>
63764
63765         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63766
63767 1999-11-06  Jim Meyering  <meyering@ascend.com>
63768
63769         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63770         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63771
63772 1999-11-05  Jim Meyering  <meyering@ascend.com>
63773
63774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63775         configure.in of textutils, fileutils, and sh-utils into this one
63776         (shared between those packages) file.
63777         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63778         AC_STRUCT_ST_BLKSIZE.
63779
63780 1999-11-03  Jim Meyering  <meyering@ascend.com>
63781
63782         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63783         of AC_CHECK_TYPE checks includes unistd.h.
63784         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63785         Suggestion from Akim Demaille.
63786
63787 1999-10-30  Jim Meyering  <meyering@ascend.com>
63788
63789         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63790         m4-quoted string.
63791         * m4/ls-mntd-fs.m4: Likewise.
63792         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63793         * m4/jm-winsz1.m4: Likewise.
63794
63795         * m4/const.m4: Remove file, since the fix made it into the experimental
63796         version of autoconf.
63797         * m4/mktime.m4: Likewise.
63798
63799         * m4/check-type.m4: Remove file, now that the latest version of
63800         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63801
63802         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63803         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63804         AC_CHECK_TYPE.
63805
63806 1999-10-04  Jim Meyering  <meyering@ascend.com>
63807
63808         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63809
63810 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63811
63812         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63813         2.95.1 bug with HP-UX 10.20.
63814
63815 1999-09-17  Jim Meyering  <meyering@ascend.com>
63816
63817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63818         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63819         due to missing strdup (against sh-utils-2.0).
63820
63821 1999-08-29  Jim Meyering  <meyering@ascend.com>
63822
63823         * m4/jm-macros.m4: Require jm_BISON.
63824         * m4/bison.m4: New file.
63825
63826 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63827
63828         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63829         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63830
63831 1999-08-05  Jim Meyering  <meyering@ascend.com>
63832
63833         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63834         to avoid conflicts with `conftest' on 8+3 filesystems.
63835         Suggestion from Eli Zaretskii.
63836
63837 1999-08-04  Jim Meyering  <meyering@ascend.com>
63838
63839         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63840         fileutils and sh-utils (textutils's getline test was inadequate).
63841         (AM_FUNC_GETLINE): Run this test.
63842         (AC_CHECK_FUNCS): Check for getdelim.
63843         Reported by Bob Proulx.
63844
63845 1999-08-02  Jim Meyering  <meyering@ascend.com>
63846
63847         * m4/jm-macros.m4: Add a comment.
63848
63849 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63850
63851         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63852         <inttypes.h> defines strtoumax as a macro (and not as a
63853         function).
63854
63855 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63856
63857         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63858         that we can shift, multiply and divide unsigned long long
63859         values; Ultrix cc can't do it.
63860
63861 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63862
63863         * m4/mktime.m4: New file, which is a preview of what should appear
63864         in the next public autoconf release.
63865
63866 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63867
63868         * m4/lfs.m4: Remove this file.
63869         * m4/largefile.m4: New file.  It contains the old contents of
63870         lfs.m4, except that all names with prefix AC_LFS have been
63871         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63872         compatible with future autoconf versions.  Also, some minor m4
63873         quoting problems have been fixed.
63874
63875 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63876
63877         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63878         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63879         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63880         and simplify the shell code.
63881
63882 1999-08-01  Jim Meyering  <meyering@ascend.com>
63883
63884         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63885         m4.
63886
63887 1999-07-20  Jim Meyering  <meyering@ascend.com>
63888
63889         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63890
63891 1999-07-15  Jim Meyering  <meyering@ascend.com>
63892
63893         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63894
63895 1999-05-22  Jim Meyering  <meyering@ascend.com>
63896
63897         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63898
63899 1999-05-20  Jim Meyering  <meyering@ascend.com>
63900
63901         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63902         Add a colon after each `then' in case $4 is empty.
63903
63904 1999-05-16  Jim Meyering  <meyering@ascend.com>
63905
63906         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63907
63908 1999-05-10  Jim Meyering  <meyering@ascend.com>
63909
63910         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63911
63912         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63913         AC_FUNC_MKTIME.
63914
63915 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63916
63917         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63918
63919 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63920
63921         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63922         not CPPFLAGS, so that linking works correctly in IRIX.
63923
63924 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63925
63926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63927
63928 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63929
63930         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63931         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63933         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63934         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63935
63936         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63937
63938 1999-04-20  Jim Meyering  <meyering@ascend.com>
63939
63940         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63941         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63942         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63943
63944 1999-04-18  Jim Meyering  <meyering@ascend.com>
63945
63946         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63947         * m4/jm-macros.m4: Use it.
63948
63949 1999-04-06  Jim Meyering  <meyering@ascend.com>
63950
63951         * m4/strftime.m4: Remove test for %f.
63952
63953 1999-03-29  Jim Meyering  <meyering@ascend.com>
63954
63955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63956         superset of the AC_TYPE_* checks in the textutils, fileutils,
63957         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63958         AC_TYPE_PID_T.
63959
63960 1999-03-28  Jim Meyering  <meyering@ascend.com>
63961
63962         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63963         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63964         replaced e.g., in the *.sh files of the sh-utils.
63965
63966 1999-03-20  Jim Meyering  <meyering@ascend.com>
63967
63968         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63969         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63970         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63971
63972 1999-03-19  Jim Meyering  <meyering@ascend.com>
63973
63974         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63975
63976 1999-03-12  Jim Meyering  <meyering@ascend.com>
63977
63978         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63979
63980 1999-03-07  Jim Meyering  <meyering@ascend.com>
63981
63982         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63983         declared.
63984
63985 1999-02-17  Jim Meyering  <meyering@ascend.com>
63986
63987         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63988         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63989
63990 1999-02-07  Jim Meyering  <meyering@ascend.com>
63991
63992         * m4/group-member.m4: New file -- extracted from sh-utils'
63993         configure.in.
63994
63995         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63996         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63997
63998 1999-02-06  Jim Meyering  <meyering@ascend.com>
63999
64000         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64001         * m4/fnmatch.m4: Likewise.
64002         * m4/getgroups.m4: Likewise.
64003         * m4/lstat.m4: Likewise.
64004         * m4/malloc.m4: Likewise.
64005         * m4/putenv.m4: Likewise.
64006         * m4/realloc.m4: Likewise.
64007         * m4/regex.m4: Likewise.
64008         * m4/stat.m4: Likewise.
64009         * m4/strftime.m4: Likewise.
64010         Suggestion from Alain Magloire.
64011
64012         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64013         * m4/fnmatch.m4: Likewise.
64014         * m4/getgroups.m4: Likewise.
64015         * m4/getline.m4: Likewise.
64016         * m4/lstat.m4: Likewise.
64017         * m4/malloc.m4: Likewise.
64018         * m4/memcmp.m4: Likewise.
64019         * m4/putenv.m4: Likewise.
64020         * m4/realloc.m4: Likewise.
64021         * m4/regex.m4: Likewise.
64022         * m4/stat.m4: Likewise.
64023         * m4/strftime.m4: Likewise.
64024         Suggestion from Alain Magloire.
64025
64026         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64027         an argument.
64028
64029         * m4/regex.m4: Add a run-time Test for proper operation of
64030         re_compile_pattern.
64031
64032 1999-01-31  Jim Meyering  <meyering@ascend.com>
64033
64034         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64035
64036 1999-01-30  Jim Meyering  <meyering@ascend.com>
64037
64038         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64039
64040         * m4/jm-mktime.m4: Make this a wrapper around the official
64041         AM_FUNC_MKTIME rather than my private copy, now that the official one
64042         is up to date.
64043         * m4/mktime.m4: Remove file.
64044
64045         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64046         * m4/uptime.m4: Likewise.
64047         * m4/uintmax_t.m4: Likewise.
64048
64049 1999-01-28  Jim Meyering  <meyering@ascend.com>
64050
64051         * m4/jm-macros.m4: Use jm_AFS.
64052         * m4/afs.m4: New file (from fileutils' configure.in).
64053
64054         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64055         * m4/chown.m4: Likewise.
64056         * m4/d-ino.m4: Likewise.
64057         * m4/d-type.m4: Likewise.
64058         * m4/fnmatch.m4: Likewise.
64059         * m4/getgroups.m4: Likewise.
64060         * m4/gettext.m4: Likewise.
64061         * m4/jm-mktime.m4: Likewise.
64062         * m4/jm-winsz2.m4: Likewise.
64063         * m4/lcmessage.m4: Likewise.
64064         * m4/ls-mntd-fs.m4: Likewise.
64065         * m4/malloc.m4: Likewise.
64066         * m4/memcmp.m4: Likewise.
64067         * m4/putenv.m4: Likewise.
64068         * m4/realloc.m4: Likewise.
64069         * m4/st_mtim.m4: Likewise.
64070         * m4/strftime.m4: Likewise.
64071
64072 1999-01-16  Jim Meyering  <meyering@ascend.com>
64073
64074         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64075         (ARGMATCH_DIE_DECL): Define.
64076
64077 1999-01-12  Jim Meyering  <meyering@ascend.com>
64078
64079         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64080         Reported by Lars Hecking.
64081
64082 1999-01-10  Jim Meyering  <meyering@ascend.com>
64083
64084         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64085         gross kludge.
64086         * m4/inttypes_h.m4: Likewise.
64087         * m4/lstat.m4: Likewise.
64088         * m4/malloc.m4: Likewise.
64089         * m4/readdir.m4: Likewise.
64090         * m4/realloc.m4: Likewise.
64091         * m4/st_dm_mode.m4: Likewise.
64092         * m4/stat.m4: Likewise.
64093         * m4/utimbuf.m4: Likewise.
64094         * m4/utimes.m4: Likewise.
64095
64096         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64097         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64098         comments in config.h.in are meaningful.
64099
64100         * m4/jm-macros.m4: Require autoconf-2.13 here.
64101
64102         * m4/regex.m4: By default, don't use the included regex.c on systems
64103         with glibc 2.  Suggestion from Uli Drepper.
64104
64105 1999-01-02  Jim Meyering  <meyering@ascend.com>
64106
64107         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64108
64109 1998-12-18  Jim Meyering  <meyering@ascend.com>
64110
64111         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64112         Based on a suggestion from Lars Hecking.
64113
64114 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64115
64116         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64117
64118 1998-11-16  Jim Meyering  <meyering@ascend.com>
64119
64120         * m4/lfs.m4: Double-quote the `uname...` expression.
64121
64122 1998-11-14  Jim Meyering  <meyering@ascend.com>
64123
64124         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64125         * m4/stat.m4: Likewise.
64126
64127 1998-11-03  Jim Meyering  <meyering@ascend.com>
64128
64129         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64130         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64131
64132 1998-10-18  Jim Meyering  <meyering@ascend.com>
64133
64134         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64135
64136 1998-10-17  Jim Meyering  <meyering@ascend.com>
64137
64138         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64139         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64140         calls for those previously hard-coded headers.  Instead, take a new
64141         parameter.
64142         (jm_CHECK_DECLARATIONS): Reflect interface change.
64143         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64144         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64145
64146         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64147
64148 1998-10-14  Jim Meyering  <meyering@ascend.com>
64149
64150         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64151         instead of "TZ=America/Vancouver".  From Paul Eggert.
64152
64153 1998-10-11  Jim Meyering  <meyering@ascend.com>
64154
64155         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64156         This adds a test for a recently added compatibility fix for mktime.c.
64157         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64158
64159 1998-09-27  Jim Meyering  <meyering@ascend.com>
64160
64161         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64162
64163         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64164         ../configure.in, including a change from Gordon Matzigkeit to allow
64165         cross-compiling for the Hurd.
64166
64167         * m4/glibc.m4: New file/macro to test for the GNU C Library
64168         versions 1 and 2.  From Gordon Matzigkeit.
64169         Indent.
64170
64171 1998-09-21  Jim Meyering  <meyering@ascend.com>
64172
64173         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64174
64175 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64176
64177         Port nanosecond-resolution times to UnixWare 2.1.2 and
64178         pedantic Solaris 2.6.
64179
64180         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64181         AC_STRUCT_ST_MTIM.
64182         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64183         Generate name of ns member, instead of just 1 or undef.
64184         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64185
64186 1998-08-15  Jim Meyering  <meyering@ascend.com>
64187
64188         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64189         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64190         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64191         instead of jm_TYPE_SSIZE_T.
64192
64193 1998-08-12  Jim Meyering  <meyering@ascend.com>
64194
64195         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64196
64197 1998-08-02  Jim Meyering  <meyering@ascend.com>
64198
64199         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64200         in acconfig.h manually.
64201
64202 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64203
64204         * m4/st_mtim.m4: New file.
64205
64206 1998-07-28  Jim Meyering  <meyering@ascend.com>
64207
64208         * m4/utimes.m4: Undef stat.
64209
64210 1998-07-25  Jim Meyering  <meyering@ascend.com>
64211
64212         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64213         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64214
64215 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64216
64217         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64218         uid and gid actually remain unchanged.
64219
64220 1998-07-07  Jim Meyering  <meyering@ascend.com>
64221
64222         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64223
64224 1998-07-04  Jim Meyering  <meyering@ascend.com>
64225
64226         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64227         to prove that this macro can be used in packages without regex.c.
64228
64229 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64230
64231         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64232         is to be used.
64233
64234 1998-07-03  Jim Meyering  <meyering@ascend.com>
64235
64236         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64237
64238         * m4/gettext.m4: New file -- from gettext-0.10.35.
64239         * m4/lcmessage.m4: Likewise.
64240         * m4/progtest.m4: Likewise.
64241
64242         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64243         * m4/jm-macros.m4: Require the new macro.
64244
64245 1998-06-29  Jim Meyering  <meyering@ascend.com>
64246
64247         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64248         for the definition of NGROUPS (used in a system header included
64249         by sys/mount.h).
64250
64251 1998-06-28  Jim Meyering  <meyering@ascend.com>
64252
64253         * m4/ls-mntd-fs.m4: New file.
64254         * m4/fstypename.m4: New file.
64255
64256         * m4/jm-macros.m4: Require the new macro.
64257         * m4/jm-glibc-io.m4: New file.
64258
64259 1998-05-19  Jim Meyering  <meyering@ascend.com>
64260
64261         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64262         * m4/lchown.m4: New file.
64263
64264         * m4/Makefile.am.in: New file.
64265         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64266
64267 1998-05-14  Jim Meyering  <meyering@ascend.com>
64268
64269         * m4/Makefile.am (EXTRA_DIST): Add them.
64270         * m4/jm-macros.m4: New file.
64271         * m4/utimbuf.m4: New file.
64272
64273 1998-05-12  Jim Meyering  <meyering@ascend.com>
64274
64275         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64276
64277 1998-05-11  Jim Meyering  <meyering@ascend.com>
64278
64279         * m4/isc-posix.m4: New file.
64280
64281 1998-05-10  Jim Meyering  <meyering@ascend.com>
64282
64283         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64284
64285 1998-05-09  Jim Meyering  <meyering@ascend.com>
64286
64287         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64288         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64289         with automake.
64290
64291         * m4/ssize_t.m4: New file.
64292         * m4/mktime.m4: Remove file -- the new automake has this now.
64293
64294 1998-04-26  Jim Meyering  <meyering@ascend.com>
64295
64296         * m4/assert.m4: New file.
64297         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64298
64299 1998-04-05  Jim Meyering  <meyering@ascend.com>
64300
64301         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64302         (jm_PREREQ): Use it here.
64303
64304 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64305
64306         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64307         in acconfig.h.
64308
64309 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64310
64311         * m4/prereq.m4: New file.
64312         * m4/error.m4: New file.
64313         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64314
64315 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64316
64317         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64318         cache-check for the same variable -- that defeated the purpose of
64319         the test; the test program was never run.  This was a problem only
64320         on systems with losing getline functions -- HP-UX 10.20 is one.
64321         Reported by Bjorn Helgaas.
64322
64323 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64324
64325         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64326
64327 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64328
64329         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64330
64331         * m4/const.m4: New file.  Use an initializer in this declaration
64332         typedef int charset[2]; const charset x;
64333         Reported by Bob Glickstein.
64334
64335 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64336
64337         * m4/chown.m4: Fix reversed types on -1 args to chown.
64338         From Kaveh Ghazi.
64339
64340 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64341
64342         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64343         Add lseek and memchr.
64344
64345         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64346         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64347         have a 20-character limit on names.
64348
64349 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64350
64351         * m4/inttypes_h.m4: New file.
64352         * m4/uintmax_t.m4: New file.
64353         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64354
64355
64356         -----
64357
64358         Local Variables:
64359         coding: utf-8
64360         End:
64361
64362         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64363
64364         Copying and distribution of this file, with or without
64365         modification, are permitted provided the copyright notice
64366         and this notice are preserved.